/* wrok.in landing — implements the BytesBrains design spec.
   Dark "ink-slate" canvas, cyan interaction / green = live, mono terminal motif. */

:root {
  --bg: #0b0f14;
  --bg-raised: #0e141b;
  --surface: #121a23;
  --surface-hover: #16202b;
  --border: #1e2a36;
  --border-strong: #2b3b4a;
  --text: #e6edf3;
  --text-2: #9fb0c0;
  --muted: #5e7184;
  --accent: #36c6f0;
  --accent-hover: #5ad4f5;
  --indigo: #7c8cf8;
  --ok: #3fd17a;
  --warn: #e0a14b;
  --c-string: #9ecbff;
  --c-kw: #c792ea;

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --maxw: 1120px;
  --radius: 12px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.01em; margin: 0; }
.mono { font-family: var(--font-mono); }
.accent { color: var(--accent); }
.dim { color: var(--muted); }
code.mono { background: #0a1119; border: 1px solid var(--border); border-radius: 5px; padding: 1px 5px; font-size: 0.9em; color: var(--text-2); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* Skip link + a11y */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--accent); color: #06121a; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { left: 12px; top: 12px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
:focus-visible { outline: 2px solid var(--accent-hover); outline-offset: 2px; border-radius: 4px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 500; font-size: 15px;
  padding: 12px 20px; border-radius: 8px; border: 1px solid transparent;
  cursor: pointer; transition: all 150ms ease; line-height: 1;
}
.btn-primary { background: var(--accent); color: #06121a; }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-primary .mono { color: #06121a; }
.btn-ghost { background: transparent; border-color: var(--border-strong); color: var(--text); }
.btn-ghost:hover { background: var(--surface-hover); border-color: var(--accent); }
.btn.full { width: 100%; justify-content: center; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.cta-row.center { justify-content: center; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 15, 20, 0.72); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 24px; height: 92px;
  display: flex; align-items: center; justify-content: space-between;
}
.wordmark { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--text); display: inline-flex; align-items: center; }
.wordmark .mono { font-weight: 400; font-size: 17px; }
.wordmark img { height: 72px; width: auto; display: block; }
.foot-brand .wordmark img { height: 40px; }
.nav-menu { display: flex; align-items: center; gap: 26px; }
.nav-menu a { color: var(--text-2); font-size: 15px; }
.nav-menu a:hover { color: var(--text); }
.nav-cta { color: #06121a; }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); cursor: pointer; padding: 6px; }

/* Eyebrow + sections */
.eyebrow {
  font-family: var(--font-mono); font-size: 12px; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--muted); margin: 0 0 14px;
}
section { padding: 112px 0; }
.band { background: var(--bg-raised); }
h2 { font-size: 38px; line-height: 1.12; max-width: 20ch; }
.section-sub { color: var(--text-2); font-size: 19px; margin: 12px 0 0; max-width: 60ch; }

/* Gutter rail motif — thin accent line on the left of content at wide screens */
@media (min-width: 960px) {
  .rail .wrap { position: relative; }
  .rail .wrap::before {
    content: ""; position: absolute; left: -28px; top: 6px; bottom: 6px;
    width: 1px; background: linear-gradient(var(--border), transparent);
  }
}

/* Hero */
.hero { padding-top: 80px; }
.hero-grid { display: grid; grid-template-columns: 52% 48%; gap: 48px; align-items: center; }
.hero h1 { font-size: 60px; line-height: 1.05; letter-spacing: -0.02em; }
.lead { color: var(--text-2); font-size: 19px; margin: 22px 0 0; max-width: 46ch; }
.trust { color: var(--muted); font-size: 13px; margin-top: 22px; }

/* Terminal device */
.terminal { background: #0a1119; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.hero-device .terminal { box-shadow: 0 0 0 1px var(--border-strong), 0 24px 60px -30px rgba(54, 198, 240, 0.25); }
.term-bar { height: 36px; display: flex; align-items: center; gap: 7px; padding: 0 14px; border-bottom: 1px solid var(--border); position: relative; }
.dot { width: 10px; height: 10px; border-radius: 50%; opacity: 0.7; }
.dot.r { background: #ff5f56; } .dot.y { background: #ffbd2e; } .dot.g { background: #27c93f; }
.term-title { position: absolute; left: 0; right: 0; text-align: center; color: var(--muted); font-size: 12px; }
.term-body { margin: 0; padding: 18px 20px; font-size: 13.5px; line-height: 1.7; color: var(--text); white-space: pre; overflow-x: auto; }
.c-comment { color: var(--muted); } .c-kw { color: var(--c-kw); } .c-string { color: var(--c-string); }
.ok { color: var(--ok); } .warn { color: var(--warn); }
.caret { color: var(--accent); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Grids + cards */
.grid { display: grid; gap: 24px; margin-top: 40px; }
.grid-value { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-steps { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); list-style: none; padding: 0; counter-reset: none; }
.grid-soon { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 20px; }
.grid-pricing { grid-template-columns: repeat(3, 1fr); gap: 20px; list-style: none; padding: 0; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.card-value { transition: all 150ms ease; }
.card-value:hover { background: var(--surface-hover); border-color: var(--border-strong); }
.card h3 { font-size: 22px; font-weight: 500; margin: 0 0 8px; }
.card p { color: var(--text-2); font-size: 15px; margin: 0; }
.ico { display: inline-flex; color: var(--accent); margin-bottom: 14px; }
.ico svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.principle h3 { font-size: 20px; font-weight: 500; margin-bottom: 6px; }
.principle p { color: var(--text-2); font-size: 15px; }

/* Steps */
.step { position: relative; }
.step-n { color: var(--muted); font-size: 13px; }
.step h3 { font-size: 19px; margin: 8px 0 6px; }

/* Product flagship */
.card-product-live {
  margin-top: 40px; padding: 0; border-color: var(--border-strong);
  box-shadow: inset 3px 0 0 var(--ok);
  display: grid; grid-template-columns: 1.1fr 0.9fr; overflow: hidden;
}
.cpl-copy { padding: 32px; }
.kicker { color: var(--accent); font-size: 13px; margin: 0 0 10px; }
.cpl-copy h3 { font-size: 26px; font-weight: 700; margin-bottom: 12px; }
.cpl-device { position: relative; padding: 32px; background: var(--bg-raised); border-left: 1px solid var(--border); display: flex; align-items: center; }
.cpl-device .terminal.sm { width: 100%; }
.feature-list { list-style: none; padding: 0; margin: 18px 0 24px; display: grid; gap: 10px; }
.feature-list li { color: var(--text-2); font-size: 15px; display: flex; gap: 10px; align-items: start; }
.feature-list strong { color: var(--text); font-weight: 600; }
.chk { width: 20px; height: 20px; flex: none; margin-top: 2px; fill: none; stroke: var(--ok); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Badges */
.badge { font-family: var(--font-mono); font-size: 12px; border-radius: 6px; padding: 4px 9px; display: inline-flex; align-items: center; gap: 6px; }
.badge-live { color: var(--ok); border: 1px solid color-mix(in srgb, var(--ok) 40%, transparent); position: absolute; top: 18px; right: 18px; background: rgba(11,15,20,0.6); }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }
.badge-soon { color: var(--warn); border: 1px solid color-mix(in srgb, var(--warn) 40%, transparent); }

/* Coming-soon cards */
.card-soon { opacity: 0.82; position: relative; }
.card-soon .badge-soon { position: static; margin-bottom: 12px; }
.card-soon:hover { border-color: color-mix(in srgb, var(--warn) 30%, var(--border)); }
.card-soon h3 { font-size: 19px; }
.card-soon p { color: var(--muted); }

/* Pricing */
.card-tier { display: flex; flex-direction: column; }
.card-tier .feature-list { margin: 16px 0; }
.tier-name { color: var(--text-2); font-size: 12px; letter-spacing: 0.08em; }
.price { font-family: var(--font-display); font-size: 38px; font-weight: 700; margin: 8px 0 2px; }
.price .per { font-size: 15px; color: var(--muted); font-weight: 400; }
.tier-for { color: var(--text-2); font-size: 14px; margin: 0 0 6px; }
.byok-note { color: var(--muted); font-size: 12px; margin: 4px 0 18px; }
.card-tier .btn { margin-top: auto; }
.card-tier.featured { border-color: var(--accent); transform: translateY(-8px); box-shadow: 0 0 0 1px var(--border-strong), 0 24px 60px -30px rgba(54,198,240,0.3); position: relative; }
.reco { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #06121a; font-size: 11px; padding: 3px 10px; border-radius: 6px; letter-spacing: 0.06em; }

/* Final CTA */
.cta-band-inner { text-align: center; }
.cta-band h2 { margin: 0 auto; }
.cta-band p { color: var(--text-2); font-size: 18px; max-width: 52ch; margin: 14px auto 0; }

/* Footer */
.footer { border-top: 1px solid var(--border); background: var(--bg-raised); padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.footer a { display: block; color: var(--text-2); font-size: 14px; padding: 4px 0; }
.footer a:hover { color: var(--text); }
.foot-h { color: var(--muted); font-size: 12px; letter-spacing: 0.08em; margin: 0 0 8px; }
.foot-brand .wordmark { display: inline-block; margin-bottom: 8px; }
.foot-bottom { display: flex; justify-content: space-between; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--border); }
.foot-bottom span { font-size: 12px; }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .card-product-live { grid-template-columns: 1fr; }
  .cpl-device { border-left: 0; border-top: 1px solid var(--border); }
}
@media (max-width: 768px) {
  section { padding: 64px 0; }
  .hero h1 { font-size: 38px; }
  h2 { font-size: 28px; }
  .lead, .section-sub, .cta-band p { font-size: 17px; }
  .grid-pricing { grid-template-columns: 1fr; }
  .card-tier.featured { transform: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .foot-bottom { flex-direction: column; gap: 8px; }
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    position: absolute; top: 92px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--border);
    padding: 8px 24px 20px; display: none;
  }
  .nav-menu.open { display: flex; }
  .nav-menu a { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .nav-cta { margin-top: 12px; justify-content: center; border-bottom: 0 !important; }
}

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