/* =========================================================
   trAI SPC — stylesheet
   Palette: deep pine + warm oak on bone. Mobile-first.
   ========================================================= */

:root {
  --ink:        #18150F;
  --ink-soft:   #3a352c;
  --bone:       #F6F2EA;
  --bone-2:     #EFE9DD;
  --paper:      #FBF8F2;
  --pine:       #1F3D34;
  --pine-deep:  #15302A;
  --pine-line:  #335249;
  --oak:        #BE8650;
  --oak-deep:   #9c6a3a;
  --oak-soft:   #E6CBA6;
  --stone:      #6E695E;
  --line:       rgba(24,21,15,0.12);
  --line-soft:  rgba(24,21,15,0.07);

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body:    "Hanken Grotesk", system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, monospace;

  --r:   14px;
  --r-sm: 9px;
  --maxw: 1180px;
  --pad: 22px;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  background: var(--bone);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }

a { color: inherit; text-decoration: none; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--pine); color: #fff; padding: 10px 16px; border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 2.5px solid var(--oak-deep); outline-offset: 3px; border-radius: 3px; }

/* ---------- type ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; letter-spacing: -0.01em; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--oak-deep); margin-bottom: 14px;
}
.eyebrow-light { color: var(--oak-soft); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 600; font-size: 0.98rem;
  padding: 14px 24px; border-radius: 100px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .15s ease, background .2s ease, color .2s ease;
  text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--oak); color: #20160c; }
.btn-primary:hover { background: var(--oak-deep); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-block { width: 100%; }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(246,242,234,0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.logo { display: flex; align-items: baseline; gap: 7px; }
.logo-mark { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; letter-spacing: -0.02em; color: var(--ink); }
.logo-ai { color: var(--oak-deep); }
.logo-sub {
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.18em;
  color: var(--pine); border: 1.5px solid var(--pine); padding: 2px 6px; border-radius: 5px;
}
.nav-links { display: none; align-items: center; gap: 28px; }
.nav-links a { font-family: var(--font-display); font-weight: 500; font-size: 0.95rem; color: var(--ink-soft); }
.nav-links a:hover { color: var(--ink); }
.nav-links .nav-cta {
  background: var(--pine); color: #fff; padding: 9px 18px; border-radius: 100px;
}
.nav-links .nav-cta:hover { background: var(--pine-deep); color: #fff; }

.nav-toggle {
  display: flex; flex-direction: column; gap: 5px; background: none; border: 0;
  cursor: pointer; padding: 8px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* mobile dropdown */
.nav-links.open {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  position: absolute; top: 66px; left: 0; right: 0;
  background: var(--paper); border-bottom: 1px solid var(--line);
  padding: 14px var(--pad) 22px;
}
.nav-links.open a { width: 100%; padding: 12px 0; border-bottom: 1px solid var(--line-soft); font-size: 1.05rem; }
.nav-links.open .nav-cta { margin-top: 12px; width: 100%; padding: 14px; border-bottom: 0; }

/* ---------- hero ---------- */
.hero { padding: 40px 0 56px; }
.hero-grid { display: grid; gap: 40px; }
.hero-copy h1 {
  font-size: clamp(2.1rem, 8vw, 3.5rem); font-weight: 700;
  margin: 4px 0 18px; letter-spacing: -0.025em;
}
.hero-copy h1 em { font-style: italic; color: var(--oak-deep); font-family: var(--font-display); }
.lede { font-size: 1.12rem; color: var(--ink-soft); max-width: 36ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 14px; }
.hero-actions .btn { flex: 1 1 auto; min-width: 0; }
.hero-note { font-size: 0.9rem; color: var(--stone); font-family: var(--font-mono); }

/* ---------- demo / room ---------- */
.demo { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.room {
  position: relative; width: 100%; aspect-ratio: 4/3;
  border-radius: var(--r-sm); overflow: hidden;
  background: linear-gradient(#eee7da, #e7ddca);
  perspective: 760px;
}
.room-wall {
  position: absolute; inset: 0 0 38% 0;
  background: linear-gradient(170deg, #f3ece0 0%, #e8ddca 100%);
}
.room-window {
  position: absolute; top: 12%; left: 9%; width: 34%; height: 50%;
  background: linear-gradient(160deg, #cfe3ec 0%, #aecbd9 60%, #9bbecd 100%);
  border: 6px solid #f6efe3; border-radius: 4px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  display: flex;
}
.room-window span { flex: 1; border-right: 4px solid #f6efe3; }
.room-window span:last-child { border-right: 0; }
.room-plant {
  position: absolute; right: 8%; bottom: 40%; width: 16%; height: 30%;
  background:
    radial-gradient(circle at 50% 18%, #5c7d52 0 22%, transparent 23%),
    radial-gradient(circle at 32% 34%, #6f9162 0 18%, transparent 19%),
    radial-gradient(circle at 68% 34%, #6f9162 0 18%, transparent 19%);
  background-repeat: no-repeat;
}
.room-plant::after {
  content: ""; position: absolute; left: 38%; bottom: 0; width: 24%; height: 32%;
  background: #b98a55; border-radius: 3px;
}
.room-sofa {
  position: absolute; left: 14%; bottom: 38%; width: 50%; height: 17%;
  background: #c9b79c; border-radius: 12px 12px 6px 6px;
  box-shadow: inset 0 6px 0 rgba(255,255,255,0.25), 0 8px 16px rgba(0,0,0,0.1);
}
.room-sofa::before, .room-sofa::after {
  content: ""; position: absolute; bottom: -8px; width: 8%; height: 10px; background: #8a6e4a; border-radius: 2px;
}
.room-sofa::before { left: 8%; } .room-sofa::after { right: 8%; }

.room-floor {
  position: absolute; left: -20%; right: -20%; bottom: 0; height: 46%;
  transform: rotateX(60deg); transform-origin: bottom center;
  background-color: var(--floor-base, #c79a64);
  background-image:
    repeating-linear-gradient(90deg,
      rgba(0,0,0,0.16) 0 2px, transparent 2px 86px),
    repeating-linear-gradient(0deg,
      rgba(255,255,255,0.10) 0 1px, transparent 1px 30px),
    var(--floor-grain, repeating-linear-gradient(90deg, rgba(0,0,0,0.05) 0 8px, rgba(255,255,255,0.04) 8px 16px));
  box-shadow: inset 0 30px 50px rgba(0,0,0,0.18);
  transition: background-color .45s ease;
}
.room-floor::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.22), transparent 60%);
}

.demo-caption {
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
  font-size: 0.82rem; color: var(--stone); margin: 14px 2px 16px; line-height: 1.45;
}
.demo-tag {
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase;
  background: var(--pine); color: #fff; padding: 3px 8px; border-radius: 5px;
}

.swatches { display: flex; flex-wrap: wrap; gap: 9px; }
.swatch {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--bone-2); border: 1.5px solid var(--line); border-radius: 100px;
  padding: 7px 14px 7px 8px; cursor: pointer; font-family: var(--font-body); font-size: 0.84rem;
  color: var(--ink-soft); transition: border-color .2s ease, background .2s ease;
}
.swatch::before {
  content: ""; width: 18px; height: 18px; border-radius: 50%;
  background: var(--sw); border: 1.5px solid rgba(0,0,0,0.15);
}
.swatch:hover { border-color: var(--ink); }
.swatch.is-active { background: #fff; border-color: var(--oak-deep); color: var(--ink); font-weight: 600; }

/* ---------- usp strip ---------- */
.usp { background: var(--pine); color: #f4efe6; padding: 48px 0; }
.usp-grid { display: grid; gap: 30px; }
.usp-card { border-top: 2px solid var(--pine-line); padding-top: 18px; }
.usp-num { font-family: var(--font-mono); font-size: 0.8rem; color: var(--oak-soft); letter-spacing: 0.1em; }
.usp-card h2 { font-size: 1.4rem; margin: 10px 0 8px; color: #fff; }
.usp-card p { color: #d5e0db; font-size: 0.98rem; }

/* ---------- generic section ---------- */
.section { padding: 64px 0; }
.section-soft { background: var(--bone-2); }
.section-head { max-width: 620px; margin-bottom: 40px; }
.section-title { font-size: clamp(1.7rem, 5.5vw, 2.5rem); font-weight: 700; letter-spacing: -0.02em; }
.section-intro { font-size: 1.06rem; color: var(--ink-soft); margin-top: 14px; }
.section-intro.light { color: #cdd8d2; }

/* ---------- steps ---------- */
.steps { list-style: none; display: grid; gap: 18px; counter-reset: step; }
.step {
  position: relative; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r); padding: 26px 24px 24px; padding-left: 70px;
}
.step-num {
  position: absolute; left: 22px; top: 24px;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--pine); color: #fff; font-family: var(--font-display); font-weight: 700;
  display: flex; align-items: center; justify-content: center; font-size: 1rem;
}
.step h3 { font-size: 1.22rem; margin-bottom: 6px; }
.step p { color: var(--ink-soft); }

/* ---------- dark section / technical ---------- */
.section-dark { background: var(--pine-deep); color: #eef3f0; }
.section-dark .section-title { color: #fff; }
.quality-grid { display: grid; gap: 36px; margin-bottom: 40px; }
.quality-copy .btn { margin-top: 24px; }

.layers { display: grid; gap: 10px; }
.layer {
  background: rgba(255,255,255,0.04); border: 1px solid var(--pine-line);
  border-radius: var(--r-sm); padding: 16px 18px;
}
.layer-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.layer-name { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: #fff; }
.layer-val { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; color: var(--oak-soft); text-transform: uppercase; }
.layer p { color: #c2d0ca; font-size: 0.92rem; line-height: 1.5; }

.spec-row {
  list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: var(--pine-line); border: 1px solid var(--pine-line); border-radius: var(--r-sm); overflow: hidden;
}
.spec-row li { background: var(--pine-deep); padding: 18px 16px; }
.spec-k { display: block; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--oak-soft); }
.spec-v { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: #fff; margin: 4px 0 3px; }
.spec-note { display: block; font-size: 0.8rem; color: #aebcb6; }
.spec-disclaimer { margin-top: 18px; font-size: 0.84rem; color: #9fb0a9; font-family: var(--font-mono); line-height: 1.55; }

/* ---------- range ---------- */
.range-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.range-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.range-swatch {
  height: 110px; background-color: var(--tone);
  background-image:
    repeating-linear-gradient(115deg, rgba(0,0,0,0.10) 0 2px, transparent 2px 36px),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.06) 0 1px, transparent 1px 14px);
}
.range-card figcaption { padding: 14px 16px 18px; }
.range-card strong { display: block; font-family: var(--font-display); font-size: 1.05rem; }
.range-card span { font-size: 0.85rem; color: var(--stone); }

/* ---------- why ---------- */
.why-grid { display: grid; gap: 36px; }
.why-list { display: grid; gap: 22px; }
.why-item { border-left: 3px solid var(--oak); padding-left: 18px; }
.why-item h3 { font-size: 1.2rem; margin-bottom: 6px; }
.why-item p { color: var(--ink-soft); }

/* ---------- contact ---------- */
.contact-grid { display: grid; gap: 34px; }
.contact-points { list-style: none; display: grid; gap: 10px; margin-top: 22px; }
.contact-points li { position: relative; padding-left: 26px; color: #d5e0db; }
.contact-points li::before {
  content: ""; position: absolute; left: 0; top: 8px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--oak);
}
.contact-form {
  background: var(--paper); border-radius: var(--r); padding: 24px; display: grid; gap: 16px;
}
.field { display: grid; gap: 6px; }
.field label { font-family: var(--font-display); font-weight: 500; font-size: 0.9rem; color: var(--ink); }
.field input, .field textarea {
  font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  background: var(--bone); border: 1.5px solid var(--line); border-radius: var(--r-sm);
  padding: 12px 14px; width: 100%; resize: vertical;
}
.field input:focus, .field textarea:focus { border-color: var(--oak-deep); outline: none; }
.form-hint { font-size: 0.82rem; color: var(--stone); font-family: var(--font-mono); line-height: 1.5; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #d9d4c8; padding: 48px 0 26px; }
.footer-inner { display: grid; gap: 30px; }
.footer-brand .logo-mark { color: #fff; }
.footer-brand .logo-sub { color: #d9d4c8; border-color: #4a4639; }
.footer-brand p { margin-top: 12px; font-size: 0.9rem; color: #a8a395; max-width: 34ch; }
.footer-col h4 { font-family: var(--font-display); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: #8f8a7c; margin-bottom: 12px; }
.footer-col a { display: block; padding: 5px 0; color: #d9d4c8; font-size: 0.95rem; }
.footer-col a:hover { color: #fff; }
.footer-base {
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between;
  margin-top: 34px; padding-top: 22px; border-top: 1px solid #322f27;
  font-size: 0.8rem; color: #8f8a7c;
}
.footer-fine { font-family: var(--font-mono); }

/* =========================================================
   responsive — tablet & up
   ========================================================= */
@media (min-width: 720px) {
  .usp-grid { grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .spec-row { grid-template-columns: repeat(3, 1fr); }
  .range-grid { grid-template-columns: repeat(3, 1fr); }
  .why-grid { grid-template-columns: 1fr 1.3fr; align-items: start; }
  .why-head { position: sticky; top: 90px; }
}

@media (min-width: 960px) {
  :root { --pad: 32px; }
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
  .hero { padding: 64px 0 80px; }
  .hero-grid { grid-template-columns: 1.05fr 1fr; align-items: center; gap: 56px; }
  .hero-actions .btn { flex: 0 0 auto; }
  .section { padding: 88px 0; }
  .quality-grid { grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: start; }
  .contact-grid { grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
  .footer-inner { grid-template-columns: 2fr 1fr 1fr; gap: 48px; }
  .lede { font-size: 1.2rem; }
}

@media (min-width: 1100px) {
  .steps { grid-template-columns: repeat(4, 1fr); }
}
