:root {
  --bg: #050a14;
  --primary: #1470c4;
  --primary-dark: #0a3d75;
  --primary-mid: #0f5aa3;
  --ai: #5eefff;
  --text: #ffffff;
  --text-secondary: #e8f0f8;
  --text-muted: #b3c6db;
  --border: rgba(255, 255, 255, 0.14);
  --glow: rgba(10, 61, 117, 0.5);
  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--text-secondary);
  text-decoration: none;
}

a:hover {
  color: var(--ai);
}

.intelli {
  color: #4db3ff;
}

.date {
  color: var(--ai);
}

.gate {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  overflow: hidden;
}

.gate-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.gate-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transform: scale(1.04);
  filter: saturate(0.95) brightness(0.48);
  animation: media-drift 18s ease-in-out infinite alternate;
}

/* Full-bleed vignette: image stays visible; bottom darkens for readable copy. */
.gate-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(5, 10, 20, 0.4) 0%,
      rgba(5, 10, 20, 0.55) 35%,
      rgba(5, 10, 20, 0.82) 62%,
      rgba(5, 10, 20, 0.94) 100%
    ),
    radial-gradient(ellipse 70% 40% at 20% 10%, rgba(15, 90, 163, 0.2), transparent 55%);
}

.gate-panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0;
  width: min(100%, 440px);
  margin: 0 auto;
  padding: max(24px, env(safe-area-inset-top)) 24px max(28px, env(safe-area-inset-bottom));
  min-height: 100vh;
  min-height: 100dvh;
  background: transparent;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 28px;
  animation: rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.brand img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.brand-name {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 6vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.gate-panel h1 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 4.8vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: var(--text);
  text-shadow: 0 2px 18px rgba(5, 10, 20, 0.9);
  max-width: 16ch;
  animation: rise 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}

.lede {
  margin: 0 0 28px;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-shadow: 0 1px 14px rgba(5, 10, 20, 0.95);
  max-width: 32ch;
  animation: rise 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.14s both;
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.22s both;
}

.btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

.btn:active {
  transform: translateY(0);
}

.btn-kicker {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.9;
}

.btn-label {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.btn-hint {
  font-size: 0.85rem;
  opacity: 0.8;
}

.btn-play {
  background: linear-gradient(145deg, var(--primary-mid), var(--primary-dark));
  color: #fff;
  box-shadow: 0 12px 32px var(--glow);
}

.btn-play-row {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
}

.btn-play-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.25));
}

.btn-play-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
}

.btn-play:hover {
  color: #fff;
  box-shadow: 0 16px 40px rgba(10, 61, 117, 0.65);
}

.btn-play .btn-kicker,
.btn-play .btn-hint {
  color: rgba(255, 255, 255, 0.9);
}

.btn-web {
  background: rgba(5, 10, 20, 0.45);
  border-color: var(--border);
  color: var(--text);
  backdrop-filter: blur(10px);
}

.btn-web:hover {
  color: var(--text);
  border-color: rgba(94, 239, 255, 0.4);
  background: rgba(5, 10, 20, 0.6);
}

.btn-web .btn-kicker,
.btn-web .btn-hint {
  color: var(--text-muted);
}

.foot {
  margin: 22px 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-shadow: 0 1px 10px rgba(5, 10, 20, 0.9);
  animation: rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.32s both;
}

.foot a {
  color: var(--text-muted);
}

.foot a:hover {
  color: var(--ai);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes media-drift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.08) translate3d(-1.5%, -1%, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand,
  .gate-panel h1,
  .lede,
  .actions,
  .foot,
  .gate-media img {
    animation: none;
  }
}

@media (min-width: 900px) {
  .gate {
    grid-template-columns: 1.15fr 0.85fr;
  }

  .gate-media {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
  }

  .gate-media img {
    filter: saturate(1) brightness(0.62);
  }

  .gate-media::after {
    background: linear-gradient(
      90deg,
      transparent 38%,
      rgba(5, 10, 20, 0.55) 72%,
      rgba(5, 10, 20, 0.92) 100%
    );
  }

  .gate-panel {
    justify-content: center;
    width: 100%;
    max-width: 480px;
    margin: 0;
    padding: 48px 56px 48px 32px;
    background: transparent;
  }

  .gate-panel h1 {
    max-width: 14ch;
    font-size: clamp(1.75rem, 2.4vw, 2.15rem);
  }

  .actions {
    max-width: 360px;
  }
}
