*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #080808;
  --bg-2: #0f0f0f;
  --bg-3: #141414;
  --bg-4: #1c1c1c;
  --border: rgba(255,255,255,0.07);
  --border-strong: rgba(255,255,255,0.14);
  --text: #f0f0f0;
  --text-muted: #909090;
  --text-dim: #7d7d7d;
  --display-dim: #666;
  --error: #e5484d;
  --accent: #7C3AED;
  --accent-cyan: #06B6D4;
  --accent-gold: #C9A84C;
  --sans: 'Space Grotesk', sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: var(--sans); line-height: 1.6; overflow-x: hidden; }
a { color: inherit; }

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(8,8,8,0.93); backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  padding: 0 48px; height: 60px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav-brand { font-family: var(--sans); font-weight: 700; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text); text-decoration: none; white-space: nowrap; }
.nav-brand span { color: var(--text-dim); font-weight: 400; }
.nav-links { display: flex; gap: 28px; list-style: none; align-items: center; }
.nav-links a { font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text) !important; text-decoration: none;
  border: 1px solid var(--accent); padding: 9px 16px;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--accent); }

/* PAGE HERO (subpages) */
.page-hero { padding: 160px 80px 72px; max-width: 1400px; margin: 0 auto; position: relative; }
.page-hero-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 20%, black 30%, transparent 100%);
  pointer-events: none;
}
.breadcrumb { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 24px; position: relative; }
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--text); }
.page-title { font-size: clamp(44px, 6vw, 88px); font-weight: 700; letter-spacing: -0.04em; line-height: 0.95; margin-bottom: 24px; position: relative; }
.page-lede { font-size: clamp(17px, 1.8vw, 22px); line-height: 1.55; color: var(--text-muted); max-width: 640px; position: relative; }
.page-lede strong { color: var(--text); font-weight: 500; }
.page-status-row { display: flex; align-items: center; gap: 24px; margin-bottom: 28px; position: relative; }
.status-pill { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; }
.status-pill .dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.status-pill.live { color: var(--accent); }
.status-pill.live .dot { background: var(--accent); box-shadow: 0 0 10px rgba(124,58,237,0.7); }
.status-pill.build { color: var(--text-muted); }
.status-pill.build .dot { background: transparent; border: 1px solid var(--text-muted); }

/* SECTIONS */
section { padding: 96px 80px; max-width: 1400px; margin: 0 auto; }
.section-divider { border: none; border-top: 1px solid var(--border); margin: 0 80px; }
.section-header { display: grid; grid-template-columns: 80px 1fr; gap: 40px; align-items: start; margin-bottom: 64px; }
.section-number { font-family: var(--mono); font-size: 11px; font-weight: 400; letter-spacing: 0.1em; color: var(--text-dim); padding-top: 8px; }

/* ODD-ONE-OUT MOTIF
   One element in every repeated pattern breaks rank, in violet,
   and the break carries meaning. Dots mark section k of n. */
.odd-dots { display: flex; gap: 7px; padding-top: 12px; }
.odd-dots i { width: 5px; height: 5px; background: rgba(255,255,255,0.16); transition: background 0.2s; }
.odd-dots i.on { background: var(--accent); transform: translateY(-3px) rotate(45deg); box-shadow: 0 3px 8px rgba(124,58,237,0.45); }
.t-dot { color: var(--accent); }
.feature.odd { border-top: 1px solid var(--accent); position: relative; }
.feature.odd .feature-label::after { content: ' · the odd one'; color: var(--text-dim); letter-spacing: 0.08em; text-transform: none; }
.section-title { font-size: clamp(32px, 4vw, 60px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; margin-bottom: 16px; }
.section-subtitle { font-size: 16px; color: var(--text-muted); line-height: 1.7; max-width: 640px; font-weight: 400; }

/* PROSE (indented body copy) */
.prose { display: grid; grid-template-columns: 80px 1fr; gap: 40px; max-width: 1080px; }
.prose-body { font-size: clamp(16px, 1.6vw, 19px); line-height: 1.65; color: var(--text); font-weight: 400; max-width: 68ch; }
.prose-body p + p { margin-top: 1.4em; }
.prose-body em { color: var(--accent); font-style: normal; font-weight: 500; }
.prose-body .muted { color: var(--text-muted); }

/* CARD GRIDS */
.card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; }
.card {
  background: var(--bg-2); padding: 48px 40px;
  display: flex; flex-direction: column; gap: 24px;
  transition: background 0.25s;
}
.card:hover { background: var(--bg-3); }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.card-num { font-family: var(--mono); font-size: 11px; color: var(--text-dim); letter-spacing: 0.1em; }
.card-name { font-size: clamp(26px, 3vw, 38px); font-weight: 700; letter-spacing: -0.025em; line-height: 1.05; }
.card-desc { font-size: 15px; color: var(--text-muted); line-height: 1.65; flex: 1; }
.card-link {
  font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.06em;
  color: var(--text); text-decoration: none; display: inline-flex; align-items: center; gap: 10px;
  padding-top: 16px; border-top: 1px solid var(--border);
  transition: color 0.2s;
}
.card-link:hover { color: var(--accent); }
.card-link .arrow { transition: transform 0.2s; }
.card-link:hover .arrow { transform: translateX(4px); }

/* FEATURE LIST (workflow blocks on product pages) */
.feature-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; }
.feature {
  background: var(--bg-2); padding: 36px 32px;
  display: flex; flex-direction: column; gap: 12px;
}
.feature-label { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); }
.feature h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.feature p { font-size: 14px; color: var(--text-muted); line-height: 1.65; }

/* PRODUCT SHOTS (rendered product fragments, pure HTML/CSS, demo data) */
.shot {
  background: #0b0b0c; border: 1px solid rgba(255,255,255,0.12);
  font-family: var(--mono); overflow: hidden;
}
.shot-bar {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 10px 16px; border-bottom: 1px solid rgba(255,255,255,0.12);
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dim);
}
.shot-bar .live { color: var(--accent); display: flex; align-items: center; gap: 6px; }
.shot-bar .live::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px rgba(124,58,237,0.8); }
.shot-sec { padding: 12px 16px 6px; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-dim); }
.shot-row { display: flex; gap: 10px; padding: 9px 16px; border-top: 1px solid rgba(255,255,255,0.06); align-items: baseline; font-size: 12px; line-height: 1.45; }
.shot-row .src { color: var(--text-dim); flex: 0 0 auto; font-size: 11px; }
.shot-row .ttl { color: var(--text-muted); flex: 1 1 auto; min-width: 0; }
.shot-row .tag { flex: 0 0 auto; font-size: 10px; letter-spacing: 0.08em; color: var(--text-dim); }
.shot-row.hot { background: rgba(124,58,237,0.08); }
.shot-row.hot .tag { color: var(--accent); }
.shot-row.hot .ttl { color: var(--text); }
.shot-foot { padding: 9px 16px; border-top: 1px solid rgba(255,255,255,0.12); font-size: 10px; letter-spacing: 0.08em; color: var(--text-dim); font-variant-numeric: tabular-nums; }
.shot-caption { font-size: 12px; color: var(--text-dim); margin-top: 12px; line-height: 1.6; }
@media (max-width: 640px) {
  .shot-row { flex-wrap: wrap; }
  .shot-row .tag { width: 100%; }
}

/* POLICY BLOCK */
.policy-block { border-left: 2px solid var(--accent); padding: 8px 0 8px 32px; max-width: 720px; }
.policy-block p { font-size: 16px; line-height: 1.7; color: var(--text); }
.policy-block p + p { margin-top: 1em; }
.policy-block .muted { color: var(--text-muted); }

/* CTA BLOCK */
.cta-block {
  background: linear-gradient(135deg, rgba(124,58,237,0.08), rgba(6,182,212,0.04));
  border: 1px solid rgba(124,58,237,0.2);
  padding: 56px 64px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px;
}
.cta-block h2 { font-size: clamp(24px, 3vw, 40px); font-weight: 700; letter-spacing: -0.025em; line-height: 1.1; }
.cta-block p { font-size: 15px; color: var(--text-muted); margin-top: 8px; max-width: 480px; }
.cta-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
  font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  text-decoration: none; padding: 14px 24px; display: inline-block;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn-primary { background: var(--accent); color: var(--text); border: 1px solid var(--accent); }
.btn-primary:hover { background: transparent; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border-strong); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* CONTACT / FORM */
.contact-block {
  background: linear-gradient(135deg, rgba(124,58,237,0.08), rgba(6,182,212,0.04));
  border: 1px solid rgba(124,58,237,0.2);
  padding: 64px 80px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px;
}
.contact-col label, .field label {
  font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--text-dim); display: block; margin-bottom: 16px;
}
.contact-email {
  font-family: var(--sans); font-size: clamp(20px, 2vw, 26px); font-weight: 600; letter-spacing: -0.02em;
  color: var(--text); text-decoration: none; display: flex; align-items: baseline; gap: 10px;
  transition: color 0.2s;
}
.contact-email:hover { color: var(--accent); }
.contact-email + .contact-email { margin-top: 12px; }
.contact-note { font-size: 13px; color: var(--text-muted); line-height: 1.65; margin-top: 16px; max-width: 420px; }
.contact-emails-group + .contact-emails-group { margin-top: 40px; }

.field { margin-bottom: 24px; }
.field label { margin-bottom: 10px; color: var(--text-muted); }
.field input, .field select, .field textarea {
  width: 100%; background: var(--bg-4); border: 1px solid var(--border-strong);
  color: var(--text); font-family: var(--sans); font-size: 15px;
  padding: 13px 16px; border-radius: 0; appearance: none;
}
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--text-muted) 50%), linear-gradient(135deg, var(--text-muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field input:user-invalid, .field textarea:user-invalid { border-color: var(--error); }
.form-note { font-size: 13px; color: var(--text-muted); line-height: 1.6; margin-top: 16px; max-width: 420px; }
.form-note a { color: var(--text); }
.field textarea { min-height: 120px; resize: vertical; }
.hp-field { position: absolute; left: -9999px; opacity: 0; }

/* FOOTER */
footer {
  padding: 64px 80px; border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1400px; margin: 0 auto; flex-wrap: wrap; gap: 24px;
}
.footer-brand { font-size: 13px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; }
.footer-brand span { color: var(--text-dim); font-weight: 400; }
.footer-meta { font-family: var(--mono); font-size: 11px; color: var(--text-dim); letter-spacing: 0.05em; }
.footer-meta span { color: var(--text-muted); }
.footer-meta a { color: var(--text-dim); text-decoration: none; }
.footer-meta a:hover { color: var(--text); }

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

/* TABLET */
@media (max-width: 1024px) {
  nav { padding: 0 24px; }
  .page-hero { padding: 130px 40px 56px; }
  section { padding: 72px 40px; }
  .section-divider { margin: 0 40px; }
  .section-header { grid-template-columns: 1fr; gap: 16px; margin-bottom: 48px; }
  .section-number { padding-top: 0; }
  .prose { grid-template-columns: 1fr; gap: 16px; }
  .card-grid, .feature-list { grid-template-columns: 1fr; }
  .contact-block { padding: 48px 40px; grid-template-columns: 1fr; gap: 48px; }
  .cta-block { padding: 40px; }
  footer { padding: 48px 40px; }
}

/* MOBILE */
@media (max-width: 640px) {
  nav { padding: 0 16px; height: 50px; }
  .nav-brand { font-size: 11px; letter-spacing: 0.1em; }
  .nav-links { gap: 12px; }
  .nav-links a { font-size: 10px; letter-spacing: 0.05em; }
  .nav-cta { padding: 8px 10px; font-size: 10px; }
  .nav-brand span { display: none; }
  .nav-links li.nav-hide-mobile { display: none; }
  .nav-cta .cta-long { display: none; }

  .page-hero { padding: 100px 20px 48px; }
  .page-title { font-size: clamp(34px, 10vw, 56px); }
  .page-lede { font-size: 16px; }

  section { padding: 56px 20px; }
  .section-divider { margin: 0 20px; }
  .section-title { font-size: clamp(24px, 7vw, 40px); margin-bottom: 10px; }
  .section-subtitle { font-size: 14px; }

  .card { padding: 32px 24px; }
  .card-name { font-size: clamp(24px, 7vw, 32px); }
  .feature { padding: 28px 20px; }

  .contact-block { padding: 32px 24px; }
  .contact-email { font-size: clamp(17px, 5vw, 22px); }
  .cta-block { padding: 32px 24px; }

  footer { padding: 32px 20px; flex-direction: column; gap: 12px; text-align: center; align-items: center; }
}
