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

:root {
  --indigo: #4F46E5;
  --indigo-light: #6366F1;
  --emerald: #34D399;
  --sky: #38BDF8;
  --rose: #FB7185;
  --amber: #FBBF24;
  --bg: #F4F6FB;
  --surface: #FFFFFF;
  --text: #0F172A;
  --text-muted: #64748B;
  --radius: 28px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── Utility ── */
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}
@keyframes pulse-ring {
  0%   { transform: scale(0.8); opacity: 0.5; }
  100% { transform: scale(1.6); opacity: 0; }
}
@keyframes slide-in-left {
  from { opacity: 0; transform: translateX(-60px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes slide-in-right {
  from { opacity: 0; transform: translateX(60px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes gradient-shift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes count-pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.1); }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Navbar ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(244, 246, 251, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(79, 70, 229, 0.08);
  transition: box-shadow 0.3s;
}
nav.scrolled { box-shadow: 0 4px 30px rgba(79, 70, 229, 0.08); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.35rem;
  text-decoration: none; color: var(--text);
}
.logo-icon {
  width: 40px; height: 40px; border-radius: 14px;
  object-fit: cover;
}
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a {
  text-decoration: none; color: var(--text-muted);
  font-weight: 500; font-size: 0.95rem;
  transition: color 0.25s;
}
.nav-links a:hover { color: var(--indigo); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 24px; border-radius: 999px;
  background: var(--indigo); color: #fff !important;
  font-weight: 600; transition: transform 0.2s, box-shadow 0.2s;
}
.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.3);
}
.hamburger {
  display: none; background: none; border: none; cursor: pointer;
  width: 36px; height: 36px; position: relative;
}
.hamburger span {
  display: block; width: 24px; height: 2px; background: var(--text);
  border-radius: 2px; position: absolute; left: 6px;
  transition: 0.3s;
}
.hamburger span:nth-child(1) { top: 10px; }
.hamburger span:nth-child(2) { top: 17px; }
.hamburger span:nth-child(3) { top: 24px; }
.hamburger.open span:nth-child(1) { top: 17px; transform: rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { top: 17px; transform: rotate(-45deg); }

/* ── Hero ── */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding-top: 72px; position: relative; overflow: hidden;
}
.hero-bg-orb {
  position: absolute; border-radius: 50%; filter: blur(100px); opacity: 0.15;
  pointer-events: none;
}
.hero-bg-orb.orb1 {
  width: 600px; height: 600px; top: -100px; right: -200px;
  background: var(--indigo);
}
.hero-bg-orb.orb2 {
  width: 400px; height: 400px; bottom: -100px; left: -150px;
  background: var(--emerald);
}
.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center; position: relative; z-index: 1;
}
.hero-text { animation: fadeUp 0.9s ease both; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: 999px;
  background: rgba(79, 70, 229, 0.08);
  color: var(--indigo); font-weight: 600; font-size: 0.85rem;
  margin-bottom: 20px;
}
.hero-badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--emerald);
  animation: count-pulse 2s ease infinite;
}
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 800; line-height: 1.1;
  margin-bottom: 20px;
}
.hero h1 .gradient-text {
  background: linear-gradient(135deg, var(--indigo), var(--emerald));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p {
  font-size: 1.15rem; color: var(--text-muted);
  max-width: 480px; margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 36px; border-radius: 999px;
  background: linear-gradient(135deg, var(--indigo), var(--indigo-light));
  color: #fff; font-weight: 700; font-size: 1.05rem;
  text-decoration: none; border: none; cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s;
  box-shadow: 0 8px 32px rgba(79, 70, 229, 0.25);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(79, 70, 229, 0.35);
}
.btn-secondary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 36px; border-radius: 999px;
  background: var(--surface); color: var(--text);
  font-weight: 600; font-size: 1.05rem;
  text-decoration: none; border: 1px solid rgba(79, 70, 229, 0.15);
  transition: transform 0.25s, border-color 0.25s;
}
.btn-secondary:hover {
  transform: translateY(-3px);
  border-color: var(--indigo);
}
.hero-visual {
  display: flex; justify-content: center; align-items: center;
  position: relative;
  animation: fadeIn 1.2s ease 0.3s both;
}
.phone-mockup {
  width: 280px; height: 560px;
  border-radius: 40px;
  background: linear-gradient(160deg, #0F172A, #1E293B);
  box-shadow: 0 40px 80px rgba(15, 23, 42, 0.3),
              0 0 0 8px rgba(79, 70, 229, 0.1);
  padding: 12px;
  animation: float 6s ease-in-out infinite;
  position: relative; z-index: 2;
}
.phone-screen {
  width: 100%; height: 100%;
  border-radius: 30px;
  background: linear-gradient(180deg, #1a1145 0%, #0c1929 40%, #0a1628 100%);
  display: flex; flex-direction: column;
  padding: 28px 20px 20px;
  overflow: hidden; position: relative;
}
.phone-notch {
  width: 100px; height: 28px;
  background: #0F172A; border-radius: 0 0 18px 18px;
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
}
.phone-header {
  color: #fff; font-weight: 700; font-size: 1.1rem;
  margin-top: 14px; margin-bottom: 16px;
}
.phone-search {
  background: rgba(255,255,255,0.08);
  border-radius: 16px; padding: 12px 16px;
  color: rgba(255,255,255,0.4); font-size: 0.85rem;
  margin-bottom: 16px; display: flex; align-items: center; gap: 8px;
}
.phone-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px; padding: 16px;
  margin-bottom: 10px;
  animation: fadeUp 0.6s ease both;
}
.phone-card:nth-child(2) { animation-delay: 0.15s; }
.phone-card:nth-child(3) { animation-delay: 0.3s; }
.phone-card-name { color: #fff; font-weight: 600; font-size: 0.9rem; margin-bottom: 4px; }
.phone-card-sub { color: rgba(255,255,255,0.5); font-size: 0.75rem; margin-bottom: 8px; }
.phone-card-row { display: flex; justify-content: space-between; align-items: center; }
.phone-card-price { color: var(--emerald); font-weight: 700; font-size: 0.85rem; }
.phone-card-dist { color: var(--sky); font-size: 0.75rem; }
.phone-card-dot {
  width: 10px; height: 10px; border-radius: 50%;
  display: inline-block; margin-right: 6px;
}
.floating-card {
  position: absolute; border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
  padding: 16px 20px;
  z-index: 3;
}
.float-card-1 {
  top: 60px; right: -30px;
  animation: float 5s ease-in-out 0.5s infinite;
}
.float-card-2 {
  bottom: 80px; left: -40px;
  animation: float 5s ease-in-out 1s infinite;
}
.float-icon {
  width: 36px; height: 36px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; margin-bottom: 8px;
}
.float-label { font-weight: 600; font-size: 0.8rem; color: var(--text); }
.float-value { font-weight: 800; font-size: 1.2rem; color: var(--indigo); }

/* ── Stats bar ── */
.stats-bar {
  padding: 48px 0;
  background: var(--surface);
  border-top: 1px solid rgba(79, 70, 229, 0.06);
  border-bottom: 1px solid rgba(79, 70, 229, 0.06);
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 32px; text-align: center;
}
.stat-item { animation: fadeUp 0.6s ease both; }
.stat-number {
  font-size: 2.4rem; font-weight: 800;
  background: linear-gradient(135deg, var(--indigo), var(--emerald));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-label { color: var(--text-muted); font-size: 0.95rem; margin-top: 4px; }

/* ── Features ── */
.features { padding: 100px 0; }
.section-header { text-align: center; margin-bottom: 64px; }
.section-tag {
  display: inline-block; padding: 6px 18px;
  border-radius: 999px; font-size: 0.85rem;
  font-weight: 600; margin-bottom: 16px;
  background: rgba(79, 70, 229, 0.08); color: var(--indigo);
}
.section-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800; margin-bottom: 12px;
}
.section-header p { color: var(--text-muted); font-size: 1.1rem; max-width: 560px; margin: 0 auto; }
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.feature-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 36px 28px;
  border: 1px solid rgba(79, 70, 229, 0.06);
  transition: transform 0.35s, box-shadow 0.35s;
  position: relative; overflow: hidden;
}
.feature-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 4px; border-radius: 28px 28px 0 0;
  background: linear-gradient(90deg, var(--indigo), var(--emerald));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s ease;
}
.feature-card:hover::before { transform: scaleX(1); }
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(79, 70, 229, 0.1);
}
.feature-icon {
  width: 56px; height: 56px; border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 20px;
}
.feature-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; }
.feature-card p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.65; }

/* ── How it works ── */
.how-it-works {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
}
.steps-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 32px; margin-top: 64px;
}
.step-card { text-align: center; position: relative; }
.step-number {
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, var(--indigo), var(--indigo-light));
  color: #fff; font-weight: 800; font-size: 1.4rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px; position: relative;
}
.step-number::after {
  content: ''; position: absolute;
  width: 80px; height: 80px; border-radius: 50%;
  border: 2px dashed rgba(79, 70, 229, 0.2);
  top: -8px; left: -8px;
  animation: pulse-ring 3s ease infinite;
}
.step-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.step-card p { color: var(--text-muted); font-size: 0.9rem; }
.step-connector {
  position: absolute; top: 32px; left: calc(50% + 40px); right: calc(-50% + 40px);
  height: 2px; background: linear-gradient(90deg, var(--indigo), rgba(79,70,229,0.1));
}
.step-card:last-child .step-connector { display: none; }

/* ── Screenshots ── */
.screenshots { padding: 100px 0; overflow: hidden; }
.screenshot-track {
  display: flex; gap: 24px;
  animation: scroll-x 30s linear infinite;
  width: max-content;
}
@keyframes scroll-x {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.screenshot-item {
  width: 260px; height: 460px; flex-shrink: 0;
  border-radius: 28px; overflow: hidden;
  background: linear-gradient(160deg, #1a1145, #0c1929);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.15);
  display: flex; flex-direction: column;
  padding: 24px 18px;
  border: 1px solid rgba(255,255,255,0.06);
  transition: transform 0.35s;
}
.screenshot-item:hover { transform: scale(1.04); }
.ss-title { color: #fff; font-weight: 700; font-size: 0.95rem; margin-bottom: 6px; }
.ss-sub { color: rgba(255,255,255,0.5); font-size: 0.8rem; margin-bottom: 16px; }
.ss-content { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.ss-row {
  background: rgba(255,255,255,0.06); border-radius: 14px;
  padding: 12px; display: flex; align-items: center; gap: 10px;
}
.ss-dot { width: 32px; height: 32px; border-radius: 10px; flex-shrink: 0; }
.ss-line { height: 8px; border-radius: 4px; background: rgba(255,255,255,0.1); }
.ss-line.w60 { width: 60%; }
.ss-line.w40 { width: 40%; }
.ss-line.w80 { width: 80%; }
.ss-badge {
  display: inline-block; padding: 4px 10px; border-radius: 8px;
  font-size: 0.7rem; font-weight: 600;
}

/* ── Download CTA ── */
.download-section {
  padding: 100px 0;
}
.download-card {
  background: linear-gradient(135deg, var(--indigo), #312E81);
  border-radius: 36px; padding: 72px 60px;
  text-align: center; position: relative; overflow: hidden;
}
.download-card::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.download-card * { position: relative; z-index: 1; }
.download-card h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800; color: #fff; margin-bottom: 16px;
}
.download-card p {
  color: rgba(255,255,255,0.75); font-size: 1.1rem;
  max-width: 520px; margin: 0 auto 40px;
}
.download-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-download {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 18px 36px; border-radius: 999px;
  font-weight: 700; font-size: 1.05rem;
  text-decoration: none; border: none; cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s;
}
.btn-download-primary {
  background: #fff; color: var(--indigo);
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}
.btn-download-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}
.btn-download-outline {
  background: rgba(255,255,255,0.1);
  color: #fff; border: 1px solid rgba(255,255,255,0.25);
}
.btn-download-outline:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,0.15);
}
.download-note {
  color: rgba(255,255,255,0.5); font-size: 0.85rem;
  margin-top: 20px;
}
.apk-size {
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(52,211,153,0.15); color: var(--emerald);
  padding: 2px 10px; border-radius: 8px;
  font-size: 0.8rem; font-weight: 600;
}

/* ── Footer ── */
footer {
  padding: 48px 0 32px;
  border-top: 1px solid rgba(79, 70, 229, 0.08);
}
.footer-inner {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
}
.footer-copy { color: var(--text-muted); font-size: 0.9rem; }
.footer-links { display: flex; gap: 24px; list-style: none; }
.footer-links a {
  color: var(--text-muted); text-decoration: none; font-size: 0.9rem;
  transition: color 0.25s;
}
.footer-links a:hover { color: var(--indigo); }

/* ── Mobile ── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 72px; left: 0; right: 0;
    background: var(--surface); padding: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    gap: 20px;
  }
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero p { margin: 0 auto 36px; }
  .hero-actions { justify-content: center; }
  .hero-visual { margin-top: 40px; }
  .float-card-1 { right: -10px; top: 20px; }
  .float-card-2 { left: -10px; bottom: 40px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .step-connector { display: none !important; }
  .download-card { padding: 48px 28px; }
  .footer-inner { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .phone-mockup { width: 230px; height: 460px; }
}
