@font-face {
  font-family: 'Lexend';
  src: url(/fonts/Lexend-VariableFont_wght.ttf);
  font-weight: 100 900;
  font-display: swap;
}

:root {
  font-size: 62.5%;

  /* Surfaces */
  --bg: #07090d;
  --bg-soft: #0b0e15;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-strong: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);

  /* Text */
  --text: #f2f4f8;
  --text-dim: #a3adbf;
  --text-faint: #6b7486;

  /* Brand */
  --accent: #2e9bff;
  --accent-deep: #0071e3;
  --accent-soft: rgba(46, 155, 255, 0.14);
  --cyan: #5edfff;
  --gradient-accent: linear-gradient(120deg, #2e9bff 0%, #5edfff 100%);
  --gradient-text: linear-gradient(120deg, #4facff 0%, #6fe3ff 60%, #a5f3ff 100%);

  /* Signal colors (mockups, checkmarks, ranks) */
  --lime: #a3e635;
  --amber: #fbbf24;
  --rose: #fb7185;
  --teal: #2dd4bf;
  --violet: #a78bfa;
  --bronze: #d08b4c;
  --silver: #c7cfdb;
  --gold: #f5c04e;

  /* Effects */
  --glow-accent: 0 0 24px rgba(46, 155, 255, 0.35), 0 0 80px rgba(46, 155, 255, 0.12);
  --shadow-card: 0 20px 60px rgba(0, 0, 0, 0.45);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 9rem;
  overflow-x: clip;
}

body {
  margin: 0;
  overflow-x: hidden;
  overflow-x: clip;
  word-break: break-word;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 80rem 50rem at 15% -10%, rgba(46, 155, 255, 0.13) 0%, transparent 60%),
    radial-gradient(ellipse 70rem 50rem at 110% 15%, rgba(94, 223, 255, 0.07) 0%, transparent 60%);
  background-repeat: no-repeat;
  color: var(--text);
  font-family: 'Lexend', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  font-size: 1.6rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: rgba(46, 155, 255, 0.35);
  color: #ffffff;
}

/* ---------- Typography ---------- */

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  color: var(--text);
  text-wrap: balance;
}

h1 {
  font-size: clamp(3.6rem, 6.5vw, 6.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.06;
}

h2 {
  font-size: clamp(2.8rem, 4.5vw, 4.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
}

h3 {
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

h4 {
  font-size: 1.9rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

p {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-dim);
}

a {
  color: var(--accent);
  text-decoration: none;
}

img {
  max-width: 100%;
}

.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---------- Layout primitives ---------- */

.container {
  width: 100%;
  max-width: 118rem;
  margin: 0 auto;
  padding: 0 2.4rem;
}

.section {
  padding: 10rem 0;
  position: relative;
}

.section-head {
  max-width: 72rem;
  margin: 0 auto 5.6rem;
  text-align: center;
}

.section-head.left {
  margin: 0 0 4rem;
  text-align: left;
}

.section-head p {
  margin-top: 1.6rem;
  font-size: 1.8rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.6rem;
  padding: 0.6rem 1.4rem;
  border: 1px solid var(--border);
  border-radius: 99rem;
  background: var(--surface);
  color: var(--accent);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.4rem 2.8rem;
  border: none;
  border-radius: 1.4rem;
  font-family: inherit;
  font-size: 1.6rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s var(--ease-bounce), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}

.btn-primary {
  background: var(--gradient-accent);
  color: #041225;
  box-shadow: 0 8px 28px rgba(46, 155, 255, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow-accent);
}

.btn-ghost {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--text);
}

.btn-ghost:hover {
  background: var(--surface-strong);
  transform: translateY(-2px);
}

:where(a, button):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 0.6rem;
}

/* ---------- Store badges ---------- */

.store-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.6rem;
}

.store-badges img {
  height: 5.2rem;
  width: auto;
  display: block;
  border-radius: 0.8rem;
  transition: transform 0.3s var(--ease-bounce), opacity 0.3s var(--ease);
}

.store-badges a:hover img {
  transform: translateY(-3px) scale(1.03);
}

/* ---------- Cards ---------- */

.glass-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 2.4rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* ---------- Feature check list ---------- */

.check-list {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  margin: 2.8rem 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--text-dim);
  line-height: 1.55;
}

.check-list li strong {
  color: var(--text);
  font-weight: 600;
}

.check-list .check {
  flex: none;
  width: 2.2rem;
  height: 2.2rem;
  margin-top: 0.2rem;
  border-radius: 50%;
  background: var(--accent-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.check-list .check svg {
  width: 1.1rem;
  height: 1.1rem;
  stroke: var(--accent);
}

/* ---------- Scroll animations ---------- */

[data-animate] {
  opacity: 0;
  transform: translateY(2.4rem);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

[data-animate='slide-left'] {
  transform: translateX(-3.2rem);
}

[data-animate='slide-right'] {
  transform: translateX(3.2rem);
}

[data-animate].is-visible {
  opacity: 1;
  transform: none;
}

[data-animate-delay='1'] { transition-delay: 0.1s; }
[data-animate-delay='2'] { transition-delay: 0.2s; }
[data-animate-delay='3'] { transition-delay: 0.3s; }
[data-animate-delay='4'] { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  [data-animate] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============================================================
   Mockup kit — stylised app UI used in hero & feature sections.
   Swap for real screenshots by replacing .phone contents.
   ============================================================ */

.phone {
  position: relative;
  width: min(32rem, 78vw);
  aspect-ratio: 9 / 19;
  padding: 1rem;
  border-radius: 4.4rem;
  background: linear-gradient(160deg, #2a3140 0%, #12161f 45%, #0c0f16 100%);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-card), inset 0 1px 1px rgba(255, 255, 255, 0.12);
}

.phone::after {
  /* Notch */
  content: '';
  position: absolute;
  top: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 8.4rem;
  height: 2.2rem;
  border-radius: 99rem;
  background: #05070b;
  z-index: 2;
}

.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 3.5rem;
  background: linear-gradient(180deg, #0d1118 0%, #0a0d13 100%);
  padding: 5.6rem 1.6rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.mock-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mock-title small {
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text-faint);
}

.mock-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 1.6rem;
  padding: 1.4rem;
}

.mock-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mock-label {
  font-size: 1.15rem;
  color: var(--text-dim);
}

.mock-value {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  margin-left: auto;
}

.mock-bar {
  height: 0.6rem;
  border-radius: 99rem;
  background: rgba(255, 255, 255, 0.09);
  overflow: hidden;
  flex: 1;
}

.mock-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--gradient-accent);
}

.mock-bar.lime span { background: linear-gradient(90deg, #86d130, #b9f562); }
.mock-bar.amber span { background: linear-gradient(90deg, #f59e0b, #fcd34d); }
.mock-bar.rose span { background: linear-gradient(90deg, #f4436c, #fb92a8); }
.mock-bar.teal span { background: linear-gradient(90deg, #14b8a6, #5eead4); }
.mock-bar.violet span { background: linear-gradient(90deg, #8b5cf6, #c4b5fd); }

.mock-avatar {
  flex: none;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-weight: 600;
  color: #041225;
  background: linear-gradient(135deg, #5edfff, #2e9bff);
}

.mock-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.1rem;
  border-radius: 99rem;
  border: 1px solid rgba(46, 155, 255, 0.35);
  background: rgba(46, 155, 255, 0.12);
  color: #9fd3ff;
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.35;
}

/* Score ring (SVG-based, values set inline via stroke-dasharray) */
.score-ring {
  position: relative;
  display: inline-grid;
  place-items: center;
}

.score-ring svg {
  transform: rotate(-90deg);
  display: block;
}

.score-ring .ring-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
}

.score-ring .ring-value {
  fill: none;
  stroke: url(#scoreGradient);
  stroke-linecap: round;
}

.score-ring .score-label {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.1;
}

.score-ring .score-number {
  font-size: 3.4rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.score-ring .score-caption {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* Rank emblems (Bronze → Champion) */
.rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.4rem;
  height: 4.4rem;
  border-radius: 50%;
  font-size: 1.8rem;
  border: 1px solid var(--border-strong);
  background: var(--surface-strong);
  filter: saturate(0.9);
}

.rank.bronze { border-color: rgba(208, 139, 76, 0.6); box-shadow: 0 0 16px rgba(208, 139, 76, 0.25); }
.rank.silver { border-color: rgba(199, 207, 219, 0.6); box-shadow: 0 0 16px rgba(199, 207, 219, 0.2); }
.rank.gold { border-color: rgba(245, 192, 78, 0.7); box-shadow: 0 0 18px rgba(245, 192, 78, 0.3); }
.rank.champion {
  border-color: rgba(167, 139, 250, 0.7);
  box-shadow: 0 0 20px rgba(167, 139, 250, 0.35);
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.25), rgba(94, 223, 255, 0.2));
}

/* ---------- Legal pages ---------- */

.legal-page {
  max-width: 86rem;
  margin: 0 auto;
  padding: 14rem 2.4rem 8rem;
}

.legal-page-header {
  margin-bottom: 4rem;
  text-align: center;
}

.legal-body {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 2.4rem;
  padding: clamp(2.4rem, 5vw, 5.6rem);
}

.legal-body h4 {
  margin: 3.2rem 0 1.2rem;
  font-size: 2.2rem;
}

.legal-body h5 {
  margin: 2.4rem 0 0.8rem;
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--text);
}

.legal-body h6 {
  margin: 2rem 0 0.6rem;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
}

.legal-body p,
.legal-body li {
  font-size: 1.5rem;
  color: var(--text-dim);
}

.legal-body a {
  color: var(--accent);
}

/* ---------- Support page ---------- */

.support-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16rem 2.4rem 10rem;
}

.support-card {
  max-width: 56rem;
  width: 100%;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 2.8rem;
  padding: clamp(3.2rem, 6vw, 6rem);
}

.support-card h2 {
  margin-bottom: 1.6rem;
}

.support-card .email-btn {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  margin-top: 3.2rem;
  padding: 1.4rem 2.8rem;
  border-radius: 1.4rem;
  background: var(--gradient-accent);
  color: #041225;
  font-weight: 600;
  font-size: 1.6rem;
  box-shadow: 0 8px 28px rgba(46, 155, 255, 0.35);
  transition: transform 0.3s var(--ease-bounce), box-shadow 0.3s var(--ease);
}

.support-card .email-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow-accent);
}

/* ---------- Misc ---------- */

main {
  display: block;
  min-height: 60vh;
}

#blazor-error-ui {
  display: none;
}

@media (max-width: 720px) {
  .section {
    padding: 7rem 0;
  }

  .section-head {
    margin-bottom: 4rem;
  }
}
