:root {
  --bg: #080812;
  --surface: #0f0f23;
  --surface2: #161630;
  --primary: #7c3aed;
  --primary-glow: #9d5cf5;
  --primary-dim: #5b21b6;
  --secondary: #06d6a0;
  --accent: #f72585;
  --gold: #ffb703;
  --text: #ffffff;
  --text-sec: #8b8ba7;
  --text-muted: #5a5a7a;
  --border: #1e1e3a;
  --radius: 16px;
  --radius-lg: 24px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, 'Inter', BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ─── NAV ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(8, 8, 18, 0.88);
  border-bottom: 1px solid var(--border);
  padding: 0 5%;
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
}

.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
}
.nav-logo img {
  width: 40px; height: 40px;
  display: block;
}
.nav-logo-text {
  font-size: 22px; font-weight: 900; letter-spacing: 3px;
  background: linear-gradient(90deg, #fff 40%, var(--primary-glow));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a {
  color: var(--text-sec); text-decoration: none;
  font-size: 15px; font-weight: 500; transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--primary-glow); }

.nav-cta {
  background: linear-gradient(135deg, var(--primary), var(--primary-dim));
  color: #fff !important;
  padding: 8px 20px; border-radius: 50px;
  font-weight: 600 !important;
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.35);
  transition: transform 0.2s, box-shadow 0.2s !important;
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 30px rgba(124, 58, 237, 0.55) !important;
  color: #fff !important;
}

/* ─── APPLE BADGE ─── */
.apple-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: #000;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 12px;
  padding: 10px 20px;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s;
  min-width: 160px;
}
.apple-badge:hover { opacity: 0.85; transform: translateY(-1px); }
.apple-badge svg { flex-shrink: 0; }
.apple-badge-text { display: flex; flex-direction: column; }
.apple-badge-sub { display: none; }
.apple-badge-main { font-size: 17px; font-weight: 700; color: #fff; line-height: 1; }

/* ─── HERO ─── */
.hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: 120px 5% 80px;
  position: relative; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(124,58,237,0.25) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 80% 60%, rgba(247,37,133,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 20% 70%, rgba(6,214,160,0.06) 0%, transparent 60%);
}
.hero-content { position: relative; z-index: 1; max-width: 780px; margin: 0 auto; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(124, 58, 237, 0.15);
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: 50px;
  padding: 6px 16px; margin-bottom: 32px;
  font-size: 13px; font-weight: 600; color: var(--primary-glow);
  letter-spacing: 0.5px;
}
.hero-badge::before { content: '✦'; }

.hero h1 {
  font-size: clamp(48px, 8vw, 80px);
  font-weight: 900; line-height: 1.1; letter-spacing: -2px;
  margin-bottom: 24px;
}
.hero h1 span {
  background: linear-gradient(135deg, var(--primary-glow) 0%, #c084fc 50%, var(--accent) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-sub {
  font-size: clamp(17px, 2.5vw, 20px);
  color: var(--text-sec); max-width: 560px;
  margin: 0 auto 48px; line-height: 1.7;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--text); text-decoration: none;
  padding: 14px 28px; border-radius: 50px;
  font-size: 16px; font-weight: 600;
  backdrop-filter: blur(10px);
  transition: background 0.2s, border-color 0.2s;
}
.btn-secondary:hover { background: rgba(255,255,255,0.08); border-color: var(--primary); }

/* ─── ORB ─── */
.orb-wrap { margin: 64px auto 0; width: 180px; height: 180px; position: relative; }
.orb {
  width: 180px; height: 180px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dim) 50%, #0D9488 100%);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 80px rgba(124,58,237,0.6), 0 0 160px rgba(124,58,237,0.3);
  animation: pulse 3s ease-in-out infinite;
  overflow: hidden;
}
.orb img { width: 110px; height: 110px; }
.orb-ring {
  position: absolute; inset: -20px; border-radius: 50%;
  border: 1px solid rgba(124, 58, 237, 0.2);
  animation: ring 3s ease-in-out infinite;
}
.orb-ring2 {
  position: absolute; inset: -40px; border-radius: 50%;
  border: 1px solid rgba(124, 58, 237, 0.1);
  animation: ring 3s ease-in-out infinite 0.5s;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 60px rgba(124,58,237,0.5), 0 0 120px rgba(124,58,237,0.25); }
  50% { box-shadow: 0 0 100px rgba(124,58,237,0.8), 0 0 200px rgba(124,58,237,0.4); }
}
@keyframes ring {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.05); opacity: 1; }
}

/* ─── SECTIONS ─── */
section { padding: 100px 5%; }
.section-label {
  display: inline-block;
  font-size: 15px; font-weight: 700; letter-spacing: 3px;
  color: var(--primary-glow); text-transform: uppercase; margin-bottom: 20px;
}
.section-title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800; line-height: 1.15; letter-spacing: -1px; margin-bottom: 16px;
}
.section-sub { font-size: 18px; color: var(--text-sec); max-width: 560px; line-height: 1.7; }

/* ─── FEATURES ─── */
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px; margin-top: 64px;
}
.feature-card {
  background: rgba(15, 15, 35, 0.8);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 32px; backdrop-filter: blur(10px);
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  position: relative; overflow: hidden;
}
.feature-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.feature-card:hover { transform: translateY(-4px); border-color: rgba(124,58,237,0.3); box-shadow: 0 20px 60px rgba(124,58,237,0.15); }
.feature-card:hover::before { opacity: 1; }
.feature-icon { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 20px; }
.feature-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.feature-card p { color: var(--text-sec); font-size: 15px; line-height: 1.6; }

/* ─── DOWNLOAD SECTION ─── */
.download-section { text-align: center; }
.download-note { margin-top: 16px; color: var(--text-muted); font-size: 13px; }

/* ─── PAGE HEADER ─── */
.page-hero { padding: 140px 5% 80px; max-width: 860px; margin: 0 auto; }
.page-hero h1 { font-size: clamp(36px, 6vw, 56px); font-weight: 900; letter-spacing: -1.5px; margin-bottom: 16px; }
.page-hero .meta { color: var(--text-muted); font-size: 14px; }

/* ─── PROSE ─── */
.prose { max-width: 860px; margin: 0 auto; padding: 0 5% 100px; }
.prose h2 {
  font-size: 22px; font-weight: 700; color: var(--text);
  margin: 48px 0 16px; padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.prose h3 { font-size: 17px; font-weight: 600; color: var(--primary-glow); margin: 28px 0 10px; }
.prose p { color: var(--text-sec); font-size: 15px; line-height: 1.8; margin-bottom: 16px; }
.prose ul { margin: 0 0 16px 20px; }
.prose ul li { color: var(--text-sec); font-size: 15px; line-height: 1.8; margin-bottom: 6px; }
.prose strong { color: var(--text); }
.prose a { color: var(--primary-glow); text-decoration: none; }
.prose a:hover { text-decoration: underline; }
.prose .highlight-box {
  background: rgba(124,58,237,0.1); border: 1px solid rgba(124,58,237,0.25);
  border-radius: var(--radius); padding: 20px 24px; margin: 24px 0;
}
.prose .highlight-box p { margin-bottom: 0; }
.prose .eula-box {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 24px; padding: 40px; margin-top: 64px;
}
.prose .eula-box h2 { border: none; margin-top: 0; font-size: 20px; }

/* ─── SUPPORT ─── */
.support-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px; max-width: 1100px; margin: 0 auto 64px;
}
.support-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 36px 40px;
  text-align: center; transition: border-color 0.3s, transform 0.3s;
}
.support-card:hover { border-color: rgba(124,58,237,0.4); transform: translateY(-3px); }
.support-card .icon { font-size: 40px; margin-bottom: 20px; }
.support-card h3 { font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.support-card p { color: var(--text-sec); font-size: 14px; line-height: 1.7; margin-bottom: 20px; }
.support-card a {
  display: block;
  background: linear-gradient(135deg, var(--primary), var(--primary-dim));
  color: #fff; text-decoration: none;
  padding: 12px 20px; border-radius: 50px;
  font-size: 14px; font-weight: 600; transition: opacity 0.2s;
  text-align: center; white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis;
}
.support-card a:hover { opacity: 0.85; }

.faq-item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px 28px; margin-bottom: 12px;
}
.faq-item h4 { font-size: 16px; font-weight: 700; margin-bottom: 10px; color: var(--text); }
.faq-item p { color: var(--text-sec); font-size: 14px; line-height: 1.7; margin: 0; }
.faq-item p a { color: var(--primary-glow); text-decoration: none; }
.faq-item p a:hover { text-decoration: underline; }

/* ─── FOOTER ─── */
footer { border-top: 1px solid var(--border); padding: 48px 5% 32px; }
.footer-top {
  display: flex; align-items: flex-start; justify-content: space-between;
  flex-wrap: wrap; gap: 40px; margin-bottom: 48px;
}
.footer-brand p { color: var(--text-muted); font-size: 14px; max-width: 300px; margin-top: 12px; line-height: 1.7; }
.footer-links h4 { font-size: 12px; font-weight: 700; letter-spacing: 1.5px; color: var(--text-muted); text-transform: uppercase; margin-bottom: 16px; }
.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: var(--text-sec); text-decoration: none; font-size: 14px; transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 24px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { color: var(--text-muted); font-size: 13px; }

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .footer-top { flex-direction: column; }
  .hero-actions { flex-direction: column; align-items: center; }
}
