:root {
  /* Luxury palette — deep chocolate-anthracite + champagne gold, tuned for
     high-end salons and aesthetic clinics. Warm neutrals throughout so gold
     reads as precious metal, never as a cool "tech" accent. */
  --bg-page: #121212;
  --bg-surface: #1c1815;
  --bg-raised: #241f1a;
  --border: rgba(212, 175, 55, 0.16);
  --ink-primary: #f3ecd9;
  --cream: #f3ecd9;
  --ink-secondary: #b8ad98;
  --ink-muted: #8a8071;
  --accent: #d4af37;
  --accent-dim: #9c7c24;
  --on-accent: #1a1410;
  --error: #e0603d;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", Consolas, monospace;

  --max-width: 1120px;

  /* Documented z-index scale — nothing in this file uses a value outside it. */
  --z-content: 1;
  --z-sticky: 10;
  --z-grain: 60;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg-page);
  color: var(--ink-primary);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* Fixed film-grain layer — the single biggest cheap fix for flat digital
   surfaces. Subtle enough to read as material, not as noise. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: var(--z-grain);
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--accent);
  color: var(--on-accent);
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.15s ease;
}

.skip-link:focus { top: 16px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  margin: 0;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h2 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 20px; }
h3 { font-size: 19px; margin-bottom: 8px; font-weight: 600; }

p { color: var(--ink-secondary); margin: 0; text-wrap: pretty; }

/* A quiet editorial label, not a shouty SaaS tech-tag: lowercase italic
   serif rather than the ubiquitous uppercase monospace pill. */
.eyebrow {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.01em;
  color: var(--accent);
  margin: 0 0 14px 0;
}

.section-inner {
  position: relative;
  z-index: var(--z-content);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 96px 32px 116px 32px;
}

.section-inner.narrow { max-width: 720px; }

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 11px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.3s ease, background-position 0.5s ease;
}

@media (prefers-reduced-motion: reduce) {
  .btn:active { transform: none; }
}

/* Premium brushed-gold treatment: a metallic sweep gradient + a soft outer
   glow, so the primary CTA reads as precious metal, not flat paint. */
.btn-primary {
  background: linear-gradient(135deg, #a3811f 0%, #d4af37 28%, #f8ecc4 50%, #d4af37 72%, #a3811f 100%);
  background-size: 220% 220%;
  background-position: 0% 50%;
  color: var(--on-accent);
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.45),
    inset 0 -2px 3px 0 rgba(0, 0, 0, 0.25),
    0 6px 18px -4px rgba(212, 175, 55, 0.55),
    0 0 20px 1px rgba(212, 175, 55, 0.25);
}

.btn-primary:hover {
  transform: translateY(-1px);
  background-position: 100% 50%;
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.5),
    inset 0 -2px 3px 0 rgba(0, 0, 0, 0.25),
    0 10px 26px -4px rgba(212, 175, 55, 0.7),
    0 0 30px 4px rgba(212, 175, 55, 0.4);
}

.btn-primary:active {
  transform: translateY(0) scale(0.98);
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.4),
    inset 0 -1px 2px 0 rgba(0, 0, 0, 0.3),
    0 4px 12px -4px rgba(212, 175, 55, 0.5);
}

@media (prefers-reduced-motion: reduce) {
  .btn-primary { transition: box-shadow 0.3s ease; }
}

/* A quiet text link, not a second competing button — reduces the classic
   "one filled + one bordered pill" visual noise to a single strong CTA. */
.text-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 13px 4px;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.text-cta:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.text-cta-arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}

.text-cta:hover .text-cta-arrow { transform: translateY(2px); }

@media (prefers-reduced-motion: reduce) {
  .text-cta:hover .text-cta-arrow { transform: none; }
}

.btn-small { padding: 9px 18px; font-size: 13px; }

/* Topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: rgba(18, 18, 18, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
}

.brand-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow:
    0 0 6px 1px var(--accent),
    0 0 14px 4px rgba(212, 175, 55, 0.65),
    0 0 26px 9px rgba(212, 175, 55, 0.35);
  animation: brandGlow 2.4s ease-in-out infinite;
}

@keyframes brandGlow {
  0%, 100% {
    box-shadow:
      0 0 6px 1px var(--accent),
      0 0 14px 4px rgba(212, 175, 55, 0.65),
      0 0 26px 9px rgba(212, 175, 55, 0.35);
  }
  50% {
    box-shadow:
      0 0 9px 2px var(--accent),
      0 0 20px 6px rgba(212, 175, 55, 0.8),
      0 0 36px 13px rgba(212, 175, 55, 0.45);
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand-dot { animation: none; }
}

.topnav {
  display: flex;
  gap: 32px;
}

.topnav a {
  text-decoration: none;
  color: var(--ink-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s ease;
}

.topnav a:hover { color: var(--ink-primary); }

.topnav a.active {
  color: var(--accent);
}

@media (max-width: 720px) {
  .topnav { display: none; }
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.9;
  mask-image: radial-gradient(circle at 68% 45%, black 0%, black 45%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 68% 45%, black 0%, black 45%, transparent 72%);
}

.hero-inner {
  position: relative;
  z-index: var(--z-content);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 88px 32px 112px 32px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
  perspective: 1400px;
}

@media (max-width: 920px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 56px; }
}

.hero-copy h1 {
  font-size: clamp(36px, 5.4vw, 58px);
  margin: 10px 0 22px 0;
}

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

.hero-sub {
  font-size: 17px;
  max-width: 46ch;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Hero demo card */
.demo-frame {
  background: rgba(28, 24, 21, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 22px;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(10, 6, 2, 0.6);
  transform-style: preserve-3d;
  will-change: transform;
}

/* 3D tilt (JS sets --tilt-x / --tilt-y on pointer move) */
[data-tilt] {
  transform: perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform 0.2s ease-out;
}

@media (prefers-reduced-motion: reduce) {
  [data-tilt] { transform: none !important; transition: none !important; }
}

.demo-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}

.demo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px 1px var(--accent);
  animation: blink 1.8s ease-in-out infinite;
}

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

.demo-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-muted);
}

.demo-waveform {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 32px;
  margin-bottom: 18px;
}

.demo-waveform .bar {
  width: 3px;
  border-radius: 2px;
  background: var(--cream);
  opacity: 0.55;
  transition: height 0.15s ease;
}

.demo-transcript {
  flex: 1;
  font-size: 14.5px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 150px;
}

.demo-line {
  max-width: 88%;
  padding: 9px 13px;
  border-radius: 12px;
  opacity: 0;
  transform: translateY(6px);
  animation: lineIn 0.35s ease forwards;
}

@keyframes lineIn { to { opacity: 1; transform: translateY(0); } }

.demo-line.assistant {
  align-self: flex-start;
  background: rgba(212, 175, 55, 0.12);
  color: var(--ink-primary);
  border: 1px solid rgba(212, 175, 55, 0.22);
}

.demo-line.customer {
  align-self: flex-end;
  background: var(--bg-raised);
  color: var(--ink-secondary);
}

.demo-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-raised);
  border: 1px solid var(--accent-dim);
  border-radius: 12px;
  padding: 12px 16px;
  margin-top: 14px;
  opacity: 0;
  transform: translateY(8px) scale(0.98);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.demo-card.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.demo-card-check {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.demo-card-title { font-weight: 600; font-size: 14px; }
.demo-card-sub { font-family: var(--font-mono); font-size: 12px; color: var(--ink-muted); }

/* Problem */
.problem {
  position: relative;
  overflow: hidden;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
}

.problem::before, .problem::after {
  content: "";
  position: absolute;
  width: 640px;
  height: 640px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.16) 0%, transparent 68%);
  pointer-events: none;
}

.problem::before { inset: -20% -10% auto auto; }
.problem::after { inset: auto auto -20% -10%; }

.problem-body { font-size: 17px; max-width: 62ch; }

/* Ambient side 3D shapes — fill the gutter next to the centered content on
   wide screens only; never compete with the copy, never shown where there
   isn't real space for them. */
.how, .features { position: relative; }

.side-orb {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 200px;
  height: 200px;
  pointer-events: none;
  opacity: 0.85;
  display: none;
}

.side-orb-left { left: 40px; }
.side-orb-right { right: 40px; }

@media (min-width: 1440px) {
  .side-orb { display: block; }
}

@media (min-width: 1650px) {
  .side-orb { width: 240px; height: 240px; }
  .side-orb-left { left: 80px; }
  .side-orb-right { right: 80px; }
}

/* How it works — a real 3-step sequence, so numbering earns its place here.
   A large ghost numeral (CSS counter, not duplicated markup) gives each step
   depth instead of the flat "icon + text" card. */
.steps {
  list-style: none;
  counter-reset: step;
  margin: 48px 0 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 40px;
}

@media (max-width: 800px) {
  .steps { grid-template-columns: 1fr; }
}

.step {
  position: relative;
  counter-increment: step;
  padding-top: 8px;
}

.step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: -30px;
  left: -4px;
  font-family: var(--font-display);
  font-size: 88px;
  font-weight: 600;
  color: var(--accent);
  opacity: 0.1;
  line-height: 1;
  pointer-events: none;
}

.step-num { display: none; }

.step h3, .step p { position: relative; }

.step p { font-size: 15px; }

/* Features */
.features { background: var(--bg-surface); border-bottom: 1px solid var(--border); }

/* An alternating list of rows rather than a card grid — each feature gets
   full width to breathe, icon and text swap sides every other row so the
   column reads as considered, not a repeated template. */
.feature-list {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
}

.feature-row {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  padding: 30px 0;
  border-bottom: 1px solid var(--border);
}

.feature-row:first-child { padding-top: 0; }
.feature-row:last-child { border-bottom: none; }

@media (min-width: 700px) {
  .feature-row:nth-child(even) { flex-direction: row-reverse; }
  .feature-row:nth-child(even) .feature-text { text-align: right; }
}

@media (max-width: 699px) {
  .feature-row { gap: 20px; }
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(212, 175, 55, 0.1);
  color: var(--accent);
  flex-shrink: 0;
}

.feature-icon svg {
  width: 22px;
  height: 22px;
}

.feature-text { flex: 1; }

.feature-text p { font-size: 15px; max-width: 56ch; }

@media (min-width: 700px) {
  .feature-row:nth-child(even) .feature-text p { margin-left: auto; }
}

/* FAQ */
.faq-list { counter-reset: faq; }

.faq-item {
  counter-increment: faq;
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--ink-primary);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  padding: 22px 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 18px;
  transition: color 0.15s ease;
}

.faq-question::before {
  content: counter(faq, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-muted);
  flex-shrink: 0;
}

.faq-question span:first-of-type { flex: 1; }

.faq-question:hover { color: var(--accent); }

.faq-icon {
  color: var(--accent);
  font-family: var(--font-mono);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.faq-item.open .faq-answer { max-height: 240px; }

.faq-answer p {
  padding: 0 0 22px 30px;
  font-size: 15px;
  max-width: 62ch;
}

/* CTA / Form */
.cta-sub { margin-bottom: 36px; font-size: 16px; }

.lead-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

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

@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
}

.lead-form label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 13px;
  color: var(--ink-secondary);
}

.optional { color: var(--ink-muted); font-weight: 400; }

.lead-form input, .lead-form textarea {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--ink-primary);
  font-family: var(--font-body);
  font-size: 14px;
  resize: vertical;
}

.lead-form input:focus, .lead-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.lead-form .btn { align-self: flex-start; margin-top: 6px; }

.form-status {
  font-size: 13px;
  color: var(--ink-secondary);
  min-height: 18px;
}

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

/* Footer */
.footer {
  padding: 40px 0 60px 0;
  border-top: 1px solid var(--border);
}

.footer .section-inner {
  padding: 0 32px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.footer-note {
  font-size: 13px;
  color: var(--ink-muted);
  margin-top: 8px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 13px;
  color: var(--ink-secondary);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-links a:hover { color: var(--accent); }

/* Legal page (privacy.html) */
.legal-page { padding-top: 24px; }

.legal-title {
  font-size: clamp(28px, 4vw, 38px);
  margin-bottom: 10px;
}

.legal-updated {
  font-size: 13px;
  color: var(--ink-muted);
  margin-bottom: 40px;
}

.legal-body h3 {
  font-size: 17px;
  margin-top: 32px;
}

.legal-body p { font-size: 15.5px; max-width: 62ch; }

.legal-body a { color: var(--accent); }

.legal-note {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--ink-muted);
}
