/* ================================================================
   INDEX.CSS — Professional Light Landing Page
   60% Background (#F8FAFC) | 30% Surface (#FFF) | 10% Accent (#2563EB)
   Kesan: Nyaman · Aman · Tenang
   ================================================================ */

/* ── Navbar ───────────────────────────────────────────────────── */
.idx-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(248, 250, 252, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
}

.idx-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--sp-6);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.idx-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.5px;
}

.idx-logo-icon {
  font-size: 24px;
}

.idx-logo-accent {
  color: var(--accent);
}

.idx-nav-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}

.idx-link {
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--text-2);
  transition: color var(--duration) var(--ease);
  text-decoration: none;
}

.idx-link:hover {
  color: var(--accent);
}

.idx-btn-nav {
  background: var(--accent);
  color: white;
  padding: 8px 18px;
  border-radius: var(--r-md);
  font-size: var(--font-size-sm);
  font-weight: 600;
  text-decoration: none;
  transition: all var(--duration) var(--ease);
  box-shadow: 0 2px 8px rgba(37,99,235,0.25);
}

.idx-btn-nav:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(37,99,235,0.35);
}

/* ── Hero Section ─────────────────────────────────────────────── */
.index-page {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

.idx-hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px var(--sp-6) 100px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.idx-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-pale);
  color: var(--accent);
  border: 1px solid rgba(37,99,235,0.2);
  padding: 6px 14px;
  border-radius: var(--r-full);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: var(--sp-5);
  letter-spacing: 0.02em;
}

.idx-hero-title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1.5px;
  color: var(--text);
  margin-bottom: var(--sp-4);
}

.idx-hero-highlight {
  color: var(--accent);
  position: relative;
}

.idx-hero-desc {
  font-size: 17px;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: var(--sp-8);
  max-width: 480px;
}

.idx-hero-btns {
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
  margin-bottom: var(--sp-8);
}

.idx-btn-primary {
  background: var(--accent);
  color: white;
  padding: 14px 28px;
  border-radius: var(--r-lg);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(37,99,235,0.3);
  transition: all var(--duration) var(--ease);
}

.idx-btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37,99,235,0.4);
}

.idx-btn-secondary {
  background: var(--surface);
  color: var(--text);
  padding: 14px 28px;
  border-radius: var(--r-lg);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: all var(--duration) var(--ease);
}

.idx-btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ── Trust Bar ────────────────────────────────────────────────── */
.idx-trust {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
}

.idx-trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}

.idx-trust-divider {
  width: 1px;
  height: 16px;
  background: var(--border);
}

/* ── Hero Visual — Ticket Mockup ──────────────────────────────── */
.idx-hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.idx-ticket-mockup {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  width: 280px;
  box-shadow: var(--shadow-xl);
  font-family: 'Courier New', monospace;
  position: relative;
  z-index: 1;
  animation: ticketFloat 4s ease-in-out infinite;
}

@keyframes ticketFloat {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-10px); }
}

.itm-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 2px dashed var(--border);
  margin-bottom: 12px;
}

.itm-brand {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text);
}

.itm-badge {
  background: var(--accent-pale);
  color: var(--accent);
  font-size: 9px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--r-full);
  letter-spacing: 0.5px;
}

.itm-plate {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 3px;
  color: var(--accent);
  text-align: center;
  margin: 10px 0;
  padding: 8px;
  border: 2px solid var(--accent-pale);
  border-radius: var(--r-md);
  background: var(--accent-light);
  font-family: var(--font-mono);
}

.itm-info {
  margin-bottom: 12px;
}

.itm-row {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  padding: 3px 0;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-2);
}

.itm-row span:last-child {
  font-weight: 700;
  color: var(--text);
}

/* Simulated barcode & QR */
.itm-barcode {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  margin-top: 12px;
  border-top: 1px dashed var(--border);
  padding-top: 12px;
}

.itm-bar-vis {
  flex: 1;
  text-align: center;
}

.bc-lines {
  height: 40px;
  display: flex;
  gap: 2px;
  align-items: stretch;
  justify-content: center;
  margin-bottom: 4px;
}

.bc-lines span {
  display: block;
  width: 2px;
  background: var(--text);
  border-radius: 1px;
}

.bc-lines span.w2 { width: 4px; }
.bc-lines span.w3 { width: 3px; background: transparent; }

.itm-barcode-lbl {
  font-size: 7px;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.itm-qr-vis {
  text-align: center;
  width: 60px;
}

.itm-qr-grid {
  width: 50px;
  height: 50px;
  margin: 0 auto 4px;
  background-image:
    linear-gradient(45deg, var(--text) 25%, transparent 25%),
    linear-gradient(-45deg, var(--text) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, var(--text) 75%),
    linear-gradient(-45deg, transparent 75%, var(--text) 75%);
  background-size: 8px 8px;
  background-position: 0 0, 0 4px, 4px -4px, -4px 0;
  opacity: 0.15;
  border: 2px solid var(--text);
  border-radius: 4px;
}

.itm-footer {
  font-size: 8px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 12px;
  line-height: 1.5;
}

/* Floating stat cards */
.idx-float-card {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-md);
  white-space: nowrap;
  z-index: 2;
}

.idx-float-top {
  top: -10px;
  right: -30px;
  animation: floatIn1 4s ease-in-out infinite;
}

.idx-float-bot {
  bottom: -10px;
  left: -30px;
  animation: floatIn2 4s ease-in-out 1s infinite;
}

@keyframes floatIn1 {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}
@keyframes floatIn2 {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(6px); }
}

.ifc-val {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}

.ifc-lbl {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ── Features Section ─────────────────────────────────────────── */
.idx-features {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 80px var(--sp-6);
}

.idx-features-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.idx-section-head {
  text-align: center;
  margin-bottom: 56px;
}

.idx-section-head h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.5px;
  margin-bottom: var(--sp-3);
}

.idx-section-head p {
  font-size: 16px;
  color: var(--text-muted);
}

.idx-feat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.idx-feat-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 28px;
  transition: all var(--duration) var(--ease);
}

.idx-feat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-pale);
}

.idx-feat-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 24px;
}

.idx-feat-icon.blue   { background: var(--accent-pale); color: var(--accent); }
.idx-feat-icon.green  { background: var(--success-bg);  color: var(--success); }
.idx-feat-icon.yellow { background: var(--warning-bg);  color: var(--warning); }
.idx-feat-icon.red    { background: var(--danger-bg);   color: var(--danger); }

.idx-feat-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--sp-2);
}

.idx-feat-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── How it Works ─────────────────────────────────────────────── */
.idx-how {
  padding: 80px var(--sp-6);
  background: var(--bg);
}

.idx-how-inner {
  max-width: 720px;
  margin: 0 auto;
}

.idx-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.idx-step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 24px;
  transition: box-shadow var(--duration) var(--ease);
}

.idx-step:hover {
  box-shadow: var(--shadow-md);
}

.idx-step-arrow {
  text-align: center;
  padding: 8px 0;
}

.idx-step-num {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: var(--accent);
  color: white;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(37,99,235,0.3);
}

.idx-step-content h4 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.idx-step-content p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.65;
}

/* ── Footer ───────────────────────────────────────────────────── */
.idx-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 48px var(--sp-6) 32px;
}

.idx-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.idx-footer-brand {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
}

.idx-footer-brand p {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 400;
  margin-top: 6px;
}

.idx-footer-links {
  display: flex;
  gap: 24px;
}

.idx-footer-links a {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--duration) var(--ease);
}

.idx-footer-links a:hover {
  color: var(--accent);
}

.idx-footer-copy {
  max-width: 1200px;
  margin: 0 auto;
  font-size: 13px;
  color: var(--text-muted);
  border-top: 1px solid var(--border-light);
  padding-top: 20px;
  text-align: center;
}

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 900px) {
  .idx-hero {
    grid-template-columns: 1fr;
    padding: 50px var(--sp-5) 60px;
    gap: 48px;
  }

  .idx-hero-visual {
    justify-content: center;
  }

  .idx-float-top { right: -10px; top: -15px; }
  .idx-float-bot { left: -10px; bottom: -15px; }

  .idx-hero-title { text-align: center; }
  .idx-hero-desc  { text-align: center; margin: 0 auto var(--sp-8); }
  .idx-hero-btns  { justify-content: center; }
  .idx-trust      { justify-content: center; }
  .idx-hero-badge { display: flex; }
}

@media (max-width: 640px) {
  .idx-hero-btns { flex-direction: column; }
  .idx-btn-primary, .idx-btn-secondary { width: 100%; justify-content: center; }
  .idx-feat-grid { grid-template-columns: 1fr; }
  .idx-float-card { display: none; }
}
