:root {
  --bg: #0b1220;
  --bg-elevated: #111b2e;
  --bg-card: rgba(17, 27, 46, 0.72);
  --border: rgba(148, 163, 184, 0.14);
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --primary: #3b82f6;
  --primary-dark: #1d4ed8;
  --accent: #22d3ee;
  --accent-warm: #a78bfa;
  --success: #34d399;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 24px 80px rgba(2, 6, 23, 0.45);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --max: 1120px;
  --nav-h: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 50% at 10% -10%, rgba(59, 130, 246, 0.22), transparent 55%),
    radial-gradient(ellipse 50% 40% at 90% 0%, rgba(167, 139, 250, 0.16), transparent 50%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(34, 211, 238, 0.1), transparent 55%);
}

.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, background 0.2s, backdrop-filter 0.2s;
}

.site-header.is-scrolled {
  background: rgba(11, 18, 32, 0.82);
  border-color: var(--border);
  backdrop-filter: blur(14px);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(29, 78, 216, 0.35);
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-desktop a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav-desktop a:hover,
.nav-desktop a.is-active {
  color: var(--text);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-elevated);
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.menu-toggle svg {
  width: 22px;
  height: 22px;
}

.mobile-nav {
  display: none;
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  background: rgba(11, 18, 32, 0.96);
  backdrop-filter: blur(12px);
  padding: 1.5rem;
  flex-direction: column;
  gap: 0.25rem;
  z-index: 99;
}

.mobile-nav.is-open {
  display: flex;
}

.mobile-nav a {
  padding: 1rem 1.1rem;
  border-radius: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.mobile-nav a:hover {
  background: var(--bg-elevated);
  color: var(--text);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  box-shadow: 0 12px 32px rgba(59, 130, 246, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 16px 40px rgba(59, 130, 246, 0.45);
}

.btn-ghost {
  background: rgba(148, 163, 184, 0.08);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: rgba(148, 163, 184, 0.14);
}

/* Hero */
.hero {
  padding: 4rem 0 5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.25);
  color: #93c5fd;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.hero h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.hero h1 span {
  background: linear-gradient(135deg, #fff 0%, #93c5fd 45%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  margin: 0 0 2rem;
  font-size: 1.12rem;
  color: var(--text-muted);
  max-width: 34rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2.5rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
}

.stat strong {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.stat span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero-visual {
  position: relative;
}

.phone-mock {
  position: relative;
  margin: 0 auto;
  max-width: 320px;
  padding: 1rem;
  border-radius: 2.2rem;
  background: linear-gradient(160deg, rgba(59, 130, 246, 0.2), rgba(167, 139, 250, 0.12));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.phone-mock::before {
  content: "";
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.15), transparent 60%);
  z-index: -1;
}

.phone-screen {
  border-radius: 1.6rem;
  overflow: hidden;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}

.phone-screen img {
  width: 100%;
}

.floating-card {
  position: absolute;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  box-shadow: 0 16px 40px rgba(2, 6, 23, 0.35);
  font-size: 0.82rem;
}

.floating-card strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
}

.floating-card--tl {
  top: 8%;
  left: -8%;
}

.floating-card--br {
  bottom: 12%;
  right: -10%;
}

/* Sections */
section {
  padding: 5rem 0;
}

.section-head {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 3rem;
}

.section-head h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  letter-spacing: -0.02em;
  font-weight: 800;
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.feature-card {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover {
  border-color: rgba(59, 130, 246, 0.35);
  transform: translateY(-2px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  margin-bottom: 1rem;
  background: rgba(59, 130, 246, 0.12);
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.feature-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.modules {
  background: linear-gradient(180deg, transparent, rgba(17, 27, 46, 0.5) 30%, transparent);
}

.module-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.module-item {
  display: flex;
  gap: 1rem;
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(17, 27, 46, 0.5);
}

.module-item .dot {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  margin-top: 0.45rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}

.module-item h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.module-item p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.cta-band {
  padding: 4rem 0 5rem;
}

.cta-box {
  text-align: center;
  padding: 3rem 2rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(29, 78, 216, 0.25), rgba(34, 211, 238, 0.08));
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.cta-box h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
}

.cta-box p {
  margin: 0 auto 1.75rem;
  max-width: 32rem;
  color: var(--text-muted);
}

/* Subpages */
.subpage-hero {
  padding: 3.5rem 0 2rem;
}

.subpage-hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.subpage-hero p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 36rem;
}

.content-card {
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  margin-bottom: 2rem;
}

.content-card h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.2rem;
}

.content-card h2:first-child {
  margin-top: 0;
}

.content-card p,
.content-card li {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.content-card ul {
  padding-left: 1.25rem;
}

.content-card a {
  color: #93c5fd;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.contact-card {
  padding: 1.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.contact-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.contact-card p {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font: inherit;
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.store-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-card);
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
}

.store-card:hover {
  border-color: rgba(59, 130, 246, 0.4);
  transform: translateY(-3px);
}

.store-card .store-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4.5rem;
  height: 4.5rem;
  margin-bottom: 1rem;
}

.store-logo--apple {
  display: block;
  width: 2.5rem;
  height: 2.5rem;
  background-color: #f5f5f7;
  -webkit-mask-image: url("../assets/apple_logo.png");
  mask-image: url("../assets/apple_logo.png");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

.store-card .store-icon--play img {
  width: 2.75rem;
  height: 2.75rem;
  object-fit: contain;
  object-position: center;
}

.store-card h3 {
  margin: 0 0 0.5rem;
}

.store-card p {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.2rem;
  border-radius: 12px;
  background: #fff;
  color: #0f172a;
  font-weight: 700;
  font-size: 0.9rem;
}

.store-badge img {
  width: 1.35rem;
  height: 1.35rem;
  object-fit: contain;
  flex-shrink: 0;
}

.qr-hint {
  margin-top: 2rem;
  padding: 1.25rem;
  border-radius: var(--radius);
  background: rgba(52, 211, 153, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.25);
  font-size: 0.9rem;
  color: #a7f3d0;
}

/* Footer */
.site-footer {
  margin-top: auto;
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-brand p {
  margin: 0.75rem 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 18rem;
}

.footer-col h4 {
  margin: 0 0 1rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.footer-col a {
  display: block;
  margin-bottom: 0.55rem;
  font-size: 0.92rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

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

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-lead,
  .hero-stats {
    margin-inline: auto;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-visual {
    order: -1;
  }

  .floating-card--tl,
  .floating-card--br {
    display: none;
  }

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

  .module-list,
  .contact-grid,
  .download-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nav-desktop,
  .nav-actions .btn-ghost {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

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