:root {
  --bg: #07111f;
  --bg-soft: #0d1b2e;
  --card: rgba(255, 255, 255, 0.08);
  --card-strong: rgba(255, 255, 255, 0.12);
  --line: rgba(255, 255, 255, 0.16);
  --text: #f5f9ff;
  --muted: #b8c7d9;
  --muted-2: #88a0b9;
  --teal: #13e4c5;
  --blue: #57a8ff;
  --purple: #7c5cff;
  --amber: #ffb547;
  --danger: #ff647c;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --radius: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(19, 228, 197, 0.18), transparent 34rem),
    radial-gradient(circle at 80% 20%, rgba(124, 92, 255, 0.2), transparent 32rem),
    radial-gradient(circle at 20% 90%, rgba(255, 181, 71, 0.12), transparent 32rem),
    var(--bg);
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.page-shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 16px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 16px 0 42px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(7, 17, 31, 0.72);
  box-shadow: 0 14px 60px rgba(0,0,0,.26);
  backdrop-filter: blur(18px);
}

.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-logo { width: 46px; height: 46px; border-radius: 16px; box-shadow: 0 10px 30px rgba(19, 228, 197, .18); }
.brand strong { display: block; font-size: 1rem; letter-spacing: -0.02em; }
.brand small { color: var(--muted); font-size: .76rem; }

.top-nav { display: flex; align-items: center; gap: 4px; }
.top-nav a {
  padding: 10px 14px;
  color: var(--muted);
  font-weight: 700;
  font-size: .92rem;
  border-radius: 999px;
}
.top-nav a:hover { color: var(--text); background: rgba(255,255,255,.08); }

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(360px, .86fr);
  gap: 46px;
  align-items: center;
}

.hero { min-height: 650px; padding: 42px 0 80px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 8px;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .74rem;
  font-weight: 900;
}
.eyebrow::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 22px currentColor;
}

h1, h2, h3, p { margin-top: 0; }
h1 {
  margin: 18px 0 20px;
  font-size: clamp(3.2rem, 7vw, 6.4rem);
  line-height: .93;
  letter-spacing: -0.08em;
  max-width: 940px;
}
h2 {
  margin: 14px 0 12px;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.055em;
}
h3 { font-size: 1.32rem; letter-spacing: -0.03em; margin-bottom: 10px; }
p { color: var(--muted); line-height: 1.7; }
.hero-lead { font-size: clamp(1.06rem, 2vw, 1.24rem); max-width: 670px; }

.hero-actions, .trust-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.hero-actions { margin: 30px 0 28px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 900;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn.primary {
  background: linear-gradient(135deg, var(--teal), var(--blue));
  color: #04111e;
  box-shadow: 0 18px 42px rgba(19, 228, 197, .22);
}
.btn.ghost { border-color: var(--line); color: var(--text); background: rgba(255,255,255,.06); }
.btn.small { min-height: 42px; padding: 0 16px; font-size: .92rem; }

.trust-row span {
  display: inline-flex;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  color: var(--muted);
  font-size: .86rem;
  font-weight: 800;
}

.hero-showcase { position: relative; min-height: 550px; }
.phone-card {
  position: relative;
  width: min(410px, 100%);
  margin-left: auto;
  padding: 28px;
  min-height: 540px;
  border: 1px solid var(--line);
  border-radius: 48px;
  background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,.05));
  box-shadow: var(--shadow);
  overflow: hidden;
}
.phone-card::before, .phone-card::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
}
.phone-card::before { width: 260px; height: 260px; background: rgba(19,228,197,.22); right: -100px; top: -90px; }
.phone-card::after { width: 240px; height: 240px; background: rgba(124,92,255,.22); left: -100px; bottom: -90px; }
.phone-top {
  position: relative;
  z-index: 1;
  width: 96px;
  height: 8px;
  margin: 0 auto 38px;
  border-radius: 999px;
  background: rgba(255,255,255,.24);
}
.icon-cloud { position: relative; z-index: 2; height: 345px; }
.floating-icon {
  position: absolute;
  display: block;
  width: 112px;
  height: 112px;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 22px 48px rgba(0,0,0,.32);
  border: 1px solid rgba(255,255,255,.16);
  animation: float 6s ease-in-out infinite;
}
.floating-icon img { width: 100%; height: 100%; object-fit: cover; }
.floating-icon.large { width: 156px; height: 156px; border-radius: 40px; left: 50%; transform: translateX(-50%); top: 4px; animation-delay: .2s; }
.floating-icon:nth-child(2) { left: 18px; top: 190px; animation-delay: 1.1s; }
.floating-icon:nth-child(3) { right: 18px; top: 174px; animation-delay: 1.8s; }
.floating-icon:nth-child(4) { left: 50%; transform: translateX(-50%); bottom: 0; animation-delay: .6s; }
@keyframes float { 0%,100%{ translate:0 0; } 50%{ translate:0 -14px; } }

.mini-panel {
  position: relative;
  z-index: 2;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(7,17,31,.68);
  backdrop-filter: blur(14px);
}
.mini-panel strong { display:block; margin-bottom: 6px; }
.mini-panel span { color: var(--muted); font-size: .94rem; line-height:1.5; }

section { scroll-margin-top: 110px; }
.featured-section, .apps-section, .why-section, .support-section { padding: 72px 0; }
.section-heading { text-align: center; max-width: 780px; margin: 0 auto 34px; }
.section-heading.compact { text-align: left; margin-left: 0; }

.featured-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.featured-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 22px;
  min-height: 440px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}
.featured-card::before {
  content: "";
  position: absolute;
  inset: -40% -25% auto auto;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  opacity: .22;
  background: var(--teal);
}
.featured-card.puzzle::before { background: var(--purple); }
.featured-icon-wrap { position: relative; z-index: 1; }
.app-icon {
  width: 92px;
  height: 92px;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 18px 42px rgba(0,0,0,.28);
  background: rgba(255,255,255,.12);
}
.featured-card .app-icon { width: 112px; height: 112px; border-radius: 30px; }
.featured-card > div:last-child { position: relative; z-index: 1; }
.check-list { margin: 0 0 22px; padding: 0; list-style: none; display: grid; gap: 10px; }
.check-list li { color: var(--muted); line-height: 1.55; position: relative; padding-left: 26px; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--teal); font-weight: 900; }

.category-pill {
  display: inline-flex;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--teal);
  background: rgba(19, 228, 197, .12);
  border: 1px solid rgba(19, 228, 197, .24);
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 12px;
}
.category-pill.warning { color: #ffd5de; background: rgba(255,100,124,.12); border-color: rgba(255,100,124,.28); }

.filter-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}
.filter-btn {
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  color: var(--muted);
  padding: 11px 16px;
  font-weight: 900;
}
.filter-btn.active, .filter-btn:hover { background: rgba(19,228,197,.14); color: var(--text); border-color: rgba(19,228,197,.35); }
.app-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.app-card {
  display: flex;
  flex-direction: column;
  min-height: 410px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255,255,255,.07);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.app-card:hover { transform: translateY(-5px); border-color: rgba(19,228,197,.36); background: rgba(255,255,255,.1); }
.app-body { flex: 1; padding-top: 18px; }
.app-body p { font-size: .97rem; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tag-row span {
  display: inline-flex;
  padding: 6px 9px;
  border-radius: 999px;
  color: var(--muted);
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  font-size: .78rem;
  font-weight: 800;
}
.store-link {
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 16px;
  background: rgba(255,255,255,.1);
  color: var(--text);
  font-weight: 900;
  border: 1px solid var(--line);
}
.store-link:hover { background: var(--text); color: var(--bg); }

.benefit-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.benefit-card {
  min-height: 190px;
  padding: 22px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: var(--card);
}
.benefit-card strong { display: block; margin-bottom: 10px; font-size: 1.08rem; }
.benefit-card span { color: var(--muted); line-height: 1.6; font-size: .94rem; }

.support-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(19,228,197,.12), rgba(124,92,255,.12));
  margin-bottom: 60px;
}
.support-section p { margin-bottom: 0; }

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px 0 44px;
  color: var(--muted-2);
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: .92rem;
}

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: .1s; }

@media (max-width: 980px) {
  .site-header { align-items: flex-start; border-radius: 28px; flex-direction: column; }
  .top-nav { width: 100%; overflow-x: auto; padding-bottom: 2px; }
  .section-grid, .featured-grid { grid-template-columns: 1fr; }
  .hero { min-height: 0; padding-top: 16px; }
  .hero-showcase { min-height: 500px; }
  .phone-card { margin: 0 auto; }
  .app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .benefit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .support-section { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 640px) {
  .page-shell { width: min(100% - 22px, 1180px); }
  .brand-logo { width: 40px; height: 40px; }
  .top-nav a { padding: 9px 11px; font-size: .84rem; }
  h1 { font-size: clamp(2.8rem, 16vw, 4.2rem); }
  .phone-card { min-height: 450px; border-radius: 36px; padding: 22px; }
  .hero-showcase { min-height: 450px; }
  .floating-icon.large { width: 130px; height: 130px; }
  .floating-icon { width: 94px; height: 94px; }
  .featured-card { grid-template-columns: 1fr; min-height: 0; }
  .app-grid, .benefit-grid { grid-template-columns: 1fr; }
  .app-card { min-height: 0; }
  .site-footer { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
