/* Meet Saili — page styles (SeaDays brand language) */

:root {
  --dark-bg: #0a0a0a;
  --dark-bg-alt: #111111;
  --neon-red: #ff0033;
  --text-light: #ffffff;
  --text-gray: rgba(255, 255, 255, 0.68);
  --text-muted: rgba(255, 255, 255, 0.5);
  --card-bg: rgba(255, 255, 255, 0.04);
  --card-border: rgba(255, 255, 255, 0.1);
  --radius-lg: 24px;
  --radius-md: 18px;
  --max: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body.meet-saili-page {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--dark-bg);
  color: var(--text-light);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  background: var(--neon-red);
  color: #fff;
  padding: 12px 18px;
  border-radius: 0 0 8px 0;
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  left: 0;
}

.starfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, #0a0a0a 0%, #141414 100%);
  pointer-events: none;
}

.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(255, 0, 51, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 0, 51, 0.025) 1px, transparent 1px);
  background-size: 100px 100px;
  opacity: 0.45;
  pointer-events: none;
}

.content-layer {
  position: relative;
  z-index: 10;
}

.ms-wrap {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

/* Buttons — match homepage */
.btn-primary {
  padding: 17px 40px;
  background: var(--neon-red);
  color: #fff;
  border: none;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 28px rgba(255, 0, 51, 0.45);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  min-height: 52px;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transition: left 0.6s;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  box-shadow:
    0 0 48px rgba(255, 0, 51, 0.75),
    0 0 90px rgba(255, 0, 51, 0.35);
  transform: translateY(-2px);
}

.btn-secondary {
  padding: 15px 36px;
  background: transparent;
  color: rgba(255, 255, 255, 0.92);
  border: 2px solid rgba(255, 255, 255, 0.28);
  border-radius: 30px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
}

.btn-secondary:hover {
  border-color: var(--neon-red);
  color: #fff;
  box-shadow: 0 0 24px rgba(255, 0, 51, 0.35);
  transform: translateY(-2px);
}

.btn-primary:focus-visible,
.btn-secondary:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

/* Hero */
.ms-hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  background: var(--neon-red);
  overflow: hidden;
  padding: 120px 0 72px;
}

.ms-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.ms-hero-media video,
.ms-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
  display: block;
}

.ms-hero-media video {
  pointer-events: none;
}

.ms-hero-fallback {
  display: none;
}

.ms-hero.is-reduced-motion .ms-hero-video {
  display: none;
}

.ms-hero.is-reduced-motion .ms-hero-fallback {
  display: block;
}

.ms-hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(255, 0, 51, 0.92) 0%, rgba(255, 0, 51, 0.72) 38%, rgba(255, 0, 51, 0.18) 62%, rgba(255, 0, 51, 0.05) 100%);
  pointer-events: none;
}

.ms-hero-inner {
  position: relative;
  z-index: 2;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 32px;
  align-items: center;
}

.ms-hero-copy {
  max-width: 540px;
  color: #fff;
}

.ms-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 18px;
}

.ms-hero h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 18px;
  text-wrap: balance;
}

.ms-hero-lede {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 600;
  line-height: 1.35;
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.95);
}

.ms-hero-body {
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
  margin: 0 0 32px;
  max-width: 42ch;
}

.ms-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.ms-hero-actions .btn-primary {
  background: #0a0a0a;
  box-shadow: 0 0 28px rgba(0, 0, 0, 0.35);
}

.ms-hero-actions .btn-primary:hover {
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
}

.ms-hero-actions .btn-secondary {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}

.ms-hero-spacer {
  min-height: 280px;
}

/* Shared section chrome */
.ms-section {
  padding: clamp(72px, 10vw, 120px) 0;
}

.ms-section h2 {
  font-size: clamp(1.85rem, 3.6vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 800;
  margin: 0 0 18px;
  text-wrap: balance;
}

.ms-section-copy {
  font-size: 1.08rem;
  color: var(--text-gray);
  max-width: 48ch;
  margin: 0;
}

.ms-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.ms-reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .ms-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn-primary:hover,
  .btn-secondary:hover,
  .ms-trait:hover,
  .ms-stage:hover {
    transform: none;
  }
}

/* Intro */
.ms-intro {
  background: var(--dark-bg);
}

.ms-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.ms-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--neon-red);
  aspect-ratio: 1 / 1;
  box-shadow: 0 24px 80px rgba(255, 0, 51, 0.18);
}

.ms-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% center;
  display: block;
}

.ms-visual::after {
  content: '';
  position: absolute;
  inset: auto -20% -30% -20%;
  height: 55%;
  background: radial-gradient(ellipse at center, rgba(255, 0, 51, 0.45), transparent 70%);
  pointer-events: none;
}

/* Personality */
.ms-personality {
  background: linear-gradient(180deg, #0a0a0a 0%, #101010 100%);
}

.ms-personality-head {
  max-width: 620px;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.ms-traits {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.ms-trait {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  min-height: 100%;
}

.ms-trait:hover {
  border-color: rgba(255, 0, 51, 0.45);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(255, 0, 51, 0.12);
}

.ms-trait-label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--neon-red);
  margin-bottom: 12px;
}

.ms-trait p {
  margin: 0;
  color: var(--text-gray);
  font-size: 0.98rem;
  line-height: 1.55;
}

/* Journey */
.ms-journey {
  background: var(--dark-bg);
}

.ms-journey-head {
  margin-bottom: clamp(36px, 5vw, 56px);
  max-width: 560px;
}

.ms-stages {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  position: relative;
}

.ms-stages::before {
  content: '';
  position: absolute;
  top: 34px;
  left: 6%;
  right: 6%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 0, 51, 0.55), transparent);
  pointer-events: none;
}

.ms-stage {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 28px 22px 30px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.ms-stage:hover {
  border-color: rgba(255, 0, 51, 0.4);
  transform: translateY(-2px);
}

.ms-stage-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 0, 51, 0.12);
  border: 1px solid rgba(255, 0, 51, 0.45);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  margin-bottom: 18px;
}

.ms-stage h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  font-weight: 800;
}

.ms-stage p {
  margin: 0;
  color: var(--text-gray);
  font-size: 0.95rem;
  line-height: 1.55;
}

.ms-journey-visual {
  margin-top: clamp(36px, 5vw, 56px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--neon-red);
  max-height: 420px;
}

.ms-journey-visual img {
  width: 100%;
  height: 100%;
  max-height: 420px;
  object-fit: cover;
  object-position: 70% center;
  display: block;
}

/* Emotional */
.ms-moment {
  background: #050505;
  text-align: center;
  padding: clamp(88px, 12vw, 140px) 0;
}

.ms-moment-inner {
  max-width: 820px;
  margin: 0 auto;
}

.ms-moment-statement {
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 18px;
  text-wrap: balance;
}

.ms-moment-statement span {
  color: var(--neon-red);
}

.ms-moment-sub {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-gray);
  margin: 0 auto 36px;
  max-width: 36ch;
}

.ms-moment-visual {
  width: min(220px, 48vw);
  margin: 0 auto;
  border-radius: 28px;
  overflow: hidden;
  background: var(--neon-red);
  aspect-ratio: 1;
  box-shadow: 0 0 60px rgba(255, 0, 51, 0.28);
}

.ms-moment-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 78% center;
  display: block;
}

/* Final CTA */
.ms-cta {
  background: var(--neon-red);
  text-align: center;
  padding: clamp(80px, 11vw, 130px) 0;
}

.ms-cta h2 {
  color: #fff;
  margin-bottom: 14px;
}

.ms-cta p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.12rem;
  margin: 0 auto 28px;
  max-width: 34ch;
}

.ms-cta .btn-primary {
  background: #0a0a0a;
  box-shadow: 0 0 28px rgba(0, 0, 0, 0.35);
}

.ms-cta .btn-primary:hover {
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.45);
}

/* Responsive */
@media (max-width: 1024px) {
  .ms-traits,
  .ms-stages {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ms-stages::before {
    display: none;
  }
}

@media (max-width: 860px) {
  .ms-hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 108px 0 72px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
  }

  /*
   * Keep Saili as a viewport background layer on mobile.
   * Do not place the video in document flow (that pushed content down).
   */
  .ms-hero-media {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    height: 100vh;
    height: 100dvh;
    z-index: 0;
    pointer-events: none;
  }

  .ms-hero-scrim {
    display: block;
    z-index: 1;
  }

  .ms-hero-inner {
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
    padding: 0 0 8px;
    background: transparent;
  }

  .ms-hero-copy {
    max-width: none;
    width: min(var(--max), calc(100% - 40px));
    margin: 0 auto;
    padding-bottom: 20px;
  }

  .ms-hero-spacer {
    display: none;
  }

  .ms-hero-media video,
  .ms-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 70% center;
  }

  /* Keep later page content above the fixed Saili layer while scrolling */
  .ms-section,
  footer {
    position: relative;
    z-index: 1;
  }

  .ms-intro-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .ms-intro-grid .ms-visual {
    order: -1;
    max-width: 420px;
    margin: 0 auto;
    width: 100%;
  }

  .ms-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .ms-hero-actions .btn-primary,
  .ms-hero-actions .btn-secondary {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .ms-traits,
  .ms-stages {
    grid-template-columns: 1fr;
  }

  .ms-wrap {
    width: min(var(--max), calc(100% - 32px));
  }

  .ms-hero-copy {
    width: min(var(--max), calc(100% - 32px));
  }

  .ms-visual,
  .ms-journey-visual {
    border-radius: 18px;
  }
}
