/* ============================================================
   LUMINARA — Design System CSS
   Ultra-clean white · Swiss grid · Luxury minimalism
   ============================================================ */

:root {
  /* Color — warm-neutral monochrome + one signal accent */
  --paper:        #FCFCFB;
  --paper-2:      #F5F5F3;
  --ink:          #0E0F11;
  --ink-70:       rgba(14, 15, 17, 0.70);
  --ink-55:       rgba(14, 15, 17, 0.55);
  --ink-35:       rgba(14, 15, 17, 0.35);
  --line:         rgba(14, 15, 17, 0.10);
  --line-soft:    rgba(14, 15, 17, 0.06);
  --accent:       oklch(0.55 0.19 27);
  --accent-soft:  oklch(0.55 0.19 27 / 0.08);

  /* Dark theme tokens */
  --night:        #0B0C0E;
  --night-2:      #141518;
  --snow-90:      rgba(252, 252, 251, 0.92);
  --snow-60:      rgba(252, 252, 251, 0.60);
  --snow-35:      rgba(252, 252, 251, 0.35);
  --snow-line:    rgba(252, 252, 251, 0.14);

  /* Type */
  --font-sans: "Instrument Sans", -apple-system, "Helvetica Neue", Helvetica, sans-serif;
  --font-mono: "IBM Plex Mono", "SF Mono", Menlo, monospace;
  --track-display: -0.035em;

  /* Geometry */
  --r-card: 24px;
  --r-pill: 999px;
  --container: 1320px;
  --gutter: clamp(24px, 5vw, 64px);

  /* Elevation */
  --shadow-soft: 0 1px 2px rgba(14,15,17,.03), 0 24px 64px -20px rgba(14,15,17,.14);
  --shadow-card: 0 1px 2px rgba(14,15,17,.03), 0 12px 40px -12px rgba(14,15,17,.10);

  /* Glass */
  --glass-bg: rgba(255, 255, 255, 0.62);
  --glass-bg-dark: rgba(20, 21, 24, 0.55);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: inherit; }

::selection { background: var(--accent-soft); }

/* ---------- Layout primitives ---------- */

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(96px, 11vw, 180px); }
.section-tight { padding-block: clamp(72px, 8vw, 128px); }

section[id] { scroll-margin-top: 96px; }

/* ---------- Typography ---------- */

.label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-55);
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 28px;
}
.label::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--ink-35);
}
.label .idx { color: var(--ink-35); }

.h-display {
  font-size: clamp(58px, 8.5vw, 132px);
  line-height: 0.98;
  font-weight: 550;
  letter-spacing: var(--track-display);
  margin: 0;
  text-wrap: balance;
}

.h2 {
  font-size: clamp(38px, 4.6vw, 64px);
  line-height: 1.04;
  font-weight: 550;
  letter-spacing: var(--track-display);
  margin: 0;
  text-wrap: balance;
}

.h3 {
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.2;
  font-weight: 550;
  letter-spacing: -0.02em;
  margin: 0;
}

.lead {
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.6;
  color: var(--ink-70);
  font-weight: 400;
  max-width: 56ch;
  text-wrap: pretty;
  margin: 0;
}

.body-sm {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-55);
  text-wrap: pretty;
  margin: 0;
}

.mono-sm {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink-55);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 15.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  border-radius: var(--r-pill);
  padding: 16px 30px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(.2,.7,.2,1), box-shadow 0.35s, background 0.25s, color 0.25s, border-color 0.25s;
}
.btn .arr { transition: transform 0.35s cubic-bezier(.2,.7,.2,1); }
.btn:hover .arr { transform: translateX(4px); }

.btn-primary {
  background: var(--ink);
  color: var(--paper);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 40px -12px rgba(14,15,17,.4);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--ink-35); }

.btn-light {
  background: var(--paper);
  color: var(--ink);
}
.btn-light:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 40px -12px rgba(0,0,0,.5);
}

.btn-ghost-light {
  background: transparent;
  color: var(--snow-90);
  border-color: var(--snow-line);
}
.btn-ghost-light:hover { border-color: var(--snow-60); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15.5px;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 3px;
  transition: border-color 0.25s;
}
.link-arrow:hover { border-color: var(--ink); }

/* ---------- Navigation ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background 0.4s, box-shadow 0.4s, backdrop-filter 0.4s;
}
.nav-inner {
  max-width: var(--container);
  margin-inline: auto;
  padding: 22px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.nav.scrolled {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  backdrop-filter: blur(20px) saturate(1.5);
  box-shadow: 0 1px 0 var(--line-soft);
}
.nav.scrolled .nav-inner { padding-block: 14px; }

.wordmark {
  font-size: 17px;
  font-weight: 650;
  letter-spacing: 0.34em;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-70);
  text-decoration: none;
  transition: color 0.25s;
}
.nav-links a:hover { color: var(--ink); }

.nav .btn { padding: 11px 22px; font-size: 14px; }

/* ---------- Glass chip ---------- */

.chip-glass {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid rgba(255,255,255,0.7);
  box-shadow: var(--shadow-card);
  border-radius: var(--r-pill);
  padding: 10px 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
}
.chip-glass .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- Cards & figures ---------- */

.card {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
}

.figure {
  border-radius: var(--r-card);
  overflow: hidden;
  position: relative;
}
.figure img { width: 100%; height: 100%; object-fit: cover; }

.figcap {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  margin-top: 16px;
}

/* ---------- Stat blocks ---------- */

.stat-row {
  display: flex;
  flex-wrap: wrap;
}
.stat {
  padding: 8px 40px;
  border-left: 1px solid var(--line);
}
.stat:first-child { padding-left: 0; border-left: none; }
.stat-value {
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 550;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.stat-value small {
  font-size: 0.45em;
  font-weight: 500;
  color: var(--ink-55);
  letter-spacing: 0;
  margin-left: 4px;
}
.stat-name {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-55);
  margin-top: 8px;
}

/* Massive performance numerals */
.perf-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.perf-cell {
  padding: 56px 40px 64px 0;
  border-right: 1px solid var(--line);
}
.perf-cell:last-child { border-right: none; }
.perf-cell + .perf-cell { padding-left: 40px; }
.perf-value {
  font-size: clamp(56px, 6vw, 104px);
  font-weight: 550;
  letter-spacing: -0.045em;
  line-height: 1;
  white-space: nowrap;
}
.perf-value small {
  font-size: 0.32em;
  font-weight: 500;
  color: var(--ink-55);
  margin-left: 6px;
  letter-spacing: -0.01em;
}
.perf-name {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-55);
  margin-top: 18px;
}
.perf-note {
  font-size: 14px;
  color: var(--ink-55);
  margin-top: 10px;
  text-wrap: pretty;
}

/* ---------- Feature columns ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
}
.feature {
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.feature-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--ink-35);
  display: block;
  margin-bottom: 18px;
}
.feature h4 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0 0 10px;
}
.feature p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-55);
  margin: 0;
  text-wrap: pretty;
}

/* ---------- Split layouts ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 6vw, 112px);
  align-items: center;
}
.split-wide-media { grid-template-columns: 1.2fr 1fr; }

.spec-list { margin-top: 48px; border-top: 1px solid var(--line); }
.spec-item {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 28px;
  align-items: baseline;
  padding: 22px 0;
  border-bottom: 1px solid var(--line-soft);
}
.spec-item dt {
  font-size: clamp(24px, 2.2vw, 32px);
  font-weight: 550;
  letter-spacing: -0.03em;
  margin: 0;
  white-space: nowrap;
}
.spec-item dt small { font-size: 0.5em; color: var(--ink-55); font-weight: 500; }
.spec-item dd { margin: 0; font-size: 15px; color: var(--ink-55); text-wrap: pretty; }

/* ---------- Dark theme section ---------- */

.theme-dark {
  background: var(--night);
  color: var(--snow-90);
}
.theme-dark .label { color: var(--snow-60); }
.theme-dark .label::before { background: var(--snow-35); }
.theme-dark .lead { color: var(--snow-60); }
.theme-dark .feature { border-top-color: var(--snow-line); }
.theme-dark .feature p { color: var(--snow-60); }
.theme-dark .feature-num { color: var(--snow-35); }
.theme-dark .figcap { border-top-color: var(--snow-line); }
.theme-dark .body-sm, .theme-dark .mono-sm { color: var(--snow-60); }

/* ---------- Quotes ---------- */

.quote-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(32px, 4vw, 64px);
}
.quote {
  border-top: 1px solid var(--ink);
  padding-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.quote blockquote {
  margin: 0;
  font-size: clamp(19px, 1.7vw, 23px);
  line-height: 1.45;
  font-weight: 450;
  letter-spacing: -0.015em;
  text-wrap: pretty;
}
.quote footer { margin-top: auto; }
.quote .q-name { font-size: 14.5px; font-weight: 600; }
.quote .q-role {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-55);
  margin-top: 4px;
}

/* ---------- Phone mock ---------- */

.phone {
  width: 330px;
  border-radius: 52px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft), inset 0 0 0 10px var(--ink);
  padding: 10px;
  margin-inline: auto;
}
.phone-screen {
  border-radius: 42px;
  overflow: hidden;
  background: var(--paper-2);
  display: flex;
  flex-direction: column;
  min-height: 640px;
  font-size: 13px;
}

/* ---------- Footer ---------- */

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-block: 72px 56px;
  border-top: 1px solid var(--snow-line);
}
.footer-grid h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--snow-35);
  margin: 0 0 18px;
  font-weight: 500;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.footer-grid a { color: var(--snow-60); text-decoration: none; font-size: 14.5px; transition: color .25s; }
.footer-grid a:hover { color: var(--snow-90); }

.footer-legal {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-block: 28px 40px;
  border-top: 1px solid var(--snow-line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--snow-35);
}

/* ---------- Reveal on scroll ---------- */

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.9s cubic-bezier(.2,.65,.2,1), transform 0.9s cubic-bezier(.2,.65,.2,1);
  }
  .reveal.in { opacity: 1; transform: none; }
  .reveal-d1 { transition-delay: 0.08s; }
  .reveal-d2 { transition-delay: 0.16s; }
  .reveal-d3 { transition-delay: 0.24s; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .perf-grid { grid-template-columns: 1fr 1fr; }
  .perf-cell { border-right: none; border-bottom: 1px solid var(--line); padding-left: 0 !important; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .quote-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .split, .split-wide-media { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .stat { padding: 8px 24px; }
}

@media (max-width: 640px) {
  .feature-grid { grid-template-columns: 1fr; }
  .stat-row { flex-direction: column; gap: 20px; }
  .stat { border-left: none; padding: 0; }
  .perf-grid { grid-template-columns: 1fr; }
}
