/* Ice Bot — Landing Page & Press Kit */

:root {
  --bg-dark: #0a1628;
  --bg-medium: #132035;
  --bg-surface: rgba(200, 230, 255, 0.08);
  --text-primary: #e8f4fc;
  --text-muted: #8ba3b8;
  --accent-ice: #7ad4ff;
  --accent-amber: #ffb517;
  --radius: 16px;
  --radius-sm: 10px;
  --max-width: 1100px;
}

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

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

a:hover {
  text-decoration: underline;
}

.section-pad {
  padding: 80px 24px;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* ── Reveal animation ── */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

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

  .scroll-indicator {
    animation: none;
  }

  .hero-badges a {
    transition: none;
  }
}

/* ── Hero ── */

.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px 40px;
  background: var(--bg-dark);
  position: relative;
}

.hero-icon {
  width: 140px;
  height: 140px;
  border-radius: 28%;
  box-shadow:
    0 0 60px rgba(122, 212, 255, 0.15),
    0 20px 40px rgba(0, 0, 0, 0.4);
}

.hero-logo {
  margin-top: 28px;
  width: 260px;
}

.hero-tagline {
  margin-top: 24px;
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-ice);
}

.hero-subtitle {
  margin-top: 10px;
  font-size: 1.1rem;
  color: var(--text-muted);
  font-weight: 400;
}

.hero-badges {
  display: flex;
  gap: 16px;
  margin-top: 36px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-badges a {
  display: block;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.hero-badges a:hover {
  transform: scale(1.05);
  text-decoration: none;
  opacity: 0.9;
}

.hero-badges img.badge-appstore {
  height: 48px;
  width: auto;
}

.hero-badges img.badge-googleplay {
  height: 71px;
  width: auto;
  margin: -12px 0;
}

.scroll-indicator {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s ease infinite;
  color: var(--text-muted);
  opacity: 0.5;
}

.scroll-indicator svg {
  width: 28px;
  height: 28px;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ── Feature Banner ── */

.feature-banner {
  width: 100%;
  line-height: 0;
}

.feature-banner img {
  width: 100%;
  height: auto;
}

/* ── Screenshots ── */

.screenshots-section {
  background: linear-gradient(180deg, var(--bg-dark) 0%, #0e1d32 100%);
  padding: 80px 0;
}

.screenshots-section h2 {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 8px;
  padding: 0 24px;
}

.screenshots-caption {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 40px;
  font-size: 0.95rem;
  padding: 0 24px;
}

.screenshots-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-padding-inline: 24px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 4px 24px 20px;
}

.screenshots-track::-webkit-scrollbar {
  display: none;
}

.screenshot-item {
  flex: 0 0 220px;
  scroll-snap-align: start;
}

.screenshot-item img {
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  width: 100%;
}

.screenshots-dots {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-top: 24px;
}

.screenshots-dots span {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.screenshots-dots span::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  opacity: 0.3;
  transition: opacity 0.3s ease;
}

.screenshots-dots span.active::after {
  opacity: 1;
}

/* ── Features ── */

.features-section {
  background: linear-gradient(180deg, #0e1d32 0%, var(--bg-medium) 100%);
}

.features-section h2 {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 48px;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.feature-card {
  background: var(--bg-surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(200, 230, 255, 0.06);
  border-radius: var(--radius);
  padding: 28px 24px;
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* ── Our Story ── */

.story-section {
  display: none;
  background: var(--bg-dark);
}

.story-section .container {
  max-width: 720px;
}

.story-section h2 {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 32px;
}

.story-text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-muted);
}

.story-text em {
  color: var(--text-primary);
  font-style: normal;
}

.story-attribution {
  margin-top: 24px;
  text-align: right;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ── Trailer (hidden until ready) ── */

.trailer-section {
  display: none;
  background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-medium) 100%);
}

.trailer-section h2 {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 32px;
}

.trailer-embed {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding-bottom: 56.25%;
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.3);
}

.trailer-embed iframe,
.trailer-embed video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ── Press Kit ── */

.press-section {
  background: linear-gradient(180deg, var(--bg-dark) 0%, #0c1a2e 100%);
}

.press-section h2 {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 48px;
}

.press-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

.press-factsheet h3,
.press-downloads h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--accent-ice);
}

.press-factsheet dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 16px;
}

.press-factsheet dt {
  color: var(--text-muted);
  font-size: 0.9rem;
  white-space: nowrap;
}

.press-factsheet dd {
  color: var(--text-primary);
  font-size: 0.9rem;
}

.press-downloads ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.press-downloads a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-ice);
  font-size: 0.95rem;
  transition: opacity 0.2s ease;
}

.press-downloads a:hover {
  opacity: 0.8;
}

.press-downloads .dl-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ── Footer ── */

.site-footer {
  background: #070f1c;
  padding: 40px 24px;
  text-align: center;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer-brand img {
  width: 36px;
  height: 36px;
  border-radius: 22%;
}

.footer-brand span {
  font-weight: 600;
  font-size: 1rem;
}

.footer-links {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-links a:hover {
  color: var(--text-primary);
}

.footer-discord {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.discord-icon {
  width: 16px;
  height: 16px;
}

.footer-badges {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 16px;
}

.footer-badges img.badge-appstore {
  height: 32px;
  width: auto;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.footer-badges img.badge-googleplay {
  height: 47px;
  width: auto;
  margin: -8px 0;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.footer-badges a:hover img {
  opacity: 1;
}

.footer-copy {
  color: var(--text-muted);
  font-size: 0.8rem;
  opacity: 0.6;
}

/* ── Responsive: Tablet ── */

@media (min-width: 768px) {
  .hero-icon {
    width: 160px;
    height: 160px;
  }

  .hero-logo {
    width: 340px;
  }

  .hero-tagline {
    font-size: 1.6rem;
  }

  .screenshots-track {
    gap: 20px;
    padding-left: 40px;
    padding-right: 40px;
    scroll-padding-inline: 40px;
  }

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

  .press-columns {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
}

/* ── Responsive: Desktop ── */

@media (min-width: 1024px) {
  .section-pad {
    padding: 100px 40px;
  }

  .hero-icon {
    width: 180px;
    height: 180px;
  }

  .hero-logo {
    width: 400px;
    margin-top: 32px;
  }

  .hero-tagline {
    font-size: 1.8rem;
    margin-top: 28px;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .hero-badges img.badge-appstore {
    height: 52px;
  }

  .hero-badges img.badge-googleplay {
    height: 77px;
  }

  .screenshots-track {
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    padding: 4px 40px 20px;
    overflow-x: visible;
    scroll-snap-type: none;
  }

  .screenshot-item {
    flex: 0 0 220px;
  }

  .screenshots-dots {
    display: none;
  }

  .features-section h2,
  .screenshots-section h2,
  .story-section h2,
  .press-section h2 {
    font-size: 2.2rem;
  }
}
