/* ===================== TOKENS ===================== */
:root {
  --ink: #0E1F33;
  --ink-2: #16324D;
  --paper: #FAF8F3;
  --paper-2: #F1EDE2;
  --marigold: #F2A93B;
  --marigold-dark: #D98F1E;
  --coral: #D8452F;
  --teal: #1E7F6B;
  --text: #16232E;
  --muted: #5B6B7A;
  --line: rgba(22, 35, 46, 0.12);
  --line-light: rgba(250, 248, 243, 0.16);

  --font-display: 'Fraunces', serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius: 18px;
  --radius-sm: 10px;
  --shadow-lift: 0 20px 50px -20px rgba(14, 31, 51, 0.35);
  --shadow-soft: 0 10px 30px -14px rgba(14, 31, 51, 0.25);
}

@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; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

.section-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}
.section-inner-narrow { max-width: 760px; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.01em; margin: 0 0 16px; color: var(--text); }
p { line-height: 1.6; color: var(--muted); margin: 0 0 16px; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--marigold);
  margin-bottom: 14px;
  font-weight: 500;
}
.eyebrow-dark { color: var(--marigold-dark); }

.noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:focus-visible { outline: 3px solid var(--marigold); outline-offset: 3px; }
.btn-primary { background: var(--marigold); color: var(--ink); box-shadow: 0 12px 24px -10px rgba(242, 169, 59, 0.6); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -10px rgba(242, 169, 59, 0.7); }
.btn-ghost { background: transparent; color: var(--paper); border: 1.5px solid var(--line-light); }
.btn-ghost:hover { background: rgba(250, 248, 243, 0.08); transform: translateY(-2px); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none !important; }

/* ===================== TOPBAR ===================== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14, 31, 51, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-light);
}
.topbar-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 34px; height: 34px;
  background: var(--marigold);
  color: var(--ink);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 18px;
}
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 19px; color: var(--paper); }
.brand-dot { color: var(--marigold); }

.topbar-call { display: flex; align-items: center; gap: 10px; }
.pulse-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 0 rgba(30, 127, 107, 0.6);
  animation: pulse 2s infinite;
  flex-shrink: 0;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(30, 127, 107, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(30, 127, 107, 0); }
  100% { box-shadow: 0 0 0 0 rgba(30, 127, 107, 0); }
}
.topbar-call-text { display: flex; flex-direction: column; line-height: 1.2; }
.topbar-call-text strong { font-family: var(--font-mono); color: var(--paper); font-size: 15px; }
.topbar-call-text small { color: rgba(250, 248, 243, 0.6); font-size: 11px; }

/* ===================== HERO ===================== */
.hero { background: var(--ink); color: var(--paper); padding: 64px 0 80px; position: relative; overflow: hidden; }
.hero::before {
  content: "";
  position: absolute;
  top: -120px; right: -160px;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(242, 169, 59, 0.18), transparent 70%);
  pointer-events: none;
}
.hero-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.hero-copy h1 {
  color: var(--paper);
  font-size: clamp(32px, 4.6vw, 52px);
  line-height: 1.12;
}
.hl { color: var(--marigold); }
.hl-strike { color: var(--coral); text-decoration: line-through; text-decoration-thickness: 3px; text-decoration-color: rgba(216, 69, 47, 0.7); }
.hero-sub { color: rgba(250, 248, 243, 0.75); font-size: 17px; max-width: 480px; }
.hero-cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin: 28px 0 18px; }
.hero-microcopy { font-family: var(--font-mono); font-size: 12.5px; color: rgba(250, 248, 243, 0.5); }

.gauge-card {
  background: var(--ink-2);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  padding: 28px 28px 24px;
  box-shadow: var(--shadow-lift);
}
.gauge-label { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(250, 248, 243, 0.55); margin-bottom: 6px; }
.gauge-wrap { position: relative; display: flex; justify-content: center; }
.gauge-svg { width: 100%; max-width: 320px; }
.gauge-track { fill: none; stroke: rgba(250, 248, 243, 0.12); stroke-width: 14; stroke-linecap: round; }
.gauge-fill {
  fill: none;
  stroke: var(--coral);
  stroke-width: 14;
  stroke-linecap: round;
  stroke-dasharray: 298;
  stroke-dashoffset: 90;
  transition: stroke-dashoffset 1.4s cubic-bezier(0.65, 0, 0.35, 1), stroke 1.4s ease;
}
.gauge-needle {
  stroke: var(--paper);
  stroke-width: 3;
  stroke-linecap: round;
  transform-origin: 110px 115px;
  transition: transform 1.4s cubic-bezier(0.65, 0, 0.35, 1);
}
.gauge-hub { fill: var(--paper); }
.gauge-number {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 30px;
  color: var(--paper);
}
.gauge-status {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  font-size: 13.5px;
  color: rgba(250, 248, 243, 0.8);
  font-weight: 500;
}
.status-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.status-bad { background: var(--coral); }
.status-good { background: var(--teal); }
.gauge-legend {
  margin-top: 16px;
  display: flex;
  justify-content: center;
  gap: 20px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: rgba(250, 248, 243, 0.55);
}
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; }
.sw-bad { background: var(--coral); }
.sw-good { background: var(--teal); }

/* ===================== PROBLEM ===================== */
.problem { padding: 84px 0; }
.problem h2, .services h2, .portfolio h2, .lead-section h2 { font-size: clamp(26px, 3.4vw, 36px); max-width: 640px; }
.section-sub { max-width: 560px; }
.problem-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 36px; }
.problem-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 24px 20px;
}
.problem-icon { font-size: 24px; margin-bottom: 12px; }
.problem-card h3 { font-size: 17px; margin-bottom: 8px; }
.problem-card p { font-size: 14px; margin-bottom: 0; }

/* ===================== SERVICES ===================== */
.services { padding: 20px 0 84px; }
.services-grid { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.service-chip {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 11px 18px;
  font-size: 14.5px;
  font-weight: 500;
}

/* ===================== PORTFOLIO ===================== */
.portfolio { padding: 20px 0 90px; background: var(--paper-2); }
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; margin-top: 36px; }
.portfolio-loading, .portfolio-empty { font-family: var(--font-mono); color: var(--muted); font-size: 14px; grid-column: 1/-1; }
.portfolio-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.portfolio-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.portfolio-category {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal);
  font-weight: 600;
}
.portfolio-name { font-family: var(--font-display); font-size: 19px; font-weight: 700; margin: 0; }
.portfolio-url { font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); word-break: break-all; }
.portfolio-price { font-family: var(--font-mono); font-size: 22px; font-weight: 700; color: var(--ink); margin-top: 4px; }
.portfolio-price small { font-size: 12px; font-weight: 500; color: var(--muted); }
.portfolio-note { font-size: 13px; color: var(--muted); margin: 0; }
.portfolio-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.tag { font-size: 11px; font-family: var(--font-mono); padding: 4px 9px; border-radius: 999px; font-weight: 600; }
.tag-included { background: rgba(30, 127, 107, 0.12); color: var(--teal); }
.tag-excluded { background: rgba(216, 69, 47, 0.1); color: var(--coral); }

/* ===================== LEAD FORM ===================== */
.lead-section { padding: 20px 0 90px; }
.form-card {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-lift);
  margin-top: 32px;
}
.form-progress { height: 6px; background: rgba(250, 248, 243, 0.14); border-radius: 999px; overflow: hidden; margin-bottom: 10px; }
.form-progress-bar { height: 100%; width: 20%; background: var(--marigold); transition: width 0.35s ease; border-radius: 999px; }
.form-steps-label { font-family: var(--font-mono); font-size: 12px; color: rgba(250, 248, 243, 0.55); margin-bottom: 24px; }

.form-step { display: none; animation: fadeIn 0.35s ease; }
.form-step.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.form-step h3 { color: var(--paper); font-size: 21px; margin-bottom: 20px; }

.option-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.option-grid-2 { grid-template-columns: 1fr; }
.option-btn {
  background: var(--ink-2);
  border: 1.5px solid var(--line-light);
  color: var(--paper);
  padding: 15px 16px;
  border-radius: var(--radius-sm);
  text-align: left;
  font-size: 14.5px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.option-btn:hover { border-color: var(--marigold); }
.option-btn.selected { border-color: var(--marigold); background: rgba(242, 169, 59, 0.14); }
.option-btn:focus-visible { outline: 3px solid var(--marigold); outline-offset: 2px; }

.text-input, .textarea {
  width: 100%;
  background: var(--ink-2);
  border: 1.5px solid var(--line-light);
  color: var(--paper);
  padding: 15px 16px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: var(--font-body);
  margin-bottom: 14px;
}
.text-input::placeholder, .textarea::placeholder { color: rgba(250, 248, 243, 0.4); }
.text-input:focus, .textarea:focus { outline: 2px solid var(--marigold); border-color: var(--marigold); }
.textarea { min-height: 90px; resize: vertical; }

.btn-step-next, .btn-submit { width: 100%; margin-top: 6px; }
.form-error { color: var(--coral); font-size: 13.5px; min-height: 18px; margin-bottom: 8px; }

.form-nav { margin-top: 22px; }
.form-back {
  background: none; border: none; color: rgba(250, 248, 243, 0.6);
  font-size: 13.5px; cursor: pointer; padding: 4px 0;
}
.form-back:hover { color: var(--paper); }
.form-back[hidden], .form-nav[hidden] { display: none; }

.form-success { text-align: center; padding: 20px 0; }
.success-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--teal); color: var(--paper);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; margin: 0 auto 18px;
}
.form-success h3 { color: var(--paper); }
.form-success p { color: rgba(250, 248, 243, 0.75); }
.success-alt a { color: var(--marigold); font-weight: 600; }

/* ===================== CONTACT BAND ===================== */
.contact-band { background: var(--marigold); padding: 56px 0; }
.contact-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.contact-band h2 { color: var(--ink); margin-bottom: 6px; font-size: 26px; }
.contact-band p { color: rgba(22, 35, 46, 0.75); margin-bottom: 0; }
.contact-cta {
  display: flex; align-items: center; gap: 14px;
  background: var(--ink); color: var(--paper);
  padding: 16px 26px; border-radius: 999px;
  font-family: var(--font-mono);
  box-shadow: 0 14px 30px -14px rgba(14, 31, 51, 0.5);
  transition: transform 0.15s ease;
}
.contact-cta:hover { transform: translateY(-2px); }
.contact-cta-icon { font-size: 22px; }
.contact-cta strong { display: block; font-size: 17px; }
.contact-cta small { color: rgba(250, 248, 243, 0.6); font-size: 11px; }

/* ===================== FOOTER ===================== */
.site-footer { background: var(--ink); color: rgba(250, 248, 243, 0.55); padding: 40px 0; }
.footer-inner { text-align: center; }
.footer-brand { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 10px; }
.footer-brand .brand-name { color: var(--paper); font-size: 16px; }
.footer-domain { font-family: var(--font-mono); color: var(--marigold); font-size: 13px; margin-bottom: 6px; }
.footer-copy { font-size: 12.5px; margin-bottom: 0; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 880px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; max-width: 360px; margin: 0 auto; }
  .problem-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .topbar-call-text small { display: none; }
  .problem-grid { grid-template-columns: 1fr; }
  .option-grid { grid-template-columns: 1fr; }
  .form-card { padding: 24px 18px; }
  .contact-inner { flex-direction: column; align-items: flex-start; }
  .contact-cta { width: 100%; justify-content: center; }
}
