:root {
  --bg: #1A1A2E;
  --text: #CDD1E2;
  --heading: #ffffff;
  --accent: #EE7766;
  --accent-hover: #D4A853;
  --muted: #8890B8;
  --card-bg: rgba(255, 255, 255, 0.06);
  --card-border: rgba(255, 255, 255, 0.1);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  min-height: 100vh;
}

::selection {
  background: var(--accent);
  color: #fff;
}

a {
  color: var(--accent);
}

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

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

.page {
  overflow-x: hidden;
}

/* HERO */

.hero {
  padding: 44px 24px 24px;
  text-align: center;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 28px;
}

.brand-mark {
  height: 40px;
  width: auto;
  margin-top: 8px;
}

.brand-name {
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 900;
  font-stretch: 125%;
  font-size: 40px;
  letter-spacing: -0.04em;
  line-height: 0.78;
  color: var(--heading);
}

.announcement {
  max-width: 560px;
  margin: 0 auto;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 16px 20px;
  text-align: left;
}

.announcement p {
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

/* STORY */

.story {
  padding: 8px 24px 40px;
}

.story-title {
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 800;
  font-stretch: 125%;
  letter-spacing: -0.05em;
  line-height: 1.15;
  font-size: clamp(28px, 7vw, 42px);
  color: var(--heading);
  margin: 0 0 32px;
  text-align: center;
}

.story-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  max-width: 920px;
  margin: 0 auto;
  align-items: flex-start;
}

.story-text {
  flex: 1 1 380px;
  min-width: 280px;
}

.story-text p {
  font-size: 18px;
  line-height: 1.55;
  margin: 0 0 14px;
}

.topic-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.topic-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 16px 18px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--heading);
}

.topic-emoji {
  font-size: 22px;
  line-height: 1.3;
  flex-shrink: 0;
}

.story-side {
  flex: 1 1 260px;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.video-frame {
  position: relative;
  width: 220px;
  max-width: 100%;
  margin: 0 auto 24px;
}

.video-wrap {
  aspect-ratio: 9 / 16;
  border-radius: 20px;
  overflow: hidden;
  background: #000;
}

.video-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.rocket {
  position: absolute;
  left: -12px;
  width: 26px;
  height: 22px;
  background: var(--accent);
  clip-path: polygon(0% 100%, 55% 0%, 100% 90%, 55% 65%);
  pointer-events: none;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
}

.rocket-1 {
  top: 12%;
  animation: rocket-fly-1 5s ease-in-out infinite;
}

.rocket-2 {
  top: 42%;
  width: 22px;
  height: 19px;
  animation: rocket-fly-2 5s ease-in-out infinite;
  animation-delay: 1.7s;
}

.rocket-3 {
  top: 70%;
  width: 24px;
  height: 20px;
  animation: rocket-fly-3 5s ease-in-out infinite;
  animation-delay: 3.3s;
}

.mailbox {
  position: absolute;
  bottom: -14px;
  right: -14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  animation: mail-pulse 2.2s ease-in-out infinite;
  pointer-events: none;
}

.signup {
  max-width: 280px;
  width: 100%;
  margin: 0 auto;
}

.signup-note {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  margin: 16px 0 0;
}

.story-closing {
  max-width: 920px;
  margin: 32px auto 0;
  font-size: 18px;
  line-height: 1.55;
  color: var(--heading);
  text-align: center;
}

/* SIGNATURE */

.signature {
  padding: 8px 24px 40px;
  text-align: center;
}

.signature-name {
  font-size: 17px;
  line-height: 1.5;
  color: var(--heading);
  margin: 0;
}

.signature-title {
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
  margin: 4px 0 0;
}

/* FOOTER */

.site-footer {
  padding: 20px 24px;
  text-align: center;
}

.site-footer p {
  font-size: 12px;
  color: #666B93;
  margin: 0;
}

/* ANIMATIONS */

@keyframes rocket-fly-1 {
  0% { transform: translate(0, 0) rotate(18deg); opacity: 0; }
  8% { opacity: 1; }
  45% { transform: translate(95px, 160px) rotate(48deg); }
  82% { opacity: 1; }
  100% { transform: translate(248px, 332px) rotate(58deg) scale(0.5); opacity: 0; }
}

@keyframes rocket-fly-2 {
  0% { transform: translate(0, 0) rotate(8deg); opacity: 0; }
  8% { opacity: 1; }
  45% { transform: translate(110px, 95px) rotate(40deg); }
  82% { opacity: 1; }
  100% { transform: translate(248px, 200px) rotate(52deg) scale(0.5); opacity: 0; }
}

@keyframes rocket-fly-3 {
  0% { transform: translate(0, 0) rotate(-6deg); opacity: 0; }
  8% { opacity: 1; }
  45% { transform: translate(120px, 40px) rotate(30deg); }
  82% { opacity: 1; }
  100% { transform: translate(248px, 80px) rotate(48deg) scale(0.5); opacity: 0; }
}

@keyframes mail-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}

@media (prefers-reduced-motion: reduce) {
  .rocket,
  .mailbox {
    animation: none;
  }
}

/* RESPONSIVE */

@media (max-width: 600px) {
  .hero {
    padding: 32px 18px 20px;
  }

  .brand-name {
    font-size: 32px;
  }

  .story {
    padding: 8px 18px 32px;
  }

  .story-text p,
  .story-closing {
    font-size: 16px;
  }
}
