/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #0d0d12;
  color: #e8e8f0;
  line-height: 1.6;
}
a { text-decoration: none; color: inherit; }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Header ─── */
header.hero {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13,13,18,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo-wrap { display: flex; align-items: center; gap: 10px; }
.logo-name { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.3px; }
nav { display: flex; align-items: center; gap: 28px; }
nav a { font-size: 0.92rem; color: #aaa; transition: color 0.2s; }
nav a:hover { color: #fff; }
.btn-nav {
  background: linear-gradient(135deg, #5B5EFF, #9B5CFF);
  color: #fff !important;
  padding: 8px 20px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.88rem;
  transition: opacity 0.2s;
}
.btn-nav:hover { opacity: 0.85; }

/* ─── Hero Body ─── */
.hero-body {
  padding: 80px 0 60px;
}
.hero-inner {
  display: flex;
  align-items: center;
  gap: 60px;
  flex-wrap: wrap;
}
.hero-text { flex: 1; min-width: 280px; }
h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  background: linear-gradient(135deg, #fff 40%, #9B8FFF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.subtitle {
  margin-top: 20px;
  font-size: 1.1rem;
  color: #999;
  max-width: 420px;
}
.btn-primary {
  display: inline-block;
  margin-top: 32px;
  background: linear-gradient(135deg, #5B5EFF, #9B5CFF);
  color: #fff;
  padding: 14px 36px;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 700;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 8px 32px rgba(91,94,255,0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(91,94,255,0.5);
}

/* ─── Phone Mockup ─── */
.hero-img {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
}
.phone-mockup {
  width: 240px;
  height: 480px;
  background: #1a1a2e;
  border-radius: 40px;
  border: 6px solid #2a2a40;
  box-shadow: 0 32px 80px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.08);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.phone-mockup::before {
  content: '';
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 6px;
  background: #2a2a40;
  border-radius: 3px;
}
.phone-screen {
  width: 100%;
  height: 100%;
  padding: 48px 20px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.screen-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
}
.sc-circle {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: conic-gradient(#5B5EFF 0% 84%, #2a2a40 84% 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 0 30px rgba(91,94,255,0.4);
}
.sc-circle::before {
  content: '';
  position: absolute;
  width: 106px;
  height: 106px;
  border-radius: 50%;
  background: #1a1a2e;
}
.sc-percent, .sc-label {
  position: relative;
  z-index: 1;
  line-height: 1.2;
}
.sc-percent { font-size: 1.7rem; font-weight: 800; color: #fff; }
.sc-label { font-size: 0.65rem; color: #888; letter-spacing: 0.5px; }
.sc-bar {
  width: 100%;
  height: 6px;
  background: #2a2a40;
  border-radius: 3px;
  overflow: hidden;
}
.sc-fill {
  height: 100%;
  background: linear-gradient(90deg, #5B5EFF, #9B5CFF);
  border-radius: 3px;
}
.sc-used { font-size: 0.72rem; color: #666; }
.sc-btn {
  background: linear-gradient(135deg, #5B5EFF, #9B5CFF);
  color: #fff;
  border: none;
  padding: 10px 32px;
  border-radius: 20px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(91,94,255,0.4);
}

/* ─── Features ─── */
.features {
  padding: 80px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.features h2 {
  text-align: center;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 52px;
  color: #fff;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  padding: 28px 24px;
  transition: transform 0.2s, border-color 0.2s;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(91,94,255,0.4);
}
.card-icon { font-size: 2rem; margin-bottom: 12px; }
.card h3 { font-size: 1.05rem; font-weight: 700; color: #fff; margin-bottom: 8px; }
.card p { font-size: 0.9rem; color: #888; line-height: 1.6; }

/* ─── Download ─── */
.download {
  padding: 80px 0;
  background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(91,94,255,0.12) 0%, transparent 70%);
  border-top: 1px solid rgba(255,255,255,0.06);
  text-align: center;
}
.download h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
}
.download p { color: #888; margin-top: 12px; margin-bottom: 32px; }
.appstore-btn {
  display: inline-block;
  transition: transform 0.2s, opacity 0.2s;
}
.appstore-btn:hover { transform: translateY(-2px); opacity: 0.85; }

/* ─── Footer ─── */
footer {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 28px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-brand { font-size: 0.85rem; color: #555; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 0.85rem; color: #666; transition: color 0.2s; }
.footer-links a:hover { color: #ccc; }

/* ─── Legal pages ─── */
.legal-page {
  max-width: 720px;
  margin: 60px auto;
  padding: 0 24px 80px;
}
.legal-page h1 { font-size: 2rem; font-weight: 800; color: #fff; margin-bottom: 8px; }
.legal-page .updated { font-size: 0.85rem; color: #666; margin-bottom: 40px; }
.legal-page h2 { font-size: 1.1rem; font-weight: 700; color: #ddd; margin: 32px 0 8px; }
.legal-page p, .legal-page li { font-size: 0.95rem; color: #999; line-height: 1.75; }
.legal-page ul { padding-left: 20px; margin-top: 6px; }
.legal-page a { color: #7b7eff; }
.legal-back { display: inline-block; margin-bottom: 40px; color: #7b7eff; font-size: 0.9rem; }
.legal-back:hover { text-decoration: underline; }

/* ─── Responsive ─── */
@media (max-width: 640px) {
  .hero-inner { flex-direction: column; text-align: center; }
  .subtitle { margin: 20px auto 0; }
  .hero-img { order: -1; }
  .phone-mockup { width: 200px; height: 400px; }
  .footer-inner { justify-content: center; text-align: center; }
}
