/* ═══════════════════════════════════════════════════
   ONYX AI — Ultra-Premium Landing Page
   Design Language: Rolls-Royce editorial restraint,
   Hermès silence, XPEL precision.
   ═══════════════════════════════════════════════════ */

/* ─── FOUNDATIONS ─── */
:root {
  --color-bg:         #0a0a0a;
  --color-bg-alt:     #101010;
  --color-bg-card:    #141414;
  --color-border:     rgba(255, 255, 255, 0.06);
  --color-border-acc: rgba(201, 165, 90, 0.18);

  --color-gold:       #c9a55a;
  --color-gold-dim:   rgba(201, 165, 90, 0.08);
  --color-gold-glow:  rgba(201, 165, 90, 0.12);

  --color-text:       #f0ece4;
  --color-text-sub:   rgba(240, 236, 228, 0.55);
  --color-text-muted: rgba(240, 236, 228, 0.30);

  --color-input-bg:   #111111;
  --color-input-border: rgba(255, 255, 255, 0.08);
  --color-input-focus: rgba(201, 165, 90, 0.30);

  --font-serif:  'Playfair Display', 'Georgia', serif;
  --font-sans:   'Inter', -apple-system, 'Helvetica Neue', sans-serif;
  --font-mono:   'JetBrains Mono', 'SF Mono', monospace;

  --radius:     8px;
  --radius-lg:  12px;
  --ease:       cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  letter-spacing: -0.01em;
}

::selection {
  background: rgba(201, 165, 90, 0.25);
  color: var(--color-text);
}

/* ─── LAYOUT ─── */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 40px;
}

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

.section {
  padding: 120px 0;
}

.section-dark {
  background: var(--color-bg-alt);
}

/* ─── TYPOGRAPHY ─── */
h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.15rem; }

p {
  color: var(--color-text-sub);
  font-size: 0.95rem;
  line-height: 1.75;
}

.section-overline {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 16px;
}

.section-intro {
  margin-top: 20px;
  max-width: 580px;
}

em {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--color-text);
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  padding: 16px 40px;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.4s var(--ease);
}

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

.btn-primary:hover {
  background: #d4b36a;
  transform: translateY(-1px);
  box-shadow: 0 8px 32px rgba(201, 165, 90, 0.15);
}

.btn-full {
  width: 100%;
}

.btn-lg {
  padding: 20px 56px;
  font-size: 0.88rem;
}

/* ─── NAV ─── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 24px 0;
  transition: all 0.4s var(--ease);
}

.nav-scrolled {
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border);
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--color-text);
  text-decoration: none;
}

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

.nav-links a {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--color-text-sub);
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: color 0.3s var(--ease);
}

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

.nav-cta {
  font-family: var(--font-mono) !important;
  font-size: 0.68rem !important;
  letter-spacing: 2px !important;
  text-transform: uppercase;
  color: var(--color-gold) !important;
  border: 1px solid var(--color-border-acc);
  padding: 8px 20px;
  border-radius: var(--radius);
  transition: all 0.3s var(--ease) !important;
}

.nav-cta:hover {
  background: var(--color-gold-dim);
}

/* ─── HERO ─── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 120px 40px 80px;
  position: relative;
}

.hero-overline {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 32px;
}

.hero h1 {
  margin-bottom: 32px;
}

.hero-sub {
  max-width: 540px;
  margin: 0 auto 48px;
  font-size: 0.95rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.hero-line {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 80px;
  background: linear-gradient(to bottom, var(--color-border), transparent);
}

/* ─── EVIDENCE BAR ─── */
.evidence {
  padding: 48px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.evidence-grid {
  display: flex;
  justify-content: center;
  gap: 64px;
  flex-wrap: wrap;
}

.evidence-item {
  text-align: center;
  max-width: 200px;
}

.evidence-value {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 6px;
}

.evidence-label {
  font-size: 0.72rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* ─── EDITORIAL BLOCK ─── */
.editorial-block {
  margin: 40px 0 56px;
}

.editorial-block blockquote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--color-text);
  border-left: 2px solid var(--color-gold);
  padding-left: 24px;
  margin-bottom: 28px;
}

.editorial-block p {
  font-size: 0.95rem;
  line-height: 1.85;
}

/* ─── PROBLEM CARDS ─── */
.problem-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.p-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: border-color 0.3s var(--ease);
}

.p-card:hover {
  border-color: var(--color-border-acc);
}

.p-card h3 {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  margin-bottom: 12px;
  color: var(--color-text);
}

.p-card p {
  font-size: 0.85rem;
  line-height: 1.7;
}

/* ─── METHODOLOGY STEPS ─── */
.method-steps {
  margin-top: 56px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.m-step {
  display: flex;
  gap: 32px;
  padding: 36px 0;
  border-top: 1px solid var(--color-border);
}

.m-step:last-child {
  border-bottom: 1px solid var(--color-border);
}

.m-step-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 2px;
  color: var(--color-text-muted);
  min-width: 48px;
  padding-top: 4px;
}

.m-step-vip .m-step-num {
  color: var(--color-gold);
}

.m-step-body h3 {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.m-step-body p {
  font-size: 0.88rem;
}

/* ─── CAPABILITIES GRID ─── */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.cap-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: border-color 0.3s var(--ease);
}

.cap-card:hover {
  border-color: var(--color-border-acc);
}

.cap-card h3 {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.cap-card p {
  font-size: 0.85rem;
  line-height: 1.7;
}

/* ─── INVESTMENT ─── */
.invest-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-acc);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  margin-top: 48px;
  text-align: center;
  position: relative;
}

.invest-badge {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 36px;
}

.invest-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  margin-bottom: 40px;
}

.invest-amount {
  display: block;
  font-family: var(--font-serif);
  font-size: 2.8rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1;
}

.invest-desc {
  display: block;
  font-size: 0.78rem;
  color: var(--color-text-sub);
  margin-top: 8px;
}

.invest-plus {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--color-text-muted);
}

.invest-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 40px;
  text-align: left;
  max-width: 480px;
  margin: 0 auto 36px;
}

.invest-features p {
  font-size: 0.82rem;
  color: var(--color-text-sub);
  padding-left: 16px;
  position: relative;
}

.invest-features p::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-gold);
  opacity: 0.5;
}

.invest-guarantee {
  margin-top: 24px;
  font-size: 0.78rem !important;
  color: var(--color-text-muted) !important;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6 !important;
}

/* ─── COMPARISON TABLE ─── */
.compare-section {
  margin-top: 72px;
  text-align: center;
}

.compare-section h3 {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-text-sub);
  margin-bottom: 24px;
}

.compare-table {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 520px;
  margin: 0 auto;
}

.compare-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 0.85rem;
}

.compare-row span:first-child {
  color: var(--color-text-sub);
}

.compare-row span:last-child {
  font-weight: 600;
  color: var(--color-text);
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

.compare-highlight {
  border-color: var(--color-border-acc);
  background: linear-gradient(135deg, rgba(201, 165, 90, 0.04), transparent);
}

.compare-highlight span:first-child {
  color: var(--color-text);
  font-weight: 500;
}

/* ─── ROI ─── */
.roi-section {
  margin-top: 56px;
  text-align: center;
}

.roi-section h3 {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-text-sub);
  margin-bottom: 24px;
}

.roi-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 520px;
  margin: 0 auto;
}

.roi-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 0.85rem;
}

.roi-row span:first-child {
  color: var(--color-text-sub);
}

.roi-row span:last-child {
  font-weight: 600;
  color: var(--color-text);
}

.roi-result {
  border-color: var(--color-border-acc);
}

.roi-result span:last-child {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--color-gold);
}

.roi-note {
  font-size: 0.72rem !important;
  color: var(--color-text-muted) !important;
  margin-top: 16px;
  font-style: italic;
}

/* ═══════════════════════════════════════════════════
   APPLICATION FORM
   ═══════════════════════════════════════════════════ */

.form-header {
  text-align: center;
  margin-bottom: 64px;
}

.form-header h2 {
  margin-bottom: 20px;
}

.form-intro {
  max-width: 520px;
  margin: 0 auto;
  font-size: 0.92rem;
  line-height: 1.8;
}

/* ─── FORM STRUCTURE ─── */
.onyx-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.form-section {
  border: none;
  padding: 48px 0;
  border-top: 1px solid var(--color-border);
}

.form-section:last-of-type {
  border-bottom: 1px solid var(--color-border);
}

.form-legend {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text);
  letter-spacing: 0.3px;
  margin-bottom: 32px;
  width: 100%;
}

.form-legend-num {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 2px;
  color: var(--color-gold);
  opacity: 0.7;
}

/* ─── FORM GRID ─── */
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-grid-2:last-child {
  margin-bottom: 0;
}

/* ─── FORM GROUP ─── */
.form-group {
  margin-bottom: 20px;
}

.form-group:last-child,
.form-grid-2 .form-group {
  margin-bottom: 0;
}

.form-group > label {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--color-text-sub);
  letter-spacing: 0.3px;
  margin-bottom: 8px;
}

.required {
  color: var(--color-gold);
  font-weight: 400;
}

.optional {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-left: 4px;
}

.form-hint {
  font-size: 0.78rem !important;
  color: var(--color-text-muted) !important;
  margin-bottom: 12px !important;
  line-height: 1.6 !important;
}

/* ─── TEXT INPUTS ─── */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="tel"],
textarea {
  width: 100%;
  background: var(--color-input-bg);
  border: 1px solid var(--color-input-border);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--color-text);
  letter-spacing: 0.2px;
  transition: all 0.3s var(--ease);
  outline: none;
}

input::placeholder,
textarea::placeholder {
  color: var(--color-text-muted);
  font-weight: 300;
}

input:focus,
textarea:focus {
  border-color: var(--color-input-focus);
  box-shadow: 0 0 0 3px var(--color-gold-dim);
}

textarea {
  resize: vertical;
  min-height: 80px;
  line-height: 1.6;
}

/* ─── INPUT WITH PREFIX ─── */
.input-prefix-wrap {
  position: relative;
  display: flex;
  align-items: stretch;
}

.input-prefix {
  display: flex;
  align-items: center;
  padding: 0 0 0 16px;
  background: var(--color-input-bg);
  border: 1px solid var(--color-input-border);
  border-right: none;
  border-radius: var(--radius) 0 0 var(--radius);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.input-with-prefix {
  border-radius: 0 var(--radius) var(--radius) 0 !important;
}

.input-prefix-wrap:focus-within .input-prefix {
  border-color: var(--color-input-focus);
}

.input-prefix-wrap:focus-within .input-with-prefix {
  border-color: var(--color-input-focus);
  box-shadow: 0 0 0 3px var(--color-gold-dim);
}

/* ─── SELECT ─── */
.select-wrap {
  position: relative;
}

.select-wrap::after {
  content: '';
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--color-text-muted);
  pointer-events: none;
}

select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  background: var(--color-input-bg);
  border: 1px solid var(--color-input-border);
  border-radius: var(--radius);
  padding: 14px 40px 14px 16px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--color-text);
  cursor: pointer;
  transition: all 0.3s var(--ease);
  outline: none;
}

select:focus {
  border-color: var(--color-input-focus);
  box-shadow: 0 0 0 3px var(--color-gold-dim);
}

select option {
  background: var(--color-bg-card);
  color: var(--color-text);
  padding: 8px;
}

select:invalid,
select option[disabled] {
  color: var(--color-text-muted);
}

/* ─── CHECKBOXES ─── */
.checkbox-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.checkbox-grid-col {
  grid-template-columns: 1fr;
}

.check-label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--color-input-bg);
  border: 1px solid var(--color-input-border);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.82rem;
  color: var(--color-text-sub);
  transition: all 0.25s var(--ease);
  user-select: none;
}

.check-label:hover {
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--color-text);
}

.check-label input[type="checkbox"] {
  display: none;
}

.check-box {
  width: 18px;
  height: 18px;
  min-width: 18px;
  border: 1.5px solid var(--color-input-border);
  border-radius: 4px;
  transition: all 0.25s var(--ease);
  position: relative;
  background: transparent;
}

.check-label input:checked + .check-box {
  background: var(--color-gold);
  border-color: var(--color-gold);
}

.check-label input:checked + .check-box::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 9px;
  border: solid #0a0a0a;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.check-label input:checked ~ * {
  color: var(--color-text);
}

.check-label:has(input:checked) {
  border-color: var(--color-border-acc);
  background: var(--color-gold-dim);
}

/* ─── INTEGRATION NOTE ─── */
.integration-note {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: var(--color-gold-dim);
  border: 1px solid var(--color-border-acc);
  border-radius: var(--radius-lg);
  margin-top: 4px;
}

.integration-icon {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--color-gold);
  white-space: nowrap;
  min-width: 28px;
}

.integration-note span:last-child {
  font-size: 0.82rem;
  color: var(--color-text-sub);
  line-height: 1.5;
}

/* ─── FORM FOOTER ─── */
.form-footer {
  padding-top: 48px;
  text-align: center;
}

.form-footer-note {
  margin-top: 20px;
  font-size: 0.78rem !important;
  color: var(--color-text-muted) !important;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6 !important;
}

.form-alt-contact {
  text-align: center;
  margin-top: 32px;
  font-size: 0.78rem !important;
  color: var(--color-text-muted) !important;
}

.form-alt-contact a {
  color: var(--color-gold);
  text-decoration: none;
}

.form-alt-contact a:hover {
  text-decoration: underline;
}

/* ─── FORM SUCCESS STATE ─── */
.form-success {
  text-align: center;
  padding: 80px 0;
}

.form-success h3 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  margin-bottom: 16px;
  color: var(--color-gold);
}

.form-success p {
  max-width: 400px;
  margin: 0 auto;
  font-size: 0.92rem;
  line-height: 1.7;
}

/* ─── FOOTER ─── */
.footer {
  padding: 32px 0;
  border-top: 1px solid var(--color-border);
}

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

.footer-brand {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--color-text-sub);
}

.footer-copy {
  font-size: 0.72rem;
  color: var(--color-text-muted);
}

/* ─── HAMBURGER MENU ─── */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 200;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--color-text);
  transition: all 0.3s var(--ease);
  transform-origin: center;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(4.5px, 4.5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(4.5px, -4.5px);
}

/* ─── MOBILE NAV OVERLAY ─── */
.nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 10, 10, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 90;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.nav-overlay.active {
  opacity: 1;
}

/* ─── SCROLL PROGRESS ─── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-gold), #d4b36a);
  z-index: 999;
  width: 0%;
  transition: width 0.1s linear;
}

/* ─── DEMO SECTION ─── */
.demo-container {
  max-width: 560px;
  margin: 48px auto 0;
  position: relative;
}

.demo-frame {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-acc);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}

.demo-frame-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: rgba(10, 10, 10, 0.6);
  border-bottom: 1px solid var(--color-border);
}

.demo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-text-muted);
  opacity: 0.4;
}

.demo-dot:first-child { background: #ff5f57; opacity: 0.7; }
.demo-dot:nth-child(2) { background: #febc2e; opacity: 0.7; }
.demo-dot:nth-child(3) { background: #28c840; opacity: 0.7; }

.demo-frame img {
  width: 100%;
  height: auto;
  display: block;
}

.demo-caption {
  text-align: center;
  margin-top: 24px;
  font-size: 0.78rem !important;
  color: var(--color-text-muted) !important;
  font-style: italic;
  line-height: 1.6 !important;
}

/* ─── FADE-IN ANIMATIONS ─── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }

/* ─── PREFERS REDUCED MOTION ─── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .fade-in {
    opacity: 1;
    transform: none;
  }
  .scroll-progress {
    display: none;
  }
}

/* ─── RESPONSIVE: TABLET (1024px) ─── */
@media (max-width: 1024px) {
  .container { padding: 0 32px; }
  .section { padding: 96px 0; }
  .problem-cards { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .problem-cards .p-card:last-child {
    grid-column: 1 / -1;
    max-width: 50%;
    margin: 0 auto;
  }
  .cap-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .invest-card { padding: 40px 32px; }
  .hero { padding: 110px 32px 70px; }
}

/* ─── RESPONSIVE: MOBILE (768px) ─── */
@media (max-width: 768px) {
  .container { padding: 0 24px; }
  .section { padding: 72px 0; }

  /* Nav: hamburger mode */
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 280px;
    flex-direction: column;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 100px 40px 40px;
    gap: 0;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
    z-index: 150;
    border-left: 1px solid var(--color-border);
    align-items: flex-start;
  }
  .nav-links.open {
    transform: translateX(0);
  }
  .nav-links a {
    font-size: 1rem !important;
    padding: 16px 0 !important;
    border-bottom: 1px solid var(--color-border);
    width: 100%;
    letter-spacing: 1px !important;
  }
  .nav-cta {
    border: none !important;
    border-bottom: 1px solid var(--color-border) !important;
    border-radius: 0 !important;
    margin-top: 8px;
  }
  .nav-overlay { display: block; pointer-events: none; }
  .nav-overlay.active { pointer-events: auto; }

  /* Hero */
  .hero { padding: 100px 24px 60px; min-height: auto; }
  .hero h1 br { display: none; }
  .hero-sub { font-size: 0.88rem; max-width: 100%; }
  .hero-overline { margin-bottom: 24px; }

  /* Evidence */
  .evidence-grid { gap: 32px; flex-direction: column; align-items: center; }
  .evidence-item { max-width: 100%; }

  /* Cards */
  .problem-cards { grid-template-columns: 1fr; }
  .problem-cards .p-card:last-child { max-width: 100%; }
  .cap-grid { grid-template-columns: 1fr; }

  /* Investment */
  .invest-row { flex-direction: column; gap: 16px; }
  .invest-plus { font-size: 1rem; }
  .invest-amount { font-size: 2.2rem; }
  .invest-features { grid-template-columns: 1fr; }
  .invest-card { padding: 36px 24px; }

  /* Compare & ROI — prevent overflow */
  .compare-row,
  .roi-row {
    padding: 12px 16px;
    font-size: 0.8rem;
    gap: 12px;
  }
  .compare-row span:last-child,
  .roi-row span:last-child {
    font-size: 0.78rem;
    white-space: nowrap;
  }

  /* Demo */
  .demo-container { margin-top: 36px; }

  /* Form */
  .form-grid-2 { grid-template-columns: 1fr; }
  .checkbox-grid { grid-template-columns: 1fr; }
  .form-section { padding: 36px 0; }
  .form-header { margin-bottom: 40px; }
  .form-header h2 br { display: none; }

  /* Footer */
  .footer-inner { flex-direction: column; gap: 8px; text-align: center; }
}

/* ─── RESPONSIVE: SMALL MOBILE (480px) ─── */
@media (max-width: 480px) {
  .container { padding: 0 20px; }
  .section { padding: 56px 0; }
  .hero { padding: 88px 20px 48px; }

  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }

  .section-overline {
    font-size: 0.62rem;
    letter-spacing: 2px;
  }

  /* Nav */
  .nav-inner { padding: 0 20px; }
  .nav-links { width: 100%; padding: 100px 24px 40px; }

  /* Evidence */
  .evidence { padding: 32px 0; }
  .evidence-value { font-size: 1.2rem; }

  /* Investment */
  .invest-amount { font-size: 1.8rem; }

  /* Buttons */
  .btn { padding: 14px 32px; font-size: 0.8rem; }
  .btn-lg { padding: 16px 40px; font-size: 0.82rem; }

  /* Methodology */
  .m-step { flex-direction: column; gap: 12px; }
  .m-step-num { min-width: auto; }

  /* Form */
  .form-section { padding: 28px 0; }
  .form-header { margin-bottom: 28px; }

  /* Compare & ROI */
  .compare-row,
  .roi-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 12px 16px;
  }
}
