@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/inter-latin.woff2") format("woff2");
}

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

:root {
  --f: "Inter", system-ui, sans-serif;
  /* Palette — Mono (black & white) */
  --bg: #ffffff;            /* page background */
  --surface: #ffffff;       /* cards / raised surfaces */
  --ink: #0a0a0a;           /* near-black — headings, body, nav, labels */
  --ink2: #3a3a3a;          /* dark grey — secondary text, subtitles, footer */
  --ink3: #888888;          /* mid grey — muted / small labels */
  --border: rgba(10,10,10,0.15);        /* hairline borders */
  --border-strong: rgba(10,10,10,0.28); /* stronger hairline / hover border */
  --dark: #0a0a0a;          /* inverted/dark surfaces */
  --ink-faint: #c9c9c9;     /* very faint / inactive decorative text */
  --panel: #f5f5f4;         /* lightest layered panel tint */
  --panel-2: #ececeb;       /* mid layered panel tint */
  --panel-3: #e2e2e0;       /* deeper layered panel tint */
  --track: #d6d6d4;         /* inactive track / scroll-progress base */
  --brand: #0a0a0a;         /* brand accent (mono) — soft bg, AI visuals, highlights */
  --brand-soft: rgba(10,10,10,0.06);    /* soft tint — hover backgrounds */
  --camel: #555555;         /* warm/secondary accent (mono) — badges, underlines */
  --accent: #0a0a0a;        /* main CTA + link text */
  --accent-hover: #3a3a3a;  /* CTA hover */
  --px: clamp(20px, 5vw, 80px);
}

html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font-family: var(--f); -webkit-font-smoothing: antialiased; }

/* ── HERO — full viewport split ── */
.hero {
  padding-top: 57px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.hero-top {
  padding: clamp(24px,4vw,48px) var(--px) 0;
}
.hero-eyebrow {
  font-size: clamp(.9rem,1.2vw,1.05rem);
  font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase;
  text-align: center; padding-bottom: clamp(10px,1.5vw,16px);
  color: var(--ink);
}
.hero-rule { border: none; border-top: 1.5px solid var(--ink); margin: 0; }
.hero-rule + .hero-rule { margin-top: 3px; }
.hero-h1 {
  font-size: clamp(2.2rem, 5.5vw, 5rem); font-weight: 800;
  line-height: 1.05; letter-spacing: -0.05em; text-align: center;
  padding: clamp(24px,3.5vw,52px) var(--px);
  color: var(--ink);
}

.hero-split {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1.5px solid var(--ink);
  min-height: 520px;
}

.hero-list {
  padding: clamp(24px,3vw,48px) var(--px);
  border-right: 1.5px solid var(--ink);
  display: grid;
  align-content: start;
}
.hero-list a {
  display: grid;
  grid-template-columns: minmax(0,1fr) 0.8em;
  align-items: center;
  column-gap: 18px;
  min-height: 92px;
  padding: 18px 0;
  border-top: 1px solid var(--border);
  color: var(--ink3);
  font-size: clamp(1.6rem, 3vw, 3.2rem);
  font-weight: 840;
  letter-spacing: -0.075em;
  line-height: 0.95;
  text-decoration: none;
  transition: color 0.12s ease;
}
.hero-list a:first-child { border-top: none; }
.hero-list a:last-child { border-bottom: none; }
.hero-list a:hover { color: var(--ink); }
.hero-list a::after { content: ""; font-size: 0.68em; text-align: right; }
.hero-list a:hover::after { content: "↓"; }
.hero-list a.wave-active { color: var(--ink); }

.hero-img {
  position: relative;
  overflow: hidden;
}
.hero-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

@media(max-width:820px){
  .hero-split { grid-template-columns: 1fr; }
  .hero-list { border-right: none; }
  .hero-img { height: 360px; position: relative; }
}

/* ── Feature section ── */
.feat {
  border-top: 1px solid var(--border);
  padding: clamp(60px,8vw,110px) var(--px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px,6vw,100px);
  align-items: start;
  position: sticky;
  top: 0;
  background: var(--bg);
}
#s1 { z-index: 1; }
#s2 { z-index: 2; }
#s3 { z-index: 3; background: var(--dark); color: var(--bg); }
#s3 .feat-title { color: var(--bg); }
#s3 .feat-body { color: rgba(247,243,234,0.7); }
#s3 .feat-tab { color: rgba(247,243,234,0.5); border-bottom-color: transparent; }
#s3 .feat-tab:hover { color: rgba(247,243,234,0.85); }
#s3 .feat-tab.active { color: var(--bg); border-bottom-color: var(--bg); }
#s3 .feat-tabs { border-bottom-color: rgba(247,243,234,0.18); }
#s3 .feat-tab-body { color: rgba(247,243,234,0.7); }
#s3 .feat-num { background: var(--brand); color: var(--ink); }
#s3 { border-top-color: rgba(247,243,234,0.14); }
#s4 { z-index: 4; }
#s5 { z-index: 5; }
.feat-stack { position: relative; }

.feat-left {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}
.feat-num {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--ink); color: #fff;
  font-size: .85rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 6px;
}
.feat-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1.05;
  color: var(--ink);
}
.feat-body {
  font-size: clamp(.95rem,1.1vw,1.05rem);
  line-height: 1.75;
  color: var(--ink2);
  margin-bottom: 1.4em;
}
.feat-body:last-of-type { margin-bottom: 32px; }
.feat-stats-label {
  font-size: 1rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 14px;
}
.feat-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.feat-stats.wide { grid-template-columns: 1fr; }
.stat-card {
  border: 1px solid var(--border);
  padding: 32px 24px;
  text-align: center;
}
.stat-card-num {
  font-size: clamp(2.4rem, 4vw, 3.8rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 12px;
}
.stat-card-label {
  font-size: .82rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
}
.feat-visual {
  grid-column: 1 / -1;
  margin-top: clamp(32px,4vw,56px);
  background: rgba(163,202,234,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
}
.feat-visual-num {
  font-size: clamp(6rem, 20vw, 18rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  color: rgba(42,38,27,0.12);
  line-height: 1;
  user-select: none;
}

@media(max-width:820px){
  .feat { grid-template-columns: 1fr; }
  .feat-stats { grid-template-columns: 1fr 1fr; }
  .feat-visual { min-height: 260px; }
}

/* ── Tab switcher ── */
.feat-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.feat-tab {
  padding: 10px 0;
  margin-right: 28px;
  font-size: .95rem;
  font-weight: 600;
  color: var(--ink3);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
  user-select: none;
}
.feat-tab:hover { color: var(--ink); }
.feat-tab.active {
  color: var(--ink);
  border-bottom-color: var(--ink);
}
.feat-tab-panel { display: none; }
.feat-tab-panel.active { display: block; }
.feat-tab-body {
  font-size: clamp(.95rem,1.1vw,1.05rem);
  line-height: 1.75;
  color: var(--ink2);
}

/* ── Slider ── */
.feat-slider-wrap {
  grid-column: 1 / -1;
  margin-top: clamp(32px,4vw,56px);
  margin-left: calc(-1 * var(--px));
  margin-right: calc(-1 * var(--px));
  position: relative;
  overflow: hidden;
}
.feat-slider-track {
  display: flex;
  gap: 16px;
  padding-left: var(--px);
  padding-right: var(--px);
  transition: transform 0.42s cubic-bezier(0.25,0.46,0.45,0.94);
  cursor: grab;
  user-select: none;
}
.feat-slider-track.dragging { cursor: grabbing; transition: none; }
.feat-slide {
  flex-shrink: 0;
  width: clamp(300px, 46vw, 680px);
  position: relative;
  overflow: hidden;
  background: var(--dark);
}
.feat-slide img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
.feat-slide-label {
  position: absolute;
  top: 18px;
  left: 18px;
  background: rgba(0,0,0,0.75);
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 6px 14px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
}
.feat-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  color: var(--ink);
  z-index: 10;
  transition: background 0.15s, border-color 0.15s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.feat-slider-btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.feat-slider-btn.prev { left: 16px; }
.feat-slider-btn.next { right: 16px; }

@media(max-width:820px){
  .feat-slide { width: 80vw; }
  .feat-slide img { height: 240px; }
}

/* ── FAQ ── */
.faq {
  padding: clamp(80px,10vw,140px) var(--px);
}
.faq-label {
  font-size: clamp(3rem,6vw,5.5rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  text-align: center;
  margin-bottom: clamp(48px,6vw,80px);
}
.faq-item {
  border-top: 1px solid var(--border);
}
.faq-item:last-child { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%;
  background: none;
  border: none;
  padding: clamp(20px,2.5vw,36px) 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  font-family: var(--f);
  font-size: clamp(2rem,4vw,4rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1.05;
  color: var(--ink3);
  text-align: left;
  cursor: pointer;
  transition: color 0.15s;
}
.faq-q:hover { color: var(--ink); }
.faq-item.open .faq-q { color: var(--ink); }
.faq-icon {
  font-size: 1.8rem;
  font-weight: 300;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 6px;
  transition: transform 0.25s ease;
  color: var(--ink3);
}
.faq-item.open .faq-icon { transform: rotate(45deg); color: var(--ink); }
.faq-a {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease;
}
.faq-item.open .faq-a { max-height: 400px; }
.faq-a p {
  padding-bottom: clamp(20px,2.5vw,36px);
  font-size: clamp(.95rem,1.1vw,1.05rem);
  line-height: 1.75;
  color: var(--ink2);
  max-width: 640px;
}

/* ── CTA ── */
.cta {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}
.cta-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.cta-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
}
.cta-content {
  position: relative;
  z-index: 1;
  padding: 0 var(--px);
}
.cta-h {
  font-size: clamp(2.8rem,6vw,6rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1.05;
  color: #fff;
  margin-bottom: clamp(28px,3vw,44px);
}
.cta-btn {
  display: inline-block;
  padding: 16px 36px;
  background: var(--accent);
  color: #fff;
  font-family: var(--f);
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, transform 0.15s;
}
.cta-btn:hover { background: var(--accent-hover); transform: translateY(-1px); }
