@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ══════════════════════════════════════════════
   RESET & TOKENS
══════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink:         #0d0d14;
  --ink-70:      #3d3d52;
  --ink-50:      #6b6b84;
  --ink-30:      #a8a8bc;
  --ink-12:      #e4e4ee;
  --ink-06:      #f2f2f7;
  --surface:     #ffffff;
  --surface-2:   #f8f8fc;
  --accent:      #1a56ff;
  --accent-h:    #0f3fd4;
  --accent-soft: #eaefff;
  --green:       #00c48c;
  --green-soft:  #e0faf3;
  --r-xs: 4px; --r-sm: 8px; --r: 12px; --r-lg: 16px; --r-xl: 20px; --r-2xl: 28px;
  --sh-sm: 0 1px 4px rgba(13,13,20,.06), 0 1px 2px rgba(13,13,20,.04);
  --sh:    0 4px 16px rgba(13,13,20,.08), 0 2px 6px rgba(13,13,20,.04);
  --sh-lg: 0 12px 40px rgba(13,13,20,.10), 0 4px 12px rgba(13,13,20,.05);
  --sh-xl: 0 28px 72px rgba(13,13,20,.13), 0 8px 24px rgba(13,13,20,.07);
  --font: 'Inter', system-ui, sans-serif;
  --ease: cubic-bezier(.4,0,.2,1);
  --t: .2s var(--ease);
  --max-w: 1160px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--surface);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cdefs%3E%3Cpattern id='g' width='60' height='60' patternUnits='userSpaceOnUse'%3E%3Cpath d='M 60 0 L 0 0 0 60' fill='none' stroke='%23e0e0ec' stroke-width='0.4'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='60' height='60' fill='url(%23g)'/%3E%3C/svg%3E");
  opacity: .4; pointer-events: none; z-index: 0;
}

/* ══════════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════════ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200; height: 64px;
  display: flex; align-items: center; justify-content: space-between; padding: 0 32px;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(18px) saturate(1.8);
  -webkit-backdrop-filter: blur(18px) saturate(1.8);
  border-bottom: 1px solid rgba(13,13,20,.06);
  transition: box-shadow var(--t);
}
.nav.scrolled { box-shadow: 0 2px 20px rgba(13,13,20,.08); }

.nav-logo { display: flex; align-items: center; text-decoration: none; height: 36px; flex-shrink: 0; }
.nav-logo-img { height: 36px; width: auto; display: block; }

.nav-menu { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav-item { position: relative; }
.nav-item > a, .nav-item > button {
  display: flex; align-items: center; gap: 5px;
  font-size: 13.5px; font-weight: 450; font-family: var(--font); letter-spacing: -.01em;
  color: var(--ink-50); text-decoration: none; padding: 6px 12px; border-radius: var(--r-sm);
  border: none; background: transparent; cursor: pointer;
  transition: color var(--t), background var(--t); white-space: nowrap;
}
.nav-item > a:hover, .nav-item > button:hover,
.nav-item.open > button, .nav-item > a.active { color: var(--ink); background: var(--ink-06); }
.nav-chevron { width: 14px; height: 14px; flex-shrink: 0; transition: transform .18s var(--ease); }
.nav-item.open .nav-chevron { transform: rotate(180deg); }

.nav-dropdown {
  position: absolute; top: calc(100% + 10px); left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: var(--surface); border: 1px solid var(--ink-12);
  border-radius: var(--r-lg); box-shadow: var(--sh-xl);
  padding: 8px; min-width: 230px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
}
.nav-item.open .nav-dropdown {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown a {
  display: flex; flex-direction: column; padding: 10px 12px;
  border-radius: var(--r-sm); text-decoration: none; transition: background var(--t);
}
.nav-dropdown a:hover { background: var(--ink-06); }
.nav-dd-label { font-size: 13px; font-weight: 500; color: var(--ink); line-height: 1.3; }
.nav-dd-sub   { font-size: 11.5px; color: var(--ink-30); margin-top: 2px; line-height: 1.4; }
.nav-dd-div   { height: 1px; background: var(--ink-12); margin: 6px 4px; }

.nav-actions { display: flex; align-items: center; gap: 8px; }

/* Hamburger */
.nav-hamburger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; padding: 8px; border: none; background: transparent;
  cursor: pointer; border-radius: var(--r-sm); transition: background var(--t);
}
.nav-hamburger:hover { background: var(--ink-06); }
.nav-hamburger span {
  display: block; height: 1.5px; background: var(--ink); border-radius: 2px;
  transition: all .22s var(--ease); transform-origin: center;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile drawer */
.mobile-drawer {
  position: fixed; top: 64px; left: 0; right: 0; bottom: 0; z-index: 190;
  background: var(--surface); overflow-y: auto;
  transform: translateX(100%); transition: transform .28s var(--ease);
  border-top: 1px solid var(--ink-12);
}
.mobile-drawer.open { transform: translateX(0); }
.mobile-nav { padding: 16px 20px 48px; }
.mob-sec-ttl {
  font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-30); padding: 16px 12px 8px;
}
.mob-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px; border-radius: var(--r-sm); text-decoration: none;
  color: var(--ink); font-size: 15px; font-weight: 500;
  transition: background var(--t); cursor: pointer;
  border: none; background: transparent; width: 100%; font-family: var(--font);
}
.mob-link:hover { background: var(--ink-06); }
.mob-link-inner { display: flex; flex-direction: column; align-items: flex-start; }
.mob-link-sub { font-size: 12px; font-weight: 400; color: var(--ink-30); margin-top: 1px; }
.mob-acc-body { overflow: hidden; max-height: 0; transition: max-height .28s var(--ease); }
.mob-acc-body.open { max-height: 600px; }
.mob-sub-link {
  display: block; padding: 10px 12px 10px 28px; border-radius: var(--r-sm);
  text-decoration: none; color: var(--ink-70); font-size: 14px;
  transition: background var(--t);
}
.mob-sub-link:hover { background: var(--ink-06); color: var(--ink); }
.mob-div { height: 1px; background: var(--ink-12); margin: 10px 0; }
.mob-actions { display: flex; flex-direction: column; gap: 10px; padding-top: 20px; }
.mob-actions .btn { width: 100%; justify-content: center; }

/* ══════════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font); font-size: 14px; font-weight: 500; letter-spacing: -.01em;
  text-decoration: none; border: none; cursor: pointer;
  border-radius: var(--r-sm); padding: 9px 18px;
  transition: all var(--t); white-space: nowrap; line-height: 1;
}
.btn-ghost { background: transparent; color: var(--ink-50); }
.btn-ghost:hover { background: var(--ink-06); color: var(--ink); }
.btn-outline { background: transparent; color: var(--ink); border: 1px solid var(--ink-12); box-shadow: var(--sh-sm); }
.btn-outline:hover { border-color: var(--ink-30); background: var(--ink-06); }
.btn-primary { background: var(--ink); color: #fff; box-shadow: 0 2px 8px rgba(13,13,20,.18); }
.btn-primary:hover { background: #1a1a2e; box-shadow: 0 4px 16px rgba(13,13,20,.22); transform: translateY(-1px); }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 2px 10px rgba(26,86,255,.28); }
.btn-accent:hover { background: var(--accent-h); box-shadow: 0 4px 18px rgba(26,86,255,.36); transform: translateY(-1px); }
.btn-green { background: var(--green); color: #fff; box-shadow: 0 2px 10px rgba(0,196,140,.28); }
.btn-green:hover { background: #00a377; box-shadow: 0 4px 18px rgba(0,196,140,.36); transform: translateY(-1px); }
.btn-lg { font-size: 15px; padding: 13px 26px; border-radius: var(--r); }
.btn svg { flex-shrink: 0; transition: transform var(--t); }
.btn:hover .arr { transform: translateX(2px); }
.btn-wht { background: transparent; color: rgba(255,255,255,.65); border: 1px solid rgba(255,255,255,.15); }
.btn-wht:hover { color: #fff; border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.06); }

/* ══════════════════════════════════════════════
   PAGE HERO (inner pages)
══════════════════════════════════════════════ */
.page-hero {
  position: relative; z-index: 1;
  padding: 128px 40px 80px;
  overflow: hidden;
}
.page-hero-blob {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; pointer-events: none;
}
.page-hero-inner { max-width: var(--max-w); margin: 0 auto; position: relative; z-index: 2; }
.page-hero-kicker {
  font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  margin-bottom: 16px; display: inline-flex; align-items: center; gap: 8px;
}
.page-hero-title {
  font-size: clamp(36px, 5vw, 68px); font-weight: 700; letter-spacing: -.04em;
  line-height: 1.07; color: var(--ink); max-width: 720px; margin-bottom: 24px;
}
.page-hero-title .hl   { color: var(--accent); }
.page-hero-title .hl-g { color: var(--green); }
.page-hero-sub {
  font-size: 18px; font-weight: 400; color: var(--ink-50);
  max-width: 520px; line-height: 1.7; margin-bottom: 40px;
}
.page-hero-ctas { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* ══════════════════════════════════════════════
   SECTION LAYOUT
══════════════════════════════════════════════ */
.section { position: relative; z-index: 1; padding: 96px 40px; }
.section-inner { max-width: var(--max-w); margin: 0 auto; }
.section-alt { background: var(--ink-06); border-top: 1px solid var(--ink-12); border-bottom: 1px solid var(--ink-12); }
.sec-kicker {
  font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.sec-kicker-green { color: #009e70; }
.sec-title {
  font-size: clamp(26px, 3vw, 44px); font-weight: 700; letter-spacing: -.035em;
  line-height: 1.1; color: var(--ink); max-width: 560px; margin-bottom: 18px;
}
.sec-title .muted { color: var(--ink-30); font-weight: 400; }
.sec-desc { font-size: 16px; color: var(--ink-50); max-width: 460px; line-height: 1.7; margin-bottom: 52px; }
.sec-head-row { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 20px; margin-bottom: 52px; }
.sec-head-row .sec-desc { margin-bottom: 0; }

/* ══════════════════════════════════════════════
   CARDS
══════════════════════════════════════════════ */
.card {
  background: var(--surface); border: 1px solid var(--ink-12);
  border-radius: var(--r-xl); padding: 32px;
  transition: box-shadow var(--t), transform var(--t);
}
.card:hover { box-shadow: var(--sh-lg); transform: translateY(-3px); }
.card-icon {
  width: 44px; height: 44px; border-radius: var(--r); margin-bottom: 20px;
  display: flex; align-items: center; justify-content: center;
}
.card-icon.blue  { background: var(--accent-soft); }
.card-icon.green { background: var(--green-soft); }
.card-icon.dark  { background: var(--ink-06); }
.card-title { font-size: 16px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.card-desc  { font-size: 14px; color: var(--ink-50); line-height: 1.65; }

/* Feature list */
.feature-list { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.feature-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--ink-70); line-height: 1.5; }
.feat-dot { width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0; margin-top: 1px; display: flex; align-items: center; justify-content: center; }
.feat-dot.blue  { background: var(--accent-soft); }
.feat-dot.green { background: var(--green-soft); }

/* Prop table */
.prop-table { display: flex; flex-direction: column; gap: 8px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--ink-12); }
.prop-row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.prop-k { color: var(--ink-30); }
.prop-v { font-weight: 600; color: var(--ink); }
.prop-v.fast { color: var(--green); }
.prop-v.hi   { color: var(--accent); }

/* Step flow */
.step-flow { display: flex; flex-direction: column; gap: 0; counter-reset: step; }
.step {
  display: flex; gap: 24px; align-items: flex-start;
  padding: 28px 0; border-bottom: 1px solid var(--ink-12);
  counter-increment: step;
}
.step:last-child { border-bottom: none; }
.step-num {
  width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: #fff;
  font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 2px;
}
.step-num.accent { background: var(--accent); }
.step-num.green  { background: var(--green); }
.step-content {}
.step-title { font-size: 16px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.step-desc  { font-size: 14px; color: var(--ink-50); line-height: 1.65; }

/* ══════════════════════════════════════════════
   CTA BAND
══════════════════════════════════════════════ */
.cta-band {
  background: var(--ink); padding: 96px 40px;
  position: relative; overflow: hidden; z-index: 1;
}
.cta-band::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 80% at 50% 0%, rgba(26,86,255,.22) 0%, transparent 70%);
}
.cta-band-inner { max-width: var(--max-w); margin: 0 auto; position: relative; z-index: 2; text-align: center; }
.cta-band-kicker { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.28); margin-bottom: 18px; }
.cta-band-title { font-size: clamp(30px, 3.8vw, 52px); font-weight: 700; letter-spacing: -.04em; line-height: 1.08; color: #fff; margin-bottom: 14px; }
.cta-band-title .muted { color: rgba(255,255,255,.32); font-weight: 400; }
.cta-band-desc { font-size: 16px; color: rgba(255,255,255,.42); max-width: 420px; margin: 0 auto 40px; line-height: 1.7; }
.cta-band-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }

/* ══════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════ */
.footer { background: var(--ink); border-top: 1px solid rgba(255,255,255,.06); padding: 56px 40px 36px; position: relative; z-index: 1; }
.footer-inner { max-width: var(--max-w); margin: 0 auto; }
.footer-top {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px;
  padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,.07);
}
.footer-logo { text-decoration: none; display: block; margin-bottom: 16px; }
.footer-logo-img { height: 22px; width: auto; display: block; filter: invert(1) brightness(.7); transition: filter var(--t); }
.footer-logo:hover .footer-logo-img { filter: invert(1) brightness(1); }
.footer-brand-desc { font-size: 13px; color: rgba(255,255,255,.3); line-height: 1.65; max-width: 220px; }
.footer-col-ttl { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.22); margin-bottom: 16px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 13px; color: rgba(255,255,255,.42); text-decoration: none; transition: color var(--t); }
.footer-links a:hover { color: rgba(255,255,255,.85); }
.footer-bottom { padding-top: 26px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-copy { font-size: 12px; color: rgba(255,255,255,.2); }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { font-size: 12px; color: rgba(255,255,255,.2); text-decoration: none; transition: color var(--t); }
.footer-legal a:hover { color: rgba(255,255,255,.5); }

/* ══════════════════════════════════════════════
   ANIMATIONS & UTILS
══════════════════════════════════════════════ */
@keyframes fadeUp   { from{opacity:0;transform:translateY(22px)} to{opacity:1;transform:translateY(0)} }
@keyframes fadeDown { from{opacity:0;transform:translateY(-12px)} to{opacity:1;transform:translateY(0)} }
@keyframes pulse    { 0%,100%{box-shadow:0 0 0 3px var(--green-soft)} 50%{box-shadow:0 0 0 7px rgba(0,196,140,.1)} }

.anim-1 { animation: fadeUp .55s .00s ease both; }
.anim-2 { animation: fadeUp .55s .08s ease both; }
.anim-3 { animation: fadeUp .55s .16s ease both; }
.anim-4 { animation: fadeUp .55s .24s ease both; }
.anim-5 { animation: fadeUp .55s .32s ease both; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: .1s; }
.reveal-d2 { transition-delay: .2s; }
.reveal-d3 { transition-delay: .3s; }

/* Grid helpers */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }

/* Badge */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 20px;
}
.badge-blue  { background: var(--accent-soft); color: var(--accent); }
.badge-green { background: var(--green-soft); color: #009e70; }
.badge-dark  { background: var(--ink-06); color: var(--ink-50); }

/* Tag pill on cards */
.tag-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }

/* Divider */
.divider { height: 1px; background: var(--ink-12); }

/* Trust footer bar */
.trust-footer-bar {
  background: var(--ink); padding: 20px 28px; grid-column: 1 / -1;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.tfoot-lbl { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.28); white-space: nowrap; }
.tfoot-items { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.tfoot-item { font-size: 12px; color: rgba(255,255,255,.52); display: flex; align-items: center; gap: 6px; }
.tfoot-item::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--green); flex-shrink: 0; }

/* ══════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .nav-menu, .nav-actions .btn-ghost { display: none; }
  .nav-hamburger { display: flex; }
}
@media (max-width: 768px) {
  .nav { padding: 0 20px; }
  .page-hero { padding: 100px 20px 60px; }
  .section { padding: 64px 20px; }
  .cta-band { padding: 72px 20px; }
  .footer { padding: 48px 20px 32px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .page-hero-title { font-size: 34px; letter-spacing: -.03em; }
  .page-hero-ctas .btn-lg { width: 100%; justify-content: center; }
}
