/* ===== Dark Terminal — Marketing Landing ===== */

:root {
  color-scheme: dark;

  --bg: #0a0a0b;
  --surface: #141416;
  --surface-2: #1c1c1f;
  --surface-3: #242428;
  --border: #2a2a2e;
  --border-bright: #3a3a40;
  --text: #e4e4e7;
  --text-secondary: #8a8a8e;
  --muted: #52525b;
  --accent: #00ff88;
  --accent-dim: #00cc6a;
  --accent-glow: rgba(0, 255, 136, 0.12);
  --accent-glow-strong: rgba(0, 255, 136, 0.22);
  --danger: #ff4444;
  --shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
  --glow: 0 0 24px rgba(0, 255, 136, 0.1);
  --radius-xl: 20px;
  --radius-lg: 14px;
  --radius-md: 10px;
  --mono: "JetBrains Mono", "Fira Code", "Cascadia Code", ui-monospace, monospace;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* Screen-reader-only utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

::selection {
  background: rgba(0, 255, 136, 0.28);
  color: var(--text);
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-bright); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-dim); }

/* ===== Noise overlay ===== */
.site-backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(0, 255, 136, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(0, 204, 106, 0.04) 0%, transparent 50%);
  z-index: 0;
}

/* ===== Layout shell ===== */
.page-shell {
  position: relative;
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  z-index: 1;
}

/* ===== NAV ===== */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(10, 10, 11, 0.85);
  border-bottom: 1px solid var(--border);
}

.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 0.94rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--accent);
  color: #000;
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 800;
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  transition: color 0.15s, background 0.15s;
}

.nav-links a:hover {
  color: var(--text);
  background: var(--surface-2);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  border-radius: 8px;
  background: var(--accent);
  color: #000;
  font-size: 0.88rem;
  font-weight: 700;
  transition: background 0.15s, box-shadow 0.15s, transform 0.15s;
}

.nav-cta:hover {
  background: var(--accent-dim);
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
  transform: translateY(-1px);
}

/* Mobile hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.2s;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 0 16px;
  border-top: 1px solid var(--border);
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 0.94rem;
  transition: color 0.15s, background 0.15s;
}

.mobile-nav a:hover {
  color: var(--text);
  background: var(--surface-2);
}

.mobile-nav .nav-cta {
  margin-top: 8px;
  justify-content: center;
}

/* ===== HERO ===== */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 32px;
  padding: 72px 0 80px;
  align-items: start;
}

.hero-copy {
  display: grid;
  gap: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 20px;
}

.eyebrow::before {
  content: ">";
  color: var(--accent);
  opacity: 0.7;
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text);
  line-height: 1.0;
  margin-bottom: 6px;
}

.hero h1 .accent-word {
  color: var(--accent);
  text-shadow: 0 0 30px rgba(0, 255, 136, 0.25);
}

/* Terminal cursor blink on headline */
.hero h1 .cursor {
  display: inline-block;
  width: 3px;
  height: 0.85em;
  background: var(--accent);
  margin-left: 4px;
  vertical-align: text-bottom;
  animation: termBlink 1.1s step-end infinite;
}

@keyframes termBlink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.subheadline {
  margin: 22px 0 0;
  font-size: 1.07rem;
  line-height: 1.75;
  color: var(--text-secondary);
  max-width: 52ch;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 26px 0 0;
}

.trust-strip span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-secondary);
  font-family: var(--mono);
  font-size: 0.75rem;
}

.trust-strip span::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.hero-bullets {
  display: grid;
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.hero-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 0.94rem;
  line-height: 1.6;
}

.hero-bullets li::before {
  content: "→";
  font-family: var(--mono);
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 1px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 32px 0 0;
}

.primary-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 8px;
  background: var(--accent);
  color: #000;
  font-size: 0.95rem;
  font-weight: 700;
  transition: background 0.15s, box-shadow 0.15s, transform 0.15s;
}

.primary-cta:hover {
  background: var(--accent-dim);
  box-shadow: 0 0 28px rgba(0, 255, 136, 0.35);
  transform: translateY(-1px);
}

.secondary-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 8px;
  border: 1px solid var(--border-bright);
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
  background: transparent;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.secondary-cta:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
}

/* ===== HERO CARD (metrics + form) ===== */
.hero-card {
  display: grid;
  gap: 16px;
  position: sticky;
  top: 88px;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.metric-card {
  display: grid;
  gap: 6px;
  padding: 16px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.metric-card:hover {
  border-color: var(--border-bright);
  box-shadow: var(--glow);
}

.metric-value {
  font-family: var(--mono);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
  line-height: 1;
}

.metric-label {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.4;
}

/* ===== FORM PANEL ===== */
.form-panel {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  border-top: 2px solid var(--accent);
  box-shadow: 0 -4px 24px rgba(0, 255, 136, 0.05), var(--shadow);
}

.form-panel .eyebrow {
  margin-bottom: 10px;
}

.form-panel h2 {
  font-size: clamp(1.35rem, 3vw, 1.7rem);
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: 8px;
}

.panel-copy {
  margin: 0 0 20px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
}

.lead-form {
  display: grid;
  gap: 10px;
}

.lead-form input,
.lead-form select {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  transition: border-color 0.15s, box-shadow 0.15s;
  appearance: none;
  -webkit-appearance: none;
}

.lead-form input::placeholder {
  color: var(--muted);
}

.lead-form input:focus,
.lead-form select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.12);
}

.lead-form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2352525b' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  color: var(--muted);
}

.lead-form select:valid:not([value=""]) {
  color: var(--text);
}

.lead-form button[type="submit"] {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: var(--radius-md);
  background: var(--accent);
  color: #000;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s, transform 0.15s;
  margin-top: 4px;
}

.lead-form button[type="submit"]:hover {
  background: var(--accent-dim);
  box-shadow: 0 0 24px rgba(0, 255, 136, 0.4);
  transform: translateY(-1px);
}

.lead-form button[type="submit"]:active {
  transform: translateY(0);
}

.form-message {
  min-height: 18px;
  font-size: 0.88rem;
  color: var(--accent);
  font-family: var(--mono);
  margin: 4px 0 0;
}

.form-message.error {
  color: var(--danger);
}

/* ===== SECTION HELPERS ===== */
.section-grid {
  padding: 56px 0;
  border-top: 1px solid var(--border);
}

.story-grid {
  padding: 56px 0;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 40px;
  align-items: start;
}

.section-head {
  margin-bottom: 28px;
}

.section-head h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  max-width: 20ch;
  color: var(--text);
}

.section-head .eyebrow {
  margin-bottom: 14px;
}

/* ===== STORY SECTION ===== */
.story-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.story-card {
  padding: 22px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.story-card:hover {
  border-color: var(--border-bright);
  box-shadow: var(--glow);
  transform: translateY(-2px);
}

.story-index {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 14px;
  letter-spacing: 0.06em;
}

.story-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.65;
}

/* ===== FEATURES SECTION ===== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.feature-card {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.feature-card:hover {
  border-color: var(--border-bright);
  box-shadow: var(--glow);
  transform: translateY(-2px);
}

.feature-card h3 {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.feature-card h3::before {
  content: "// ";
  font-family: var(--mono);
  color: var(--accent);
  font-size: 0.78rem;
  opacity: 0.8;
}

.feature-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.65;
}

/* ===== PRICING ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.pricing-card {
  padding: 28px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  position: relative;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.pricing-card.featured {
  border-color: rgba(0, 255, 136, 0.3);
  background: linear-gradient(180deg, rgba(0, 255, 136, 0.04) 0%, var(--surface) 100%);
  box-shadow: 0 0 32px rgba(0, 255, 136, 0.08);
}

.pricing-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--accent-glow);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pricing-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  font-family: var(--mono);
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.price {
  font-size: 2.2rem;
  font-weight: 800;
  font-family: var(--mono);
  color: var(--text);
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 0 0 6px;
}

.plan-note {
  font-size: 0.86rem;
  color: var(--muted);
  margin: 0 0 18px;
  line-height: 1.5;
}

.plan-bullets {
  display: grid;
  gap: 9px;
  padding: 0;
  list-style: none;
  margin: 0 0 24px;
}

.plan-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.plan-bullets li::before {
  content: "✓";
  color: var(--accent);
  font-family: var(--mono);
  font-weight: 700;
  flex-shrink: 0;
}

.plan-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 11px 20px;
  border-radius: 8px;
  border: 1px solid var(--border-bright);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.plan-cta:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
}

.featured .plan-cta {
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
}

.featured .plan-cta:hover {
  background: var(--accent-dim);
  border-color: var(--accent-dim);
  color: #000;
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}

/* ===== FAQ ===== */
.faq-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: start;
}

.faq-list {
  display: grid;
  gap: 8px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.15s;
}

.faq-item[open] {
  border-color: var(--border-bright);
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--text);
  padding: 16px 20px;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: color 0.15s;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-family: var(--mono);
  color: var(--accent);
  font-size: 1.1rem;
  font-weight: 700;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item summary:hover {
  color: var(--accent);
}

.faq-item p {
  margin: 0;
  padding: 0 20px 16px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ===== CTA BANNER ===== */
.cta-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin: 16px 0 64px;
  padding: 40px 44px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  border-top: 2px solid var(--accent);
  box-shadow: 0 -4px 24px rgba(0, 255, 136, 0.06), var(--shadow);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 0% 50%, rgba(0, 255, 136, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.cta-banner .eyebrow {
  margin-bottom: 10px;
}

.cta-banner h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  max-width: 18ch;
  color: var(--text);
  margin-bottom: 10px;
}

.cta-banner p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.94rem;
}

.cta-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 36px;
  border-radius: 8px;
  background: var(--accent);
  color: #000;
  font-size: 1rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.15s, box-shadow 0.15s, transform 0.15s;
}

.cta-link:hover {
  background: var(--accent-dim);
  box-shadow: 0 0 28px rgba(0, 255, 136, 0.4);
  transform: translateY(-1px);
}

/* ===== FOOTER (minimal) ===== */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.84rem;
  color: var(--muted);
  font-family: var(--mono);
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.84rem;
  color: var(--muted);
  transition: color 0.15s;
}

.footer-links a:hover {
  color: var(--accent);
}

/* ===== TERMINAL WINDOW decoration ===== */
.terminal-hero {
  background: #000;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-family: var(--mono);
  font-size: 0.78rem;
  padding: 14px 18px;
  margin-top: 32px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.terminal-hero .t-prompt {
  color: var(--accent);
}

.terminal-hero .t-cmd {
  color: var(--text);
}

.terminal-hero .t-out {
  color: var(--muted);
}

.terminal-hero .t-ok {
  color: var(--accent);
}

/* ===== RESPONSIVE ===== */

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 56px 0 64px;
  }

  .hero-card {
    position: static;
  }

  .metrics-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .story-grid,
  .faq-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .feature-grid,
  .pricing-grid,
  .story-points {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-head h2 {
    max-width: none;
  }
}

@media (max-width: 768px) {
  .page-shell {
    width: min(100% - 28px, 1160px);
  }

  .nav-links,
  .nav-cta {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hero {
    padding: 40px 0 52px;
  }

  .hero h1 {
    font-size: clamp(2.2rem, 9vw, 3rem);
  }

  .feature-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .cta-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 24px;
    margin-bottom: 48px;
  }

  .cta-link {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 540px) {
  .metrics-grid,
  .story-points {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
  }

  .primary-cta,
  .secondary-cta {
    width: 100%;
    justify-content: center;
  }

  .form-panel {
    padding: 20px 16px;
  }
}

/* ===== Fade-in animation on sections ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-copy,
.hero-card {
  animation: fadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-card {
  animation-delay: 0.1s;
  opacity: 0;
}

.hero-copy {
  opacity: 0;
}
