/* Blue Duel — shared styles */

:root {
  --bg-deep: #050a1c;
  --bg-mid: #0a1638;
  --bg-soft: #122252;
  --ink: #eaf2ff;
  --ink-dim: #b5c4e6;
  --ink-mute: #7d8fbb;
  --accent: #4ea3ff;
  --accent-bright: #8ecbff;
  --accent-deep: #1e63d6;
  --rule: rgba(255, 255, 255, 0.08);
  --card: rgba(255, 255, 255, 0.04);
  --card-edge: rgba(255, 255, 255, 0.10);
  --max-width: 880px;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  --font-stack: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
    Inter, system-ui, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display",
    "Segoe UI", Inter, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg-deep);
  color: var(--ink);
  font-family: var(--font-stack);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  background:
    radial-gradient(
      1200px 700px at 50% -10%,
      rgba(78, 163, 255, 0.28),
      transparent 60%
    ),
    radial-gradient(
      900px 600px at 90% 110%,
      rgba(30, 99, 214, 0.22),
      transparent 65%
    ),
    radial-gradient(
      900px 600px at 0% 100%,
      rgba(18, 34, 82, 0.55),
      transparent 60%
    ),
    linear-gradient(180deg, #050a1c 0%, #04081a 100%);
}

a {
  color: var(--accent-bright);
  text-decoration: none;
  border-bottom: 1px solid rgba(142, 203, 255, 0.35);
  transition: color 0.15s ease, border-color 0.15s ease;
}

a:hover {
  color: #ffffff;
  border-bottom-color: rgba(255, 255, 255, 0.6);
}

a.plain,
a.plain:hover {
  border-bottom: none;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 28px 24px 64px;
}

/* ---------- Site header ---------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  border: none;
  color: var(--ink);
}

.brand:hover {
  color: var(--ink);
  border: none;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(78, 163, 255, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.2px;
}

.site-nav {
  display: flex;
  gap: 22px;
  align-items: center;
}

.site-nav a {
  font-size: 0.95rem;
  color: var(--ink-dim);
  border: none;
}

.site-nav a:hover {
  color: var(--ink);
}

/* ---------- Hero (landing) ---------- */

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

.hero-icon {
  width: 132px;
  height: 132px;
  border-radius: 28px;
  box-shadow: 0 30px 90px rgba(78, 163, 255, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  margin-bottom: 28px;
}

.hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 7vw, 4rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
  background: linear-gradient(
    180deg,
    #b8dbff 0%,
    #ffffff 45%,
    #4ea3ff 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 4px 24px rgba(78, 163, 255, 0.35));
}

.hero-tag {
  margin: 18px auto 0;
  max-width: 560px;
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  line-height: 1.55;
  color: var(--ink-dim);
}

.launch-banner {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 36px 0 0;
  padding: 10px 18px;
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    rgba(78, 163, 255, 0.18),
    rgba(30, 99, 214, 0.14)
  );
  border: 1px solid rgba(142, 203, 255, 0.35);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 30px rgba(30, 99, 214, 0.25);
}

.launch-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6cf2a5;
  box-shadow: 0 0 12px #6cf2a5;
  animation: pulse 1.8s ease-in-out infinite;
}

/* ---------- Store badges ---------- */

.store-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
}

.store-badge {
  display: inline-flex;
  position: relative;
  height: 52px;
  border: none;
  border-radius: 9px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.2s ease;
}

.store-badge.store-badge--apple {
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.store-badge.store-badge--apple:hover,
.store-badge.store-badge--apple:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(78, 163, 255, 0.35);
  border: none;
}

.store-badge-svg {
  height: 100%;
  width: auto;
  display: block;
  border-radius: 8px;
}

.store-badge--play.is-coming-soon {
  filter: grayscale(1);
  opacity: 0.55;
  cursor: not-allowed;
}

.coming-soon-ribbon {
  position: absolute;
  top: -9px;
  right: -8px;
  padding: 3px 8px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #050a1c;
  background: linear-gradient(180deg, #b8dbff 0%, #4ea3ff 100%);
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(30, 99, 214, 0.45);
  white-space: nowrap;
  /* Re-saturate the ribbon even though parent is greyscale */
  filter: grayscale(0);
  opacity: 1;
}

.store-badge--play.is-coming-soon .coming-soon-ribbon {
  filter: grayscale(0);
  opacity: 1.8;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.55;
    transform: scale(0.9);
  }
}

.platform {
  margin-top: 18px;
  color: var(--ink-mute);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ---------- Feature blurbs ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 56px auto 0;
  max-width: 760px;
}

.feature {
  background: var(--card);
  border: 1px solid var(--card-edge);
  border-radius: var(--radius);
  padding: 22px 20px;
  text-align: left;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.feature h2,
.feature h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.feature p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--ink-dim);
}

/* ---------- Screenshots ---------- */

.screenshots {
  margin: 72px auto 0;
  max-width: 860px;
  text-align: center;
}

.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.6vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.section-lede {
  margin: 10px auto 0;
  max-width: 520px;
  color: var(--ink-dim);
  font-size: 1rem;
  line-height: 1.55;
}

.shot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 32px;
}

.shot {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--card-edge);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.shot:hover {
  transform: translateY(-2px);
  box-shadow: 0 26px 52px rgba(78, 163, 255, 0.22);
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- Contact ---------- */

.contact {
  margin: 72px auto 0;
  max-width: 620px;
  text-align: center;
  padding: 40px 28px;
  background: linear-gradient(
    180deg,
    rgba(78, 163, 255, 0.08),
    rgba(18, 34, 82, 0.18)
  );
  border: 1px solid rgba(142, 203, 255, 0.22);
  border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.contact .section-title {
  font-size: clamp(1.25rem, 2.6vw, 1.55rem);
  text-align: center;
}

.contact .section-lede {
  margin: 12px auto 0;
  max-width: 460px;
  text-align: center;
}

.contact-cta {
  display: inline-block;
  margin-top: 24px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  color: var(--ink);
  background: linear-gradient(
    180deg,
    rgba(78, 163, 255, 0.25),
    rgba(30, 99, 214, 0.22)
  );
  /* Explicitly override the global `a` border-bottom */
  border: 1px solid rgba(142, 203, 255, 0.45);
  border-bottom: 1px solid rgba(142, 203, 255, 0.45);
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(30, 99, 214, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease, color 0.15s ease,
    border-color 0.15s ease, background 0.15s ease;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.contact-cta:hover,
.contact-cta:focus-visible {
  color: #ffffff;
  background: linear-gradient(
    180deg,
    rgba(78, 163, 255, 0.35),
    rgba(30, 99, 214, 0.28)
  );
  border-color: rgba(255, 255, 255, 0.6);
  border-bottom-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(78, 163, 255, 0.38);
}

/* ---------- Footer ---------- */

.site-footer {
  margin-top: 72px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.86rem;
  color: var(--ink-mute);
}

.site-footer a {
  color: var(--ink-dim);
  border: none;
}

.site-footer a:hover {
  color: var(--ink);
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

/* ---------- Article (privacy) ---------- */

.page-title {
  margin: 36px 0 8px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.page-meta {
  color: var(--ink-mute);
  font-size: 0.9rem;
  margin: 0 0 32px;
}

.prose {
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--ink-dim);
}

.prose h2 {
  margin: 40px 0 12px;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.005em;
}

.prose h3 {
  margin: 28px 0 8px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
}

.prose p {
  margin: 0 0 14px;
}

.prose ul {
  margin: 0 0 18px;
  padding-left: 20px;
}

.prose li {
  margin-bottom: 8px;
}

.prose strong {
  color: var(--ink);
  font-weight: 600;
}

.callout {
  margin: 22px 0 28px;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: linear-gradient(
    180deg,
    rgba(78, 163, 255, 0.10),
    rgba(30, 99, 214, 0.06)
  );
  border: 1px solid rgba(142, 203, 255, 0.25);
  color: var(--ink);
}

.callout strong {
  color: #ffffff;
}

/* ---------- Responsive ---------- */

@media (max-width: 720px) {
  .shot-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 520px) {
  .wrap {
    padding: 22px 18px 56px;
  }

  .site-nav {
    gap: 14px;
  }

  .hero {
    padding-top: 36px;
  }

  .hero-icon {
    width: 108px;
    height: 108px;
    border-radius: 24px;
    margin-bottom: 22px;
  }

  .features {
    margin-top: 42px;
  }

  .screenshots {
    margin-top: 56px;
  }

  .contact {
    margin-top: 48px;
    padding: 28px 18px;
  }

  .contact-cta {
    font-size: 0.9rem;
    padding: 11px 16px;
  }

  .store-badges {
    gap: 10px;
  }

  .store-badge {
    height: 48px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
