/* style.css — Basilvision */

:root,
[data-theme='light'] {
  /* Surfaces — deep noir, slightly warm black (matches the underground pool footage) */
  --color-bg: #0b0e10;
  --color-surface: #12161a;
  --color-surface-2: #171c21;
  --color-surface-offset: #1c2227;
  --color-divider: color-mix(in oklab, #e7f2f3 12%, transparent);
  --color-border: color-mix(in oklab, #e7f2f3 18%, transparent);

  /* Text */
  --color-text: #eef4f4;
  --color-text-muted: #9fb1b3;
  --color-text-faint: #617274;
  --color-text-inverse: #0b0e10;

  /* Primary accent — cyan-teal, echoes the lit water in the video */
  --color-primary: #35c7d6;
  --color-primary-hover: #6fdce7;
  --color-primary-active: #26a2af;
  --color-primary-highlight: color-mix(in oklab, #35c7d6 20%, transparent);

  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.3);
  --shadow-md: 0 4px 20px oklch(0 0 0 / 0.4);
  --shadow-lg: 0 20px 60px oklch(0 0 0 / 0.55);

  --content-narrow: 640px;
  --content-default: 960px;

  --font-display: 'Instrument Serif', 'Georgia', serif;
  --font-body: 'Work Sans', 'Helvetica Neue', sans-serif;
}

/* This site is intentionally single-mode (cinematic dark) — the video hero
   only reads correctly against near-black. A "light" surface toggle would
   fight the footage, so both theme attributes map to the same noir palette. */
[data-theme='dark'] {
  --color-bg: #0b0e10;
  --color-surface: #12161a;
  --color-text: #eef4f4;
  --color-primary: #35c7d6;
}

/* ---------- Type scale ---------- */
:root {
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2.25rem, 1.4rem + 3vw, 4.25rem);
  --text-hero: clamp(3.5rem, 1rem + 8vw, 9rem);

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
}

/* ---------- Layout ---------- */
.stage {
  position: relative;
  min-height: 100dvh;
  width: 100%;
  overflow: hidden;
  background: var(--color-bg);
  display: flex;
  flex-direction: column;
}

.stage__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: saturate(1.05) contrast(1.04);
}

.stage__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    oklch(0 0 0 / 0.55) 0%,
    oklch(0 0 0 / 0.15) 32%,
    oklch(0 0 0 / 0.35) 68%,
    oklch(0 0 0 / 0.82) 100%
  );
}

.stage__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  padding: var(--space-6) var(--space-6) var(--space-10);
}

/* ---------- Header ---------- */
.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-text);
  text-decoration: none;
}

.brand__mark {
  width: 34px;
  height: 34px;
  color: var(--color-primary);
  flex-shrink: 0;
}

.brand__word {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---------- Hero copy ---------- */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: var(--space-6);
  max-width: 760px;
  margin: 0 auto;
  padding-block: var(--space-16);
}

.hero__eyebrow {
  font-size: var(--text-xs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-primary);
  font-weight: 600;
}

.hero__title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-hero);
  line-height: 1.02;
  color: var(--color-text);
  text-shadow: 0 4px 40px oklch(0 0 0 / 0.5);
}

.hero__subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 46ch;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-4);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-8);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 1px solid transparent;
}

.btn--primary {
  background: var(--color-primary);
  color: #06171a;
  box-shadow: var(--shadow-md);
}

.btn--primary:hover {
  background: var(--color-primary-hover);
  box-shadow: var(--shadow-lg);
  transform: translateY(-1px);
}

.btn--primary:active {
  background: var(--color-primary-active);
  transform: translateY(0);
}

.btn__icon {
  width: 16px;
  height: 16px;
}

/* ---------- Footer ---------- */
.stage__footer {
  display: flex;
  justify-content: center;
  color: var(--color-text-faint);
  font-size: var(--text-xs);
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .stage__content {
    padding: var(--space-5) var(--space-4) var(--space-8);
  }
  .hero {
    padding-block: var(--space-10);
    gap: var(--space-5);
  }
  .hero__subtitle {
    font-size: var(--text-base);
  }
  .btn {
    padding: var(--space-4) var(--space-6);
  }
}

