@font-face {
  font-family: 'Urbanist';
  src: url('/static/landing/assets/fonts/Urbanist-Italic.woff2') format('woff2');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

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

:root {
  --bg: #f7f7f8;
  --text: #14141a;
  --text-muted: rgba(20, 20, 26, 0.62);
  --text-soft: rgba(20, 20, 26, 0.72);
  --text-faint: rgba(20, 20, 26, 0.45);
  --surface: #ffffff;
  --surface-muted: #f3f4f6;
  --border: rgba(0, 0, 0, 0.06);
  --border-strong: rgba(0, 0, 0, 0.08);
  --nav-bg: rgba(255, 255, 255, 0.82);
  --nav-bg-scrolled: rgba(255, 255, 255, 0.94);
  --nav-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 12px 40px rgba(0, 0, 0, 0.06);
  --nav-shadow-scrolled: 0 1px 2px rgba(0, 0, 0, 0.05), 0 16px 48px rgba(0, 0, 0, 0.08);
  --nav-link: rgba(20, 20, 26, 0.68);
  --nav-cta-bg: #14141a;
  --nav-cta-text: #ffffff;
  --accent: #9333ea;
  --accent-cyan: #0891b2;
  --pattern-opacity: 0.085;
  --pattern-filter: none;
  --card-shadow: 0 8px 28px rgba(0, 0, 0, 0.04);
  --card-shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.06);
  --btn-ghost-bg: #ffffff;
  --btn-ghost-text: #14141a;
  --scroll-top-bg: #ffffff;
  --scroll-top-text: #14141a;
  --scroll-top-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  --glow-1: rgba(103, 232, 249, 0.18);
  --glow-2: rgba(192, 132, 252, 0.16);
  --glow-3: rgba(255, 110, 180, 0.08);
  --phone-frame: linear-gradient(160deg, #ececef 0%, #d8d8dc 35%, #bcbcc2 100%);
  --phone-btn: #c8c8cc;
  --tile-icon-bg: rgba(147, 51, 234, 0.08);
  --visual-phone-bg:
    radial-gradient(circle at 30% 30%, rgba(103, 232, 249, 0.12), transparent 45%),
    radial-gradient(circle at 70% 70%, rgba(192, 132, 252, 0.14), transparent 50%),
    #f3f4f6;
}

[data-theme="dark"] {
  --bg: #050008;
  --text: rgba(255, 255, 255, 0.92);
  --text-muted: rgba(255, 255, 255, 0.62);
  --text-soft: rgba(255, 255, 255, 0.78);
  --text-faint: rgba(255, 255, 255, 0.42);
  --surface: rgba(255, 255, 255, 0.04);
  --surface-muted: rgba(255, 255, 255, 0.03);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.12);
  --nav-bg: rgba(5, 0, 8, 0.78);
  --nav-bg-scrolled: rgba(5, 0, 8, 0.92);
  --nav-shadow: 0 1px 2px rgba(0, 0, 0, 0.2), 0 12px 40px rgba(0, 0, 0, 0.35);
  --nav-shadow-scrolled: 0 1px 2px rgba(0, 0, 0, 0.25), 0 16px 48px rgba(0, 0, 0, 0.45);
  --nav-link: rgba(255, 255, 255, 0.68);
  --nav-cta-bg: #ffffff;
  --nav-cta-text: #050008;
  --pattern-opacity: 0.055;
  --pattern-filter: invert(1) brightness(1.6);
  --card-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
  --card-shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.35);
  --btn-ghost-bg: rgba(255, 255, 255, 0.06);
  --btn-ghost-text: #ffffff;
  --scroll-top-bg: rgba(255, 255, 255, 0.1);
  --scroll-top-text: #ffffff;
  --scroll-top-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --glow-1: rgba(255, 0, 180, 0.14);
  --glow-2: rgba(120, 60, 255, 0.18);
  --glow-3: rgba(0, 200, 255, 0.1);
  --phone-frame: linear-gradient(160deg, #3a3a3e 0%, #1a1a1c 35%, #0d0d0f 100%);
  --phone-btn: #2a2a2d;
  --tile-icon-bg: rgba(192, 132, 252, 0.14);
  --visual-phone-bg:
    radial-gradient(circle at 30% 30%, rgba(103, 232, 249, 0.14), transparent 45%),
    radial-gradient(circle at 70% 70%, rgba(192, 132, 252, 0.18), transparent 50%),
    rgba(255, 255, 255, 0.03);
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  overflow-x: hidden;
  transition: background 0.25s ease, color 0.25s ease;
}

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

.bg-pattern {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: var(--pattern-opacity);
  background-image: url("/static/landing/assets/logo-outline-tile.png");
  background-size: 156px 156px;
  background-repeat: repeat;
  filter: var(--pattern-filter);
  pointer-events: none;
}

.bg-glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 50% at 15% 8%, var(--glow-1), transparent 55%),
    radial-gradient(ellipse 60% 45% at 85% 12%, var(--glow-2), transparent 50%),
    radial-gradient(ellipse 80% 55% at 50% 100%, var(--glow-3), transparent 55%);
  pointer-events: none;
}

.nav-shell {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  justify-content: center;
  padding: 18px clamp(16px, 3vw, 32px) 0;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(960px, 100%);
  padding: 12px 18px 12px 16px;
  border-radius: 999px;
  background: var(--nav-bg);
  border: 1px solid var(--border);
  box-shadow: var(--nav-shadow);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.nav.is-scrolled {
  background: var(--nav-bg-scrolled);
  box-shadow: var(--nav-shadow-scrolled);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.nav-brand img {
  border-radius: 9px;
  box-shadow: 0 4px 16px rgba(168, 85, 247, 0.18);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.5vw, 26px);
  font-size: 0.94rem;
}

.nav-links a {
  color: var(--nav-link);
  transition: color 0.2s ease;
}

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

.theme-toggle {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.theme-toggle:hover { transform: translateY(-1px); }

.theme-toggle .icon-moon { display: none; }

[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

.nav-cta {
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--nav-cta-bg);
  color: var(--nav-cta-text) !important;
  font-weight: 600;
}

main {
  position: relative;
  z-index: 1;
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(36px, 6vw, 72px) clamp(20px, 4vw, 48px) clamp(64px, 10vw, 100px);
}

.hero-title {
  margin: 0;
  font-size: clamp(2.4rem, 5.8vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 700;
  color: var(--text);
}

.typing-wrap {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  min-width: 2ch;
  color: var(--accent);
}

.typing-word {
  display: inline-block;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.typing-word.is-changing {
  opacity: 0;
  transform: translateY(8px);
}

.typing-cursor {
  width: 3px;
  height: 0.85em;
  background: var(--text);
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.hero-subtitle {
  margin: 22px 0 0;
  max-width: 540px;
  font-size: clamp(1rem, 1.8vw, 1.12rem);
  line-height: 1.65;
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
  align-items: center;
}

.apk-cta {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.apk-cta-centered {
  align-items: center;
  margin-top: 8px;
}

.apk-version {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  background: rgba(147, 51, 234, 0.1);
  border: 1px solid rgba(147, 51, 234, 0.22);
}

.apk-version[hidden] {
  display: none !important;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 0.98rem;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #0891b2 0%, #9333ea 55%, #ec4899 100%);
  box-shadow: 0 10px 32px rgba(147, 51, 234, 0.22);
}

.btn-primary:hover {
  box-shadow: 0 14px 40px rgba(147, 51, 234, 0.32);
}

.btn-ghost {
  color: var(--btn-ghost-text);
  background: var(--btn-ghost-bg);
  border: 1px solid var(--border-strong);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.btn-lg {
  padding: 16px 28px;
  font-size: 1.05rem;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 520px;
}

.phone-stage {
  position: relative;
  z-index: 2;
}

.phone-stage-compact {
  display: flex;
  justify-content: center;
}

.phone-glow {
  position: absolute;
  inset: -12% -18%;
  background: radial-gradient(circle, rgba(147, 51, 234, 0.16), rgba(236, 72, 153, 0.08) 45%, transparent 72%);
  filter: blur(28px);
  animation: phonePulse 4.5s ease-in-out infinite;
}

.phone-glow-soft {
  animation: none;
  opacity: 0.7;
}

@keyframes phonePulse {
  0%, 100% { opacity: 0.75; transform: scale(0.96); }
  50% { opacity: 1; transform: scale(1.04); }
}

.iphone {
  position: relative;
  width: min(78vw, 290px);
  padding: 10px;
  border-radius: 46px;
  background: var(--phone-frame);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.08),
    0 24px 64px rgba(0, 0, 0, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  animation: phoneFloat 6s ease-in-out infinite;
}

.iphone-compact {
  width: min(72vw, 250px);
  animation: none;
}

@keyframes phoneFloat {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-12px) rotate(1deg); }
}

.iphone-btn {
  position: absolute;
  background: var(--phone-btn);
  border-radius: 2px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5);
}

.iphone-btn-silent { left: -3px; top: 108px; width: 3px; height: 28px; }
.iphone-btn-volume-up { left: -3px; top: 152px; width: 3px; height: 48px; }
.iphone-btn-volume-down { left: -3px; top: 210px; width: 3px; height: 48px; }
.iphone-btn-power { right: -3px; top: 168px; width: 3px; height: 72px; }

.iphone-bezel {
  border-radius: 38px;
  overflow: hidden;
  background: #000;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.iphone-screen {
  position: relative;
  aspect-ratio: 390 / 844;
  overflow: hidden;
}

.iphone-screen img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.dynamic-island {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 28%;
  height: 26px;
  border-radius: 20px;
  background: #000;
  z-index: 3;
}

.features {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px) clamp(64px, 10vw, 100px);
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto clamp(36px, 6vw, 56px);
}

.section-tag,
.feature-tag {
  margin: 0 0 10px;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  font-weight: 600;
}

.section-head p {
  margin: 14px 0 0;
  line-height: 1.65;
  color: var(--text-muted);
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  letter-spacing: -0.03em;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.feature-tile {
  padding: 24px;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--card-shadow);
}

.feature-tile-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--tile-icon-bg);
  font-size: 1.25rem;
  margin-bottom: 14px;
}

.feature-tile h3 {
  margin: 0 0 12px;
  font-size: 1.15rem;
}

.feature-tile ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.feature-tile li {
  position: relative;
  padding-left: 18px;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--text-soft);
}

.feature-tile li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0891b2, #9333ea);
}

.calls {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px) clamp(64px, 10vw, 100px);
}

.feature-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  padding: clamp(24px, 4vw, 36px);
  border-radius: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--card-shadow);
}

.feature-card-reverse .feature-visual { order: 2; }
.feature-card-reverse .feature-copy { order: 1; }

.feature-visual-phone {
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 22px;
  background: var(--visual-phone-bg);
  border: 1px solid var(--border);
}

.feature-tag {
  margin: 0 0 10px;
}

.feature-copy h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.feature-copy p {
  margin: 14px 0 0;
  line-height: 1.65;
  color: var(--text-muted);
}

.feature-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.feature-list li {
  position: relative;
  padding-left: 22px;
  color: var(--text-soft);
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--accent);
}

.download {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px) clamp(80px, 10vw, 120px);
}

.download-card {
  text-align: center;
  padding: clamp(36px, 6vw, 56px);
  border-radius: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--card-shadow-lg);
}

.download-logo {
  margin-bottom: 18px;
  filter: drop-shadow(0 8px 24px rgba(168, 85, 247, 0.2));
}

.download-card h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.02em;
}

.download-card p {
  margin: 14px auto 28px;
  max-width: 460px;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 28px clamp(20px, 4vw, 48px) 40px;
  border-top: 1px solid var(--border);
  color: var(--text-faint);
  font-size: 0.92rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.scroll-top {
  position: fixed;
  right: clamp(16px, 3vw, 28px);
  bottom: clamp(16px, 3vw, 28px);
  z-index: 40;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--scroll-top-bg);
  color: var(--scroll-top-text);
  box-shadow: var(--scroll-top-shadow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease, background 0.25s ease;
}

.scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

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

.scroll-top.is-visible:hover {
  transform: translateY(-2px);
}

.footer-copy { margin: 0; }

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

  .hero-subtitle { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-visual { min-height: 480px; }

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

  .feature-card,
  .feature-card-reverse {
    grid-template-columns: 1fr;
  }

  .feature-card-reverse .feature-visual,
  .feature-card-reverse .feature-copy {
    order: initial;
  }
}

.premium {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px clamp(20px, 4vw, 48px) 72px;
}
.premium-page-main {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding-top: 110px;
}
.premium-page-section {
  width: 100%;
  padding-bottom: 110px;
}
.premium-card {
  padding: clamp(28px, 5vw, 54px);
  border: 1px solid var(--border-strong);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--card-shadow-lg);
  text-align: center;
}
.premium-card h1,
.premium-card h2 { margin: 8px 0 10px; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.premium-card > p { color: var(--text-muted); }
.premium-card .premium-note { margin-top: -4px; font-size: .92rem; }
.premium-card .btn-primary { margin-top: 12px; }
.nav-links a[aria-current="page"] { color: var(--text); }
.premium-code {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 22px auto 0;
  flex-wrap: wrap;
}
.premium-code[hidden] { display: none; }
.premium-code code {
  padding: 13px 16px;
  border-radius: 12px;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  font-weight: 700;
  letter-spacing: .04em;
}
.premium-code .btn { width: auto; }
.premium-status { min-height: 1.5em; margin-bottom: 0; }

@media (max-width: 640px) {
  .nav-links a:not(.nav-cta) { display: none; }

  .theme-toggle {
    width: 36px;
    height: 36px;
  }

  .iphone,
  .iphone-compact {
    width: min(84vw, 260px);
  }

  .nav {
    padding-inline: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .bg-glow,
  .iphone,
  .phone-glow,
  .typing-cursor {
    animation: none !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
