*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #06060b;
  --surface: #0e0e18;
  --surface-2: #13131f;
  --border: #1e1e32;
  --accent: #6366f1;
  --accent-2: #818cf8;
  --accent-glow: rgba(99, 102, 241, 0.12);
  --accent-glow-strong: rgba(99, 102, 241, 0.25);
  --text: #e2e2f0;
  --text-muted: #6b6b8f;
  --text-subtle: #3a3a5c;
  --green: #22c55e;
  --red: #ef4444;
  --radius: 10px;
  --radius-lg: 16px;
}

[data-theme="light"] {
  --bg: #f8f8fc;
  --surface: #ffffff;
  --surface-2: #f0f0f8;
  --border: #e0e0ee;
  --accent: #4f46e5;
  --accent-2: #6366f1;
  --accent-glow: rgba(79, 70, 229, 0.08);
  --accent-glow-strong: rgba(79, 70, 229, 0.18);
  --text: #0f0f1a;
  --text-muted: #6b6b8f;
  --text-subtle: #c0c0d8;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

/* ── Header ── */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 64px;
  background: rgba(6, 6, 11, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

[data-theme="light"] header {
  background: rgba(248, 248, 252, 0.85);
}

.logo {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 450;
  transition: color 0.2s;
}

nav a:hover { color: var(--text); }

.nav__cta {
  background: var(--accent) !important;
  color: #fff !important;
  padding: 7px 18px;
  border-radius: var(--radius);
  font-size: 0.85rem !important;
  font-weight: 500 !important;
  transition: opacity 0.2s !important;
}

.nav__cta:hover { opacity: 0.85; }

.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, color 0.2s;
}

.theme-toggle:hover { border-color: var(--accent); color: var(--text); }

.icon-sun { display: none; }
[data-theme="light"] .icon-sun { display: block; }
[data-theme="light"] .icon-moon { display: none; }

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-glow-strong) 0%, transparent 70%);
  pointer-events: none;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border: 1px solid var(--border);
  border-radius: 99px;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  background: var(--surface);
}

.hero__badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
}

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin-bottom: 24px;
  max-width: 820px;
}

.hero h1 span {
  color: var(--accent-2);
}

.hero__sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 48px;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 24px var(--accent-glow-strong);
}

.btn--primary:hover {
  opacity: 0.88;
  box-shadow: 0 0 32px var(--accent-glow-strong);
}

.btn--ghost {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ── Section base ── */
section {
  padding: 96px 0;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 48px;
}

.section__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section__title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.section__sub {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.7;
}

/* ── Stats ── */
.stats {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 0;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.stats__item {
  padding: 48px;
  border-right: 1px solid var(--border);
  text-align: center;
}

.stats__item:last-child { border-right: none; }

.stats__num {
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--accent-2);
  display: block;
  line-height: 1;
  margin-bottom: 8px;
}

.stats__label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ── Solutions ── */
.solutions__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 64px;
}

.solution__card {
  background: var(--surface);
  padding: 40px;
  transition: background 0.2s;
}

.solution__card:hover { background: var(--surface-2); }

.solution__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent-glow);
  border: 1px solid var(--accent-glow-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent-2);
}

.solution__tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-glow);
  padding: 3px 10px;
  border-radius: 99px;
  margin-bottom: 12px;
}

.solution__tag--soon {
  color: var(--text-muted);
  background: var(--surface-2);
}

.solution__card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.solution__card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 24px;
}

.solution__features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.solution__features li {
  font-size: 0.83rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.solution__features li::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* ── Why ── */
.why {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.why__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.why__list {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 48px;
}

.why__item {
  display: flex;
  gap: 16px;
}

.why__num {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  padding-top: 2px;
  flex-shrink: 0;
  width: 20px;
}

.why__item h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.why__item p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.why__visual {
  position: relative;
}

.terminal {
  background: #0a0a12;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
}

[data-theme="light"] .terminal { background: #1a1a2e; }

.terminal__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.terminal__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.terminal__dot:nth-child(1) { background: #ef4444; }
.terminal__dot:nth-child(2) { background: #f59e0b; }
.terminal__dot:nth-child(3) { background: #22c55e; }

.terminal__body {
  padding: 24px;
  font-size: 0.78rem;
  line-height: 2;
  color: #a0a0c0;
}

.t-green { color: #22c55e; }
.t-blue { color: #818cf8; }
.t-red { color: #f87171; }
.t-yellow { color: #fbbf24; }
.t-muted { color: #4a4a6a; }
.t-prompt { color: var(--accent-2); }

/* ── CTA ── */
.cta {
  text-align: center;
}

.cta__inner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 80px 48px;
  position: relative;
  overflow: hidden;
}

.cta__inner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 300px;
  background: radial-gradient(ellipse, var(--accent-glow-strong) 0%, transparent 70%);
  pointer-events: none;
}

.cta h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.cta p {
  color: var(--text-muted);
  margin-bottom: 40px;
  font-size: 1rem;
}

.cta__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__left {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer__copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}

footer nav {
  gap: 20px;
}

footer nav a {
  font-size: 0.8rem;
}

/* ── Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ── Theme transition ── */
.theme-transition * {
  transition: background 0.3s, border-color 0.3s, color 0.3s !important;
}

@media (max-width: 900px) {
  header { padding: 0 24px; }
  nav { display: none; }
  .container { padding: 0 24px; }
  .stats__grid { grid-template-columns: 1fr; }
  .stats__item { border-right: none; border-bottom: 1px solid var(--border); }
  .solutions__grid { grid-template-columns: 1fr; }
  .why__grid { grid-template-columns: 1fr; gap: 40px; }
  .why__visual { display: none; }
  footer { flex-direction: column; gap: 16px; text-align: center; }
}
