:root {
  --bg: #0E1524;
  --bg2: #0b1120;
  --card: #16213C;
  --card-soft: #1B2A47;
  --line: #2A3A57;
  --text: #EAF1FB;
  --muted: #9FB0C8;
  --blue: #3B82F6;
  --blue2: #2563EB;
  --green: #37D67A;
  --amber: #F5A623;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: radial-gradient(1200px 600px at 70% -10%, #16264a 0%, var(--bg) 55%) no-repeat, var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 20px; }

/* Header */
header {
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: blur(10px);
  background: rgba(14, 21, 36, 0.72);
  border-bottom: 1px solid var(--line);
}
header .wrap { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--text); }
.brand:hover { text-decoration: none; }
.logo {
  width: 30px; height: 30px; border-radius: 8px;
  background: linear-gradient(135deg, var(--green), var(--blue));
  display: grid; place-items: center; font-size: 16px;
}
nav a { color: var(--muted); margin-left: 22px; font-size: 15px; font-weight: 500; }
nav a:hover { color: var(--text); text-decoration: none; }
@media (max-width: 560px) { nav a { margin-left: 14px; font-size: 14px; } .brand span { display: none; } }

/* Hero */
.hero { text-align: center; padding: 84px 0 60px; }
.pill {
  display: inline-block; font-size: 13px; color: var(--green);
  border: 1px solid rgba(55,214,122,0.35); background: rgba(55,214,122,0.08);
  padding: 5px 14px; border-radius: 999px; margin-bottom: 22px;
}
.hero h1 { font-size: 46px; line-height: 1.12; margin: 0 0 18px; letter-spacing: -0.02em; }
.hero h1 .grad { background: linear-gradient(90deg, var(--green), var(--blue)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero p.sub { font-size: 19px; color: var(--muted); max-width: 620px; margin: 0 auto 30px; }
.cta { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.btn {
  display: inline-block; padding: 13px 24px; border-radius: 12px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; cursor: pointer;
}
.btn-primary { background: linear-gradient(135deg, var(--green), var(--blue)); color: #06121f; }
.btn-primary:hover { text-decoration: none; opacity: 0.94; }
.btn-ghost { border-color: var(--line); color: var(--text); background: var(--card); }
.btn-ghost:hover { text-decoration: none; border-color: var(--blue); }

/* Sections */
section { padding: 46px 0; }
h2.section-title { font-size: 30px; text-align: center; margin: 0 0 8px; letter-spacing: -0.01em; }
.section-lead { text-align: center; color: var(--muted); max-width: 560px; margin: 0 auto 36px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 760px) { .grid { grid-template-columns: 1fr; } .hero h1 { font-size: 34px; } }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px;
}
.card .ic { font-size: 24px; margin-bottom: 12px; }
.card h3 { margin: 0 0 6px; font-size: 17px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; counter-reset: step; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr 1fr; } }
.step { background: var(--card-soft); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.step .n { color: var(--green); font-weight: 700; font-size: 14px; }
.step h4 { margin: 6px 0 4px; font-size: 15px; }
.step p { margin: 0; color: var(--muted); font-size: 14px; }

/* Legal / doc pages */
.doc { padding: 48px 0 40px; }
.doc h1 { font-size: 34px; margin: 0 0 6px; }
.doc .updated { color: var(--muted); font-size: 14px; margin-bottom: 30px; }
.doc h2 { font-size: 20px; margin: 32px 0 10px; }
.doc h3 { font-size: 16px; margin: 22px 0 8px; }
.doc p, .doc li { color: #cdd8ea; font-size: 15px; }
.doc ul { padding-left: 22px; }
.doc a { color: var(--blue); }
.doc .note { background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--amber); padding: 14px 16px; border-radius: 10px; color: var(--muted); font-size: 14px; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 30px 0 46px; margin-top: 40px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
footer a { color: var(--muted); margin-right: 18px; }
footer a:hover { color: var(--text); }

/* ---------- Motion ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes gradientShift { 0% { background-position: 0% 50%; } 100% { background-position: 200% 50%; } }
@keyframes bgdrift { 0% { transform: translate(0,0); } 50% { transform: translate(40px,-30px); } 100% { transform: translate(0,0); } }

/* Hero entrance */
.hero .pill { animation: fadeUp .6s ease both; }
.hero h1 { animation: fadeUp .7s ease .08s both; }
.hero p.sub { animation: fadeUp .7s ease .16s both; }
.hero .cta { animation: fadeUp .7s ease .24s both; }

/* Animated gradient headline */
.hero h1 .grad {
  background: linear-gradient(90deg, var(--green), var(--blue), #a855f7, var(--green));
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: gradientShift 6s linear infinite;
}

/* Drifting background orbs */
body::before, body::after {
  content: ""; position: fixed; border-radius: 50%; filter: blur(90px);
  z-index: -1; opacity: .55; pointer-events: none;
}
body::before { width: 440px; height: 440px; background: rgba(59,130,246,0.20); top: -130px; right: -90px; animation: bgdrift 18s ease-in-out infinite; }
body::after  { width: 380px; height: 380px; background: rgba(55,214,122,0.16); bottom: 8%; left: -120px; animation: bgdrift 23s ease-in-out infinite reverse; }

/* Scroll reveal (class added by JS; no-JS leaves content visible) */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* Hover motion */
.card { transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.card:hover { transform: translateY(-6px); border-color: var(--blue); box-shadow: 0 14px 44px rgba(0,0,0,0.38); }
.card .ic { display: inline-block; transition: transform .3s cubic-bezier(.2,.7,.2,1); }
.card:hover .ic { transform: scale(1.18) rotate(-6deg); }
.step { transition: transform .25s ease, border-color .25s ease; }
.step:hover { transform: translateY(-4px); border-color: var(--green); }
.btn { transition: transform .18s ease, opacity .18s ease, box-shadow .18s ease; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(55,214,122,0.30); }
.btn-ghost:hover { transform: translateY(-2px); }
.logo { transition: transform .3s ease; }
.brand:hover .logo { transform: rotate(-10deg) scale(1.08); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
