:root {
  --bg: #05070b;
  --bg-soft: #0a0f17;
  --panel: rgba(11, 16, 24, 0.72);
  --panel-strong: rgba(9, 13, 20, 0.92);
  --border: rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.12);
  --text: #f7f9fc;
  --muted: rgba(247,249,252,0.72);
  --muted-2: rgba(247,249,252,0.5);
  --blue-1: #084491;
  --blue-2: #4C90E8;
  --blue-3: #83B8F9;
  --danger: #ff5d67;
  --success: #22c55e;
  --shadow: 0 34px 90px rgba(0, 0, 0, 0.45);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --max: 1200px;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}
body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 15% 18%, rgba(120, 76, 255, 0.18), transparent 28%),
    radial-gradient(circle at 82% 72%, rgba(46, 182, 255, 0.2), transparent 26%),
    radial-gradient(circle at 70% 20%, rgba(255, 112, 162, 0.12), transparent 18%),
    linear-gradient(180deg, #07090d 0%, #05070b 100%);
  color: var(--text);
  overflow-x: hidden;
  max-width: 100vw;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(255,255,255,0.02), rgba(255,255,255,0)),
    radial-gradient(circle at center, rgba(255,255,255,0.04) 0.7px, transparent 0.7px);
  background-size: auto, 8px 8px;
  opacity: 0.22;
  mix-blend-mode: screen;
}

a { color: inherit; }

code {
  display: inline;
  padding: 2px 8px;
  font-size: 0.9em;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--blue-3);
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: 24px 24px 80px;
  overflow-x: hidden;
}

.nav {
  position: sticky;
  top: 16px;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 16px 18px;
  margin: 8px auto 0;
  background: rgba(10, 14, 22, 0.68);
  border: 1px solid var(--border);
  backdrop-filter: blur(18px);
  border-radius: 22px;
  box-shadow: 0 16px 50px rgba(0,0,0,0.3);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  color: var(--text);
  cursor: pointer;
}
.nav-toggle:hover { background: rgba(255,255,255,0.1); }

.nav-toggle-icon {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  position: relative;
  border-radius: 1px;
  transition: background 0.2s ease;
}
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.2s ease;
}
.nav-toggle-icon::before { top: -6px; }
.nav-toggle-icon::after { top: 6px; }
body.nav-open .nav-toggle-icon { background: transparent; }
body.nav-open .nav-toggle-icon::before {
  transform: translateY(6px) rotate(45deg);
}
body.nav-open .nav-toggle-icon::after {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  margin: 0;
  padding: 0;
  background: rgba(5, 7, 11, 0.9);
  backdrop-filter: blur(10px);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
body.nav-open .nav-backdrop {
  opacity: 1;
  pointer-events: auto;
}

.nav-links-desktop {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.nav-links-desktop a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.94rem;
}
.nav-links-desktop a:hover { color: white; }

.nav-menu {
  display: none;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
  min-width: 0;
}

.nav-close {
  display: none;
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10001;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-close:hover { background: rgba(255,255,255,0.1); }

.nav-close-icon {
  display: block;
  width: 14px;
  height: 14px;
  position: relative;
}
.nav-close-icon::before,
.nav-close-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}
.nav-close-icon::before { transform: translate(-50%, -50%) rotate(45deg); }
.nav-close-icon::after { transform: translate(-50%, -50%) rotate(-45deg); }

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

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(11, 86, 177, 0.35);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

.brand {
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-sub {
  color: var(--muted-2);
  font-size: 0.82rem;
  margin-top: 2px;
}

.links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.94rem;
}

.links a:hover { color: white; }

.lang-select {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.94rem;
  padding: 8px 12px;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none' stroke='%239ca3af' stroke-width='2'%3E%3Cpath d='M2 4l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 28px;
}
.lang-select:hover { color: white; border-color: var(--border-strong); }
.lang-select:focus { outline: none; border-color: var(--blue-2); }

.nav-cta {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  color: white;
  background: linear-gradient(135deg, rgba(76,144,232,0.95), rgba(8,68,145,0.95));
  box-shadow: 0 8px 24px rgba(13, 94, 196, 0.25);
  border: 1px solid rgba(255,255,255,0.15);
}
.nav-cta .store-icon { width: 18px; height: 18px; }
html.ios .nav-cta-app,
html.android .nav-cta-play { display: inline-flex; }

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  padding: 72px 0 36px;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 18px 0 18px;
  font-size: clamp(3rem, 6vw, 6rem);
  line-height: 0.92;
  letter-spacing: -0.05em;
}

.hero-copy p {
  margin: 0;
  max-width: 720px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.72;
}

.cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 18px;
  border-radius: 16px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.96rem;
  border: 1px solid rgba(255,255,255,0.1);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.button:hover { transform: translateY(-1px); }
.button-primary {
  color: white;
  background: linear-gradient(135deg, rgba(76,144,232,0.95), rgba(8,68,145,0.95));
  box-shadow: 0 20px 40px rgba(13, 94, 196, 0.26);
}
.button-secondary {
  color: white;
  background: rgba(255,255,255,0.04);
}

.store-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.button-store {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--text);
}

.button-store:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.18);
}

.store-icon {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
  flex-shrink: 0;
}

html.ios .store-buttons .btn-play-store { display: none; }
html.android .store-buttons .btn-app-store { display: none; }

.showcase {
  position: relative;
  padding-top: 24px;
}

.glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(65px);
  opacity: 0.55;
  pointer-events: none;
}
.glow.one {
  width: 280px;
  height: 280px;
  background: rgba(113, 87, 255, 0.28);
  top: 80px;
  left: 10%;
}
.glow.two {
  width: 360px;
  height: 360px;
  background: rgba(63, 180, 255, 0.24);
  right: 5%;
  bottom: 60px;
}

.screenshot-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: end;
}

.device {
  position: relative;
  border-radius: 34px;
  padding: 10px;
  background: linear-gradient(180deg, #0b1017 0%, #05070b 100%);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,0.05);
}
.device.tilt-left { transform: rotate(-7deg) translateY(26px); }
.device.center { z-index: 2; }
.device.tilt-right { transform: rotate(7deg) translateY(14px); }

.device img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 26px;
}

.section {
  padding: 88px 0 0;
}

.section-title {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.section-intro {
  margin: 0;
  max-width: 720px;
  color: var(--muted);
  line-height: 1.72;
  font-size: 1rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 32px;
}

.feature-card,
.privacy-card,
.contact-card {
  padding: 26px;
  border-radius: 26px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

.feature-card h3,
.privacy-card h2,
.privacy-card h3,
.contact-card h3 {
  margin-top: 0;
  letter-spacing: -0.03em;
}

.feature-card p,
.privacy-card p,
.privacy-card li,
.contact-card p {
  color: var(--muted);
  line-height: 1.72;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 32px;
}

.list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.list-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
}

.list-icon {
  flex: 0 0 34px;
  height: 34px;
  border-radius: 12px;
  background: rgba(76,144,232,0.14);
  border: 1px solid rgba(76,144,232,0.24);
  display: grid;
  place-items: center;
  color: #b7d6ff;
  font-weight: 800;
}

.privacy-card ul {
  margin: 12px 0 0;
  padding-left: 18px;
}

.footer {
  padding: 44px 0 10px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--muted-2);
  font-size: 0.92rem;
}
.footer a {
  color: var(--muted);
  text-decoration: none;
}

@media (max-width: 1080px) {
  .screenshot-grid { grid-template-columns: 1fr; }
  .device.tilt-left,
  .device.tilt-right,
  .device.center { transform: none; }
  .feature-grid,
  .two-col { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .wrap { padding: 18px 18px 64px; }
  .nav { position: relative; z-index: 100; }
  .nav-links-desktop { display: none; }
  body.nav-open .nav,
  body.nav-closing .nav { z-index: 10000; }
  .nav-toggle { display: flex; }
  .nav-backdrop { display: block; }
  .nav-close { display: flex; }
  .nav-menu .nav-close { right: 12px; top: 12px; }
  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    left: auto;
    width: min(320px, 100vw);
    min-width: 280px;
    height: 100vh;
    height: 100dvh;
    z-index: 9999;
    background: var(--bg-soft);
    border-left: 1px solid var(--border);
    padding: 72px 12px 24px 12px;
    padding-right: max(12px, env(safe-area-inset-right, 0px));
    margin: 0;
    transform: translateX(100%);
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.25s ease, visibility 0s 0.25s;
    overflow-y: auto;
    box-sizing: border-box;
  }
  body.nav-open .nav-menu {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
    transition: transform 0.25s ease, visibility 0s 0s;
    box-shadow: -20px 0 60px rgba(0,0,0,0.4);
  }
  .nav-menu {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
  }
  .nav-menu .links {
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
  }
  .nav-menu .links a,
  .nav-menu .lang-select {
    padding: 14px 12px;
    font-size: 1rem;
    border-radius: 14px;
    width: 100%;
  }
  .nav-menu .nav-cta { justify-content: center; }
  .links { gap: 12px; }
  .hero { padding-top: 44px; }
  .hero-copy h1 { font-size: clamp(2.5rem, 12vw, 4rem); }
  .section { padding-top: 60px; }
}

body.nav-open,
body.nav-closing { overflow: hidden; }
