/* Smallcase-matched design system — Inter (closest free match to Graphik Web) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* ── Brand Colors (Smallcase exact palette) ── */
  --brand: #1F7AE0;
  --brand-dark: #1567C2;
  --brand-light: #EBF3FD;
  --brand-mid: rgba(31, 122, 224, 0.3);

  /* ── Semantic Colors ── */
  --green: #1B9E4B;
  --green-light: #E8F8EE;
  --orange: #F97316;
  --orange-light: #FFF4ED;
  --red: #D93025;
  --red-light: #FDECEA;

  /* ── Text Colors (Smallcase exact) ── */
  --ink: #000000;
  --ink-2: #1A1A1A;
  --muted: #535B62;
  --muted-2: #81878C;

  /* ── Surface & Border (Smallcase exact) ── */
  --line: #E0E4E7;
  --line-2: #F9FAFC;
  --surface: #F9FAFC;
  --white: #FFFFFF;
  --footer-bg: #141B23;

  /* ── Typography (Inter — Graphik Web substitute) ── */
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* ── Shadows ── */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.1);
  --shadow-xl: 0 16px 48px rgba(0,0,0,0.12);

  /* ── Border Radius (Smallcase minimal) ── */
  --radius: 4px;
  --radius-lg: 8px;
  --radius-xl: 12px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  line-height: 1.6;
  animation: pageLoad 0.4s ease both;
}
@keyframes pageLoad { from { opacity: 0; } to { opacity: 1; } }

/* ── NAV ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  height: 66px;
  display: flex; align-items: center;
}
.nav-inner {
  max-width: 1200px; width: 100%; margin: 0 auto;
  padding: 0 40px;
  display: flex; align-items: center; gap: 40px;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 21px; font-weight: 800;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.5px;
  display: flex; align-items: center; gap: 8px;
  flex-shrink: 0;
}
.nav-logo-dot {
  width: 8px; height: 8px;
  background: var(--brand);
  border-radius: 50%;
  display: inline-block;
}
.nav-links {
  display: flex; align-items: center; gap: 4px;
  list-style: none; flex: 1;
}
.nav-links a {
  font-size: 14px; font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  padding: 6px 12px; border-radius: 6px;
  transition: color 0.18s cubic-bezier(0.4,0,0.2,1), background 0.18s cubic-bezier(0.4,0,0.2,1);
  position: relative;
}
.nav-links a:hover { color: var(--ink); background: var(--line-2); }
.nav-links a.active { color: var(--brand); background: var(--brand-light); }
.nav-actions { display: flex; gap: 8px; margin-left: auto; }
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-body); font-size: 13px; font-weight: 500;
  padding: 9px 20px; border-radius: var(--radius);
  border: none; cursor: pointer; text-decoration: none;
  transition: background 0.18s cubic-bezier(0.4,0,0.2,1),
              box-shadow 0.18s cubic-bezier(0.4,0,0.2,1),
              transform 0.12s cubic-bezier(0.4,0,0.2,1),
              color 0.18s;
  white-space: nowrap; letter-spacing: 0;
  will-change: transform;
}
.btn:active { transform: scale(0.97); }
.btn-sm { font-size: 13px; padding: 7px 16px; border-radius: var(--radius); }
.btn-lg { font-size: 15px; padding: 12px 26px; border-radius: var(--radius); }
.btn-xl { font-size: 15px; padding: 14px 32px; border-radius: var(--radius); }
.btn-ghost { background: transparent; color: var(--muted); border: 1px solid var(--line); }
.btn-ghost:hover { color: var(--ink); border-color: var(--muted-2); background: var(--line-2); }
.btn-primary { background: var(--brand); color: var(--white); }
.btn-primary:hover { background: var(--brand-dark); box-shadow: 0 4px 16px rgba(31,122,224,0.35); transform: translateY(-1px); }
.btn-orange { background: var(--orange); color: var(--white); }
.btn-orange:hover { background: #EA6F0C; box-shadow: 0 4px 16px rgba(249,115,22,0.35); transform: translateY(-1px); }
.btn-outline { background: var(--white); color: var(--brand); border: 1px solid rgba(31,122,224,0.3); }
.btn-outline:hover { background: var(--brand-light); border-color: var(--brand); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: var(--ink-2); box-shadow: var(--shadow-md); transform: translateY(-1px); }

/* ── SECTION BASE ── */
section { padding: 96px 40px; }
.container { max-width: 1200px; margin: 0 auto; }
.section-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--brand); margin-bottom: 14px;
}
.section-tag-orange { color: var(--orange); }
h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -0.01em; }
h1 { font-size: clamp(32px, 4vw, 52px); font-weight: 500; line-height: 1.15; color: var(--ink); }
h2 { font-size: clamp(24px, 3vw, 40px); font-weight: 500; line-height: 1.2; color: var(--ink); }
h3 { font-size: 20px; font-weight: 500; line-height: 1.3; }
.lead {
  font-size: clamp(15px, 1.6vw, 17px); color: var(--muted);
  line-height: 1.65; font-weight: 400;
}

/* ── REVEAL — Framer Motion-style ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: 0.07s; }
.d2 { transition-delay: 0.14s; }
.d3 { transition-delay: 0.21s; }
.d4 { transition-delay: 0.28s; }

/* Card hover lift — shared micro-animation */
.feat-card,
.mp-card,
.hiw-step,
.price-card,
.comp-card,
.hiw-card,
.onv-card,
.caps-card {
  transition:
    box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.25s ease;
  will-change: transform;
}
.feat-card:hover,
.mp-card:hover,
.hiw-step:hover,
.hiw-card:hover,
.onv-card:hover,
.comp-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.09);
  border-color: var(--brand-mid);
}

/* ── FOOTER ── */
footer {
  background: var(--footer-bg);
  padding: 64px 40px 36px;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-grid {
  display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 48px; margin-bottom: 56px;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 800;
  color: var(--white);
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 12px; text-decoration: none;
}
.footer-tagline { font-size: 14px; color: rgba(255,255,255,0.4); line-height: 1.7; margin-bottom: 20px; }
.footer-col h5 {
  font-family: var(--font-display);
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: rgba(255,255,255,0.4); margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-col a { font-size: 14px; color: rgba(255,255,255,0.55); text-decoration: none; transition: color 0.15s; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.footer-copy { font-size: 13px; color: rgba(255,255,255,0.28); }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { font-size: 13px; color: rgba(255,255,255,0.28); text-decoration: none; }
.footer-legal a:hover { color: rgba(255,255,255,0.6); }
.footer-disclaimer {
  margin-top: 20px;
  font-size: 11.5px; color: rgba(255,255,255,0.2);
  line-height: 1.75; border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 20px;
}

/* ── TICKER ── */
.ticker-bar {
  background: var(--ink);
  height: 44px; overflow: hidden;
  display: flex; align-items: center;
}
.ticker-track {
  display: flex; white-space: nowrap;
  animation: tick 30s linear infinite;
}
.ticker-item {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0 28px; font-size: 12.5px; font-weight: 500;
  border-right: 1px solid rgba(255,255,255,0.08);
}
.t-sym { color: rgba(255,255,255,0.65); }
.t-price { color: rgba(255,255,255,0.35); }
.t-up { color: #34D399; font-weight: 600; }
.t-dn { color: #F87171; font-weight: 600; }
@keyframes tick { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ── BADGE CHIPS ── */
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 600;
  padding: 4px 12px; border-radius: 100px;
}
.chip-blue { background: var(--brand-light); color: var(--brand); }
.chip-green { background: var(--green-light); color: var(--green); }
.chip-orange { background: var(--orange-light); color: var(--orange); }
.chip-gray { background: var(--line-2); color: var(--muted); }

/* ── CARD ── */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: box-shadow 0.25s cubic-bezier(0.16,1,0.3,1), transform 0.25s cubic-bezier(0.16,1,0.3,1);
  will-change: transform;
}
.card:hover { box-shadow: 0 12px 32px rgba(0,0,0,0.09); transform: translateY(-3px); }

/* ── MOBILE NAV HAMBURGER ── */
.nav-hamburger {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: 6px; margin-left: auto;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--ink); border-radius: 2px;
  transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
  transform-origin: center;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── RESPONSIVE 860px ── */
@media (max-width: 860px) {
  /* Nav */
  .nav-hamburger { display: flex; }
  .nav-links {
    display: none;
    position: fixed; top: 66px; left: 0; right: 0;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    flex-direction: column; gap: 2px;
    padding: 12px 16px 20px; z-index: 199;
    animation: slideDown 0.2s cubic-bezier(0.4,0,0.2,1);
  }
  @keyframes slideDown { from{opacity:0;transform:translateY(-8px)} to{opacity:1;transform:translateY(0)} }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 15px; padding: 10px 14px; border-radius: 6px; }
  .nav-actions .btn-ghost { display: none; }

  /* Section spacing */
  section { padding: 64px 24px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  footer { padding: 48px 24px 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* ── RESPONSIVE 560px ── */
@media (max-width: 560px) {
  section { padding: 56px 20px; }
  .btn-xl { font-size: 15px; padding: 13px 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-legal { flex-wrap: wrap; gap: 12px; }
  h1 { font-size: 30px; }
  h2 { font-size: 24px; }
}
