﻿:root {
  --bg: #070709;
  --card: rgba(24, 24, 28, 0.68);
  --line: rgba(255, 255, 255, 0.10);
  --accent: #ff6b1a;
}
* { box-sizing: border-box; }
body { background: var(--bg); font-family: Manrope, Inter, system-ui, sans-serif; overflow-x: hidden; }
body::before {
  content: "";
  position: fixed;
  inset: -24% -16%;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(62rem 42rem at 12% 84%, rgba(123, 70, 255, 0.3), transparent 60%),
    radial-gradient(58rem 40rem at 88% 12%, rgba(255, 96, 28, 0.34), transparent 58%),
    radial-gradient(34rem 28rem at 52% 56%, rgba(79, 136, 255, 0.16), transparent 62%);
  transform:
    translate3d(calc(var(--scrollY, 0) * 0.06px), calc(var(--scrollY, 0) * -0.28px), 0)
    rotate(calc((var(--scrollP, 0) - 0.5) * 7deg))
    scale(calc(1.08 + var(--scrollP, 0) * 0.18));
  opacity: calc(0.62 + var(--scrollP, 0) * 0.34);
  will-change: transform, opacity;
}
body::after {
  content: "";
  position: fixed;
  inset: -18% -12%;
  z-index: -1;
  pointer-events: none;
  background:
    conic-gradient(
      from calc(180deg + var(--scrollP, 0) * 120deg) at 50% 50%,
      rgba(255, 98, 31, 0.08),
      rgba(149, 84, 255, 0.08),
      rgba(65, 132, 255, 0.07),
      rgba(255, 98, 31, 0.08)
    );
  transform:
    translate3d(calc(var(--scrollY, 0) * -0.05px), calc(var(--scrollY, 0) * -0.18px), 0)
    rotate(calc(var(--scrollP, 0) * -10deg))
    scale(calc(1.02 + var(--scrollP, 0) * 0.12));
  opacity: calc(0.28 + var(--scrollP, 0) * 0.26);
  filter: blur(36px) saturate(1.15);
  will-change: transform, opacity;
}

.bg-glow { position: fixed; width: 36rem; height: 36rem; border-radius: 999px; filter: blur(80px); z-index: -1; pointer-events: none; }
.bg-glow-a { right: -8rem; top: -8rem; background: rgba(255, 107, 26, 0.16); }
.bg-glow-b { left: -10rem; bottom: -10rem; background: rgba(139, 92, 246, 0.16); }
@keyframes glowDriftA {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: .8; }
  50% { transform: translate3d(-18px, 22px, 0) scale(1.04); opacity: 1; }
}
@keyframes glowDriftB {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: .75; }
  50% { transform: translate3d(22px, -14px, 0) scale(1.06); opacity: .95; }
}
.bg-glow-a { animation: glowDriftA 14s ease-in-out infinite; }
.bg-glow-b { animation: glowDriftB 18s ease-in-out infinite; }

.lang-toggle { display: inline-flex; border: 1px solid var(--line); background: rgba(255,255,255,0.04); border-radius: 999px; padding: 4px; }
.lang-btn { border: 0; background: transparent; color: #c2c2cb; padding: 6px 12px; border-radius: 999px; font-weight: 800; font-size: 12px; }
.lang-btn.active { background: rgba(255,107,26,0.25); color: #fff; }
.topbar-inner {
  width: min(98vw, 1860px);
  margin-inline: auto;
}
.topbar-logo {
  height: 36px;
  width: auto;
  object-fit: contain;
}
.topbar-left {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.topbar-brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.topbar-brand-title {
  font-weight: 900;
  font-size: 1.15rem;
  color: #f3f5fa;
}
.topbar-brand-sub {
  margin-top: 4px;
  font-size: .72rem;
  letter-spacing: .06em;
  font-weight: 800;
  color: #ff8b38;
}
.topbar-nav {
  display: inline-flex;
  align-items: center;
  gap: 26px;
}
.topbar-nav a {
  color: #9ea5b6;
  font-weight: 700;
  font-size: 1rem;
  transition: color .18s ease;
}
.topbar-nav a:hover {
  color: #ffffff;
}
.topbar-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.topbar-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, #ff7a1a 0%, #ff5b12 100%);
  box-shadow: 0 10px 24px rgba(255,107,26,.28);
}
.topbar-download .metric-version {
  font-size: .82rem;
  opacity: .95;
}

.glass-card { background: var(--card); border: 1px solid var(--line); }
.btn-primary { background: linear-gradient(135deg, #ff7a1a 0%, #ff5b12 100%); color: #fff; box-shadow: 0 12px 28px rgba(255,107,26,.24); }
.btn-secondary { border: 1px solid var(--line); background: rgba(255,255,255,.04); }
.btn-primary:hover,.btn-secondary:hover { transform: translateY(-1px); }
@keyframes softPulse {
  0%, 100% { box-shadow: 0 12px 28px rgba(255,107,26,.22); }
  50% { box-shadow: 0 16px 34px rgba(255,107,26,.34); }
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.hero-main-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 62px;
  padding: 0 28px;
  border-radius: 16px;
  font-size: 1.05rem;
  font-weight: 900;
  animation: softPulse 2.8s ease-in-out infinite;
}
.hero-code-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 62px;
  padding: 0 26px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.03);
  color: #f1f3f8;
  font-size: 1.05rem;
  font-weight: 900;
  transition: border-color .18s ease, background-color .18s ease, transform .18s ease;
}
.hero-code-btn:hover {
  border-color: rgba(255,255,255,.25);
  background: rgba(255,255,255,.06);
  transform: translateY(-1px);
}
.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  color: #9ca5ba;
  font-size: 1.05rem;
  font-weight: 600;
}
.hero-point {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero-point-icon {
  width: 18px;
  height: 18px;
  stroke-width: 2.3;
}
.hero-point-safe { color: #1fdd78; }
.hero-point-fast { color: #ffd54a; }
.hero-point-dark { color: #b665ff; }

.hero-gradient {
  display: inline-block;
  background: linear-gradient(180deg, #ff5e2f 0%, #ff7a45 45%, #ffb08f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.phone-wrap { position: relative; max-width: 430px; margin-left: auto; margin-right: auto; border-radius: 32px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(0,0,0,.5); }
.phone-shot { width: 100%; display: block; }
@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.phone-wrap { animation: floatCard 7s ease-in-out infinite; }

.screen-card { position: relative; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: #111; }
.screen-img { width: 100%; display: block; }

.anon-mask { position: absolute; left: 8%; right: 8%; height: 42px; background: rgba(8,8,10,.75); backdrop-filter: blur(10px); border-radius: 999px; border: 1px solid rgba(255,255,255,.08); }
.anon-top { top: 10%; }
.anon-bottom { top: 58%; }

.step { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; font-weight: 900; background: rgba(255,107,26,.22); color: #fff; margin-bottom: 12px; }

.faq { margin-bottom: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.03); }
.faq summary { cursor: pointer; font-weight: 800; }
.faq p { margin-top: 8px; color: #c8c8d1; }

.tech-stack { text-align: center; }
.tech-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #8ca0c9;
  margin-bottom: 20px;
}
.tech-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
}
.tech-item {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.06);
  background: rgba(255,255,255,.02);
  color: #9ca0aa;
  font-size: 1.55rem;
  font-weight: 800;
  transition: color .18s ease, border-color .18s ease, background-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.tech-icon {
  width: 18px;
  height: 18px;
  stroke-width: 2.2;
}
.tech-item:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,.04);
}
.tech-flutter:hover { color: #54a4ff; border-color: rgba(84,164,255,.45); box-shadow: 0 8px 22px rgba(84,164,255,.14); }
.tech-dart:hover { color: #2f8fff; border-color: rgba(47,143,255,.45); box-shadow: 0 8px 22px rgba(47,143,255,.14); }
.tech-firebase:hover { color: #ff8a2f; border-color: rgba(255,138,47,.45); box-shadow: 0 8px 22px rgba(255,138,47,.14); }
.tech-docker:hover { color: #3d8dff; border-color: rgba(61,141,255,.45); box-shadow: 0 8px 22px rgba(61,141,255,.14); }

@media (min-width: 768px) {
  .tech-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.cta-block {
  border-radius: 0;
  background: transparent;
  padding: 8px 24px 24px;
  text-align: center;
}
.cta-headline {
  font-size: clamp(2rem, 4.8vw, 4rem);
  font-weight: 900;
  line-height: 1.22;
  padding-top: 10px;
  padding-bottom: 4px;
  margin-bottom: 18px;
}
.cta-gradient {
  background: linear-gradient(180deg, #fff4ec 0%, #ff955f 46%, #ff5f1f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.cta-sub {
  max-width: 760px;
  margin: 0 auto;
  color: #aeb3c2;
  font-size: clamp(1rem, 2vw, 1.9rem);
  line-height: 1.45;
}
.cta-row {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px 26px;
}
.cta-download {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 17px 26px;
  border-radius: 16px;
  font-size: 1.2rem;
  font-weight: 900;
}
.version-pill {
  font-size: .8rem;
  line-height: 1;
  padding: 6px 9px;
  border-radius: 8px;
  background: rgba(0,0,0,.2);
}
.cta-meta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #8b93a8;
  font-size: 1.05rem;
}

.site-footer {
  margin-top: 24px;
  border-top: 1px solid rgba(255,255,255,.08);
  background: #06070a;
}
.site-footer-inner {
  min-height: 86px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #7f879a;
  font-size: .95rem;
}
.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.site-brand-logo {
  height: 20px;
  opacity: .55;
}
.site-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 20px;
}
.site-links a {
  color: #8e95a8;
  transition: color .18s ease;
}
.site-links a:hover {
  color: #ff7a1a;
}

.reveal {
  opacity: 0;
  transform: translateY(18px) scale(.985);
  transition: opacity .55s ease, transform .55s cubic-bezier(.2,.7,.2,1);
  will-change: opacity, transform;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.mobile-cta {
  position: fixed; left: 16px; right: 16px; bottom: 14px; z-index: 60;
  display: none; text-align: center; font-weight: 900; padding: 14px 16px; border-radius: 14px;
  color: #fff; background: linear-gradient(135deg, #ff7a1a 0%, #ff5b12 100%);
  box-shadow: 0 16px 30px rgba(0,0,0,.45);
}

@media (max-width: 767px) {
  .mobile-cta { display: block; }
  .topbar-inner {
    width: min(98vw, 1860px);
  }
  .topbar-brand-sub,
  .topbar-nav,
  .topbar-download {
    display: none;
  }
  .topbar-logo {
    height: 32px;
  }
  .topbar-brand-title {
    font-size: 1rem;
  }
  .hero-main-btn,
  .hero-code-btn {
    width: 100%;
    animation: none;
  }
  .hero-points {
    gap: 14px;
    font-size: .98rem;
  }
  .cta-block {
    padding: 8px 8px 18px;
    border-radius: 0;
  }
  .cta-download {
    width: 100%;
    justify-content: center;
  }
  .site-footer-inner {
    padding-top: 14px;
    padding-bottom: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bg-glow-a, .bg-glow-b, .phone-wrap, .hero-main-btn {
    animation: none !important;
  }
  body::before {
    transform: none;
    opacity: .55;
  }
  body::after {
    transform: none;
    opacity: .22;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
