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

:root {
  --ink: #0d1b2a;
  --ink-soft: #13263b;
  --mint: #4cb5ae;
  --mint-deep: #3f9f99;
  --fog: #c7d2de;
  --paper: #f5f2eb;
  --slate: #667085;
  --line: rgba(159, 176, 196, 0.26);
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--paper);
  background:
    radial-gradient(circle at 16% 88%, rgba(76, 181, 174, 0.1), transparent 52%),
    radial-gradient(circle at 86% 90%, rgba(102, 112, 133, 0.1), transparent 56%),
    linear-gradient(180deg, #07111d 0%, #0d1b2a 56%, #102131 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

.site {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 40px;
  position: relative;
  z-index: 1;
}

.site-logo-top {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
}

.topbar {
  position: sticky;
  top: 14px;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(7, 18, 31, 0.78);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}

.menu-toggle {
  display: none;
  order: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.05);
  color: var(--paper);
  border-radius: 12px;
  min-height: 38px;
  padding: 0 12px;
  font-size: 0.9rem;
  font-weight: 700;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.menu-toggle-icon {
  width: 16px;
  height: 12px;
  position: relative;
  display: inline-block;
}

.menu-toggle-icon::before,
.menu-toggle-icon::after,
.menu-toggle-icon span {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--paper);
  border-radius: 999px;
}

.menu-toggle-icon::before {
  top: 0;
}

.menu-toggle-icon span {
  top: 5px;
}

.menu-toggle-icon::after {
  bottom: 0;
}

.topbar-menu {
  display: flex;
  grid-column: 2;
  grid-row: 1;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.topbar-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 10px;
  margin: 0;
}

.topbar-links a {
  color: #cad8e6;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
}

.topbar-links a:hover {
  color: var(--paper);
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
}

.topbar-cta {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  white-space: nowrap;
  min-height: 38px;
  padding: 0 14px;
  font-size: 0.9rem;
}

.hero {
  display: block;
  margin-bottom: 26px;
}

.showcase-row {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(240px, 0.9fr);
  gap: 16px;
  align-items: stretch;
  margin-bottom: 26px;
}

.hero-copy {
  background: rgba(11, 27, 42, 0.65);
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 30px;
  backdrop-filter: blur(8px);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.35);
}

.logo {
  width: min(220px, 62vw);
  height: auto;
  margin: 0;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid rgba(76, 181, 174, 0.42);
  background: rgba(76, 181, 174, 0.14);
  color: var(--mint);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 12px;
  margin-bottom: 16px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  animation: pulse 2.2s ease-in-out infinite;
}

h1, h2, h3 {
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  letter-spacing: -0.02em;
  line-height: 1.02;
}

h1 {
  font-size: clamp(2.2rem, 5.2vw, 4rem);
  margin-bottom: 14px;
}

.hero-response {
  color: var(--mint);
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: clamp(1.05rem, 2.1vw, 1.35rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 14px;
}

.lead {
  color: var(--fog);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 56ch;
  margin-bottom: 22px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.hero-availability {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: #9cb1c5;
  font-size: 0.9rem;
  font-weight: 600;
}

.hero-store-badge {
  display: block;
  width: auto;
  height: 40px;
}

.hero-store-badge.play-badge {
  height: 57px;
}

.hero-store-badge.app-store-badge {
  height: 38px;
}

.btn {
  text-decoration: none;
  font-weight: 700;
  border-radius: 999px;
  min-height: 46px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.18s ease, background 0.18s ease;
}

.btn-primary {
  color: #0d1b2a;
  background: linear-gradient(135deg, #68cbc4 0%, #4cb5ae 100%);
}

.btn-secondary {
  color: var(--paper);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-disabled {
  color: #c2d2e2;
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(255, 255, 255, 0.26);
  cursor: not-allowed;
  opacity: 0.9;
}

.btn:hover {
  transform: translateY(-1px);
}

.newsletter-prep {
  margin-top: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  padding: 12px;
  display: grid;
  gap: 10px;
}

.newsletter-rollout[hidden] {
  display: none !important;
}

.newsletter-prep h2 {
  font-size: 1rem;
  margin: 0;
}

.newsletter-prep-note {
  margin: 0;
  color: #9fb3c6;
  font-size: 0.82rem;
  line-height: 1.45;
}

.newsletter-form {
  display: grid;
  gap: 10px;
}

.newsletter-form input[type="email"] {
  width: 100%;
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(8, 20, 34, 0.72);
  color: var(--paper);
  padding: 0 12px;
  font: inherit;
}

.newsletter-form input[type="email"]::placeholder {
  color: #93a9be;
}

.newsletter-consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--fog);
  font-size: 0.88rem;
  line-height: 1.4;
}

.newsletter-consent input {
  margin-top: 2px;
  accent-color: var(--mint);
}

.newsletter-disclosure {
  margin: 0;
  color: #9db2c6;
  font-size: 0.8rem;
  line-height: 1.45;
}

.newsletter-disclosure a {
  color: #b7ece8;
}

.newsletter-disclosure a:hover {
  color: #d7fbf8;
}

.newsletter-status {
  margin: 0;
  min-height: 1.2em;
  font-size: 0.82rem;
  line-height: 1.4;
  color: #9db2c6;
}

.newsletter-status.is-pending {
  color: #b8cbe0;
}

.newsletter-status.is-success {
  color: #9de0da;
}

.newsletter-status.is-error {
  color: #f2b4b4;
}

.newsletter-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.footer-newsletter {
  width: min(720px, 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.02);
  display: grid;
  gap: 10px;
  justify-items: stretch;
}

.footer-newsletter h2 {
  font-size: 0.98rem;
  margin: 0;
  color: #c8d8e8;
  text-align: left;
}

.footer-download {
  width: min(720px, 100%);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 14px;
}

.footer-download-note {
  flex-basis: 100%;
  margin: 0;
  color: #9db2c6;
  font-size: 0.84rem;
  text-align: center;
}

.footer-download .app-store-badge {
  height: clamp(36px, 5.6vw, 48px);
}

.footer-download .play-badge {
  height: clamp(56px, 8.2vw, 68px);
}

.hero-visual {
  background: rgba(11, 27, 42, 0.52);
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 16px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
}

.how-rail {
  background: rgba(11, 27, 42, 0.58);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 100%;
}

.how-rail h2 {
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  margin-bottom: 2px;
  line-height: 1.1;
}

.how-rail-subhead {
  color: var(--mint);
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
}

.how-rail-intro {
  color: var(--fog);
  font-size: 0.88rem;
  line-height: 1.45;
  margin: 0;
}

.hero-visual img {
  width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: block;
}

.ribbon {
  position: absolute;
  top: 12px;
  right: -40px;
  background: linear-gradient(90deg, #3f9f99, #68cbc4);
  color: #0d1b2a;
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transform: rotate(22deg);
  padding: 8px 44px;
}

.panel {
  background: rgba(12, 26, 42, 0.66);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 24px;
  margin-bottom: 20px;
}

.panel h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 14px;
}

.panel p {
  color: var(--fog);
  line-height: 1.7;
  margin-bottom: 12px;
}

.feature-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
  margin-top: 14px;
}

.feature-grid li {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 12px 12px;
  background: rgba(255, 255, 255, 0.03);
  color: #d5e1ee;
  font-size: 0.95rem;
  line-height: 1.45;
}

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 2px;
}

.step {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  padding: 10px;
}

.step .kicker {
  color: var(--mint);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 6px;
  display: inline-block;
}

.step h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.step p {
  margin: 0;
  color: var(--fog);
  font-size: 0.86rem;
  line-height: 1.45;
}

.how-rail-footer {
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.how-rail-footer p {
  margin: 0;
  color: #a9bdcf;
  font-size: 0.84rem;
  line-height: 1.4;
}

.how-rail-link {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: var(--paper);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 7px 10px;
}

.how-rail-link:hover {
  border-color: rgba(76, 181, 174, 0.6);
  background: rgba(76, 181, 174, 0.1);
}

.gallery-strip {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
  scroll-snap-type: x proximity;
}

.gallery-strip::-webkit-scrollbar {
  height: 8px;
}

.gallery-strip::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 999px;
}

.gallery-card {
  flex: 0 0 clamp(120px, 16vw, 170px);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
  padding: 8px;
  scroll-snap-align: start;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.gallery-card:hover {
  transform: translateY(-1px);
  border-color: rgba(95, 215, 204, 0.65);
}

.gallery-card img {
  width: 100%;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: block;
  background: #0b1f31;
}

.disclaimer {
  border-left: 3px solid var(--mint-deep);
  padding-left: 14px;
}

footer {
  margin-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 14px;
  display: grid;
  gap: 10px;
  justify-items: center;
  color: #9ab0c5;
  font-size: 0.87rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 14px;
}

.footer-links,
footer p {
  color: var(--slate);
}

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

footer a:hover {
  color: var(--mint);
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.28; }
}

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

  .status-dot {
    animation: none;
  }
}

@media (max-width: 960px) {
  .showcase-row {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    max-width: 560px;
  }

  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .site {
    width: min(100%, calc(100% - 20px));
    padding-top: 16px;
  }

  .site-logo-top {
    margin-bottom: 10px;
  }

  .topbar {
    position: static;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .menu-toggle {
    display: inline-flex;
    order: 1;
  }

  .topbar-menu {
    display: none;
    order: 3;
    width: 100%;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .topbar-menu.is-open {
    display: grid;
    gap: 0;
  }

  .topbar-links {
    width: 100%;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 6px;
    margin: 0;
  }

  .topbar-links a {
    font-size: 0.76rem;
    padding: 6px 5px;
    text-align: center;
    flex: 1;
  }

  .topbar-cta {
    order: 2;
    min-height: 44px;
    padding: 0 14px;
  }

  .menu-toggle,
  .topbar-cta {
    flex: 1;
    min-height: 44px;
    justify-content: center;
  }

  .topbar-menu .topbar-cta {
    display: none;
  }

  .hero-copy,
  .panel {
    padding: 18px;
  }

  .hero-availability {
    display: grid;
    grid-template-columns: max-content max-content;
    align-items: center;
    justify-content: start;
    gap: 8px 10px;
  }

  .hero-availability > span {
    grid-column: 1 / -1;
  }

  .hero-store-badge.play-badge {
    height: clamp(50px, 13vw, 57px);
  }

  .hero-store-badge.app-store-badge {
    height: clamp(34px, 8.5vw, 38px);
  }

  .newsletter-consent {
    font-size: 0.84rem;
  }

  .feature-grid,
  .gallery-strip {
    grid-template-columns: 1fr;
  }

  .gallery-card {
    flex-basis: 44vw;
  }
}
