:root {
  --bg: #060d21;
  --bg-soft: #0a1433;
  --surface: rgba(13, 27, 58, 0.62);
  --surface-strong: rgba(12, 22, 51, 0.86);
  --line: rgba(112, 173, 255, 0.26);
  --text: #e8f1ff;
  --muted: #a7b9d8;
  --primary: #3da4ff;
  --primary-2: #56dfb6;
  --button-dark: #0f1e44;
  --radius: 18px;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  position: relative;
  min-height: 100vh;
  font-family: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 20% -5%, #132e6e 0%, transparent 45%),
    radial-gradient(circle at 85% 10%, #11366a 0%, transparent 52%), var(--bg);
  overflow-x: hidden;
}

.aurora {
  position: fixed;
  pointer-events: none;
  filter: blur(70px);
  z-index: 0;
}

.aurora-a {
  width: 540px;
  height: 540px;
  left: -180px;
  top: -140px;
  background: radial-gradient(circle, rgba(56, 145, 255, 0.3) 0%, rgba(56, 145, 255, 0) 74%);
}

.aurora-b {
  width: 520px;
  height: 520px;
  right: -170px;
  top: 160px;
  background: radial-gradient(circle, rgba(74, 219, 182, 0.22) 0%, rgba(74, 219, 182, 0) 72%);
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.15;
  background-image: radial-gradient(circle at 25% 35%, rgba(255, 255, 255, 0.1) 0 1px, transparent 1px),
    radial-gradient(circle at 75% 65%, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px);
  background-size: 3px 3px, 4px 4px;
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  width: min(1200px, 94vw);
  margin: 0 auto;
  padding: 22px 0 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(145deg, #5db5ff, #64e2bf);
  box-shadow: 0 10px 24px rgba(17, 81, 179, 0.45);
}

.brand h1 {
  margin: 0;
  font-family: "Sora", "Avenir Next", sans-serif;
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  letter-spacing: 0.02em;
}

.brand-kicker {
  margin: 0 0 2px;
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.lang-label {
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.lang-select {
  min-height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(118, 177, 255, 0.42);
  background: rgba(15, 31, 67, 0.85);
  color: var(--text);
  padding: 0 10px;
  font-family: inherit;
  font-weight: 600;
}

main {
  width: min(1200px, 94vw);
  margin: 0 auto;
  padding-bottom: 20px;
}

.section {
  margin: 20px 0;
  padding: clamp(22px, 3vw, 36px);
  border-radius: calc(var(--radius) + 4px);
  background: linear-gradient(170deg, var(--surface) 0%, var(--surface-strong) 100%);
  border: 1px solid var(--line);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 26px;
  align-items: center;
}

.eyebrow {
  margin: 0;
  color: #86c4ff;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  font-size: 0.74rem;
}

.hero h2 {
  margin: 12px 0 12px;
  font-family: "Sora", "Avenir Next", sans-serif;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.02em;
  font-size: clamp(1.8rem, 4.4vw, 3.2rem);
}

.hero h2 span {
  color: inherit;
}

.hero h2 span:last-child {
  color: #8af4d4;
}

.lead {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.7vw, 1.12rem);
  max-width: 64ch;
  line-height: 1.6;
}

.lead.small {
  margin-top: 10px;
}

.cta-row {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: transform 0.18s ease, filter 0.18s ease, background-color 0.18s ease;
}

.button:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.button.primary {
  background: linear-gradient(130deg, var(--primary), var(--primary-2));
  color: #072342;
}

.button.secondary {
  background: rgba(32, 58, 102, 0.8);
  border-color: rgba(123, 178, 255, 0.4);
}

.button.ghost {
  background: rgba(23, 40, 84, 0.6);
  border-color: rgba(118, 177, 255, 0.4);
}

.hero-meta {
  margin: 18px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.hero-meta li {
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid rgba(130, 186, 255, 0.32);
  color: #d0e5ff;
  font-size: 0.85rem;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-board {
  width: min(360px, 80vw);
  height: auto;
  display: block;
  border-radius: 24px;
  border: 1.5px solid rgba(146, 195, 255, 0.44);
  background: rgba(10, 24, 54, 0.9);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
}

.phone-shell {
  width: min(360px, 80vw);
  border-radius: 32px;
  padding: 16px;
  border: 1px solid rgba(146, 195, 255, 0.44);
  background: linear-gradient(180deg, rgba(18, 34, 70, 0.95), rgba(10, 24, 54, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 24px 60px rgba(0, 0, 0, 0.42);
}

.mock-header {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}

.mock-header span {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(165, 200, 255, 0.64);
}

.mock-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.cell {
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  background: rgba(26, 53, 102, 0.82);
  border: 1px solid rgba(118, 176, 255, 0.38);
}

.cell.ship {
  background: linear-gradient(140deg, #1e8b6a, #39cb91);
  border-color: rgba(145, 255, 223, 0.42);
}

.cell.ship.single {
  border-radius: 999px;
}

.cell.wave {
  background: linear-gradient(
    180deg,
    rgba(23, 55, 112, 0.82) 0%,
    rgba(14, 38, 80, 0.9) 100%
  );
}

.section-head {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.section-head h3 {
  margin: 0;
  font-family: "Sora", "Avenir Next", sans-serif;
  letter-spacing: -0.01em;
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.cards {
  display: grid;
  gap: 14px;
}

.cards.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cards.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  min-height: 140px;
  border-radius: 14px;
  padding: 16px;
  background: rgba(22, 42, 84, 0.62);
  border: 1px solid rgba(122, 183, 255, 0.28);
}

.card h4 {
  margin: 0 0 8px;
  font-size: 1.02rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.96rem;
}

.install-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  column-gap: 16px;
  row-gap: 14px;
  align-items: stretch;
  justify-items: stretch;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

#screenshots .stage-showcase {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
  border-radius: 0;
  padding: 0;
  background: transparent;
  border: 0;
}

.stage-shot {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(123, 183, 255, 0.3);
  background: rgba(10, 24, 54, 0.72);
  display: grid;
  place-items: center;
  padding: 12px;
}

.stage-shot img {
  width: auto;
  height: auto;
  max-width: min(90vw, 420px);
  max-height: min(90svh, 720px);
  object-fit: contain;
  border-radius: 18px;
  border: 1.5px solid rgba(123, 180, 255, 0.48);
  box-shadow: 0 16px 36px rgba(4, 12, 32, 0.35);
  transition: opacity 220ms ease;
}

.stage-panel {
  border-radius: 0;
  padding: 0;
  background: transparent;
  border: 0;
  display: grid;
  gap: 10px;
}

.stage-kicker {
  margin: 0;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #86c4ff;
  font-weight: 700;
}

.stage-title {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 800;
}

.stage-body {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.95rem;
}

.stage-actions {
  display: flex;
  gap: 10px;
}

.stage-btn {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(123, 180, 255, 0.38);
  background: rgba(23, 40, 84, 0.8);
  color: var(--text);
  font-size: 1.25rem;
  font-weight: 700;
  cursor: pointer;
}

.stage-btn:hover {
  filter: brightness(1.08);
}

.stage-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.stage-chip {
  border: 1px solid rgba(123, 180, 255, 0.32);
  background: rgba(24, 44, 90, 0.75);
  color: #cfe3ff;
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
}

.stage-chip.is-active {
  background: linear-gradient(130deg, var(--primary), var(--primary-2));
  color: #072342;
  border-color: transparent;
}

.shot {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(123, 183, 255, 0.3);
  background: rgba(16, 31, 67, 0.7);
}

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

.shot figcaption {
  padding: 10px 12px;
  font-size: 0.88rem;
  color: var(--muted);
}

.install-card {
  width: 100%;
  border-radius: 14px;
  padding: 16px;
  background: rgba(16, 31, 67, 0.7);
  border: 1px solid rgba(123, 180, 255, 0.32);
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 12px;
}

.install-card h4 {
  margin: 0;
  font-size: 1.05rem;
  min-height: 1.4em;
}

.store-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(220px, 100%);
  min-height: 68px;
}

.store-link img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.qr-wrap {
  margin-top: 0;
}

.qr-box {
  width: 152px;
  height: 152px;
  border-radius: 10px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(122, 183, 255, 0.34);
}

.qr-box img,
.qr-box canvas {
  width: 100%;
  height: 100%;
}

.tiny {
  margin: 0;
  color: rgba(167, 185, 216, 0.85);
  font-size: 0.73rem;
  line-height: 1.4;
  word-break: break-all;
}

.site-footer {
  width: min(1200px, 94vw);
  margin: 0 auto;
  padding: 0 0 28px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  color: rgba(183, 202, 232, 0.8);
  font-size: 0.86rem;
}

.footer-link {
  color: #cfe3ff;
  text-decoration: none;
  border-bottom: 1px solid rgba(123, 180, 255, 0.4);
}

.footer-link:hover {
  color: #ffffff;
  border-bottom-color: rgba(123, 180, 255, 0.8);
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .cards.three,
  .cards.two,
  .install-grid,
  .screenshot-grid,
  .stage-showcase {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  #screenshots .section-head {
    gap: 6px;
    margin-bottom: 10px;
  }

  #screenshots .section-head h3 {
    font-size: clamp(1.18rem, 5.1vw, 1.42rem);
  }

  #screenshots .lead.small {
    margin-top: 6px;
    font-size: 0.9rem;
    line-height: 1.42;
  }

  .stage-showcase {
    gap: 8px;
    padding: 0;
  }

  .stage-panel {
    gap: 7px;
  }

  .stage-kicker {
    font-size: 0.68rem;
  }

  .stage-title {
    font-size: 1rem;
  }

  .stage-body {
    font-size: 0.88rem;
    line-height: 1.4;
  }

  .stage-actions {
    gap: 8px;
  }

  .stage-btn {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
  }

  .stage-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: thin;
  }

  .stage-chip {
    flex: 0 0 auto;
    padding: 6px 10px;
    font-size: 0.75rem;
  }

  .stage-shot {
    padding: 8px;
  }

  .stage-shot img {
    max-width: min(86vw, 360px);
    max-height: min(36svh, 280px);
    border-radius: 14px;
  }
}
