/* PromptCraft — base styles */

:root {
  --bg: #0a0a0a;
  --bg-alt: #111110;
  --panel: #141413;
  --border: #262624;
  --border-soft: #1c1c1a;
  --text: #f3f1ea;
  --text-dim: #8f8c83;
  --accent: #d7ff3f;
  --accent-dim: #9aab3a;
  --radius: 6px;
  --max-width: 1160px;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* Subtle film-grain texture for depth — keeps flat dark sections from feeling inert */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--accent);
  color: #0a0a0a;
  padding: 10px 16px;
  border-radius: 4px;
  z-index: 100;
  font-weight: 600;
}

.skip-link:focus {
  left: 24px;
  top: 16px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--border-soft);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  display: flex;
  align-items: baseline;
  gap: 2px;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  letter-spacing: -0.02em;
  font-family: var(--font-mono);
}

.logo .mark {
  color: var(--accent);
}

nav.main-nav ul {
  display: flex;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav.main-nav a {
  text-decoration: none;
  color: var(--text-dim);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.15s var(--ease);
  position: relative;
  padding-bottom: 2px;
}

nav.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -4px;
  height: 1px;
  background: var(--accent);
  transition: right 0.25s var(--ease);
}

nav.main-nav a:hover,
nav.main-nav a:focus-visible {
  color: var(--text);
}

nav.main-nav a:hover::after,
nav.main-nav a:focus-visible::after,
nav.main-nav a[aria-current="page"]::after {
  right: 0;
}

nav.main-nav a[aria-current="page"] {
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  position: relative;
  width: 38px;
  height: 38px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.nav-toggle span {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 1px;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 18.5px; }
.nav-toggle span:nth-child(3) { top: 23px; }

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-4.5px) rotate(-45deg); }

.mobile-menu {
  position: absolute;
  top: 68px;
  left: 0;
  right: 0;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  transform-origin: top center;
  animation: menu-in 0.28s var(--ease);
}

.mobile-menu[hidden] {
  display: none;
}

@keyframes menu-in {
  from { opacity: 0; transform: scaleY(0.94) translateY(-4px); }
  to { opacity: 1; transform: scaleY(1) translateY(0); }
}

.mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 10px 32px 22px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mobile-menu a {
  display: block;
  padding: 13px 2px;
  text-decoration: none;
  color: var(--text-dim);
  font-weight: 500;
  border-bottom: 1px solid var(--border-soft);
  transition: color 0.15s var(--ease);
}

.mobile-menu li:last-child a {
  border-bottom: none;
}

.mobile-menu a:hover,
.mobile-menu a[aria-current="page"] {
  color: var(--accent);
}

@media (max-width: 880px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .header-actions > .btn-primary {
    display: none;
  }
}

.mobile-menu-cta {
  border-bottom: none !important;
  padding-top: 12px !important;
}

.mobile-menu-cta .btn-primary {
  display: inline-flex;
  width: 100%;
}

@media (min-width: 881px) {
  .mobile-menu {
    display: none !important;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.1s var(--ease), background 0.15s var(--ease), border-color 0.15s var(--ease);
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--accent);
  color: #0a0a0a;
}

.btn-primary:hover {
  background: #e4ff70;
}

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

.btn-secondary:hover {
  border-color: var(--text-dim);
}

/* Kicker label (was "eyebrow") */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-dim);
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

.kicker::before {
  content: "//";
  color: var(--text-dim);
}

/* Hero */
.hero {
  padding: 88px 0 64px;
  border-bottom: 1px solid var(--border-soft);
  position: relative;
  overflow: clip;
}

.hero::before {
  content: "";
  position: absolute;
  top: -160px;
  right: -120px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(215, 255, 63, 0.14), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}

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

.hero h1 {
  font-size: clamp(2.3rem, 4.2vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 22px;
  font-weight: 700;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero p.lead {
  color: var(--text-dim);
  font-size: 1.1rem;
  max-width: 480px;
  margin: 0 0 36px;
}

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

/* Prompt terminal mockup */
.prompt-window {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6);
}

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

.window-bar .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--border);
}

.window-title {
  margin-left: 8px;
  color: var(--text-dim);
  font-size: 0.76rem;
}

.window-body {
  padding: 22px 20px;
  height: 280px;
  overflow: hidden;
}

.terminal-toggle {
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-dim);
  border-radius: 4px;
  width: 26px;
  height: 20px;
  font-size: 0.6rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
  transition: color 0.15s var(--ease), border-color 0.15s var(--ease);
}

.terminal-toggle:hover {
  color: var(--text);
  border-color: var(--text-dim);
}

.window-body .line {
  margin: 0 0 10px;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
}

.window-body .line.dim {
  color: var(--text-dim);
}

.window-body .line.accent {
  color: var(--accent);
}

.window-body .gap {
  height: 14px;
}

.cursor {
  display: inline-block;
  width: 7px;
  height: 14px;
  background: var(--accent);
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
}

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

/* Capability strip — model coverage, not fabricated stats */
.capability-strip {
  border-top: 1px solid var(--border-soft);
  padding: 22px 0;
}

.capability-strip .container {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
  letter-spacing: 0.01em;
}

.capability-strip strong {
  color: var(--text);
  font-weight: 600;
}

.capability-strip .sep {
  color: var(--border);
}

/* Sections */
section {
  padding: 88px 0;
}

section.alt {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border-soft);
}

.section-head {
  max-width: 620px;
  margin: 0 auto 52px;
}

.section-head h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  font-weight: 700;
}

.section-head p {
  color: var(--text-dim);
  margin: 0;
  font-size: 1.02rem;
}

/* Manifest list (replaces icon-card grid) */
.manifest {
  border-top: 1px solid var(--border);
}

.manifest-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 32px;
  padding: 32px 4px;
  margin: 0 -4px;
  border-bottom: 1px solid var(--border);
  border-radius: 4px;
  transition: background 0.2s var(--ease);
}

.manifest-row:hover {
  background: rgba(255, 255, 255, 0.02);
}

.manifest-row .row-index {
  font-family: var(--font-mono);
  color: var(--text-dim);
  font-size: 0.95rem;
  transition: color 0.2s var(--ease);
}

.manifest-row:hover .row-index {
  color: var(--accent);
}

.manifest-row h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  font-weight: 600;
}

.manifest-row p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.96rem;
  max-width: 560px;
}

/* Steps */
.steps {
  display: grid;
  gap: 0;
  max-width: 720px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
}

.step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid var(--border);
}

.step .num {
  font-family: var(--font-mono);
  color: var(--text-dim);
  font-size: 0.85rem;
  padding-top: 2px;
}

.step h3 {
  margin: 0 0 6px;
  font-size: 1.02rem;
  font-weight: 600;
}

.step p {
  margin: 0;
  color: var(--text-dim);
}

/* CTA band */
.cta-band {
  text-align: left;
  padding: 80px 0;
}

.cta-band .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.cta-band h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  margin: 0 0 8px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.cta-band p {
  color: var(--text-dim);
  margin: 0;
  max-width: 480px;
}

/* Page hero (about/contact/404) */
.page-hero {
  padding: 72px 0 24px;
  border-bottom: 1px solid var(--border-soft);
  margin-bottom: 64px;
}

.page-hero h1 {
  font-size: clamp(2rem, 3.6vw, 2.6rem);
  letter-spacing: -0.03em;
  margin: 0 0 18px;
  font-weight: 700;
  max-width: 700px;
}

.page-hero p {
  color: var(--text-dim);
  max-width: 560px;
  margin: 0 0 40px;
  font-size: 1.05rem;
}

/* Prose */
.prose {
  max-width: 700px;
  margin: 0 auto;
}

.prose h2 {
  font-size: 1.4rem;
  margin: 52px 0 16px;
  letter-spacing: -0.01em;
  font-weight: 700;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  font-size: 1.05rem;
  margin: 26px 0 8px;
  letter-spacing: -0.01em;
  font-weight: 600;
}

.prose p {
  color: var(--text-dim);
  margin: 0 0 18px;
}

.prose ul {
  color: var(--text-dim);
  padding-left: 0;
  list-style: none;
  border-top: 1px solid var(--border);
}

.prose li {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.prose li::before {
  content: "— ";
  color: var(--accent-dim);
}

/* Contact layout */
.contact-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: start;
}

.contact-info h2 {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  margin: 0 0 20px;
  font-weight: 600;
}

.contact-detail {
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

.contact-detail:first-of-type {
  border-top: 1px solid var(--border);
}

.contact-detail span.label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.contact-detail a {
  text-decoration: none;
  color: var(--text);
  font-size: 1.02rem;
}

.contact-detail a:hover {
  color: var(--accent);
}

/* Form */
.form-panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 36px;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.6);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field {
  margin-bottom: 20px;
}

.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-dim);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.field textarea {
  resize: vertical;
  min-height: 140px;
}

.form-note {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 16px;
}

.form-note code {
  font-family: var(--font-mono);
  color: var(--accent-dim);
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

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

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

.footer-inner .logo {
  font-size: 0.95rem;
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links a {
  text-decoration: none;
  color: var(--text-dim);
  font-size: 0.88rem;
}

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

.footer-bottom {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border-soft);
  color: var(--text-dim);
  font-size: 0.8rem;
  font-family: var(--font-mono);
}

/* Focus visibility */
a:focus-visible,
button:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

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

/* Draft-legal-content notice */
.draft-notice {
  background: rgba(215, 255, 63, 0.06);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  padding: 16px 20px;
  margin-bottom: 40px;
  font-size: 0.9rem;
  color: var(--text-dim);
}

.draft-notice strong {
  color: var(--text);
}

/* Cookie / privacy choice banner */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  background: var(--panel);
  border-top: 1px solid var(--border);
  padding: 18px 0;
}

.cookie-banner-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cookie-banner p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.86rem;
  max-width: 640px;
}

.cookie-banner a {
  color: var(--accent);
}

.cookie-banner-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

@media (max-width: 620px) {
  .cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
  }
  .cookie-banner-actions {
    justify-content: flex-end;
  }
}

/* Responsive */
@media (max-width: 880px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .contact-layout {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  nav.main-nav {
    display: none;
  }
  .cta-band .container {
    flex-direction: column;
    align-items: flex-start;
  }
  .manifest-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}
