/* ============================================================
   Lake Country AI — Design System
   Theme: glacial lake country at dusk. Kettle moraines, pine,
   water, copper light. Topographic contour lines as motif.
   Type: Fraunces (display serif) + Inter (body) + JetBrains Mono.
   ============================================================ */

:root {
  /* Lake-at-dusk ink */
  --ink:        #0c1a21;
  --ink-2:      #10242d;
  --ink-3:      #16313b;
  --ink-deep:   #07141a;

  /* Warm linen / paper */
  --linen:      #f1e9db;
  --linen-2:    #e8ddc9;
  --paper:      #faf5ec;

  /* Copper — the load-bearing accent */
  --copper:       #c0703c;
  --copper-light: #d88b52;
  --copper-soft:  #e2a878;
  --copper-glow:  rgba(192, 112, 60, .28);
  --copper-deep:  #a8531f;   /* accessible copper for text on LIGHT backgrounds */
  --copper-pine:  #f4cda7;   /* legible accent on the pine background */

  /* Pine — secondary, calm */
  --pine:       #2f5d50;
  --pine-light: #41796a;

  /* Text */
  --on-dark:        #f1e9db;
  --on-dark-muted:  #9bafac;
  --on-dark-faint:  rgba(241, 233, 219, .5);
  --on-dark-link:   #cdd9d6;   /* brighter resting color for nav/footer links */
  --on-light:       #16252a;
  --on-light-muted: #586a64;

  /* Lines & surfaces */
  --line-dark:  rgba(241, 233, 219, .12);
  --line-light: rgba(22, 37, 42, .12);
  --glass-dark: rgba(13, 30, 37, .55);

  /* Motion / shadow */
  --shadow-lg: 0 40px 120px rgba(0, 0, 0, .45);
  --shadow-md: 0 24px 60px rgba(7, 20, 26, .35);
  --ease: cubic-bezier(.22, 1, .36, 1);

  --maxw: 1200px;
}

/* ----------------------------------------------------------- Reset */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--ink);
  color: var(--on-dark);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; }
::selection { background: var(--copper); color: var(--paper); }

/* ----------------------------------------------------------- Type scale */
.display, h1, h2, h3 {
  font-family: "Fraunces", "Times New Roman", serif;
  font-weight: 500;
  font-optical-sizing: auto;
  letter-spacing: -.02em;
  line-height: 1.02;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.9rem, 6.5vw, 5.6rem); }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.6rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.7rem); line-height: 1.15; }
p  { margin: 0 0 1rem; }

/* italic copper accent on the load-bearing words */
.accent {
  font-style: italic;
  color: var(--copper-soft);   /* legible on dark backgrounds (hero, dark, deep) */
  font-weight: 400;
}
.section-light .accent,
.section-paper .accent { color: var(--copper-deep); }   /* AA on linen / paper */
.section-pine .accent  { color: var(--copper-pine); }   /* legible on pine green */

.eyebrow {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  text-transform: uppercase;
  letter-spacing: .28em;
  font-size: .72rem;
  font-weight: 600;
  color: var(--copper-deep);   /* AA on light backgrounds by default */
  margin: 0 0 1.4rem;
  display: inline-flex;
  align-items: center;
  gap: .8rem;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: currentColor;
  display: inline-block;
}
.hero .eyebrow,
.page-hero .eyebrow,
.section-dark .eyebrow,
.section-deep .eyebrow,
.section-pine .eyebrow { color: var(--copper-soft); }   /* legible on dark/pine */

.lead {
  font-size: clamp(1.05rem, 1.4vw, 1.3rem);
  line-height: 1.7;
  max-width: 60ch;
}
.muted-dark  { color: var(--on-dark-muted); }
.muted-light { color: var(--on-light-muted); }

/* ----------------------------------------------------------- Layout */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(20px, 5vw, 48px); }
.section { position: relative; padding: clamp(80px, 11vw, 160px) 0; overflow: hidden; }
.section-dark  { background: var(--ink);   color: var(--on-dark); }
.section-deep  { background: var(--ink-deep); color: var(--on-dark); }
.section-light { background: var(--linen);  color: var(--on-light); }
.section-paper { background: var(--paper);  color: var(--on-light); }
.section-pine  { background: var(--pine);   color: var(--on-dark); }

/* shoreline transition: a soft torn edge between dark & light */
.shore {
  position: absolute; left: 0; right: 0; height: 80px; z-index: 2;
  pointer-events: none;
}
.shore-top { top: -1px; }
.shore-bottom { bottom: -1px; }

/* ----------------------------------------------------------- Topographic motif */
.topo {
  position: absolute; inset: 0;
  z-index: 0; pointer-events: none;
  opacity: .5;
}
.topo svg { width: 100%; height: 100%; }
.topo path { fill: none; }
.topo-dark path  { stroke: rgba(241, 233, 219, .09); }
.topo-light path { stroke: rgba(22, 37, 42, .07); }
.topo-copper path { stroke: var(--copper-glow); }

.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  opacity: .035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ----------------------------------------------------------- Header */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px clamp(20px, 5vw, 48px);
  transition: background .4s var(--ease), padding .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(7, 20, 26, .82);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--line-dark);
  padding-top: 14px; padding-bottom: 14px;
}
.brand { display: flex; align-items: center; gap: 13px; color: var(--on-dark); }
.brand-mark {
  position: relative;
  width: 40px; height: 40px; flex: none;
  display: grid; place-items: center;
  border-radius: 11px;
  background:
    radial-gradient(120% 120% at 30% 20%, var(--copper-light), var(--copper) 55%, #8f4f27);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 8px 22px var(--copper-glow);
  overflow: hidden;
}
.brand-mark svg { width: 26px; height: 26px; }
.brand-name { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name b {
  font-family: "Fraunces", serif; font-weight: 600; font-size: 1.08rem;
  letter-spacing: -.01em;
}
.brand-name small {
  font-family: "JetBrains Mono", monospace; font-size: .58rem;
  letter-spacing: .26em; text-transform: uppercase; color: var(--on-dark-muted);
}
.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  font-size: .9rem; font-weight: 500; color: var(--on-dark-link);
  position: relative; padding: 4px 0; transition: color .25s var(--ease);
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1px; width: 0;
  background: var(--copper-soft); transition: width .3s var(--ease);
}
.nav a:hover, .nav a.active { color: var(--on-dark); }
.nav a.header-cta { color: #fff; }
.nav a:focus-visible { outline: 3px solid var(--copper-soft); outline-offset: 4px; border-radius: 4px; }
.nav a:hover::after, .nav a.active::after { width: 100%; }

.menu-btn {
  display: none; background: none; border: 0; color: var(--on-dark);
  width: 44px; height: 44px; cursor: pointer; position: relative;
}
.menu-btn span {
  position: absolute; left: 11px; right: 11px; height: 2px; background: currentColor;
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.menu-btn span:nth-child(1) { top: 16px; }
.menu-btn span:nth-child(2) { top: 22px; }
.menu-btn span:nth-child(3) { top: 28px; }
.menu-btn.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-btn.open span:nth-child(2) { opacity: 0; }
.menu-btn.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ----------------------------------------------------------- Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 54px; padding: 0 28px; border-radius: 999px;
  font-weight: 600; font-size: .96rem; letter-spacing: .01em;
  cursor: pointer; border: 1px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:focus-visible { outline: 3px solid var(--copper-soft); outline-offset: 3px; }
.btn-primary {
  background: linear-gradient(135deg, #a8531f 0%, #8f4516 100%);
  color: #fff;
  box-shadow: 0 14px 34px var(--copper-glow);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 20px 46px var(--copper-glow); filter: brightness(1.08); }
.btn-ghost-dark {
  background: rgba(241, 233, 219, .06); color: var(--on-dark);
  border-color: rgba(241, 233, 219, .35);
}
.btn-ghost-dark:hover { background: rgba(241, 233, 219, .12); border-color: var(--copper-soft); transform: translateY(-3px); }
.btn-ghost-light {
  background: transparent; color: var(--on-light); border-color: rgba(22, 37, 42, .35);
}
.btn-ghost-light:hover { background: rgba(22, 37, 42, .06); border-color: var(--copper-deep); transform: translateY(-3px); }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: .88rem; }

.header-cta { display: inline-flex; }

/* Global keyboard-focus visibility for all interactive elements */
a:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
.demo-replies button:focus-visible,
.menu-btn:focus-visible {
  outline: 3px solid var(--copper-soft);
  outline-offset: 3px;
  border-radius: 6px;
}
.section-light a:focus-visible,
.section-paper a:focus-visible,
.section-light summary:focus-visible,
.section-paper summary:focus-visible { outline-color: var(--copper-deep); }

/* ----------------------------------------------------------- Hero */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  padding: 140px 0 90px;
  background:
    radial-gradient(120% 90% at 75% 8%, rgba(192,112,60,.16), transparent 45%),
    radial-gradient(90% 80% at 12% 95%, rgba(47,93,80,.22), transparent 55%),
    linear-gradient(180deg, var(--ink-deep), var(--ink) 60%, var(--ink-2));
  color: var(--on-dark);
}
.hero-layer {
  position: absolute; inset: -10% 0 -10% 0; z-index: 0; pointer-events: none;
  will-change: transform;
}
.hero-layer svg { width: 100%; height: 120%; }
.hero-inner { position: relative; z-index: 3; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center;
}
.hero h1 { margin-bottom: 1.6rem; }
.hero .lead { color: var(--on-dark-muted); margin-bottom: 2.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 2.6rem; }

.hero-locale {
  display: flex; align-items: center; gap: 16px;
  font-family: "JetBrains Mono", monospace; font-size: .72rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-faint);
}
.hero-locale span { display: inline-flex; align-items: center; gap: 8px; }
.hero-locale .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--copper-soft); box-shadow: 0 0 12px var(--copper-soft); }

/* Hero visual: floating instrument panel */
.instrument {
  position: relative; z-index: 3;
  border-radius: 26px; padding: 22px;
  background: linear-gradient(160deg, rgba(22,49,59,.9), rgba(10,28,35,.92));
  border: 1px solid var(--line-dark);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(12px);
}
.instrument-top {
  display: flex; align-items: center; gap: 8px;
  font-family: "JetBrains Mono", monospace; font-size: .68rem;
  color: var(--on-dark-muted); margin-bottom: 18px; letter-spacing: .1em;
}
.instrument-top i { width: 9px; height: 9px; border-radius: 50%; background: rgba(241,233,219,.18); }
.instrument-top i:first-child { background: var(--copper); }
.instrument-top b { margin-left: auto; font-weight: 400; text-transform: uppercase; }
.gauge-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.gauge {
  padding: 16px; border-radius: 16px;
  background: rgba(7, 20, 26, .55); border: 1px solid var(--line-dark);
}
.gauge label { font-family: "JetBrains Mono", monospace; font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-muted); }
.gauge b { display: block; font-family: "Fraunces", serif; font-size: 2rem; font-weight: 500; margin: 6px 0 2px; }
.gauge em { font-style: normal; font-size: .72rem; color: var(--copper-soft); }
.flow {
  display: flex; align-items: center; gap: 10px; padding: 14px;
  border-radius: 16px; background: rgba(7,20,26,.4); border: 1px solid var(--line-dark);
  margin-bottom: 14px;
}
.flow-node {
  flex: none; padding: 9px 12px; border-radius: 999px; font-size: .72rem; font-weight: 600;
  background: rgba(241,233,219,.06); white-space: nowrap;
}
.flow-node.lit { background: var(--copper-glow); color: var(--copper-soft); border: 1px solid rgba(216,139,82,.4); }
.flow-dash { flex: 1; height: 1px; background: repeating-linear-gradient(90deg, var(--line-dark) 0 5px, transparent 5px 10px); }
.wire { display: grid; gap: 9px; }
.bubble { max-width: 84%; padding: 11px 14px; border-radius: 14px; font-size: .82rem; line-height: 1.45; }
.bubble.them { background: rgba(241,233,219,.07); margin-left: auto; border-bottom-right-radius: 4px; }
.bubble.ai { background: rgba(192,112,60,.16); border: 1px solid rgba(216,139,82,.3); border-bottom-left-radius: 4px; }

/* ----------------------------------------------------------- Section heading block */
.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head p { font-size: 1.1rem; }
.section-dark  .section-head p { color: var(--on-dark-muted); }
.section-light .section-head p, .section-paper .section-head p { color: var(--on-light-muted); }

/* ----------------------------------------------------------- Pain grid */
.pain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pain {
  display: flex; align-items: center; gap: 14px;
  padding: 22px 24px; border-radius: 18px;
  background: var(--paper); border: 1px solid var(--line-light);
  font-weight: 500; transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.pain:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.pain svg { width: 22px; height: 22px; flex: none; color: var(--copper); }

/* ----------------------------------------------------------- Services (numbered) */
.services-list { display: grid; gap: 0; }
.service {
  display: grid; grid-template-columns: 120px 1fr auto; gap: 40px; align-items: start;
  padding: 46px 0; border-top: 1px solid var(--line-dark);
  transition: padding .4s var(--ease);
}
.service:last-child { border-bottom: 1px solid var(--line-dark); }
.service-num {
  font-family: "Fraunces", serif; font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 400; color: var(--copper-soft); line-height: 1;
}
.service-body h3 { margin-bottom: .6rem; }
.service-body p { color: var(--on-dark-muted); max-width: 56ch; margin-bottom: 1rem; }
.service-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.service-tags span {
  font-family: "JetBrains Mono", monospace; font-size: .68rem; letter-spacing: .06em;
  padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line-dark); color: var(--on-dark-muted);
}
.service-link {
  display: inline-flex; align-items: center; gap: 8px; align-self: center;
  font-weight: 600; color: var(--copper-soft); white-space: nowrap;
}
.service-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.service-link svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.service:hover .service-link svg { transform: translateX(4px); }
.service:hover { padding-left: 12px; padding-right: 12px; }

/* ----------------------------------------------------------- Feature cards */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card-grid.two { grid-template-columns: repeat(2, 1fr); }
.feature-card {
  padding: 32px; border-radius: 22px;
  background: rgba(241, 233, 219, .03); border: 1px solid var(--line-dark);
  transition: transform .35s var(--ease), border-color .35s var(--ease), background .35s var(--ease);
}
.section-light .feature-card, .section-paper .feature-card {
  background: rgba(255,255,255,.5); border-color: var(--line-light);
}
.feature-card:hover { transform: translateY(-6px); border-color: var(--copper-soft); }
.feature-icon {
  width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center;
  margin-bottom: 22px;
  background: linear-gradient(135deg, var(--copper-light), var(--copper));
  color: var(--paper); box-shadow: 0 10px 26px var(--copper-glow);
}
.feature-icon svg { width: 24px; height: 24px; }
.feature-card h3 { margin-bottom: .5rem; }
.feature-card p { margin: 0; }
.section-dark .feature-card p { color: var(--on-dark-muted); }
.section-light .feature-card p, .section-paper .feature-card p { color: var(--on-light-muted); }

/* ----------------------------------------------------------- Steps / process */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding-top: 40px; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; top: 0; left: 0;
  font-family: "JetBrains Mono", monospace; font-size: .8rem; letter-spacing: .1em;
  color: var(--copper-deep);
}
.section-dark .step::before,
.section-deep .step::before { color: var(--copper-soft); }
.step::after {
  content: ""; position: absolute; top: 6px; left: 42px; right: -12px; height: 1px;
  background: var(--line-light);
}
.step:last-child::after { display: none; }
.section-dark .step::after { background: var(--line-dark); }
.step h3 { font-size: 1.25rem; margin-bottom: .4rem; }
.step p { margin: 0; font-size: .96rem; }
.section-dark .step p { color: var(--on-dark-muted); }
.section-light .step p, .section-paper .step p { color: var(--on-light-muted); }

/* ----------------------------------------------------------- Stat band */
.stat-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.stat { border-left: 1px solid var(--line-dark); padding-left: 22px; }
.section-light .stat, .section-paper .stat { border-color: var(--line-light); }
.stat b {
  display: block; font-family: "Fraunces", serif; font-weight: 500;
  font-size: clamp(2.4rem, 4.5vw, 3.4rem); line-height: 1; margin-bottom: .3rem;
}
.stat span { font-size: .92rem; }
.section-dark .stat span { color: var(--on-dark-muted); }
.section-light .stat span, .section-paper .stat span { color: var(--on-light-muted); }

/* ----------------------------------------------------------- Demo */
.demo-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 50px; align-items: center; }
.demo-panel {
  border-radius: 24px; overflow: hidden;
  background: linear-gradient(160deg, rgba(22,49,59,.92), rgba(10,28,35,.95));
  border: 1px solid var(--line-dark); box-shadow: var(--shadow-lg);
}
.demo-bar {
  display: flex; align-items: center; gap: 10px; padding: 16px 20px;
  border-bottom: 1px solid var(--line-dark);
  font-family: "JetBrains Mono", monospace; font-size: .7rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--on-dark-muted);
}
.demo-bar .pulse { width: 8px; height: 8px; border-radius: 50%; background: #6fd6a6; box-shadow: 0 0 10px #6fd6a6; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
.demo-window {
  min-height: 300px; max-height: 380px; overflow-y: auto;
  padding: 22px; display: grid; gap: 13px; align-content: start;
}
.demo-msg { max-width: 86%; padding: 13px 16px; border-radius: 16px; font-size: .92rem; line-height: 1.5; animation: rise .4s var(--ease); }
.demo-msg.ai { background: rgba(192,112,60,.16); border: 1px solid rgba(216,139,82,.28); border-bottom-left-radius: 4px; }
.demo-msg.user { background: rgba(241,233,219,.08); margin-left: auto; border-bottom-right-radius: 4px; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.demo-replies { display: flex; flex-wrap: wrap; gap: 9px; padding: 18px 22px; border-top: 1px solid var(--line-dark); }
.demo-replies button {
  background: rgba(241,233,219,.05); border: 1px solid var(--line-dark); color: var(--on-dark);
  border-radius: 999px; padding: 10px 16px; font-size: .84rem; font-weight: 500; cursor: pointer;
  transition: background .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.demo-replies button:hover { background: var(--copper-glow); border-color: var(--copper-soft); transform: translateY(-2px); }

/* ----------------------------------------------------------- Industries marquee */
.industry-track { display: flex; flex-wrap: wrap; gap: 12px; }
.industry-track span {
  font-family: "JetBrains Mono", monospace; font-size: .8rem; letter-spacing: .04em;
  padding: 12px 18px; border-radius: 999px; border: 1px solid var(--line-light);
  color: var(--on-light); background: var(--paper);
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.section-dark .industry-track span { border-color: var(--line-dark); color: var(--on-dark); background: rgba(241,233,219,.03); }
.industry-track span:hover { background: var(--copper); color: var(--paper); border-color: var(--copper); transform: translateY(-3px); }

/* ----------------------------------------------------------- Quote / testimonial */
.quote { max-width: 900px; margin: 0 auto; text-align: center; }
.quote blockquote {
  font-family: "Fraunces", serif; font-weight: 400; font-style: italic;
  font-size: clamp(1.5rem, 3.2vw, 2.4rem); line-height: 1.3; margin: 0 0 1.6rem;
}
.quote cite { font-style: normal; font-family: "JetBrains Mono", monospace; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--copper-pine); }

/* ----------------------------------------------------------- Audit / CTA + form */
.audit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.audit-list { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: 14px; }
.audit-list li { display: flex; gap: 14px; align-items: flex-start; }
.audit-list svg { width: 22px; height: 22px; color: var(--copper-soft); flex: none; margin-top: 1px; }
.section-light .audit-list svg, .section-paper .audit-list svg { color: var(--copper); }

.form-card {
  padding: clamp(26px, 4vw, 40px); border-radius: 26px;
  background: linear-gradient(165deg, rgba(22,49,59,.6), rgba(10,28,35,.7));
  border: 1px solid var(--line-dark); box-shadow: var(--shadow-md);
}
.section-light .form-card, .section-paper .form-card {
  background: #fff; border-color: var(--line-light); box-shadow: var(--shadow-md);
}
.form-row { display: grid; gap: 7px; margin-bottom: 16px; }
.form-row.two { grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row.two > label { display: grid; gap: 7px; }
label { font-size: .82rem; font-weight: 600; letter-spacing: .02em; }
.section-dark label { color: var(--on-dark); }
.section-light label, .section-paper label { color: var(--on-light); }
input, textarea, select {
  width: 100%; font: inherit; padding: 14px 16px; border-radius: 13px;
  border: 1px solid var(--line-dark); background: rgba(7,20,26,.5); color: var(--on-dark);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.section-light input, .section-light textarea, .section-light select,
.section-paper input, .section-paper textarea, .section-paper select {
  background: var(--paper); color: var(--on-light); border-color: var(--line-light);
}
input::placeholder, textarea::placeholder { color: var(--on-dark-faint); }
.section-light input::placeholder, .section-paper input::placeholder,
.section-light textarea::placeholder, .section-paper textarea::placeholder { color: var(--on-light-muted); }
input:focus, textarea:focus, select:focus {
  outline: none; border-color: var(--copper); box-shadow: 0 0 0 3px var(--copper-glow);
}
textarea { min-height: 116px; resize: vertical; }
.form-note { font-size: .8rem; margin: 12px 0 0; }
.section-dark .form-note { color: var(--on-dark-muted); }
.section-light .form-note, .section-paper .form-note { color: var(--on-light-muted); }
.form-card .btn { width: 100%; margin-top: 6px; }

/* ----------------------------------------------------------- Page hero (interior) */
.page-hero {
  position: relative; padding: 180px 0 90px;
  background:
    radial-gradient(100% 80% at 80% 0%, rgba(192,112,60,.14), transparent 50%),
    linear-gradient(180deg, var(--ink-deep), var(--ink));
  overflow: hidden;
}
.page-hero .crumbs {
  font-family: "JetBrains Mono", monospace; font-size: .72rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--on-dark-link); margin-bottom: 1.6rem;
}
.page-hero .crumbs a { color: var(--copper-soft); }
.page-hero .crumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }
.page-hero h1 { max-width: 16ch; }
.page-hero .lead { color: var(--on-dark-muted); margin-top: 1.4rem; }
.page-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2.4rem; }

/* ----------------------------------------------------------- Split feature */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split.flip .split-media { order: 2; }
.split-media {
  border-radius: 24px; overflow: hidden; position: relative;
  border: 1px solid var(--line-dark); box-shadow: var(--shadow-md);
  background: linear-gradient(160deg, var(--ink-2), var(--ink-deep)); aspect-ratio: 4 / 3;
}
.section-light .split-media, .section-paper .split-media { border-color: var(--line-light); }
.split ul { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: 12px; }
.split li { display: flex; gap: 12px; align-items: flex-start; }
.split li svg { width: 20px; height: 20px; color: var(--copper); flex: none; margin-top: 3px; }
.section-dark .split li svg { color: var(--copper-soft); }

/* ----------------------------------------------------------- FAQ */
.faq { max-width: 800px; margin: 0 auto; }
.faq details {
  border-bottom: 1px solid var(--line-light); padding: 20px 0;
}
.section-dark .faq details { border-color: var(--line-dark); }
.faq summary {
  cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between;
  font-family: "Fraunces", serif; font-size: 1.2rem; font-weight: 500; gap: 20px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: "JetBrains Mono", monospace; color: var(--copper-deep); transition: transform .3s var(--ease); }
.section-dark .faq summary::after { color: var(--copper-soft); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 14px 0 0; }
.section-dark .faq p { color: var(--on-dark-muted); }
.section-light .faq p, .section-paper .faq p { color: var(--on-light-muted); }

/* ----------------------------------------------------------- Big CTA */
.cta-band { position: relative; text-align: center; }
.cta-band h2 { max-width: 18ch; margin-left: auto; margin-right: auto; }
.cta-band .lead { margin: 0 auto 2.2rem; color: var(--on-dark-muted); }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ----------------------------------------------------------- Contact info */
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.contact-detail { display: grid; gap: 24px; margin-top: 2rem; }
.contact-detail a, .contact-detail div { display: flex; gap: 16px; align-items: flex-start; }
.contact-detail .ic {
  width: 46px; height: 46px; flex: none; border-radius: 13px; display: grid; place-items: center;
  background: rgba(192,112,60,.14); border: 1px solid rgba(216,139,82,.3); color: var(--copper-soft);
}
.contact-detail .ic svg { width: 22px; height: 22px; }
.contact-detail b { display: block; font-family: "Fraunces", serif; font-weight: 500; font-size: 1.1rem; }
.contact-detail span { color: var(--on-dark-muted); font-size: .94rem; }

/* ----------------------------------------------------------- Footer */
.site-footer { background: var(--ink-deep); color: var(--on-dark); padding: 80px 0 36px; position: relative; overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 56px; }
.footer-brand p { color: var(--on-dark-muted); max-width: 34ch; margin-top: 1.2rem; }
.footer-col h4 {
  font-family: "JetBrains Mono", monospace; font-size: .72rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--copper-soft); margin: 0 0 1.2rem; font-weight: 500;
}
.footer-col a { display: block; color: var(--on-dark-link); margin-bottom: 12px; font-size: .94rem; transition: color .2s var(--ease); }
.footer-col a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding-top: 28px; border-top: 1px solid var(--line-dark);
  font-size: .82rem; color: var(--on-dark-faint);
}
.footer-bottom .made { font-family: "JetBrains Mono", monospace; letter-spacing: .06em; }

/* ----------------------------------------------------------- Reveal animation */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .hero-layer { transform: none !important; }
}

/* ----------------------------------------------------------- Responsive */
@media (max-width: 1024px) {
  .hero-grid, .demo-grid, .split, .audit-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .split.flip .split-media { order: 0; }
  .card-grid, .pain-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step::after { display: none; }
  .stat-band { grid-template-columns: repeat(2, 1fr); gap: 26px 30px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
}
@media (max-width: 720px) {
  .nav, .header-cta { display: none; }
  .nav.open {
    display: flex; position: fixed; inset: 70px 16px auto 16px; flex-direction: column;
    align-items: flex-start; gap: 4px; padding: 16px; z-index: 99;
    background: rgba(10,28,35,.97); backdrop-filter: blur(20px);
    border: 1px solid var(--line-dark); border-radius: 20px; box-shadow: var(--shadow-lg);
  }
  .nav.open a { padding: 12px 8px; width: 100%; font-size: 1rem; }
  .nav.open .header-cta { display: inline-flex; margin-top: 8px; }
  .menu-btn { display: block; }
  .service { grid-template-columns: 1fr; gap: 16px; }
  .service-num { font-size: 2rem; }
  .service-link { align-self: start; }
  .card-grid, .card-grid.two, .pain-grid { grid-template-columns: 1fr; }
  .form-row.two { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
