/* =====================================================
   VERATLAS DESIGN SYSTEM
   5 colors only: Ink #16181D | Blue #3B5BDB | White #FFFFFF | Soft #F6F8FA | Muted #6B7280
   Typography: Inter exclusively
   ===================================================== */

/* --- Reset & Base ----------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Brand colors — LOCKED */
  --ink:   #16181D;
  --blue:  #3B5BDB;
  --white: #FFFFFF;
  --soft:  #F6F8FA;
  --muted: #6B7280;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'Geist Mono', 'SF Mono', 'Fira Code', monospace;

  /* Type scale */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;
  --text-6xl:  3.75rem;
  --text-7xl:  4.5rem;

  /* Spacing */
  --sp-1:  0.25rem;
  --sp-2:  0.5rem;
  --sp-3:  0.75rem;
  --sp-4:  1rem;
  --sp-5:  1.25rem;
  --sp-6:  1.5rem;
  --sp-8:  2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;
  --sp-32: 8rem;

  /* Layout */
  --max-w: 1200px;
  --max-w-wide: 1440px;
  --nav-h: 72px;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io:  cubic-bezier(0.83, 0, 0.17, 1);
  --dur-fast: 150ms;
  --dur-base: 300ms;
  --dur-slow: 600ms;
}

html {
  font-size: 16px;
  scroll-behavior: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
}

/* --- Typography ------------------------------------ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

h1 { font-size: clamp(var(--text-5xl), 5.5vw, var(--text-7xl)); }
h2 { font-size: clamp(var(--text-4xl), 4vw, var(--text-6xl)); margin-bottom: var(--sp-16); }
h3 { font-size: clamp(var(--text-2xl), 2.8vw, var(--text-4xl)); margin-bottom: var(--sp-12); }
h4 { font-size: var(--text-xl); font-weight: 600; letter-spacing: -0.01em; }

p {
  line-height: 1.75;
  max-width: 62ch;
}

p + p {
  margin-top: var(--sp-5);
}

h2 + p { margin-top: var(--sp-8); }
h3 + p { margin-top: var(--sp-6); }

a {
  color: var(--blue);
  text-decoration: none;
  transition: opacity var(--dur-fast) var(--ease-out);
}
a:hover { opacity: 0.72; }

strong { font-weight: 600; }

code, kbd {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--soft);
  padding: 0.1em 0.35em;
  border-radius: 4px;
  border: 1px solid rgba(22,24,29,0.08);
}

/* --- Layout ---------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--sp-6);
}

.container--wide {
  max-width: var(--max-w-wide);
}

.section {
  padding-block: var(--sp-32);
}

.section--sm {
  padding-block: var(--sp-20);
}

/* --- Color contexts -------------------------------- */
.bg-dark  { background-color: var(--ink); color: var(--white); }
.bg-soft  { background-color: var(--soft); }
.bg-white { background-color: var(--white); }

/* --- Geometric background motif -------------------- */
/* The ascending planes of the Veratlas mark, large-scale as decorative bg element */
.section-motif {
  position: relative;
  overflow: hidden;
}

.section-motif__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.section-motif__bg svg {
  position: absolute;
  right: -4%;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(320px, 50%, 680px);
  height: auto;
  opacity: 0.035;
}

.cta-final {
  padding-block: var(--sp-32);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-final__inner {
  position: relative;
  z-index: 2;
}

.cta-final h2 {
  color: var(--white);
  max-width: 16ch;
  margin-inline: auto;
  margin-bottom: var(--sp-4);
}

.cta-final__sub {
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.48);
  max-width: 44ch;
  margin-inline: auto;
  margin-bottom: var(--sp-10);
}

.cta-final__motif {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.cta-final__motif svg {
  width: 70%;
  max-width: 900px;
  opacity: 0.025;
}

/* --- Utility --------------------------------------- */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

.text-muted { color: var(--muted); }
.text-blue  { color: var(--blue); }
.text-white { color: var(--white); }

/* Section label (eyebrow) */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--sp-5);
}

.eyebrow::before {
  content: '';
  flex-shrink: 0;
  width: 20px;
  height: 1.5px;
  background: var(--blue);
}

.bg-dark .eyebrow { color: rgba(255,255,255,0.38); }

/* Horizontal rule */
hr {
  border: none;
  height: 1px;
  background: rgba(22,24,29,0.08);
}

.bg-dark hr { background: rgba(255,255,255,0.07); }

/* --- Noise / dot-grid texture for dark sections ---- */
/* Subtle repeating dot grid — "from the future" technical feel */
.dot-grid {
  background-image: radial-gradient(rgba(255,255,255,0.055) 1px, transparent 1px);
  background-size: 28px 28px;
  background-position: 0 0;
}

/* Thin blue accent horizontal rule */
.accent-rule {
  display: block;
  width: 40px;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
  margin-bottom: var(--sp-6);
}

/* --- Marquee strip --------------------------------- */
.marquee-strip {
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.015);
  padding-block: 14px;
  user-select: none;
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 0;
  width: max-content;
  animation: marqueeScroll 28s linear infinite;
}

.marquee-track:hover { animation-play-state: paused; }

.marquee-item {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.28);
  white-space: nowrap;
  padding-inline: var(--sp-6);
}

.marquee-dot {
  color: var(--blue);
  opacity: 0.5;
  font-size: 10px;
  flex-shrink: 0;
}

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* --- Scroll indicator ------------------------------ */
.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  position: absolute;
  bottom: var(--sp-8);
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  opacity: 0.38;
}

.scroll-indicator__line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.5));
  animation: scrollLine 1.8s ease-in-out infinite;
}

.scroll-indicator__label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* --- Geist Mono for technical numbers -------------- */
.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* --- Horizontal bleed label (section number) ------- */
.bleed-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.2);
  text-transform: uppercase;
  position: absolute;
  right: var(--sp-6);
  top: 50%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
}

/* --- Responsive breakpoints ------------------------ */
@media (max-width: 1024px) {
  :root { --nav-h: 68px; }
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; }
  .section { padding-block: var(--sp-20); }
  .container { padding-inline: var(--sp-4); }
  h1 { letter-spacing: -0.02em; }
}

@media (max-width: 480px) {
  :root { --nav-h: 60px; }
  .section { padding-block: var(--sp-16); }
}
