/* ============ TOKENS ============ */
:root {
  --blue: #2f6bff;
  --lime: #b6ff3c;
  --pink: #ff2e8b;
  --purple: #8b5cf6;

  --bg: #0b0d17;
  --bg-2: #10132400;
  --surface: #141830;
  --surface-2: #1b2040;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);

  --text: #eef1ff;
  --muted: #a2a9c9;
  --muted-2: #767ea3;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.65);
  --shadow-glow: 0 0 0 1px rgba(255, 255, 255, 0.05), 0 30px 80px -30px rgba(47, 107, 255, 0.5);

  --font-head: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --maxw: 1140px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

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

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
code { font-family: "SFMono-Regular", ui-monospace, "JetBrains Mono", Menlo, monospace; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 96px 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ============ TYPOGRAPHY ============ */
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.1; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lime);
  padding: 6px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgba(182, 255, 60, 0.06);
  margin-bottom: 18px;
}

.grad-text {
  background: linear-gradient(100deg, var(--blue), var(--purple) 45%, var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}
.btn-lg { padding: 15px 30px; font-size: 1.02rem; }
.btn-block { width: 100%; }

.btn-primary {
  color: #06070f;
  background: linear-gradient(100deg, var(--lime), #8fff5a);
  box-shadow: 0 10px 30px -10px rgba(182, 255, 60, 0.6);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(182, 255, 60, 0.8); }

.btn-outline { color: var(--text); border-color: var(--border-strong); background: rgba(255, 255, 255, 0.02); }
.btn-outline:hover { border-color: var(--lime); color: var(--lime); transform: translateY(-2px); }

.btn-ghost { color: var(--muted); background: transparent; }
.btn-ghost:hover { color: var(--text); }

/* ============ HEADER ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 13, 23, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; }
.nav-links { display: flex; gap: 26px; margin-left: 12px; }
.nav-links a { color: var(--muted); font-size: 0.95rem; font-weight: 500; transition: color 0.15s; }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 42px; height: 42px;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
}
.nav-toggle span { width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.25s, opacity 0.2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ HERO ============ */
.hero { position: relative; overflow: hidden; padding: 88px 0 80px; }
.hero-glow {
  position: absolute;
  inset: -30% -10% auto -10%;
  height: 620px;
  background:
    radial-gradient(50% 60% at 20% 30%, rgba(47, 107, 255, 0.35), transparent 70%),
    radial-gradient(45% 55% at 80% 20%, rgba(255, 46, 139, 0.28), transparent 70%),
    radial-gradient(40% 50% at 55% 60%, rgba(139, 92, 246, 0.3), transparent 70%);
  filter: blur(20px);
  animation: floatGlow 12s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes floatGlow {
  from { transform: translateY(-10px) scale(1); }
  to { transform: translateY(20px) scale(1.05); }
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero-sub { color: var(--muted); font-size: 1.12rem; margin: 22px 0 30px; max-width: 40ch; }
.hero-sub code { color: var(--lime); background: rgba(182, 255, 60, 0.08); padding: 1px 7px; border-radius: 6px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.install-cmd {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--text);
  font-size: 0.92rem;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.15s;
}
.install-cmd:hover { border-color: var(--blue); transform: translateY(-2px); }
.install-cmd .prompt { color: var(--pink); font-weight: 700; }
.install-cmd code { color: var(--text); }
.copy-hint { font-size: 0.75rem; color: var(--muted-2); border-left: 1px solid var(--border-strong); padding-left: 10px; font-family: var(--font-head); }
.install-cmd.copied .copy-hint { color: var(--lime); }

.hero-badges { display: flex; flex-wrap: wrap; gap: 18px; list-style: none; margin-top: 28px; }
.hero-badges li { position: relative; color: var(--muted); font-size: 0.88rem; padding-left: 22px; }
.hero-badges li::before {
  content: "";
  position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 13px; height: 13px;
  background: var(--lime);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/></svg>") center/contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/></svg>") center/contain no-repeat;
}

/* Terminal */
.hero-terminal {
  background: #0a0c1a;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  box-shadow: var(--shadow-glow);
  overflow: hidden;
}
.term-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px;
  background: #12152a;
  border-bottom: 1px solid var(--border);
}
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot-red { background: #ff5f56; } .dot-amber { background: #ffbd2e; } .dot-green { background: #27c93f; }
.term-title { margin-left: auto; color: var(--muted-2); font-size: 0.78rem; font-family: var(--font-head); }
.term-body { padding: 20px 18px; font-size: 0.9rem; line-height: 1.85; overflow-x: auto; }
.term-body code { font-family: "SFMono-Regular", ui-monospace, monospace; }
.c-prompt { color: var(--purple); } .c-cmd { color: var(--text); font-weight: 600; }
.c-dim { color: var(--muted-2); } .c-lime { color: var(--lime); } .c-pink { color: var(--pink); font-weight: 600; }
.c-blue { color: #6fa8ff; text-decoration: underline; }
.c-cursor { color: var(--lime); animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ============ SECTION HEAD ============ */
.section-head { max-width: 640px; margin: 0 auto 54px; text-align: center; }
.section-head p { color: var(--muted); margin-top: 14px; font-size: 1.05rem; }
.section-head a { color: var(--lime); }

/* ============ FEATURES ============ */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.feature-card:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--accent) 55%, transparent); box-shadow: 0 20px 45px -22px color-mix(in srgb, var(--accent) 60%, transparent); }
.feature-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 14px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  margin-bottom: 18px;
}
.feature-card h3 { margin-bottom: 8px; }
.feature-card p { color: var(--muted); font-size: 0.95rem; }
.feature-card code { color: var(--lime); background: rgba(182,255,60,0.08); padding: 1px 6px; border-radius: 5px; font-size: 0.86em; }

/* ============ PRICING ============ */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.price-card {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.price-card:hover { transform: translateY(-5px); border-color: var(--border-strong); }
.price-card.featured {
  border-color: transparent;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(140deg, var(--blue), var(--purple), var(--pink)) border-box;
  border: 1.5px solid transparent;
  box-shadow: var(--shadow);
}
.badge-popular {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-head); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em;
  color: #06070f; background: linear-gradient(100deg, var(--lime), #8fff5a);
  padding: 5px 14px; border-radius: 999px; white-space: nowrap;
}
.tier { font-size: 1.1rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.price { font-family: var(--font-head); margin: 12px 0 6px; }
.price .amt { font-size: 2.6rem; font-weight: 700; }
.price .per { color: var(--muted-2); font-size: 1rem; margin-left: 4px; }
.tier-note { color: var(--muted); font-size: 0.92rem; margin-bottom: 22px; }
.tier-features { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 26px; flex-grow: 1; }
.tier-features li { position: relative; padding-left: 26px; color: var(--text); font-size: 0.95rem; }
.tier-features li::before {
  content: ""; position: absolute; left: 0; top: 3px;
  width: 16px; height: 16px; border-radius: 50%;
  background: color-mix(in srgb, var(--lime) 22%, transparent);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/></svg>") center/12px no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/></svg>") center/12px no-repeat;
  background-color: var(--lime);
}

/* ============ FAQ ============ */
.faq-wrap { max-width: 820px; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; transition: border-color 0.2s; }
.faq-item.open { border-color: var(--border-strong); }
.faq-q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  text-align: left;
  padding: 20px 22px;
  background: transparent; border: 0; cursor: pointer;
  font-family: var(--font-head); font-size: 1.02rem; font-weight: 600; color: var(--text);
}
.faq-chevron { position: relative; width: 14px; height: 14px; flex-shrink: 0; }
.faq-chevron::before, .faq-chevron::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 12px; height: 2px;
  background: var(--lime); border-radius: 2px; transition: transform 0.25s;
}
.faq-chevron::before { transform: translate(-50%, -50%); }
.faq-chevron::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item.open .faq-chevron::after { transform: translate(-50%, -50%) rotate(0); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-a p { padding: 0 22px 20px; color: var(--muted); font-size: 0.96rem; }
.faq-a code { color: var(--lime); background: rgba(182,255,60,0.08); padding: 1px 6px; border-radius: 5px; }

/* ============ SIGNUP CTA ============ */
.signup-card {
  text-align: center;
  max-width: 760px; margin: 0 auto;
  padding: 54px 32px;
  border-radius: 24px;
  border: 1px solid var(--border-strong);
  background:
    radial-gradient(120% 140% at 50% 0%, rgba(47,107,255,0.18), transparent 60%),
    radial-gradient(120% 140% at 100% 100%, rgba(255,46,139,0.16), transparent 60%),
    var(--surface);
}
.signup-card p { color: var(--muted); margin: 12px 0 26px; }
.signup-form { display: flex; gap: 12px; max-width: 480px; margin: 0 auto; }
.signup-form input, .news-form input {
  flex: 1; min-width: 0;
  padding: 14px 18px;
  background: rgba(0,0,0,0.35);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--text); font-size: 0.98rem; font-family: var(--font-body);
}
.signup-form input:focus, .news-form input:focus { outline: none; border-color: var(--lime); box-shadow: 0 0 0 3px rgba(182,255,60,0.15); }
.signup-form input::placeholder, .news-form input::placeholder { color: var(--muted-2); }
.form-msg { min-height: 20px; margin-top: 14px; font-size: 0.9rem; color: var(--lime); }
.form-msg.error { color: var(--pink); }

/* ============ FOOTER ============ */
.site-footer { border-top: 1px solid var(--border); padding: 64px 0 30px; background: #090b15; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 40px; }
.footer-brand p { color: var(--muted); font-size: 0.92rem; margin: 16px 0 18px; max-width: 32ch; }
.socials { display: flex; gap: 12px; }
.socials a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10px;
  color: var(--muted); border: 1px solid var(--border);
  transition: color 0.15s, border-color 0.15s, transform 0.15s;
}
.socials a:hover { color: var(--lime); border-color: var(--lime); transform: translateY(-2px); }
.footer-col h4 { font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 16px; }
.footer-col a { display: block; color: var(--muted); font-size: 0.94rem; margin-bottom: 11px; transition: color 0.15s; }
.footer-col a:hover { color: var(--text); }
.footer-news p { color: var(--muted); font-size: 0.9rem; margin-bottom: 14px; }
.news-form { display: flex; gap: 8px; }
.news-form input { padding: 11px 15px; font-size: 0.9rem; }
.news-form .btn { padding: 11px 18px; font-size: 0.88rem; }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border);
}
.footer-bottom p { color: var(--muted-2); font-size: 0.86rem; }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { color: var(--muted-2); font-size: 0.86rem; transition: color 0.15s; }
.footer-legal a:hover { color: var(--text); }

/* ============ SCROLL REVEAL ============ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ============ RESPONSIVE ============ */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-sub { max-width: 52ch; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .section { padding: 68px 0; }
  .nav-links, .nav-actions { display: none; }
  .nav-toggle { display: flex; margin-left: auto; }
  .site-header.open .nav { flex-wrap: wrap; height: auto; padding-bottom: 16px; }
  .site-header.open .nav-links {
    order: 3; display: flex; flex-direction: column; gap: 2px;
    width: 100%; margin: 8px 0 0;
  }
  .site-header.open .nav-links a { padding: 13px 4px; font-size: 1rem; border-bottom: 1px solid var(--border); }
  .site-header.open .nav-actions {
    order: 4; display: flex; flex-direction: column; gap: 10px;
    width: 100%; margin: 12px 0 0;
  }
  .site-header.open .nav-actions .btn { width: 100%; }
  .price-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .price-card.featured { order: -1; }
}

@media (max-width: 520px) {
  .feature-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .signup-form { flex-direction: column; }
  .signup-form .btn { width: 100%; }
  .news-form { flex-direction: column; }
  .news-form .btn { width: 100%; }
  .hero-cta { width: 100%; }
  .hero-cta .btn-lg, .install-cmd { width: 100%; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
