/* Byteform Labs - site styles */
:root {
  --bg: #0a0b0f;
  --surface: #11131a;
  --surface-2: #161923;
  --border: #242834;
  --text: #eceef2;
  --muted: #9aa1b0;
  --faint: #6b7282;
  --accent: #c6f24e;
  --accent-ink: #0d1203;
  --radius: 14px;
  --max: 1120px;
  --sans: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img, svg { display: block; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--mono); }
.eyebrow {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--accent);
  margin: 0 0 18px;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(10, 11, 15, .82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; letter-spacing: -.01em; font-size: 18px; }
.brand .labs { color: var(--muted); font-weight: 500; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { text-decoration: none; color: var(--muted); font-size: 15px; transition: color .15s; }
.nav a:hover { color: var(--text); }
.nav a.btn-primary, .nav a.btn-primary:hover { color: var(--accent-ink); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 10px;
  font-family: var(--sans); font-size: 15px; font-weight: 600;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform .15s, background .15s, border-color .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #d4f86f; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: #3a3f4d; }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-block { width: 100%; }

/* Hero */
.hero { padding: 96px 0 88px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: .35;
  mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 20%, transparent 75%);
  pointer-events: none;
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero h1 {
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.02; letter-spacing: -.035em; font-weight: 600;
  margin: 0 0 22px;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { font-size: 19px; color: var(--muted); max-width: 540px; margin: 0 0 32px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 20px; font-family: var(--mono); font-size: 13px; color: var(--faint); }
.trust span::before { content: "✓ "; color: var(--accent); }

/* Terminal card */
.term {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.7);
  overflow: hidden; font-family: var(--mono); font-size: 13.5px;
}
.term-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.term-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2c303c; display: block; }
.term-bar b { margin-left: 10px; font-weight: 400; color: var(--faint); font-size: 12px; }
.term pre { margin: 0; padding: 20px 22px 24px; color: var(--muted); line-height: 1.75; white-space: pre-wrap; }
.term .c-acc { color: var(--accent); }
.term .c-txt { color: var(--text); }
.term .c-dim { color: var(--faint); }

/* Sections */
section { padding: 88px 0; border-top: 1px solid var(--border); }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(30px, 4vw, 42px); line-height: 1.1; letter-spacing: -.025em; font-weight: 600; margin: 0 0 14px; }
.section-head p { color: var(--muted); margin: 0; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.step .num { font-family: var(--mono); font-size: 13px; color: var(--accent); margin-bottom: 18px; }
.step h3 { margin: 0 0 8px; font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.step p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* Packs */
.packs { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.pack { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; }
.pack-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.pack h3 { margin: 0; font-size: 24px; letter-spacing: -.015em; font-weight: 600; }
.pack .tag { font-family: var(--mono); font-size: 12px; color: var(--faint); white-space: nowrap; }
.pack > p { color: var(--muted); margin: 0 0 22px; font-size: 15.5px; }
.skill-list { list-style: none; margin: 0; padding: 0; }
.skill-list li { padding: 14px 0; border-top: 1px solid var(--border); }
.skill-list strong { display: block; font-family: var(--mono); font-weight: 500; font-size: 14px; color: var(--text); margin-bottom: 2px; }
.skill-list span { color: var(--muted); font-size: 15px; }

/* Pricing */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.price-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column; position: relative; }
.price-card.featured { border-color: var(--accent); background: linear-gradient(180deg, rgba(198,242,78,.06), var(--surface) 40%); }
.badge { position: absolute; top: -12px; left: 30px; background: var(--accent); color: var(--accent-ink); font-family: var(--mono); font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.price-card h3 { margin: 0 0 6px; font-size: 20px; font-weight: 600; }
.price-card .desc { color: var(--muted); font-size: 15px; margin: 0 0 22px; min-height: 48px; }
.price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.price .amount { font-size: 46px; font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.price .per { font-family: var(--mono); font-size: 13px; color: var(--faint); }
.price-note { font-family: var(--mono); font-size: 12px; color: var(--faint); margin: 0 0 24px; }
.features { list-style: none; padding: 0; margin: 0 0 28px; flex: 1; }
.features li { padding: 7px 0 7px 26px; position: relative; font-size: 15px; color: var(--text); }
.features li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 600; }
.pricing-foot { margin-top: 22px; color: var(--faint); font-size: 14px; font-family: var(--mono); }

/* Requirements */
.req { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.req div { padding: 26px 28px; background: var(--surface); }
.req div:nth-child(odd) { border-right: 1px solid var(--border); }
.req div:nth-child(n+3) { border-top: 1px solid var(--border); }
.req h4 { margin: 0 0 6px; font-size: 16px; font-weight: 600; }
.req p { margin: 0; color: var(--muted); font-size: 15px; }

/* FAQ */
.faq { max-width: 780px; }
.faq details { border-top: 1px solid var(--border); padding: 20px 0; }
.faq details:last-child { border-bottom: 1px solid var(--border); }
.faq summary { cursor: pointer; list-style: none; font-size: 18px; font-weight: 500; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--accent); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); margin: 12px 0 0; font-size: 16px; }

/* Support CTA */
.support-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 44px; display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.support-box h2 { margin: 0 0 8px; font-size: 30px; letter-spacing: -.02em; font-weight: 600; }
.support-box p { margin: 0; color: var(--muted); }
.email { font-family: var(--mono); font-size: 18px; color: var(--accent); text-decoration: none; border-bottom: 1px solid rgba(198,242,78,.35); }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 56px 0 40px; color: var(--muted); font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.site-footer h5 { margin: 0 0 14px; font-family: var(--mono); font-weight: 500; font-size: 12px; color: var(--faint); letter-spacing: .06em; text-transform: uppercase; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--text); }
.legal-line { border-top: 1px solid var(--border); padding-top: 24px; font-size: 13px; color: var(--faint); line-height: 1.7; }
.legal-line p { margin: 0 0 6px; }

/* Legal pages */
.legal { padding: 72px 0 96px; border-top: 0; }
.legal .wrap { max-width: 780px; }
.legal h1 { font-size: clamp(34px, 5vw, 48px); letter-spacing: -.03em; line-height: 1.1; margin: 0 0 10px; font-weight: 600; }
.legal .updated { font-family: var(--mono); font-size: 13px; color: var(--faint); margin: 0 0 40px; }
.legal h2 { font-size: 21px; letter-spacing: -.01em; margin: 40px 0 10px; font-weight: 600; }
.legal p, .legal li { color: #c7ccd6; font-size: 16px; }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 6px; }
.legal .box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 24px; margin: 20px 0; }
.legal .box p { margin: 0; }
.legal a { color: var(--accent); }
.ph { background: rgba(198,242,78,.12); color: var(--accent); padding: 1px 6px; border-radius: 5px; font-family: var(--mono); font-size: .9em; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px);
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text);
  padding: 12px 18px; border-radius: 10px; font-size: 14px; opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s; z-index: 50; max-width: calc(100% - 32px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Responsive */
@media (max-width: 920px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .steps, .pricing { grid-template-columns: 1fr; }
  .packs { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .price-card .desc { min-height: 0; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav a:not(.btn) { display: none; }
  .hero { padding: 64px 0 56px; }
  section { padding: 64px 0; }
  .req { grid-template-columns: 1fr; }
  .req div:nth-child(odd) { border-right: 0; }
  .req div:nth-child(n+2) { border-top: 1px solid var(--border); }
  .support-box { padding: 30px; }
  .foot-grid { grid-template-columns: 1fr; }
}
