/* ─── VARIABLES ─────────────────────────────────── */
:root {
  --accent:      #00C896;
  --accent-dim:  rgba(0,200,150,0.10);
  --accent-glow: rgba(0,200,150,0.22);
  --accent-border: rgba(0,200,150,0.28);
  --purple:      #7B5CFA;
  --danger:      #FF6B6B;
  --transition:  0.28s cubic-bezier(.4,0,.2,1);
  --radius:      16px;
  --radius-sm:   10px;
  --max:         1140px;
}

[data-theme="dark"] {
  --bg:          #0A0A14;
  --bg2:         #0F0F1C;
  --bg3:         #161627;
  --card:        #12121F;
  --card-hover:  #1A1A2E;
  --border:      rgba(255,255,255,0.07);
  --text:        #EEEDf8;
  --text2:       #9896B4;
  --text3:       #5C5A78;
  --toggle-bg:   #1A1A2E;
  --shadow:      0 24px 80px rgba(0,0,0,0.5);
}

[data-theme="light"] {
  --bg:          #F7F7FC;
  --bg2:         #FFFFFF;
  --bg3:         #EFEFF8;
  --card:        #FFFFFF;
  --card-hover:  #F4F4FC;
  --border:      rgba(0,0,0,0.08);
  --text:        #0F0F1C;
  --text2:       #5C5A78;
  --text3:       #9896B4;
  --toggle-bg:   #E4E4F0;
  --shadow:      0 24px 80px rgba(0,0,0,0.07);
}

/* ─── RESET ─────────────────────────────────────── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  transition: background var(--transition), color var(--transition);
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; }

/* ─── TYPOGRAPHY ─────────────────────────────────── */
h1,h2,h3,h4 { font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif; letter-spacing:-0.03em; line-height:1.08; }
h1 { font-size: clamp(36px,6vw,64px); font-weight:700; }
h2 { font-size: clamp(24px,4vw,38px); font-weight:600; }
h3 { font-size: clamp(16px,2.5vw,20px); font-weight:600; }
p  { color: var(--text2); line-height:1.7; }

/* ─── LAYOUT ─────────────────────────────────────── */
.container { max-width:var(--max); margin:0 auto; padding:0 24px; }
section    { padding:80px 0; }

.section-tag {
  display:block;
  font-size:11px; font-weight:600;
  letter-spacing:2.5px; text-transform:uppercase;
  color:var(--accent); margin-bottom:16px;
}

/* ─── SCROLL REVEAL ──────────────────────────────── */
.reveal {
  opacity:0; transform:translateY(36px);
  transition: opacity .65s cubic-bezier(.4,0,.2,1),
              transform .65s cubic-bezier(.4,0,.2,1);
}
.reveal.visible { opacity:1; transform:translateY(0); }
.d1 { transition-delay:.08s; }
.d2 { transition-delay:.16s; }
.d3 { transition-delay:.24s; }
.d4 { transition-delay:.32s; }

/* ─── BUTTONS ────────────────────────────────────── */
.btn {
  display:inline-flex; align-items:center; gap:8px;
  padding:11px 24px; border-radius:var(--radius-sm);
  font-size:14px; font-weight:600; font-family:inherit;
  cursor:pointer; border:none;
  transition:all var(--transition);
  white-space:nowrap;
}
.btn-primary { background:var(--accent); color:#0A0A14; }
.btn-primary:hover { opacity:.88; transform:translateY(-1px); box-shadow:0 8px 28px var(--accent-glow); }
.btn-ghost   { background:transparent; color:var(--text2); border:1px solid var(--border); }
.btn-ghost:hover { color:var(--text); border-color:var(--accent); background:var(--accent-dim); }
.btn-lg { padding:16px 38px; font-size:16px; }
.btn[aria-disabled="true"] { opacity:.5; pointer-events:none; }

/* ─── NAV ────────────────────────────────────────── */
.nav {
  position:fixed; top:0; left:0; right:0; z-index:999;
  padding:14px 0;
  border-bottom:1px solid var(--border);
  transition:all var(--transition);
}
[data-theme="dark"] .nav  { background:rgba(10,10,20,.88); backdrop-filter:blur(20px); }
[data-theme="light"] .nav { background:rgba(247,247,252,.90); backdrop-filter:blur(20px); }
.nav.scrolled { box-shadow:0 4px 40px rgba(0,0,0,.18); }

.nav-inner {
  display:flex; align-items:center; justify-content:space-between;
  max-width:var(--max); margin:0 auto; padding:0 24px;
  gap:16px;
}
.nav-logo {
  font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-size:20px; font-weight:700; letter-spacing:-.04em;
  color:var(--text); flex-shrink:0; display:flex; align-items:center; gap:8px;
}
.nav-logo span { color:var(--accent); }
.nav-logo img { width:28px; height:28px; border-radius:8px; }

.nav-right { display:flex; align-items:center; gap:10px; flex-shrink:0; }

.theme-btn {
  width:42px; height:24px;
  background:var(--toggle-bg); border:1px solid var(--border);
  border-radius:100px; cursor:pointer; position:relative;
  transition:all var(--transition); flex-shrink:0;
}
.theme-btn::after {
  content:''; position:absolute;
  top:3px; left:3px;
  width:16px; height:16px; border-radius:50%;
  background:var(--accent); transition:transform var(--transition);
}
[data-theme="light"] .theme-btn::after { transform:translateX(18px); }

/* ─── HERO ───────────────────────────────────────── */
.hero {
  min-height:92vh; display:flex; flex-direction:column;
  align-items:center; justify-content:center;
  text-align:center; padding:130px 24px 80px;
  position:relative; overflow:hidden;
}
.hero-bg { position:absolute; inset:0; z-index:0; }
.orb {
  position:absolute; border-radius:50%;
  filter:blur(110px); pointer-events:none;
}
.orb-1 { width:560px; height:560px; background:rgba(0,200,150,.07); top:-80px; right:-80px; animation:f1 9s ease-in-out infinite; }
.orb-2 { width:480px; height:480px; background:rgba(123,92,250,.06); bottom:-60px; left:-80px; animation:f2 11s ease-in-out infinite; }
.hero-grid {
  position:absolute; inset:0;
  background-image: linear-gradient(var(--border) 1px,transparent 1px), linear-gradient(90deg,var(--border) 1px,transparent 1px);
  background-size:56px 56px;
  mask-image:radial-gradient(ellipse 80% 60% at 50% 50%,black,transparent);
  -webkit-mask-image:radial-gradient(ellipse 80% 60% at 50% 50%,black,transparent);
}
@keyframes f1 { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(-28px,28px) scale(1.06)} }
@keyframes f2 { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(28px,-20px) scale(1.09)} }

.hero-inner { position:relative; z-index:1; max-width:760px; margin:0 auto; }
.hero-icon {
  width:88px; height:88px; border-radius:22px;
  margin:0 auto 24px; display:block;
  box-shadow:var(--shadow); border:1px solid var(--border);
}
.hero-badge {
  display:inline-flex; align-items:center; gap:8px;
  background:var(--accent-dim); border:1px solid var(--accent-border);
  border-radius:100px; padding:5px 18px;
  font-size:12px; font-weight:500; color:var(--accent); margin-bottom:24px;
}
.hero-badge::before {
  content:''; width:6px; height:6px;
  background:var(--accent); border-radius:50%;
  animation:pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.35;transform:scale(.7)} }
.hero-sub { font-size:clamp(15px,2vw,18px); max-width:540px; margin:18px auto 0; }
.hero-btns { display:flex; flex-wrap:wrap; justify-content:center; gap:14px; margin-top:36px; }
.hero-meta {
  margin-top:22px; font-size:13px; color:var(--text3);
  display:flex; align-items:center; justify-content:center; gap:8px; flex-wrap:wrap;
}
.hero-meta .tag-version {
  font-weight:600; color:var(--accent);
  background:var(--accent-dim); border:1px solid var(--accent-border);
  border-radius:100px; padding:3px 12px; font-size:12px;
}

/* ─── CARDS / STEPS ──────────────────────────────── */
.card {
  background:var(--card); border:1px solid var(--border);
  border-radius:var(--radius); padding:28px;
  transition:all var(--transition); position:relative; overflow:hidden;
}
.card::before {
  content:''; position:absolute;
  top:0; left:0; right:0; height:2px;
  background:linear-gradient(90deg,var(--accent),var(--purple));
  opacity:0; transition:opacity var(--transition);
}
.card:hover { border-color:var(--accent-border); transform:translateY(-3px); box-shadow:var(--shadow); }
.card:hover::before { opacity:1; }

.steps-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:0; position:relative; }
.steps-grid::before {
  content:''; position:absolute; top:30px; left:14%; width:72%; height:1px;
  background:linear-gradient(90deg,transparent,var(--accent),var(--purple),transparent);
  opacity:.28;
}
.step { padding:0 14px; text-align:center; }
.step-n {
  width:60px; height:60px; background:var(--card);
  border:1px solid var(--border); border-radius:14px;
  display:flex; align-items:center; justify-content:center;
  margin:0 auto 18px; font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-size:20px; font-weight:700; color:var(--accent);
  position:relative; z-index:1; transition:all var(--transition);
}
.step:hover .step-n { background:var(--accent-dim); border-color:var(--accent-border); transform:scale(1.06); }
.step-title { font-size:15px; font-weight:600; color:var(--text); margin-bottom:8px; }
.step-desc  { font-size:13px; color:var(--text2); line-height:1.65; }

/* ─── FOOTER ─────────────────────────────────────── */
.footer {
  background:var(--bg); border-top:1px solid var(--border);
  padding:40px 0;
}
.footer-inner {
  display:flex; align-items:center; justify-content:center;
  flex-wrap:wrap; gap:16px;
}
.footer-brand { font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif; font-size:16px; font-weight:700; color:var(--text); }
.footer-brand span { color:var(--accent); }
.footer-bottom {
  margin-top:24px; padding-top:24px; border-top:1px solid var(--border);
  text-align:center; font-size:12px; color:var(--text3);
}

/* ─── RESPONSIVE ─────────────────────────────────── */
@media (max-width:760px) {
  .steps-grid { grid-template-columns:1fr; gap:32px; }
  .steps-grid::before { display:none; }
}
