/* ==========================================================================
   De Product Builder: main stylesheet
   Design tokens mirror docs/brand/tokens.json (dark theme).
   ========================================================================== */

:root {
  --bg: #0c0c0c;
  --surface: #161616;
  --surface-border: #2b2b2b;
  --ink: #f5f5f4;
  --ink-dim: #8a8a8a;
  --gold: #d9a44d;
  --gold-fill: #d9a44d;
  --on-gold: #0c0c0c;
  --error: #e0836b;

  --font-display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Consolas, monospace;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 40px;
  --space-6: 64px;
  --space-7: 96px;
  --space-8: 160px;

  --radius-none: 0;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-display);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
a:hover { color: var(--gold); }

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

::selection { background: var(--gold); color: var(--on-gold); }

.section-pad { padding-left: 64px; padding-right: 64px; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---------------------------------- Ticker ---------------------------------- */

.ticker {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(12, 12, 12, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.ticker-strip {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  white-space: nowrap;
}

.ticker-track {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.5px;
  color: var(--gold);
  padding: 10px 0;
  animation: dpb-ticker 26s linear infinite;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 28px;
}

.ticker-item svg { display: block; flex-shrink: 0; }

@keyframes dpb-ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ------------------------------------ Nav ------------------------------------ */

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 64px;
  background: transparent;
}

.nav-brand {
  display: flex;
  align-items: center;
  filter: drop-shadow(0 1px 6px rgba(0, 0, 0, 0.6));
}

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

.nav-link {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.nav-link:hover { color: var(--gold); }

.nav-cta {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--on-gold);
  background: var(--gold-fill);
  border: 1px solid var(--gold-fill);
  border-radius: var(--radius-none);
  padding: 10px 20px;
}

.nav-cta:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }

/* ------------------------------------ Top / Hero ------------------------------------ */

.top-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--bg);
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(12, 12, 12, 0.78) 0%, rgba(12, 12, 12, 0.4) 12%, rgba(12, 12, 12, 0.35) 45%, var(--bg) 100%),
    linear-gradient(90deg, rgba(12, 12, 12, 0.7) 0%, rgba(12, 12, 12, 0.15) 55%);
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 1400px;
  padding: 96px 64px;
}

@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
  .hero-scrim { background: var(--bg); }
  .ticker { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); }
}

.hero-headline {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(48px, 5.4vw, 72px);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -1px;
}

.hero-headline .dim { color: var(--ink-dim); font-weight: 400; }
.hero-headline .ink { color: var(--ink); }
.hero-headline .accent { color: var(--gold); }

.hero-cycle { font-variant-ligatures: none; }

.hero-sub {
  margin: 0;
  max-width: 600px;
  font-size: 19px;
  font-weight: 400;
  color: var(--ink-dim);
  line-height: 1.5;
}

.hero-actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }

.btn-primary,
.btn-ghost {
  border-radius: var(--radius-none);
  padding: 16px 28px;
  font-family: var(--font-display);
  font-size: 16px;
  display: inline-block;
}

.btn-primary {
  background: var(--gold-fill);
  color: var(--on-gold);
  border: none;
  font-weight: 700;
}
.btn-primary:hover { opacity: 0.88; color: var(--on-gold); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--surface-border);
  font-weight: 600;
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

/* ---------------------------------- Process ---------------------------------- */

.process { padding: 96px 64px; display: flex; flex-direction: column; gap: 40px; }

.process-intro { display: flex; flex-direction: column; gap: 16px; max-width: 640px; }

.process-intro h2 {
  margin: 0;
  font-size: 36px;
  font-weight: 800;
  color: var(--ink);
}

.process-intro p {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  color: var(--ink-dim);
  line-height: 1.6;
}

.process-grid { display: flex; gap: 24px; flex-wrap: wrap; }

.process-card {
  flex: 1 1 0;
  min-width: 260px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-none);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.process-num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1.5px;
  color: var(--gold);
}

.process-title { font-size: 24px; font-weight: 700; color: var(--ink); line-height: 1.2; }

.process-body { font-size: 16px; font-weight: 400; color: var(--ink-dim); line-height: 1.6; }

/* ----------------------------------- Projects ----------------------------------- */

.projects { padding: 96px 64px; display: flex; flex-direction: column; gap: 40px; }

.projects-intro { display: flex; flex-direction: column; gap: 16px; max-width: 640px; }

.projects-intro h2 {
  margin: 0;
  font-size: 36px;
  font-weight: 800;
  color: var(--ink);
}

.projects-intro p {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  color: var(--ink-dim);
  line-height: 1.6;
}

.projects-grid { display: flex; gap: 24px; flex-wrap: wrap; }

.project-card {
  flex: 1 1 340px;
  min-width: 300px;
  max-width: 480px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-none);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: border-color 0.15s ease;
}

.project-card:hover { border-color: var(--gold); }

.project-media {
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
}

.project-media img { width: auto; height: 56px; display: block; }

.project-body { padding: 24px; display: flex; flex-direction: column; gap: 12px; }

.project-name { font-size: 20px; font-weight: 700; color: var(--ink); }

.project-desc { font-size: 15px; font-weight: 400; color: var(--ink-dim); line-height: 1.6; }

.project-link {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--gold);
}

/* ------------------------------------ About ------------------------------------ */

.about {
  padding: 96px 64px;
  display: flex;
  gap: 64px;
  align-items: center;
  background: var(--surface);
  border-top: 1px solid var(--surface-border);
  border-bottom: 1px solid var(--surface-border);
}

.about-icon { flex: 0 0 280px; display: flex; align-items: center; justify-content: center; }

.about-content { flex: 1 1 480px; display: flex; flex-direction: column; gap: 24px; max-width: 640px; }

.about-content h2 { margin: 0; font-size: 36px; font-weight: 800; color: var(--ink); }

.about-content p { margin: 0; font-size: 16px; font-weight: 400; color: var(--ink-dim); line-height: 1.6; }

/* ----------------------------------- Contact ----------------------------------- */

.contact {
  padding: 120px 64px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: flex-start;
}

.contact h2 {
  margin: 0;
  font-size: 56px;
  font-weight: 900;
  line-height: 1.02;
  color: var(--ink);
  max-width: 760px;
}

.contact h2 .accent { color: var(--gold); }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  max-width: 480px;
}

.form-row { display: flex; flex-direction: column; gap: 8px; }

.form-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.form-label {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.form-input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-none);
  padding: 12px 16px;
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--ink);
}

.form-input::placeholder { color: var(--ink-dim); }

.form-input:focus {
  outline: none;
  border-color: var(--gold);
}

.form-textarea { resize: vertical; min-height: 96px; }

.form-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.form-actions .btn-primary {
  border: none;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.form-actions .btn-primary:disabled { opacity: 0.6; cursor: default; }

.form-status { font-size: 14px; color: var(--ink-dim); }
.form-status--success { color: var(--gold); }
.form-status--error { color: var(--error); }

/* ----------------------------------- Footer ----------------------------------- */

.site-footer {
  padding: 32px 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--surface-border);
  flex-wrap: wrap;
  gap: 16px;
}

.site-footer .footer-brand { display: flex; align-items: center; gap: 10px; }

.site-footer .footer-brand span,
.site-footer .footer-legal,
.site-footer .footer-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1px;
  color: var(--ink-dim);
}

.site-footer .footer-tag { text-transform: uppercase; }

/* ------------------------------------ Responsive ------------------------------------ */

@media (max-width: 860px) {
  .section-pad,
  .nav-bar,
  .hero-content,
  .process,
  .about,
  .contact,
  .site-footer {
    padding-left: 24px !important;
    padding-right: 24px !important;
  }

  .hero { min-height: 100svh; }
  .hero-headline { font-size: 44px !important; letter-spacing: -0.5px; }
  .contact h2 { font-size: 38px; }
  .about { flex-direction: column; }
  .about-icon { flex: 0 0 auto; }
  .nav-links { display: none !important; }
  .process-intro h2 { font-size: 28px; }
}
