/* ==========================================================================
   Offkeep marketing page — dark-first theme
   Brand tokens match the VS3 console: accent #6c75ff (#8b93ff on dark),
   dark surfaces, muted-foreground secondary text.
   ========================================================================== */

:root {
  --bg: #0b0b0f;
  --surface: #101016;
  --surface-subtle: #0e0e13;
  --nested: #16161e;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  --text: #e8e8ec;
  --text-muted: #a1a1aa;
  --text-faint: #7c7c87;

  --accent: #6c75ff;
  --accent-soft: #8b93ff;
  --accent-ink: #0b0b12; /* foreground on accent (AA on #6c75ff) */

  --danger: #f87171;
  --success: #34d399;

  --radius: 12px;
  --radius-sm: 8px;

  --font-sans: ui-sans-serif, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "Cascadia Code", Menlo, Consolas, "Liberation Mono", monospace;

  --header-h: 64px;
}

/* ---------- Reset / base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

h1, h2, h3, p, dl, dd {
  margin: 0;
}

a {
  color: var(--accent-soft);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  color: var(--accent-soft);
  background: rgba(139, 147, 255, 0.08);
  border: 1px solid rgba(139, 147, 255, 0.18);
  border-radius: 5px;
  padding: 0.05em 0.35em;
}

::selection {
  background: rgba(108, 117, 255, 0.35);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.container.narrow {
  max-width: 720px;
}

.section {
  padding: 88px 0;
  scroll-margin-top: var(--header-h);
}

.section-head {
  text-align: center;
  margin-bottom: 48px;
}

.section-head h2 {
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-head p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 46ch;
  margin: 0 auto;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 10px 18px;
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 600;
}

.skip-link:focus {
  left: 0;
  text-decoration: none;
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(11, 11, 15, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-wrap {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.wordmark {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.wordmark:hover {
  text-decoration: none;
}

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

.nav-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
}

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

.nav-cta {
  color: var(--accent-ink) !important;
  background: var(--accent);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.nav-cta:hover {
  background: var(--accent-soft);
  text-decoration: none;
}

/* Hamburger (mobile only) */
.menu-toggle {
  display: none;
  position: relative;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
}

.menu-icon,
.menu-icon::before,
.menu-icon::after {
  content: "";
  position: absolute;
  left: 11px;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-icon { top: 20px; }
.menu-icon::before { top: -6px; }
.menu-icon::after { top: 6px; }

.menu-toggle[aria-expanded="true"] .menu-icon {
  background: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-icon::before {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-icon::after {
  transform: translateY(-6px) rotate(-45deg);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  padding: 13px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-primary:hover {
  background: var(--accent-soft);
  text-decoration: none;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-ghost:hover {
  background: var(--surface);
  border-color: var(--accent-soft);
  text-decoration: none;
}

/* ---------- Hero ---------- */
.hero {
  padding: 96px 0 72px;
  position: relative;
  overflow: hidden;
}

/* Soft accent glow behind the headline */
.hero::before {
  content: "";
  position: absolute;
  top: -220px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 520px;
  background: radial-gradient(ellipse at center, rgba(108, 117, 255, 0.16), transparent 65%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 64px;
  position: relative;
}

.eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent-soft);
  border: 1px solid rgba(139, 147, 255, 0.3);
  background: rgba(139, 147, 255, 0.08);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2.35rem, 5.4vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 20px;
}

.hero-sub {
  color: var(--text-muted);
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  max-width: 52ch;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 22px;
}

.hero-micro {
  color: var(--text-faint);
  font-size: 0.85rem;
}

/* ---------- Terminal mock ---------- */
.terminal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.55;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--nested);
}

.terminal-bar .dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #3a3a46;
}

.terminal-bar .dot:nth-child(1) { background: #6c75ff; }
.terminal-bar .dot:nth-child(2) { background: #3a3a46; }
.terminal-bar .dot:nth-child(3) { background: #3a3a46; }

.terminal-title {
  margin-left: 8px;
  color: var(--text-faint);
  font-size: 0.78rem;
}

.terminal-body {
  padding: 18px 20px 20px;
}

.terminal-body p {
  color: var(--text-muted);
}

.terminal-body pre {
  margin: 6px 0 18px;
  color: var(--text);
  font-family: inherit;
  white-space: pre;
}

.terminal-body .prompt {
  color: var(--accent-soft);
  font-weight: 700;
  margin-right: 6px;
}

.terminal-cursor .cursor {
  display: inline-block;
  width: 8px;
  height: 1.1em;
  margin-left: 6px;
  vertical-align: text-bottom;
  background: var(--accent-soft);
  animation: blink 1.1s steps(1) infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* ---------- Feature cards ---------- */
.features {
  background: var(--surface-subtle);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(108, 117, 255, 0.12);
  color: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.card-icon svg {
  width: 22px;
  height: 22px;
}

.card h3 {
  font-size: 1.08rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.card-tag {
  color: var(--accent-soft);
  font-weight: 550;
  font-size: 0.92rem;
}

.card p:last-child {
  color: var(--text-muted);
  font-size: 0.93rem;
  margin-top: 4px;
}

/* ---------- Pricing teaser ---------- */
.price-list {
  margin: 0 auto 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 28px;
}

.price-row + .price-row {
  border-top: 1px solid var(--border);
}

.price-row dt {
  color: var(--text-muted);
}

.price-row dd {
  font-size: 1.35rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.pricing-micro {
  color: var(--text-faint);
  text-align: center;
  font-size: 0.92rem;
}

/* ---------- FAQ ---------- */
.faq-list {
  display: grid;
  gap: 12px;
}

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

.faq-item summary {
  cursor: pointer;
  padding: 20px 24px;
  font-weight: 600;
  font-size: 1.02rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

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

.faq-item summary::after {
  content: "+";
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--text-muted);
  transition: transform 0.2s ease;
  line-height: 1;
}

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

.faq-item summary:hover {
  background: var(--surface-subtle);
}

.faq-item p {
  padding: 0 24px 20px;
  color: var(--text-muted);
}

/* ---------- Waitlist ---------- */
.waitlist {
  background: var(--surface-subtle);
  border-top: 1px solid var(--border);
}

.waitlist-copy {
  text-align: center;
  color: var(--text-muted);
  max-width: 56ch;
  margin: 0 auto 40px;
}

.waitlist-copy > p:first-child {
  margin-bottom: 16px;
}

.waitlist-promise {
  text-align: left;
  display: inline-block;
  margin: 0 auto 16px;
  padding-left: 1.4em;
}

.waitlist-promise li {
  margin-bottom: 8px;
  padding-left: 4px;
}

.waitlist-promise li::marker {
  color: var(--accent-soft);
  font-weight: 700;
}

.waitlist-form {
  max-width: 520px;
  margin: 0 auto;
}

.form-field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
}

.form-row {
  display: flex;
  gap: 10px;
}

.form-row input {
  flex: 1;
  min-width: 0;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-row input::placeholder {
  color: var(--text-faint);
}

.form-row input:hover {
  border-color: rgba(255, 255, 255, 0.28);
}

.form-row input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(108, 117, 255, 0.25);
}

.form-row input[aria-invalid="true"] {
  border-color: var(--danger);
}

.form-feedback {
  margin-top: 10px;
  font-size: 0.9rem;
  color: var(--danger);
}

.waitlist-success {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: var(--success);
  font-weight: 600;
  border-radius: var(--radius);
  padding: 18px 24px;
}

.waitlist-micro {
  text-align: center;
  color: var(--text-faint);
  font-size: 0.85rem;
  margin-top: 18px;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
}

.footer-wrap {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 4px;
}

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

.footer-links a {
  color: var(--text-muted);
  font-size: 0.92rem;
}

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

.footer-copy {
  width: 100%;
  color: var(--text-faint);
  font-size: 0.85rem;
  margin-top: 8px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

/* Tablet */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .terminal {
    max-width: 640px;
    margin: 0 auto;
    width: 100%;
  }

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 768px) {
  .section {
    padding: 64px 0;
  }

  .hero {
    padding: 64px 0 56px;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    position: absolute;
    top: var(--header-h);
    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-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 14px 4px;
    border-bottom: 1px solid var(--border);
  }

  .nav-links .nav-cta {
    border-bottom: none;
    text-align: center;
    margin-top: 12px;
  }

  .menu-toggle {
    display: block;
  }

  .form-row {
    flex-direction: column;
  }

  .form-row .btn {
    width: 100%;
  }

  .footer-wrap {
    flex-direction: column;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
