@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Sora:wght@600;700;800&display=swap");

:root {
  color-scheme: dark;
  --bg: #040816;
  --bg-deep: #020511;
  --panel: rgba(10, 16, 33, 0.78);
  --panel-strong: rgba(9, 15, 30, 0.9);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(56, 189, 248, 0.28);
  --text: #f5f7fb;
  --muted: rgba(229, 234, 244, 0.72);
  --muted-soft: rgba(214, 220, 233, 0.58);
  --blue: #38bdf8;
  --gold: #fbbf24;
  --focus: #9bddff;
  --shadow: 0 26px 80px rgba(0, 0, 0, 0.44);
  --shadow-soft: 0 20px 44px rgba(0, 0, 0, 0.26);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-pill: 999px;
}

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

html {
  min-height: 100%;
  background: var(--bg-deep);
}

body {
  margin: 0;
  min-height: 100svh;
  color: var(--text);
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #0c1326 0%, var(--bg) 38%, var(--bg-deep) 100%);
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  background:
    radial-gradient(circle at 22% 16%, rgba(66, 198, 255, 0.12), transparent 16%),
    radial-gradient(circle at 30% 26%, rgba(56, 189, 248, 0.1), transparent 18%),
    radial-gradient(circle at 76% 34%, rgba(255, 210, 54, 0.1), transparent 14%),
    radial-gradient(circle at 64% 18%, rgba(255, 244, 164, 0.04), transparent 20%),
    radial-gradient(circle at 50% 78%, rgba(56, 189, 248, 0.05), transparent 24%),
    radial-gradient(circle at 50% 50%, rgba(8, 16, 36, 0.14), transparent 56%);
  filter: blur(18px) saturate(115%);
}

body::after {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0.008) 18%, rgba(255, 255, 255, 0) 42%, rgba(255, 255, 255, 0.012) 82%, rgba(255, 255, 255, 0.024)),
    radial-gradient(circle at center, transparent 52%, rgba(0, 0, 0, 0.32) 100%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.018), rgba(255, 255, 255, 0) 32%, rgba(255, 255, 255, 0.012) 68%, rgba(255, 255, 255, 0.006));
  mix-blend-mode: screen;
  opacity: 0.55;
}

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

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

a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
}

.site-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 1.5rem));
  min-height: 100svh;
  margin: 0 auto;
}

.home-shell {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: max(1rem, env(safe-area-inset-top)) 0 calc(1rem + env(safe-area-inset-bottom));
}

.inner-shell {
  display: flex;
  flex-direction: column;
  padding: max(1rem, env(safe-area-inset-top)) 0 calc(1.4rem + env(safe-area-inset-bottom));
}

.hero-stage {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(2rem, 5vw, 3rem);
  text-align: center;
  padding: clamp(2.4rem, 8vh, 5rem) 0 2rem;
}

.wordmark {
  margin: 0;
  font-family: "Sora", "Arial Black", sans-serif;
  font-size: clamp(3.8rem, 14vw, 9rem);
  font-weight: 800;
  line-height: 0.88;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  white-space: nowrap;
}

.wordmark-pipe {
  color: var(--blue);
  text-shadow: 0 0 28px rgba(56, 189, 248, 0.18);
}

.wordmark-blox {
  color: var(--gold);
  text-shadow: 0 0 28px rgba(251, 191, 36, 0.14);
}

.home-downloads {
  width: min(760px, 100%);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.store-badge-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 110px;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(14, 20, 38, 0.86), rgba(9, 14, 28, 0.7));
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.store-badge-link:hover,
.store-badge-link:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.34);
  background: linear-gradient(180deg, rgba(16, 23, 42, 0.92), rgba(10, 16, 31, 0.82));
}

.store-badge-link img {
  width: min(100%, 320px);
  height: auto;
}

.home-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.35rem;
  padding-bottom: 0.4rem;
}

.micro-link {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: color 180ms ease, transform 180ms ease;
}

.micro-link:hover,
.micro-link:focus-visible {
  color: var(--text);
  transform: translateY(-1px);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
}

.brand-mark {
  width: 3rem;
  height: 3rem;
  flex: 0 0 auto;
  border-radius: 22%;
  filter: drop-shadow(0 12px 26px rgba(0, 0, 0, 0.34));
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  min-width: 0;
}

.brand-wordmark {
  display: inline-flex;
  font-family: "Sora", "Arial Black", sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.brand-wordmark-pipe {
  color: var(--blue);
}

.brand-wordmark-blox {
  color: var(--gold);
}

.brand-note {
  color: var(--muted-soft);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.download-now {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.92rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(12, 19, 38, 0.62);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: color 180ms ease, transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.download-now:hover,
.download-now:focus-visible {
  color: var(--text);
  transform: translateY(-1px);
  border-color: var(--line-strong);
  background: rgba(12, 19, 38, 0.86);
}

.inner-main {
  flex: 1 1 auto;
  display: grid;
  place-items: center;
  padding: clamp(2.5rem, 9vw, 5.5rem) 0;
}

.content-card {
  width: min(860px, 100%);
  padding: clamp(1.6rem, 4vw, 3rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, var(--panel), var(--panel-strong));
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
  position: relative;
  overflow: hidden;
}

.content-card::before {
  content: "";
  position: absolute;
  inset: auto -12% -36% auto;
  width: 15rem;
  height: 15rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.12), transparent 70%);
  pointer-events: none;
}

.card-kicker {
  margin: 0 0 1rem;
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.page-title {
  margin: 0;
  font-family: "Sora", "Arial Black", sans-serif;
  font-size: clamp(2.2rem, 7vw, 3.7rem);
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-wrap: balance;
}

.page-copy {
  margin: 1rem 0 0;
  max-width: 44rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
}

.policy-meta {
  margin: 1rem 0 0;
  color: var(--muted-soft);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.support-card {
  display: grid;
  gap: 1.35rem;
  justify-items: start;
}

.support-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.65rem;
  padding: 0.95rem 1.3rem;
  border: 1px solid rgba(56, 189, 248, 0.34);
  border-radius: var(--radius-pill);
  background: rgba(7, 12, 25, 0.6);
  color: var(--text);
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.support-contact:hover,
.support-contact:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(56, 189, 248, 0.56);
  box-shadow: 0 22px 40px rgba(0, 0, 0, 0.3);
}

.policy-card {
  width: min(920px, 100%);
}

.policy-stack {
  display: grid;
  gap: 1.6rem;
  margin-top: 2rem;
}

.policy-block + .policy-block {
  padding-top: 1.45rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.policy-block h2 {
  margin: 0;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.policy-block p {
  margin: 0.85rem 0 0;
  color: var(--muted);
  line-height: 1.85;
}

.policy-block strong {
  color: var(--text);
}

.policy-list {
  margin: 0.85rem 0 0;
  padding-left: 1.25rem;
  color: var(--muted);
}

.policy-list li {
  line-height: 1.85;
}

.policy-list li + li {
  margin-top: 0.7rem;
}

.inline-link {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: rgba(56, 189, 248, 0.5);
  text-underline-offset: 0.2em;
}

.inline-link:hover,
.inline-link:focus-visible {
  text-decoration-color: rgba(56, 189, 248, 0.9);
}

@media (max-width: 860px) {
  .home-downloads {
    grid-template-columns: 1fr;
    width: min(420px, 100%);
  }
}

@media (max-width: 700px) {
  .site-shell {
    width: min(100%, calc(100% - 1rem));
  }

  .site-header {
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.85rem;
  }

  .download-now {
    flex: 0 0 auto;
    min-width: 0;
    padding: 0.85rem 1rem;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
  }
}

@media (max-width: 640px) {
  .wordmark {
    max-width: min(100%, 19rem);
    font-size: clamp(3rem, 16vw, 4.7rem);
    line-height: 0.92;
    letter-spacing: 0.06em;
    white-space: normal;
  }

  .hero-stage {
    gap: 1.6rem;
    justify-content: flex-start;
    padding: clamp(1.9rem, 7vh, 3.5rem) 0 2.25rem;
  }

  .home-downloads {
    width: min(316px, 100%);
    gap: 0.9rem;
    margin-top: clamp(3.8rem, 16vh, 7.2rem);
    justify-items: center;
  }

  .store-badge-link {
    width: 100%;
    min-height: 82px;
    padding: 0.62rem 0.72rem;
  }

  .store-badge-link img {
    width: min(100%, 260px);
  }

  .home-links {
    gap: 1rem;
  }

  .micro-link {
    font-size: 0.74rem;
    letter-spacing: 0.12em;
  }

  .brand-mark {
    width: 2.55rem;
    height: 2.55rem;
  }

  .brand-wordmark {
    font-size: 0.86rem;
    letter-spacing: 0.12em;
  }

  .brand-link {
    flex: 1 1 auto;
    min-width: 0;
    gap: 0.75rem;
  }

  .brand-note {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
  }

  .download-now {
    padding: 0.82rem 0.95rem;
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    white-space: nowrap;
  }

  .inner-main {
    padding: 2rem 0 3.2rem;
  }

  .page-title {
    font-size: clamp(2rem, 10vw, 3rem);
    line-height: 0.98;
    letter-spacing: 0.04em;
  }

  .page-copy {
    font-size: 0.94rem;
    line-height: 1.65;
  }

  .card-kicker,
  .policy-block h2 {
    letter-spacing: 0.16em;
  }

  .support-contact {
    min-height: 3.4rem;
    font-size: 0.98rem;
  }

  .policy-stack {
    gap: 1.35rem;
    margin-top: 1.6rem;
  }

  .policy-block p {
    line-height: 1.72;
  }
}

@media (max-width: 430px) {
  .site-header {
    gap: 0.7rem;
  }

  .wordmark {
    max-width: 18rem;
    font-size: clamp(2.7rem, 14vw, 4rem);
    letter-spacing: 0.045em;
  }

  .hero-stage {
    gap: 1.5rem;
    padding-top: clamp(1.5rem, 5vh, 2.6rem);
  }

  .home-downloads {
    width: min(290px, 100%);
    gap: 0.8rem;
    margin-top: clamp(4.2rem, 18vh, 7rem);
    justify-items: center;
  }

  .store-badge-link {
    width: 100%;
    min-height: 76px;
    padding: 0.58rem 0.68rem;
  }

  .store-badge-link img {
    width: min(100%, 236px);
  }

  .brand-mark {
    width: 2.4rem;
    height: 2.4rem;
  }

  .brand-wordmark {
    font-size: 0.8rem;
    letter-spacing: 0.1em;
  }

  .brand-note {
    font-size: 0.68rem;
    letter-spacing: 0.1em;
  }

  .download-now {
    padding: 0.78rem 0.82rem;
    font-size: 0.64rem;
    letter-spacing: 0.1em;
  }

  .content-card {
    padding: 1.5rem 1.3rem 1.8rem;
  }

  .card-kicker,
  .policy-block h2 {
    font-size: 0.72rem;
    letter-spacing: 0.14em;
  }

  .page-title {
    font-size: clamp(1.9rem, 9.8vw, 2.7rem);
    line-height: 1;
    letter-spacing: 0.03em;
  }

  .page-copy {
    font-size: 0.9rem;
    line-height: 1.58;
  }

  .support-card {
    gap: 1.1rem;
  }

  .support-contact {
    min-height: 3.2rem;
    width: 100%;
    font-size: 0.94rem;
    padding: 0.88rem 1rem;
  }

  .policy-stack {
    gap: 1.2rem;
    margin-top: 1.35rem;
  }

  .policy-block + .policy-block {
    padding-top: 1.15rem;
  }

  .policy-block p {
    margin-top: 0.7rem;
    font-size: 0.9rem;
    line-height: 1.62;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
