:root {
  --bg: #060A14;
  --text: #FFFFFF;
  --text-2: #CDD6E7;
  --muted: #8E9BB5;
  --accent: #7AA8FF;
  --line: rgba(255, 255, 255, 0.14);
  --slide-duration: 7s;   /* keep in sync with INTERVAL in script.js */
  --fade: 1.4s;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Sora", var(--font-sans);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--text); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 8px; }

.page { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; overflow: hidden; isolation: isolate; }
.container { position: relative; width: 100%; max-width: 1280px; margin: 0 auto; padding-left: clamp(20px, 4vw, 48px); padding-right: clamp(20px, 4vw, 48px); }

/* ---------- Slideshow ---------- */
.slideshow { position: absolute; inset: 0; z-index: -2; background: var(--bg); }
.slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: 70% center;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity var(--fade) ease-in-out;
  will-change: opacity, transform;
}
.slide.is-active {
  opacity: 1;
  animation: drift calc(var(--slide-duration) + var(--fade)) ease-out forwards;
}
@keyframes drift {
  from { transform: scale(1.06); }
  to   { transform: scale(1); }
}

/* Keeps text readable on the left; lets the picture show on the right */
.scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(6, 10, 20, 0.96) 0%, rgba(6, 10, 20, 0.86) 32%, rgba(6, 10, 20, 0.35) 62%, rgba(6, 10, 20, 0.1) 100%),
    linear-gradient(180deg, rgba(6, 10, 20, 0.6) 0%, rgba(6, 10, 20, 0) 18%, rgba(6, 10, 20, 0) 75%, rgba(6, 10, 20, 0.75) 100%);
}

/* ---------- Header ---------- */
.header {
  padding-top: 28px; padding-bottom: 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { flex: none; width: 34px; height: 34px; border-radius: 9px; background: #FFFFFF; display: flex; align-items: center; justify-content: center; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 18px; letter-spacing: -0.01em; }
.brand-name span { color: var(--muted); }

.header-cta {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-size: 14px; font-weight: 500; text-decoration: none; color: var(--text-2);
  transition: background-color .2s ease, color .2s ease;
}
.header-cta:hover { background: rgba(255, 255, 255, 0.12); color: var(--text); }

/* ---------- Hero ---------- */
.hero {
  flex: 1;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: 40px; padding-bottom: 64px;
}
.eyebrow {
  margin: 0 0 28px;
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: #34D399; box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.16); }

h1 {
  margin: 0 0 28px;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.5rem, 5.4vw, 4.5rem); line-height: 1.05; letter-spacing: -0.035em;
}
.accent { color: var(--accent); }

.lead { margin: 0 0 44px; max-width: 31rem; font-size: clamp(17px, 1.5vw, 19px); line-height: 1.65; color: var(--text-2); }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.button {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 56px; padding: 0 30px; border-radius: 999px;
  background: #FFFFFF; color: #0E1526; text-decoration: none;
  font-weight: 600; font-size: 16px;
  transition: background-color .2s ease;
}
.button:hover { background: #E2EBFF; }
.button svg { transition: transform .2s ease; }
.button:hover svg { transform: translateX(3px); }

/* ---------- Footer & slide navigation ---------- */
.footer {
  padding-top: 20px; padding-bottom: 28px;
  display: flex; flex-wrap: wrap-reverse; align-items: flex-end; justify-content: space-between; gap: 20px;
  font-size: 14px; color: var(--muted);
}
.slide-nav { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.caption { margin: 0; display: flex; gap: 12px; font-size: 14px; color: var(--text-2); }
.caption-num { font-variant-numeric: tabular-nums; color: var(--muted); }

.bars { display: flex; gap: 6px; }
.bar {
  width: 52px; height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer;
  display: flex; align-items: center;
}
.bar::before { content: ""; position: absolute; }
.bar { position: relative; }
.bar::after {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px;
  border-radius: 2px; background: rgba(255, 255, 255, 0.22);
}
.bar:hover::after { background: rgba(255, 255, 255, 0.45); }
.bar-fill {
  position: absolute; left: 0; top: 50%; height: 2px; margin-top: -1px; width: 0;
  border-radius: 2px; background: #FFFFFF; z-index: 1;
}
.bar.is-done .bar-fill { width: 100%; opacity: .55; }
.bar.is-active .bar-fill { animation: fill var(--slide-duration) linear forwards; }
@keyframes fill { from { width: 0; } to { width: 100%; } }

/* ---------- Small screens ---------- */
@media (max-width: 720px) {
  .slide { background-position: 62% center; }
  .scrim { background: linear-gradient(180deg, rgba(6, 10, 20, 0.7) 0%, rgba(6, 10, 20, 0.82) 50%, rgba(6, 10, 20, 0.92) 100%); }
  .header-cta { padding: 0; width: 44px; justify-content: center; font-size: 0; gap: 0; }
  .hero { padding-top: 16px; padding-bottom: 40px; }
  .footer { justify-content: flex-start; }
  .slide-nav { align-items: flex-start; }
  .caption-text { display: none; }
}

/* ---------- Reduced motion: still image, no autoplay ---------- */
@media (prefers-reduced-motion: reduce) {
  .slide, .slide.is-active { animation: none; transform: none; transition: none; }
  .bar.is-active .bar-fill { animation: none; width: 100%; }
  .button svg, .header-cta { transition: none; }
}
