:root {
  --bg: #070b14;
  --bg-soft: #0d1422;
  --card: #121a2b;
  --accent: #00aef0;
  --accent-2: #1a4dff;
  --accent-deep: #0a2ad4;
  --text: #f2f5fb;
  --muted: #93a0b8;
  --border: rgba(255, 255, 255, 0.08);
  --nav-h: 68px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Accessibility */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--accent-2);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 10px 0;
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus { left: 0; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
label:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 11, 20, 0.9);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--nav-h);
  gap: 12px;
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  padding: 8px 0;
}

.brand-word {
  font-weight: 900;
  font-size: 1.1rem;
  letter-spacing: 0.06em;
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: block;
}

nav.links {
  display: flex;
  align-items: center;
  gap: 4px;
}

nav.links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 10px 12px;
  border-radius: 8px;
  transition: color 0.15s ease, background 0.15s ease;
}

nav.links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }

/* Mobile nav toggle (no JS) */
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }

.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
}

.nav-burger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (max-width: 720px) {
  .nav-burger { display: flex; }

  nav.links {
    position: absolute;
    top: 100%;
    left: -20px;
    right: -20px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(7, 11, 20, 0.98);
    border-bottom: 1px solid var(--border);
    padding: 8px 20px 16px;
    display: none;
  }

  nav.links a {
    padding: 14px 12px;
    font-size: 1.02rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  nav.links a:last-child { border-bottom: none; }

  .nav-toggle:checked ~ nav.links { display: flex; }

  .nav-toggle:checked ~ .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle:checked ~ .nav-burger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav-toggle:focus-visible ~ .nav-burger {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
  }
}

/* Hero */
.hero {
  padding: clamp(56px, 9vw, 92px) 0 clamp(40px, 7vw, 64px);
  text-align: center;
  background:
    radial-gradient(620px 320px at 50% -40px, rgba(0, 174, 240, 0.22), transparent),
    radial-gradient(520px 280px at 85% 35%, rgba(26, 77, 255, 0.18), transparent);
}

.eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(0, 174, 240, 0.10);
  border: 1px solid rgba(0, 174, 240, 0.28);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(1.9rem, 6vw, 3.6rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.12;
}

.hero h1 span {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  max-width: 580px;
  margin: 16px auto 0;
  color: var(--muted);
  font-size: clamp(0.98rem, 2.6vw, 1.1rem);
}

.cta-row {
  margin-top: 30px;
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.9rem;
  line-height: 1;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(26, 77, 255, 0.3);
}

.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--bg-soft);
}

/* Hero stats */
.stats {
  display: flex;
  justify-content: center;
  gap: clamp(22px, 6vw, 40px);
  margin-top: clamp(30px, 6vw, 46px);
  flex-wrap: wrap;
}

.stat { text-align: center; min-width: 90px; }

.stat strong {
  display: block;
  font-size: clamp(1.4rem, 4vw, 1.8rem);
  font-weight: 900;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat span {
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

/* Sections */
section { padding: clamp(44px, 8vw, 64px) 0; }

section.soft { background: var(--bg-soft); }

.section-title {
  font-size: clamp(1.3rem, 3.6vw, 1.6rem);
  font-weight: 800;
  margin-bottom: 8px;
}

.section-sub {
  color: var(--muted);
  margin-bottom: clamp(24px, 5vw, 36px);
  max-width: 720px;
}

/* App grid */
.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: 16px;
}

.app-tile {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.app-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 174, 240, 0.45);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.app-tile.featured {
  border-color: rgba(0, 174, 240, 0.4);
  background:
    linear-gradient(180deg, rgba(0, 174, 240, 0.08), transparent),
    var(--card);
}

.app-tile-head {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 12px;
}

.tile-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  flex-shrink: 0;
  object-fit: cover;
}

.app-tile-head h3 {
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.app-tile-head .cat {
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 700;
}

.app-tile > p {
  color: var(--muted);
  font-size: 0.92rem;
  flex: 1;
  margin-bottom: 14px;
}

/* Store badges */
.store-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.store-link {
  display: inline-flex;
  line-height: 0;
  text-decoration: none;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.store-link:hover {
  transform: translateY(-2px);
  opacity: 0.92;
}

.store-badge-img {
  display: block;
  height: 40px;
  width: auto;
}

.hero-store {
  display: inline-flex;
  align-items: center;
  height: 40px;
  line-height: 0;
}

.hero-store .store-badge-img {
  height: 40px;
  width: auto;
}

.coming-soon {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
}

/* Platform cards */
.platform-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 16px;
}

.platform-card {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease;
  flex-wrap: wrap;
}

.platform-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 174, 240, 0.45);
}

.platform-badge {
  height: 40px;
  width: auto;
  flex-shrink: 0;
  display: block;
}

.platform-card h4 { font-size: 1.1rem; color: var(--text); }
.platform-card p { color: var(--muted); font-size: 0.9rem; }

/* Values grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 16px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
}

.card .emoji { font-size: 26px; }

.card h4 { margin: 10px 0 6px; font-size: 1.05rem; }

.card p { color: var(--muted); font-size: 0.93rem; }

/* Contact band */
.contact-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

/* Legal pages */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(36px, 7vw, 56px) 20px 80px;
}

.legal h1 { font-size: clamp(1.6rem, 5vw, 2rem); font-weight: 900; margin-bottom: 6px; }

.legal .updated { color: var(--muted); font-size: 0.9rem; margin-bottom: 30px; }

.legal h2 { font-size: 1.2rem; margin: 32px 0 10px; font-weight: 800; }

.legal p, .legal li { color: #c6cddd; font-size: 0.98rem; overflow-wrap: anywhere; }

.legal ul { padding-left: 22px; margin: 10px 0; }

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

.legal a { color: var(--accent); }

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 36px 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.foot-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.foot-logo {
  height: 56px;
  width: auto;
  display: block;
}

footer .foot-links {
  margin-bottom: 12px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 8px;
}

footer .foot-links a {
  color: var(--muted);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 8px;
}

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

.foot-legal {
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.7;
  padding: 0 8px;
}

/* Small screens */
@media (max-width: 480px) {
  .btn { width: 100%; max-width: 320px; }
  .cta-row { flex-direction: column; }
  .contact-band { flex-direction: column; align-items: flex-start; }
  .contact-band .btn { width: auto; }
  .app-tile { padding: 18px; }
  .foot-logo { height: 48px; }
}
