:root {
  --bg: #0e0e0e;
  --bg-secondary: #141414;
  --bg-elevated: #1c1c1c;
  --fg: #f0ebe0;
  --fg-muted: #8c8680;
  --accent: #d4a843;
  --accent-dim: #a07830;
  --border: #2a2a2a;
}

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Source Sans 3', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Bitter', Georgia, serif;
  font-weight: 600;
  line-height: 1.2;
}

.overline {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

/* HERO */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 3rem 5% 4rem;
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 60% at 70% 50%, rgba(212, 168, 67, 0.04) 0%, transparent 70%),
    linear-gradient(180deg, var(--bg) 0%, #111 100%);
}

.hero-logo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.hero-logo {
  width: 120px;
  height: 140px;
  display: block;
}

.logo-tagline {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #a855f7;
  text-align: center;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.hero-text .overline { margin-bottom: 1.25rem; }

.hero-text h1 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  color: var(--fg);
  margin-bottom: 1.75rem;
  font-weight: 700;
}

.hero-text .lede {
  font-size: 1.125rem;
  color: var(--fg-muted);
  max-width: 520px;
  line-height: 1.7;
}

/* Stage diagram */
.stage-diagram {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.layer {
  width: 260px;
  padding: 1.25rem 1.5rem;
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.4;
}

.layer-top {
  background: var(--accent);
  color: #0e0e0e;
  border-radius: 6px 6px 0 0;
}

.layer-mid {
  background: var(--bg-elevated);
  color: var(--fg);
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
}

.layer-bottom {
  background: var(--bg-secondary);
  color: var(--fg-muted);
  border: 1px solid var(--border);
  border-radius: 0 0 6px 6px;
}

.connector {
  display: flex;
  align-items: center;
  width: 100%;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.25rem 0;
}

.connector-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.connector-label {
  font-size: 0.6875rem;
  color: var(--fg-muted);
  font-style: italic;
  white-space: nowrap;
}

/* THEORY */
.theory {
  background: var(--bg-secondary);
  padding: 7rem 5%;
  border-top: 1px solid var(--border);
}

.theory-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.theory-header { margin-bottom: 4rem; }

.theory-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-top: 0.75rem;
}

.theory-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-bottom: 4rem;
}

.theory-item {
  background: var(--bg-elevated);
  padding: 2rem;
}

.theory-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.875rem;
}

.theory-item p {
  font-size: 0.9375rem;
  color: var(--fg-muted);
  line-height: 1.7;
}

.theory-quote {
  border-left: 2px solid var(--accent);
  padding-left: 2rem;
}

.theory-quote blockquote {
  font-family: 'Bitter', serif;
  font-size: 1.25rem;
  color: var(--fg);
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.theory-quote cite {
  font-size: 0.875rem;
  color: var(--fg-muted);
}

/* ARCHITECTURE */
.architecture {
  background: var(--bg);
  padding: 7rem 5%;
}

.architecture-inner { max-width: 1200px; margin: 0 auto; }

.arch-header { margin-bottom: 4rem; }

.arch-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-top: 0.75rem;
}

.arch-layers {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin-bottom: 4rem;
}

.arch-layer {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 0;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
}

.arch-layer-number {
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Bitter', serif;
  font-size: 1.5rem;
  color: var(--accent);
  border-right: 1px solid var(--border);
  min-height: 120px;
}

.arch-layer-content {
  padding: 2rem 2.5rem;
}

.arch-layer-content h3 {
  font-size: 1.125rem;
  color: var(--fg);
  margin-bottom: 0.75rem;
}

.arch-layer-content p {
  font-size: 0.9375rem;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 680px;
}

.arch-specs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}

.spec {
  background: var(--bg-elevated);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.spec-value {
  font-family: 'Bitter', serif;
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--accent);
}

.spec-label {
  font-size: 0.8125rem;
  color: var(--fg-muted);
  line-height: 1.4;
}

/* OUTCOMES */
.outcomes {
  background: var(--bg-secondary);
  padding: 7rem 5%;
  border-top: 1px solid var(--border);
}

.outcomes-inner { max-width: 1200px; margin: 0 auto; }

.outcomes-header { margin-bottom: 4rem; }

.outcomes-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-top: 0.75rem;
}

.outcomes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
}

.outcome {
  background: var(--bg-elevated);
  padding: 2.5rem;
}

.outcome-icon {
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.outcome h3 {
  font-size: 1rem;
  color: var(--fg);
  margin-bottom: 0.875rem;
}

.outcome p {
  font-size: 0.9375rem;
  color: var(--fg-muted);
  line-height: 1.7;
}

/* CLOSING */
.closing {
  background: var(--bg);
  padding: 8rem 5%;
  border-top: 1px solid var(--border);
}

.closing-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.closing h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  margin-bottom: 2rem;
  color: var(--fg);
}

.closing p {
  font-size: 1.0625rem;
  color: var(--fg-muted);
  line-height: 1.8;
  max-width: 680px;
  margin: 0 auto;
}

/* CONTACT */
.contact-section {
  background: var(--bg-secondary);
  padding: 7rem 5%;
  border-top: 1px solid var(--border);
}

.contact-inner { max-width: 1200px; margin: 0 auto; }

.contact-header { margin-bottom: 3.5rem; }

.contact-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
}

.contact-sub {
  font-size: 1rem;
  color: var(--fg-muted);
  max-width: 480px;
}

.contact-form { max-width: 680px; }

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

.form-group { display: flex; flex-direction: column; gap: 0.375rem; margin-bottom: 1.25rem; }

label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--fg-muted);
  letter-spacing: 0.04em;
}

.required { color: var(--accent); }

input, textarea {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--fg);
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.9375rem;
  padding: 0.75rem 1rem;
  border-radius: 4px;
  outline: none;
  transition: border-color 0.15s;
  resize: none;
}

input::placeholder, textarea::placeholder { color: var(--fg-muted); opacity: 0.5; }

input:focus, textarea:focus { border-color: var(--accent); }

.input-error { border-color: #e05252; }

.field-error {
  font-size: 0.75rem;
  color: #e05252;
  min-height: 1rem;
}

.form-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.5rem;
}

.form-status {
  font-size: 0.875rem;
  min-height: 1.25rem;
}

.status-success { color: var(--accent); }
.status-error { color: #e05252; }

.btn-submit {
  background: var(--accent);
  color: #0e0e0e;
  border: none;
  padding: 0.75rem 2rem;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-submit:hover:not(:disabled) { background: #e8b84f; }
.btn-submit:disabled { opacity: 0.5; cursor: not-allowed; }

/* FOOTER */
footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 3rem 5%;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.footer-logo {
  font-family: 'Bitter', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--fg);
  display: block;
  margin-bottom: 0.375rem;
}

.footer-brand p {
  font-size: 0.8125rem;
  color: var(--fg-muted);
}

.footer-note {
  font-size: 0.75rem;
  color: var(--fg-muted);
  text-align: right;
  line-height: 1.6;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 3rem; }
  .hero-visual { display: none; }
  .theory-grid { grid-template-columns: 1fr; }
  .outcomes-grid { grid-template-columns: 1fr; }
  .arch-specs { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { flex-direction: column; gap: 2rem; align-items: flex-start; }
  .footer-note { text-align: left; }
}

@media (max-width: 600px) {
  .arch-layer { grid-template-columns: 1fr; }
  .arch-layer-number { border-right: none; border-bottom: 1px solid var(--border); min-height: auto; padding: 1rem; }
  .arch-specs { grid-template-columns: 1fr 1fr; }
  .hero { padding-top: 4rem; }
}
