:root {
  --bg: #461c19;
  --bg-deep: #321310;
  --panel: #5a2722;
  --panel-soft: #642d27;
  --ink: #f7dfd8;
  --muted: #d3aea5;
  --accent: #ff6535;
  --accent-soft: #f1957f;
  --line: rgba(255, 101, 53, 0.38);
  --line-soft: rgba(247, 223, 216, 0.12);
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "DM Sans", Inter, Arial, sans-serif;
  --radius: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #e8e6e4;
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.5;
}
button, input, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: var(--bg-deep); }

.page-shell {
  width: min(96vw, 1500px);
  margin: 32px auto;
  overflow: hidden;
  background: var(--bg);
  border: 1px solid rgba(49, 13, 10, .2);
  box-shadow: 0 28px 90px rgba(28, 12, 9, .16);
}

.site-header {
  height: 92px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
  padding: 0 5vw;
  position: relative;
  z-index: 20;
}
.brand {
  font-size: clamp(1.8rem, 2.6vw, 3rem);
  letter-spacing: -.06em;
  color: var(--accent);
  line-height: 1;
  width: max-content;
}
.brand-mark { font-family: var(--serif); margin-left: 4px; }
.nav { display: flex; gap: 34px; align-items: center; font-size: .94rem; color: var(--accent); }
.nav a { position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -6px; height: 1px; background: var(--accent); transition: .25s ease; }
.nav a:hover::after { right: 0; }
.header-cta { justify-self: end; }
.menu-button { display: none; }

.pill-button, .primary-button {
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.pill-button {
  padding: 13px 23px;
  border-radius: 999px;
  background: #9b483c;
  color: #ffeae4;
}
.primary-button {
  padding: 16px 24px;
  border-radius: 999px;
  background: var(--accent);
  color: #2b110f;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(255, 101, 53, .14);
}
.primary-button:hover, .pill-button:hover { transform: translateY(-2px); }
.primary-button:hover { box-shadow: 0 14px 38px rgba(255, 101, 53, .25); }
.text-link { color: var(--muted); border-bottom: 1px solid rgba(211,174,165,.35); padding-bottom: 4px; }

.section-pad { padding: clamp(90px, 11vw, 160px) 8vw; }
.eyebrow {
  margin: 0 0 22px;
  text-transform: uppercase;
  letter-spacing: .15em;
  font-size: .72rem;
  font-weight: 700;
  color: var(--accent-soft);
}
.serif { font-family: var(--serif); font-weight: 400; }
.accent { color: var(--accent); }

.hero {
  min-height: 720px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  isolation: isolate;
  border-bottom: 1px solid var(--line-soft);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 16% 12% auto;
  height: 240px;
  background: radial-gradient(circle, rgba(255,101,53,.13), transparent 66%);
  filter: blur(24px);
  z-index: -2;
}
.hero-title {
  max-width: 1050px;
  margin: 0;
  font-size: clamp(4rem, 8.3vw, 8.8rem);
  line-height: .86;
  letter-spacing: -.055em;
  font-weight: 500;
}
.hero-title .serif { letter-spacing: -.045em; }
.hero-copy { max-width: 690px; color: var(--muted); font-size: clamp(1rem, 1.45vw, 1.25rem); margin: 34px auto 0; }
.hero-copy strong { color: var(--ink); font-weight: 600; }
.hero-actions { display: flex; align-items: center; gap: 24px; margin-top: 34px; }
.hero-note { display: flex; align-items: center; gap: 10px; color: var(--muted); margin-top: 28px; font-size: .84rem; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 6px rgba(255,101,53,.11); }
.curve { position: absolute; width: 58%; height: 44%; border: 1px solid var(--line); border-radius: 50%; bottom: -28%; z-index: -1; }
.curve-left { left: -20%; transform: rotate(17deg); }
.curve-right { right: -20%; transform: rotate(-17deg); }

.proof-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line-soft);
}
.proof-strip > div { padding: 38px 4vw; border-right: 1px solid var(--line-soft); }
.proof-strip > div:last-child { border-right: 0; }
.proof-strip strong { display: block; font-size: 1.1rem; margin: 10px 0 2px; }
.proof-strip p { margin: 0; color: var(--muted); font-size: .92rem; }
.mini-label { color: var(--accent); font-size: .7rem; letter-spacing: .09em; text-transform: uppercase; }

.story { background: var(--bg-deep); }
.section-heading { max-width: 900px; }
.section-heading h2, .stats-intro h2, .model-copy h2, .contact-copy h2 {
  margin: 0;
  font-size: clamp(3rem, 6vw, 6.6rem);
  line-height: .93;
  letter-spacing: -.045em;
  font-weight: 500;
}
.story-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 72px; }
.story-card {
  min-height: 270px;
  padding: 28px;
  border: 1px solid var(--line-soft);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(255,255,255,.025), rgba(255,255,255,.008));
}
.story-card > span { color: var(--accent); font-size: .75rem; }
.story-card h3 { margin: 70px 0 12px; font-size: 1.35rem; }
.story-card p { margin: 0; color: var(--muted); }

.stats-section { padding: clamp(90px, 11vw, 160px) 6vw; }
.stats-intro { max-width: 900px; margin: 0 auto 72px; text-align: center; }
.stats-intro p:last-child { max-width: 690px; margin: 24px auto 0; color: var(--muted); }
.dashboard {
  max-width: 1180px;
  margin: auto;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(61, 21, 18, .78);
  box-shadow: 0 34px 70px rgba(22, 6, 4, .22);
}
.dashboard-top { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.metric-card { background: var(--panel); border-radius: 16px; padding: 24px; min-height: 165px; }
.metric-card.featured { background: var(--panel-soft); }
.metric-card span { color: var(--muted); font-size: .88rem; }
.metric-card strong { display: block; font-size: clamp(2.2rem, 4.2vw, 4rem); font-weight: 500; letter-spacing: -.05em; color: var(--accent); margin: 12px 0; }
.metric-card.featured strong { color: var(--ink); }
.metric-card small { color: var(--muted); }
.chart-card { margin-top: 12px; background: var(--panel); border-radius: 16px; padding: 24px; }
.chart-header { display: flex; align-items: start; justify-content: space-between; gap: 20px; }
.chart-header h3 { margin: 6px 0 0; font-size: 1.4rem; }
.legend { color: var(--muted); font-size: .76rem; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.legend-line { display: inline-block; width: 22px; height: 2px; }
.legend-line.current { background: var(--accent); }
.legend-line.baseline { background: var(--ink); opacity: .7; }
.chart-wrap { margin-top: 20px; overflow: hidden; }
.chart-wrap svg { display: block; width: 100%; overflow: visible; }
.grid-lines line { stroke: rgba(247,223,216,.08); stroke-width: 1; }
.axis-labels text { fill: rgba(247,223,216,.4); font-size: 12px; font-family: var(--sans); text-anchor: middle; }
.primary-path, .baseline-path { fill: none; stroke-linecap: round; stroke-width: 4; stroke-dasharray: 1; stroke-dashoffset: 1; }
.primary-path { stroke: var(--accent); }
.baseline-path { stroke: var(--ink); opacity: .72; stroke-width: 3; }
.chart-area { fill: url(#areaFill); opacity: 0; transition: opacity 1s ease .2s; }
.dashboard.in-view .primary-path { animation: draw 1.8s cubic-bezier(.22,.9,.29,1) forwards; }
.dashboard.in-view .baseline-path { animation: draw 1.7s cubic-bezier(.22,.9,.29,1) .18s forwards; }
.dashboard.in-view .chart-area { opacity: 1; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.model-section {
  background: #f0e3de;
  color: #3a1614;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7vw;
  min-height: 1100px;
}
.model-copy { padding-top: 5vh; }
.model-copy .eyebrow { color: #a3412f; }
.model-copy h2 .accent { color: #bb3e25; }
.model-copy > p:not(.eyebrow) { max-width: 610px; font-size: 1.08rem; color: #744b45; }
.feature-list { margin-top: 50px; border-top: 1px solid rgba(58,22,20,.16); }
.feature-list > div { display: grid; grid-template-columns: 48px 1fr; gap: 12px; padding: 20px 0; border-bottom: 1px solid rgba(58,22,20,.16); }
.feature-list span { color: #bb3e25; font-size: .75rem; }
.feature-list p { margin: 0; color: #744b45; }
.feature-list strong { color: #3a1614; }
.model-sticky { position: sticky; top: 7vh; align-self: start; height: 86vh; min-height: 620px; display: grid; place-items: center; perspective: 1200px; }
.model-orbit { width: min(34vw, 430px); aspect-ratio: .68; display: grid; place-items: center; transform-style: preserve-3d; will-change: transform; }
.nfc-card {
  width: 100%; height: 100%; position: relative; transform-style: preserve-3d; border-radius: 36px;
  background: linear-gradient(140deg, #531e1a, #2b0e0c 75%);
  box-shadow: 0 55px 90px rgba(53,15,12,.34), 0 6px 0 #1c0807;
  overflow: hidden;
}
.card-front, .card-back { position: absolute; inset: 0; backface-visibility: hidden; padding: 38px; display: flex; flex-direction: column; border: 1px solid rgba(255,255,255,.12); border-radius: inherit; }
.card-front { color: #f8e3dc; }
.card-back { transform: rotateY(180deg); display: grid; place-items: center; color: var(--accent); font-size: 5rem; font-family: var(--serif); }
.card-brand { color: var(--accent); font-size: 1.35rem; letter-spacing: -.04em; }
.tap-symbol { margin: auto; width: 112px; height: 112px; position: relative; display: grid; place-items: center; }
.tap-symbol::after { content: ""; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 9px rgba(255,101,53,.08); }
.tap-symbol i { position: absolute; border: 3px solid var(--accent); border-left-color: transparent; border-bottom-color: transparent; border-radius: 50%; transform: rotate(45deg); }
.tap-symbol i:nth-child(1) { width: 36px; height: 36px; }
.tap-symbol i:nth-child(2) { width: 64px; height: 64px; opacity: .75; }
.tap-symbol i:nth-child(3) { width: 92px; height: 92px; opacity: .42; }
.card-message { font-family: var(--serif); font-size: clamp(2rem, 3.4vw, 3.25rem); line-height: .95; }
.card-message strong { color: var(--accent); font-weight: 400; }
.google-row { margin-top: 28px; font-size: .8rem; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.g-dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.card-shine { position: absolute; inset: -50%; background: linear-gradient(115deg, transparent 37%, rgba(255,255,255,.11), transparent 63%); transform: translateX(-30%) rotate(12deg); z-index: 3; pointer-events: none; }
.model-caption { position: absolute; bottom: 2vh; color: #8b655f; font-size: .78rem; text-align: center; }

.placement { background: var(--bg-deep); }
.placement-grid { margin-top: 70px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.placement-card { min-height: 230px; padding: 24px; border-radius: 20px; border: 1px solid var(--line-soft); display: flex; flex-direction: column; justify-content: space-between; background: rgba(255,255,255,.02); }
.placement-card span { font-size: 1.2rem; }
.placement-card p { margin: 0; color: var(--muted); }

.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 8vw; align-items: start; }
.contact-copy > p:not(.eyebrow) { color: var(--muted); max-width: 570px; font-size: 1.05rem; }
.contact-detail { margin-top: 52px; padding-top: 20px; border-top: 1px solid var(--line-soft); }
.contact-detail span { color: var(--accent); font-size: .75rem; text-transform: uppercase; letter-spacing: .11em; }
.contact-detail p { color: var(--muted); }
.contact-form { padding: 28px; border: 1px solid var(--line-soft); border-radius: 24px; background: rgba(255,255,255,.025); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form label { display: block; color: var(--muted); font-size: .82rem; margin-bottom: 14px; }
.contact-form label span { opacity: .7; }
.contact-form input, .contact-form textarea {
  width: 100%; margin-top: 8px; border: 1px solid rgba(247,223,216,.14); background: rgba(34,10,8,.26); color: var(--ink); border-radius: 13px; outline: none; padding: 14px 15px; resize: vertical; transition: border .2s ease, background .2s ease;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--accent); background: rgba(34,10,8,.4); }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: rgba(211,174,165,.55); }
.form-submit { margin-top: 8px; width: 100%; }
.form-status { min-height: 24px; color: var(--muted); font-size: .85rem; margin: 12px 2px 0; }
.form-status.success { color: #d6e8cc; }
.form-status.error { color: #ffc2b2; }
.honeypot { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; }

footer { min-height: 150px; border-top: 1px solid var(--line-soft); padding: 36px 5vw; display: grid; grid-template-columns: 1fr 1.4fr 1fr; align-items: end; gap: 20px; color: var(--muted); font-size: .82rem; }
footer p { margin: 0; max-width: 420px; text-align: center; }
footer > span { justify-self: end; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .75s ease, transform .75s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

@media (max-width: 980px) {
  .page-shell { width: 100%; margin: 0; }
  .site-header { grid-template-columns: 1fr auto; padding: 0 24px; }
  .header-cta { display: none; }
  .menu-button { display: inline-flex; background: transparent; border: 1px solid var(--line-soft); color: var(--ink); border-radius: 999px; padding: 9px 14px; }
  .nav { position: absolute; top: 78px; left: 16px; right: 16px; display: none; flex-direction: column; align-items: stretch; gap: 0; background: #35120f; border: 1px solid var(--line-soft); border-radius: 16px; padding: 8px; box-shadow: 0 20px 45px rgba(0,0,0,.25); }
  .nav.open { display: flex; }
  .nav a { padding: 14px; border-radius: 10px; }
  .nav a:hover { background: rgba(255,255,255,.035); }
  .proof-strip { grid-template-columns: 1fr; }
  .proof-strip > div { border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .story-grid, .placement-grid { grid-template-columns: 1fr 1fr; }
  .model-section { grid-template-columns: 1fr; min-height: auto; }
  .model-sticky { position: relative; top: 0; height: 720px; min-height: 0; }
  .model-orbit { width: min(70vw, 420px); }
  .contact { grid-template-columns: 1fr; }
  footer { grid-template-columns: 1fr; text-align: left; }
  footer p { text-align: left; }
  footer > span { justify-self: start; }
}

@media (max-width: 620px) {
  .section-pad { padding: 86px 24px; }
  .hero { min-height: 680px; padding-top: 100px; padding-bottom: 110px; }
  .hero-title { font-size: clamp(3.6rem, 18vw, 5.4rem); }
  .hero-actions { flex-direction: column; }
  .story-grid, .placement-grid, .dashboard-top, .field-row { grid-template-columns: 1fr; }
  .chart-header { flex-direction: column; }
  .legend { justify-content: flex-start; }
  .dashboard { padding: 10px; border-radius: 20px; }
  .chart-card, .metric-card { padding: 18px; }
  .section-heading h2, .stats-intro h2, .model-copy h2, .contact-copy h2 { font-size: clamp(3rem, 15vw, 4.4rem); }
  .model-sticky { height: 600px; }
  .nfc-card { border-radius: 28px; }
  .card-front, .card-back { padding: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
