:root {
  --bg: #07070c;
  --bg-alt: #0d0d16;
  --card: #12121d;
  --card-hover: #17172470;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f4f4f7;
  --text-dim: #9a9aac;
  --accent1: #7c5cff;
  --accent2: #22d3ee;
  --gradient: linear-gradient(135deg, var(--accent1), var(--accent2));
  --radius: 18px;
  --max-width: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
img { max-width: 100%; display: block; }

.bg-glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(600px circle at 15% 10%, rgba(124, 92, 255, 0.16), transparent 60%),
    radial-gradient(700px circle at 85% 30%, rgba(34, 211, 238, 0.12), transparent 60%);
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background 0.3s ease, border-color 0.3s ease, padding 0.3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(7, 7, 12, 0.75);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
  padding: 12px 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 28px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 600;
  margin-right: auto;
}
.logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
}
.logo-text strong { font-weight: 800; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 15px;
  color: var(--text-dim);
}
.nav-links a { transition: color 0.2s ease; }
.nav-links a:hover { color: var(--text); }
.nav-links a.nav-cta:hover { color: #fff; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(124, 92, 255, 0.6);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -8px rgba(124, 92, 255, 0.75); }
.btn-outline {
  border-color: var(--border);
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}
.btn-outline:hover { border-color: rgba(255, 255, 255, 0.25); background: rgba(255, 255, 255, 0.06); }
.btn-small { padding: 9px 18px; font-size: 14px; }
.btn-large { padding: 16px 34px; font-size: 17px; }

.nav-cta { flex-shrink: 0; margin-left: 4px; }

/* Hero */
.hero {
  position: relative;
  padding: 120px 0 90px;
  overflow: hidden;
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent2);
  margin: 0 0 18px;
}
.eyebrow.center { text-align: center; }

.hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
}
.text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: 19px;
  color: var(--text-dim);
  max-width: 560px;
  margin: 0 0 36px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}
.hero-stats {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; }
.stat-num {
  font-size: 32px;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-label { font-size: 14px; color: var(--text-dim); }

.hero-float {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.float-icon {
  position: absolute;
  width: 84px;
  height: 84px;
  border-radius: 22px;
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--border);
  animation: float 7s ease-in-out infinite;
  opacity: 0.9;
}
.fi-1 { top: 6%;  right: 20%; width: 72px; height: 72px; animation-delay: 0s; }
.fi-2 { top: 20%; right: 4%;  width: 96px; height: 96px; animation-delay: 1.2s; }
.fi-3 { top: 46%; right: 16%; width: 64px; height: 64px; animation-delay: 2.4s; }
.fi-4 { top: 64%; right: 32%; width: 78px; height: 78px; animation-delay: 0.8s; }
.fi-5 { top: 34%; right: -2%; width: 60px; height: 60px; animation-delay: 3.2s; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-22px) rotate(3deg); }
}

.scroll-cue {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 40px;
  font-size: 13px;
  color: var(--text-dim);
}
.scroll-cue span {
  width: 20px;
  height: 32px;
  border-radius: 12px;
  border: 1px solid var(--border);
  position: relative;
  flex-shrink: 0;
}
.scroll-cue span::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  width: 3px;
  height: 6px;
  background: var(--accent2);
  border-radius: 2px;
  transform: translateX(-50%);
  animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot {
  0% { top: 6px; opacity: 1; }
  70% { top: 18px; opacity: 0; }
  100% { top: 6px; opacity: 0; }
}

/* Section shared */
.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
}
.section-title.center { text-align: center; }
.section-sub {
  color: var(--text-dim);
  font-size: 17px;
  max-width: 560px;
  margin: 0 auto 56px;
}
.section-sub.center { text-align: center; }

/* Apps grid */
.apps {
  position: relative;
  z-index: 2;
  padding: 60px 0 120px;
}
.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.app-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
.app-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.18);
  background: #15151f;
}
.app-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  flex-shrink: 0;
  box-shadow: 0 6px 16px -6px rgba(0, 0, 0, 0.5);
}
.app-info { min-width: 0; flex: 1; }
.app-name {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.app-category {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--accent2);
  background: rgba(34, 211, 238, 0.1);
  padding: 3px 9px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.app-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 12px;
}
.app-meta .star { color: #ffc857; }
.app-store-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
}
.app-link {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.app-link:hover { color: var(--accent2); }

/* About */
.about {
  position: relative;
  z-index: 2;
  padding: 100px 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.about-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}
.about-text p { color: var(--text-dim); font-size: 16.5px; }
.pillars {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.pillars li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  font-weight: 500;
}
.pillar-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gradient);
  flex-shrink: 0;
}
.about-visual {
  position: relative;
  height: 340px;
}
.orbit-card {
  position: absolute;
  border-radius: 28px;
  border: 1px solid var(--border);
  background: linear-gradient(160deg, #17172a, #101019);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.orbit-card img {
  width: 100%;
  height: 100%;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.5);
}
.oc-1 { width: 200px; height: 200px; top: 10px; left: 30px; box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6); }
.oc-2 { width: 150px; height: 150px; top: 90px; right: 10px; box-shadow: 0 20px 40px -14px rgba(0,0,0,0.6); }
.oc-3 { width: 110px; height: 110px; bottom: 10px; left: 100px; opacity: 0.9; }

/* Contact */
.contact { padding: 110px 0; position: relative; z-index: 2; }
.contact-inner { max-width: 620px; margin: 0 auto; text-align: center; }
.contact-address { margin-top: 22px; color: var(--text-dim); font-size: 14px; }

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 36px 0;
  position: relative;
  z-index: 2;
}
.footer-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-links {
  display: flex;
  gap: 22px;
  font-size: 14px;
  color: var(--text-dim);
  margin-left: auto;
}
.footer-links a:hover { color: var(--text); }
.copyright {
  width: 100%;
  font-size: 13px;
  color: var(--text-dim);
  margin: 0;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

/* Legal pages */
.legal {
  position: relative;
  z-index: 2;
  padding: 150px 0 100px;
}
.legal .container { max-width: 780px; }
.legal-header { margin-bottom: 40px; }
.legal-updated {
  color: var(--text-dim);
  font-size: 14px;
  margin-top: 8px;
}
.legal-body h2 {
  font-size: 21px;
  font-weight: 700;
  margin: 40px 0 14px;
  letter-spacing: -0.01em;
}
.legal-body h2:first-child { margin-top: 0; }
.legal-body h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 24px 0 10px;
  color: var(--accent2);
}
.legal-body p {
  color: var(--text-dim);
  font-size: 15.5px;
  line-height: 1.7;
  margin: 0 0 14px;
}
.legal-body ul, .legal-body ol {
  color: var(--text-dim);
  font-size: 15.5px;
  line-height: 1.7;
  margin: 0 0 14px;
  padding-left: 22px;
}
.legal-body li { margin-bottom: 8px; }
.legal-body blockquote {
  border-left: 3px solid var(--accent1);
  padding: 4px 0 4px 16px;
  margin: 0 0 14px;
  color: var(--text);
  font-style: italic;
}
.legal-body hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 28px 0;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 860px) {
  .about-inner { grid-template-columns: 1fr; }
  .about-visual { height: 220px; margin-top: 20px; }
  .hero-float { display: none; }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav.open .nav-links {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    background: rgba(7, 7, 12, 0.97);
    backdrop-filter: blur(14px);
    padding: 20px 24px 28px;
    gap: 18px;
    border-bottom: 1px solid var(--border);
  }
  .nav-links .nav-cta { margin-left: 0; margin-top: 4px; }
  .hero { padding: 90px 0 60px; }
  .hero-actions { margin-bottom: 48px; }
  .pillars { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-links { margin-left: 0; }
}
