/* ============================================================
   K.RIDEUS Design System — Vanilla Rebuild
   Phase 1: Unified Tokens
   Phase 2: Component System
   Phase 3: Premium Details
   ============================================================ */

/* --- RESET & BASE --- */
[hidden] { display: none !important; }

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

:root {
  /* ── Color Tokens (Phase 1) ── */
  --color-accent: #2E5CFF;
  --color-accent-light: #5B8AFF;
  --color-accent-glow: rgba(46, 92, 255, 0.35);

  --color-bg: #0F1115;
  --color-bg-deep: #080A0E;
  --color-bg-card: #282c35;
  --color-bg-light: #F8F9FA;

  --color-text: #FFFFFF;
  --color-text-muted: #94A3B8;
  --color-text-dim: #64748B;
  --color-text-dark: #0F1115;

  /* ── Light Surface Text (밝은 배경용) ── */
  --color-ink: #1c1917;
  --color-ink-secondary: #44403c;
  --color-ink-caption: #a8a29e;

  --color-border: #1E2028;
  --color-border-light: #E5E7EB;
  --color-border-glass: rgba(255, 255, 255, 0.08);

  /* ── Typography ── */
  --font-display: 'Outfit', 'Montserrat', sans-serif;
  --font-serif: 'Outfit', 'Montserrat', sans-serif;
  --font-accent: 'Outfit', 'Montserrat', sans-serif;
  --font-body: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;

  /* ── Type Scale ── */
  --text-h1: 3rem;          /* 48px — 페이지 타이틀 */
  --text-h2: 2.25rem;       /* 36px — 섹션 제목 */
  --text-h3: 1.5rem;        /* 24px — 서브 섹션 */
  --text-body-lg: 1.125rem; /* 18px — 큰 본문 (인트로, 설명) */
  --text-body: 1rem;        /* 16px — 본문 */
  --text-sm: 0.875rem;      /* 14px — 작은 본문 */
  --text-label: 0.8rem;     /* 12.8px — 라벨, 노트 */
  --text-overline: 0.75rem; /* 12px — 오버라인, 태그 */

  /* ── Cool-tone Subpage Tokens ── */
  --color-cool-accent: #7B9CCC;
  --color-cool-accent-light: #A3BDE0;
  --color-cool-muted: #7A8190;
  --color-cool-bg: #0D1017;
  --color-cool-surface: #f2f4f7;
  --color-cool-border: #d8dce3;

  /* ── Spacing ── */
  --container-max: 1216px;
  --container-px: 1.5rem;
  --container-px-md: 2rem;
  --container-px-lg: 3rem;

  /* ── Motion (Phase 2 — Supanova Standard) ── */
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast: 0.2s;
  --duration-normal: 0.5s;
  --duration-slow: 0.8s;

  /* ── Radius ── */
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-full: 9999px;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  word-break: keep-all;        /* Phase 1: Korean line-break */
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

ul, ol { list-style: none; }

/* ── Container ── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-px);
  padding-right: var(--container-px);
}

@media (min-width: 768px) {
  .container {
    padding-left: var(--container-px-md);
    padding-right: var(--container-px-md);
  }
}
@media (min-width: 1024px) {
  .container {
    padding-left: var(--container-px-lg);
    padding-right: var(--container-px-lg);
  }
}


/* ============================================================
   TYPOGRAPHY SYSTEM (Phase 1 — Unified Scale)
   ============================================================ */
.font-display { font-family: var(--font-display); }

/* ── Scale (2025+ trend: larger, more generous) ──
   Minimum readable: 13px (tags) / 15px (body) / 16px (body-lg)
   ────────────────────────────────────────────────
   Level        Mobile       Desktop      Ratio
   hero         3.25rem(52)  7.5rem(120)  —
   h1           2.25rem(36)  3.5rem(56)   1.0
   h2           1.75rem(28)  2.75rem(44)  0.78
   h3           1.375rem(22) 1.75rem(28)  0.64
   body-lg      1.125rem(18) 1.25rem(20)  —
   body         1rem(16)     1.0625rem(17)—
   label        0.8125rem(13)—            bold+tracking
   caption      0.8125rem(13)—            light
   ──────────────────────────────────────────────── */

.text-hero {
  font-family: var(--font-display);
  font-size: clamp(3.25rem, 8vw, 7.5rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.02em;
}

.text-h1 {
  font-family: var(--font-display);
  font-size: var(--text-h1);
  font-weight: 700;
  line-height: 1.1;
  text-wrap: balance;
}

.text-h2 {
  font-family: var(--font-display);
  font-size: var(--text-h2);
  font-weight: 700;
  line-height: 1.15;
  text-wrap: balance;
}

.text-h3 {
  font-family: var(--font-display);
  font-size: var(--text-h3);
  font-weight: 600;
  line-height: 1.2;
}

.text-body-lg {
  font-size: var(--text-body-lg);
  line-height: 1.7;
  font-weight: 300;
}

.text-body {
  font-size: var(--text-body);
  line-height: 1.7;
}

.text-label {
  font-size: var(--text-label);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.text-caption {
  font-size: var(--text-label);
  line-height: 1.5;
  color: var(--color-text-dim);
}

/* Korean heading helpers */
h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
  word-break: keep-all;
}


/* ============================================================
   BUTTON SYSTEM (Phase 2 — Unified Components)
   ============================================================ */

/* Base button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: all var(--duration-normal) var(--ease-spring);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

/* Phase 3: Scale feedback */
.btn:hover { transform: scale(1.02); }
.btn:active { transform: scale(0.98); }

/* Primary — Pill solid */
.btn-primary {
  background: var(--color-text);
  color: var(--color-text-dark);
  padding: 1rem 2.5rem;
  border-radius: var(--radius-full);
}
.btn-primary:hover {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 0 30px var(--color-accent-glow);
}

/* Secondary — Pill outline */
.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 1rem 2.5rem;
  border-radius: var(--radius-full);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.5);
}

/* Ghost */
.btn-ghost {
  background: transparent;
  color: var(--color-text-muted);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.05);
  color: var(--color-text);
}

/* Dark variant (on light bg) */
.btn-dark {
  background: var(--color-text-dark);
  color: #fff;
  padding: 1rem 2.5rem;
  border-radius: var(--radius-full);
}
.btn-dark:hover {
  background: var(--color-accent);
  box-shadow: 0 0 30px var(--color-accent-glow);
}

/* Arrow icon inside button */
.btn .arrow {
  transition: transform var(--duration-normal) var(--ease-spring);
}
.btn:hover .arrow {
  transform: translateX(4px);
}


/* ============================================================
   CARD SYSTEM (Phase 2 — Unified Components)
   ============================================================ */
.card {
  position: relative;
  overflow: hidden;
  transition: all var(--duration-normal) var(--ease-spring);
}

/* Dark card */
.card-dark {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-glass);
}
.card-dark:hover {
  border-color: rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.08);
}

/* Glass card */
.card-glass {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--color-border-glass);
  backdrop-filter: blur(12px);
}
.card-glass:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
}

/* Light card */
.card-light {
  background: #fff;
  border: 1px solid var(--color-border-light);
}
.card-light:hover {
  border-color: var(--color-accent);
}


/* ============================================================
   SECTION HEADER (Phase 2)
   ============================================================ */
.section-header { margin-bottom: 3rem; }

.section-overline {
  display: inline-block;
  color: var(--color-accent);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section-overline--badge {
  border: 1px solid var(--color-accent);
  padding: 0.25rem 0.75rem;
  color: var(--color-accent);
}

.section-desc {
  color: var(--color-text-muted);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.7;
  max-width: 28rem;
}

.section-desc--dark {
  color: var(--color-text-dim);
}


/* ============================================================
   EYEBROW TAG (Phase 3)
   ============================================================ */
.eyebrow-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.6);
}


/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: all var(--duration-normal) var(--ease-spring);
}

.navbar.scrolled {
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  transition: border-color var(--duration-normal);
}

.navbar.scrolled .navbar-inner {
  border-color: transparent;
}

.navbar-logo {
  height: 2rem;
  width: auto;
  filter: brightness(0) invert(1);
}

@media (min-width: 768px) {
  .navbar-logo { height: 2.5rem; }
  .navbar-inner { padding: 1rem 0; }
}

/* Desktop nav links */
.nav-links {
  display: none;
  align-items: center;
  gap: 2.5rem;
}

@media (min-width: 1024px) {
  .nav-links { display: flex; }
}

.nav-link {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  position: relative;
  transition: color var(--duration-fast);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-accent);
  transition: width var(--duration-normal) var(--ease-spring);
}
.nav-link:hover { color: #fff; }
.nav-link:hover::after { width: 100%; }

/* Right actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-support {
  display: none;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  transition: color var(--duration-fast);
}
.nav-support:hover { color: #fff; }
@media (min-width: 768px) { .nav-support { display: block; } }

/* Language selector */
.lang-selector {
  position: relative;
}
.lang-btn {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.6);
  transition: color var(--duration-fast);
}
.lang-btn:hover { color: #fff; }
.lang-btn svg {
  width: 0.75rem;
  height: 0.75rem;
  transition: transform var(--duration-normal);
}
.lang-btn.open svg { transform: rotate(180deg); }

.lang-dropdown {
  position: absolute;
  top: calc(100% + 1rem);
  right: 0;
  width: 6rem;
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
  overflow: hidden;
  opacity: 0;
  transform: translateY(-0.5rem);
  pointer-events: none;
  transition: all var(--duration-normal) var(--ease-spring);
}
.lang-dropdown.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.lang-option {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.75rem 1rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #94A3B8;
  transition: all var(--duration-fast);
}
.lang-option:hover,
.lang-option.active {
  color: #000;
  background: #F8FAFC;
}

/* Mobile menu button */
.menu-toggle {
  display: block;
  color: #fff;
  padding: 0.25rem;
}
@media (min-width: 1024px) { .menu-toggle { display: none; } }

.menu-toggle svg {
  width: 1.5rem;
  height: 1.5rem;
}

/* Mobile overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 200;
  padding-top: 5rem;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s var(--ease-spring);
  overflow-y: auto;
}
.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 210;
  color: #fff;
}
.mobile-menu-close svg { width: 2rem; height: 2rem; }

.mobile-nav-link {
  display: block;
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 700;
  color: rgba(255,255,255,0.4);
  padding: 0.75rem 1.5rem;
  transition: all var(--duration-normal);
}
.mobile-nav-link:hover {
  color: #fff;
  padding-left: 2.5rem;
}


/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  z-index: 0;
  overflow: hidden;
  background: var(--color-bg);
}

.hero-bg {
  position: absolute;
  inset: 0;
  will-change: transform;
}
.hero-bg.frames-active {
  transform: none !important;
}
#heroCanvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
#heroFallbackImg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(30%) contrast(1.1);
}
#heroCanvas.active ~ #heroFallbackImg {
  display: none;
}

.hero-scroll-spacer {
  position: relative;
  z-index: 1;
  height: 200vh; /* 100vh hero + 100vh animation scroll */
  pointer-events: none;
}
.hero-dimmer {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 1;
  transition: opacity 0.3s;
}
.hero-bg.frames-active .hero-dimmer {
  background: rgba(0,0,0,0.15);
}
.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.6), transparent 40%, #0A0A0A);
  z-index: 2;
}
.hero-bg.frames-active .hero-gradient {
  background: linear-gradient(to bottom, rgba(0,0,0,0.3), transparent 30%, #0A0A0A);
}

.hero-content {
  position: relative;
  z-index: 10;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  will-change: transform;
}

.hero-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  width: 100%;
  padding: 5rem 1.5rem 4rem;
}

@media (min-width: 768px) {
  .hero-inner {
    border-left: 1px solid rgba(255,255,255,0.1);
    padding: 12rem 1.5rem 4rem 4rem;
  }
}

.hero-title {
  margin-bottom: 0.5rem;
  margin-left: -0.05em;
}

.hero-subtitle {
  font-size: clamp(1.5rem, 4vw, 3.75rem);
  font-weight: 300;
  color: rgba(255,255,255,0.9);
  margin-bottom: 2rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  .hero-subtitle { margin-bottom: 3rem; }
}

.hero-subtitle .accent {
  font-weight: 500;
  color: var(--color-accent);
}

.hero-desc {
  max-width: 32rem;
  color: #CBD5E1;
  font-size: clamp(0.875rem, 1.2vw, 1.125rem);
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .hero-desc { margin-bottom: 4rem; }
}

.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 6rem;
}

@media (min-width: 768px) {
  .hero-cta {
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 0;
  }
}

/* Scroll indicator */
.scroll-indicator {
  display: none;
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  color: rgba(255,255,255,0.25);
}
@media (min-width: 768px) {
  .scroll-indicator { display: flex; }
}
.scroll-indicator span {
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}
.scroll-indicator .line {
  width: 1px;
  height: 4rem;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.3), transparent);
}


/* ============================================================
   MATCHING LOGIC (Shuttle vs Private)
   ============================================================ */
.matching {
  position: relative;
  z-index: 10;
  margin-top: 0;
  background: rgba(10, 10, 10, 0.65);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 5rem 0;
}

@media (min-width: 768px) {
  .matching { padding: 7rem 0; }
}
@media (min-width: 1024px) {
  .matching { padding: 8rem 0; }
}

.matching-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 768px) {
  .matching-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
  }
}

.matching-card {
  position: relative;
  padding: 1.5rem;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--duration-normal) var(--ease-spring);
}
@media (min-width: 768px) {
  .matching-card {
    padding: 3rem;
    border: none;
    border-radius: 0;
  }
  .matching-card:first-child {
    border-right: 1px solid rgba(255,255,255,0.05);
  }
}

.matching-card:hover { background: rgba(255,255,255,0.06); }

.matching-bg-icon {
  position: absolute;
  right: -3rem;
  bottom: -3rem;
  opacity: 0.04;
  transition: transform var(--duration-slow) var(--ease-spring);
}
.matching-card:hover .matching-bg-icon {
  transform: scale(1.1) rotate(6deg);
}
.matching-bg-icon svg { width: 18rem; height: 18rem; }

.matching-icon {
  width: 3rem;
  height: 3rem;
  padding: 0.75rem;
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.08);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.matching-icon svg { width: 1.5rem; height: 1.5rem; }

.matching-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.matching-type-tag {
  display: inline-block;
  background: rgba(255,255,255,0.05);
  color: #9ABDFF;
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 2rem;
}

.matching-desc {
  color: var(--color-text-muted);
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: 2.5rem;
  min-height: 3rem;
}

.matching-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.matching-feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #CBD5E1;
}

.feature-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 10px var(--color-accent-glow);
  flex-shrink: 0;
}


/* ============================================================
   CATEGORIES
   ============================================================ */
.categories {
  position: relative;
  z-index: 10;
  background: #fff;
  padding: 5rem 0;
  overflow: hidden;
}
@media (min-width: 768px) { .categories { padding: 7rem 0; } }
@media (min-width: 1024px) { .categories { padding: 8rem 0; } }

/* Ambient blobs */
.categories .blob {
  position: absolute;
  width: 24rem;
  height: 24rem;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  pointer-events: none;
}
.categories .blob-1 {
  top: 0; left: 25%;
  background: #DBEAFE;
}
.categories .blob-2 {
  bottom: 0; right: 25%;
  background: #EDE9FE;
}

.categories .section-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .categories .section-header {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    text-align: left;
  }
}

.categories .text-h1,
.categories .text-h2 { color: var(--color-text-dark); }

.cat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  position: relative;
  z-index: 1;
}
@media (min-width: 1024px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
}

.cat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 10rem;
  border: 1px solid var(--color-border-light);
  overflow: hidden;
  transition: all var(--duration-normal) var(--ease-spring);
}
@media (min-width: 768px) {
  .cat-card { min-height: 14rem; }
}

.cat-card:hover {
  border-color: var(--color-accent);
  z-index: 2;
}

.cat-card-bg {
  position: absolute;
  inset: 0;
}
.cat-card-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-spring);
}
.cat-card:hover .cat-card-bg img {
  transform: scale(1.05);
}
.cat-card-bg .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0.4), transparent);
}

/* Card number */
.cat-number {
  display: none;
  position: relative;
  z-index: 2;
  text-align: right;
  padding: 2.5rem 2.5rem 0 0;
  font-size: 1.25rem;
  font-weight: 700;
  font-family: var(--font-display);
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.2em;
  transition: color var(--duration-normal);
}
@media (min-width: 768px) { .cat-number { display: block; } }
.cat-card:hover .cat-number { color: #fff; }

/* Card content */
.cat-content {
  position: relative;
  z-index: 2;
  margin-top: auto;
  padding: 0.75rem;
}
@media (min-width: 768px) {
  .cat-content { padding: 2.5rem; }
}

.cat-title {
  font-family: var(--font-display);
  font-weight: 700;
  color: #fff;
  font-size: 1rem;
  margin-bottom: 0.125rem;
  transition: transform var(--duration-normal) var(--ease-spring);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (min-width: 768px) {
  .cat-title { font-size: 1.875rem; margin-bottom: 0.5rem; }
}
.cat-card:hover .cat-title { transform: translateX(0.5rem); }

.cat-sub {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-accent-light);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
@media (min-width: 768px) {
  .cat-sub { font-size: 0.875rem; margin-bottom: 1rem; }
}

.cat-desc {
  display: none;
  color: #CBD5E1;
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 300;
  border-left: 2px solid var(--color-accent-light);
  padding-left: 1rem;
  margin-bottom: 2rem;
  transition: color var(--duration-normal);
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}
@media (min-width: 768px) {
  .cat-desc {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}
.cat-card:hover .cat-desc { color: #fff; }

.cat-view {
  display: none;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.6);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color var(--duration-normal);
}
@media (min-width: 768px) { .cat-view { display: flex; } }
.cat-card:hover .cat-view { color: #fff; }
.cat-view svg {
  width: 1rem;
  height: 1rem;
  transition: transform var(--duration-normal) var(--ease-spring);
}
.cat-card:hover .cat-view svg { transform: translateX(4px); }


/* ============================================================
   BRAND VIDEO
   ============================================================ */
.brand-video {
  position: relative;
  z-index: 10;
  background: var(--color-bg);
  padding: 5rem 0;
  border-top: 1px solid var(--color-border);
  overflow: hidden;
}
@media (min-width: 768px) { .brand-video { padding: 7rem 0; } }

.brand-video .glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(46,92,255,0.05), transparent);
  pointer-events: none;
}

.video-wrap {
  position: relative;
  max-width: 56rem;
  margin: 0 auto;
}

.video-container {
  position: relative;
  aspect-ratio: 16 / 9;
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
}

.video-container iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.mute-btn {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  z-index: 20;
  padding: 0.625rem;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  color: #fff;
  transition: background var(--duration-fast);
}
.mute-btn:hover { background: rgba(0,0,0,0.8); }
.mute-btn svg { width: 1.25rem; height: 1.25rem; }


/* ============================================================
   WHY US
   ============================================================ */
.why-us {
  position: relative;
  z-index: 10;
  background: var(--color-bg);
  padding: 6rem 0;
  overflow: hidden;
}
@media (min-width: 768px) { .why-us { padding: 8rem 0; } }

/* Subtle grid background */
.why-us .grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 4rem 4rem;
  pointer-events: none;
}

.why-grid {
  display: grid;
  gap: 4rem;
}
@media (min-width: 768px) {
  .why-grid {
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
  }
}

.why-quote {
  color: var(--color-text-muted);
  font-size: 1.1875rem;
  font-weight: 300;
  line-height: 1.7;
  border-left: 1px solid var(--color-accent);
  padding-left: 1.5rem;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 2.5rem;
}

.stat-val {
  display: block;
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Feature cards */
.why-cards { display: flex; flex-direction: column; gap: 0.75rem; }

.why-card {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.5rem;
  border: 1px solid var(--color-border-glass);
  background: rgba(255,255,255,0.04);
  transition: all var(--duration-normal) var(--ease-spring);
  cursor: pointer;
}
.why-card:hover {
  border-color: rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.08);
}

.why-card-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-text-muted);
  transition: all var(--duration-normal);
}
.why-card:hover .why-card-icon {
  color: #fff;
  border-color: var(--color-accent);
}
.why-card-icon svg { width: 1.25rem; height: 1.25rem; }

.why-card-title {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  transition: color var(--duration-normal);
}
.why-card:hover .why-card-title { color: var(--color-accent); }

.why-card-desc {
  font-size: 0.9375rem;
  color: var(--color-text-dim);
  font-weight: 300;
  line-height: 1.6;
  transition: color var(--duration-normal);
}
.why-card:hover .why-card-desc { color: #CBD5E1; }


/* ============================================================
   POPULAR DESTINATIONS (Process)
   ============================================================ */
.destinations {
  position: relative;
  z-index: 10;
  background: var(--color-bg-light);
  padding: 6rem 0;
  border-top: 1px solid transparent;
}
@media (min-width: 768px) { .destinations { padding: 8rem 0; } }

.dest-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 768px) {
  .dest-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .dest-grid { grid-template-columns: repeat(4, 1fr); }
}

.dest-card {
  position: relative;
  min-height: 12rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--color-border-light);
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-spring);
}
@media (min-width: 768px) { .dest-card { min-height: 24rem; } }

.dest-card:hover { border-color: var(--color-accent); }

.dest-card.span-2 {}
@media (min-width: 1024px) {
  .dest-card.span-2 { grid-column: span 2; }
}

.dest-card-bg {
  position: absolute;
  inset: 0;
}
.dest-card-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(50%);
  transition: all var(--duration-slow) var(--ease-spring);
}
.dest-card:hover .dest-card-bg img {
  transform: scale(1.1);
  filter: grayscale(0%);
}
.dest-card-bg .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0.45), transparent);
  transition: opacity var(--duration-normal);
}
.dest-card:hover .dest-card-bg .overlay { opacity: 0.8; }

.dest-content {
  position: relative;
  z-index: 2;
  height: 100%;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transform: translateY(0.5rem);
  transition: transform var(--duration-normal) var(--ease-spring);
}
.dest-card:hover .dest-content { transform: translateY(0); }

.dest-category {
  margin-bottom: auto;
  opacity: 0;
  transform: translateY(-0.5rem);
  transition: all var(--duration-normal) var(--ease-spring);
}
.dest-card:hover .dest-category {
  opacity: 1;
  transform: translateY(0);
}
.dest-category span {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.dest-title {
  font-family: var(--font-display);
  font-size: 1.625rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dest-desc {
  font-size: 1rem;
  color: #CBD5E1;
  font-weight: 300;
  margin-bottom: 1.5rem;
  opacity: 0.8;
  transition: opacity var(--duration-normal);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.dest-card:hover .dest-desc { opacity: 1; }

.dest-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.15);
}

.dest-tags {
  display: flex;
  gap: 0.5rem;
}

.dest-arrow {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: all var(--duration-normal) var(--ease-spring);
}
.dest-card:hover .dest-arrow {
  background: #fff;
  color: #000;
}
.dest-arrow svg { width: 1rem; height: 1rem; }


/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  position: relative;
  z-index: 10;
  background: var(--color-bg-deep);
  padding: 3rem 0 2rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  color: #fff;
}
@media (min-width: 768px) { .footer { padding: 6rem 0 3rem; } }

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 2rem;
}
@media (min-width: 768px) {
  .footer-top {
    flex-direction: row;
    justify-content: space-between;
    gap: 3rem;
    margin-bottom: 3rem;
  }
}

.footer-brand { max-width: 20rem; }
.footer-brand-logo {
  height: 2.5rem;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.8;
  margin-bottom: 1.5rem;
}
@media (min-width: 768px) { .footer-brand-logo { height: 3rem; } }

.footer-brand-desc {
  color: var(--color-text-dim);
  font-size: 0.9375rem;
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.footer-socials {
  display: none;
  gap: 1rem;
}
@media (min-width: 768px) { .footer-socials { display: flex; } }
.footer-social-icon {
  width: 2rem;
  height: 2rem;
  border: 1px solid rgba(255,255,255,0.08);
  transition: all var(--duration-fast);
  cursor: pointer;
}
.footer-social-icon:hover {
  background: #fff;
  border-color: #fff;
}

.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
@media (min-width: 768px) {
  .footer-links { grid-template-columns: 1fr 1fr 1fr; gap: 3rem; }
}

.footer-col h4 {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1.5rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 1rem; }
.footer-col a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text-dim);
  transition: color var(--duration-fast);
}
.footer-col a:hover { color: var(--color-accent); }

.footer-partner-box {
  padding: 1.5rem;
  border: 1px solid rgba(255,255,255,0.08);
  transition: border-color var(--duration-normal);
  cursor: pointer;
}
.footer-partner-box:hover { border-color: var(--color-accent); }
.footer-partner-title {
  font-size: 0.9375rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.footer-partner-link {
  font-size: 0.8125rem;
  color: var(--color-text-dim);
  transition: color var(--duration-fast);
}
.footer-partner-box:hover .footer-partner-link { color: var(--color-accent); }

/* Mobile partner */
.footer-partner-mobile {
  display: block;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.04);
}
@media (min-width: 768px) { .footer-partner-mobile { display: none; } }
.footer-partner-mobile-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1.5rem 2rem;
  border: 1px solid rgba(255,255,255,0.08);
  transition: border-color var(--duration-normal);
  cursor: pointer;
}
.footer-partner-mobile-box:hover { border-color: var(--color-accent); }

.footer-partners-desktop { display: none; }
@media (min-width: 768px) { .footer-partners-desktop { display: block; } }

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.04);
}
@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    padding-top: 2rem;
  }
}
.footer-bottom p {
  font-size: 0.8125rem;
  font-family: monospace;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-dim);
}


/* ============================================================
   SCROLL REVEAL ANIMATIONS (Phase 3 — Staggered Reveal)
   ============================================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(1.5rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(5rem);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-5rem);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Hero entry animations */
.hero .anim-slide-right {
  animation: slideInRight var(--duration-slow) var(--ease-spring) both;
}
.hero .anim-fade-up {
  animation: fadeInUp var(--duration-slow) var(--ease-spring) both;
}

/* Scroll-triggered reveal */
.reveal {
  opacity: 0;
  transform: translateY(2rem);
  transition:
    opacity var(--duration-slow) var(--ease-spring),
    transform var(--duration-slow) var(--ease-spring);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children (Phase 3) */
.stagger-children .reveal:nth-child(1) { transition-delay: 0ms; }
.stagger-children .reveal:nth-child(2) { transition-delay: 80ms; }
.stagger-children .reveal:nth-child(3) { transition-delay: 160ms; }
.stagger-children .reveal:nth-child(4) { transition-delay: 240ms; }
.stagger-children .reveal:nth-child(5) { transition-delay: 320ms; }
.stagger-children .reveal:nth-child(6) { transition-delay: 400ms; }
.stagger-children .reveal:nth-child(7) { transition-delay: 480ms; }


/* ============================================================
   ACCESSIBILITY
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

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

/* Hide scrollbar utility */
.hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
.hide-scrollbar::-webkit-scrollbar { display: none; }
