/* ─── RESET & BASE ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --orange: #f97316;
  --orange-glow: rgba(249,115,22,0.35);
  --blue: #2563eb;
  --dark-1: #060d1a;
  --dark-2: #0a1628;
  --dark-3: #0f1f38;
  --dark-4: #122040;
  --light-bg: #f0f2f5;
  --text-primary: #ffffff;
  --text-muted: #94a3b8;
  --text-dark: #1e293b;
  --radius: 16px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  background: var(--dark-2);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ─── SCROLLBAR ────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark-2); }
::-webkit-scrollbar-thumb { background: var(--orange); border-radius: 3px; }

/* ─── STAR BACKGROUND ──────────────────────────────────── */
.stars {
  position: absolute; inset: 0;
  pointer-events: none; overflow: hidden; z-index: 0;
}
.stars-dim { opacity: 0.5; }
.star {
  position: absolute;
  width: 3px; height: 3px;
  background: white;
  border-radius: 50%;
  animation: twinkle var(--dur, 3s) ease-in-out infinite var(--delay, 0s);
}
.star.sparkle {
  width: 14px; height: 14px;
  background: none;
  animation: sparklePop var(--dur, 4s) ease-in-out infinite var(--delay, 0s);
}
.star.sparkle::before,
.star.sparkle::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  background: rgba(255,255,255,0.3);
  border-radius: 50%;
}
.star.sparkle::before { width: 2px; height: 14px; }
.star.sparkle::after  { width: 14px; height: 2px; }

@keyframes twinkle {
  0%,100% { opacity: 0.05; transform: scale(1); }
  50%      { opacity: 0.35; transform: scale(1.4); }
}
@keyframes sparklePop {
  0%,100% { opacity: 0; transform: scale(0.5) rotate(0deg); }
  50%      { opacity: 0.3; transform: scale(1) rotate(45deg); }
}

/* ─── REVEAL ANIMATIONS ────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* ─── NAVBAR ───────────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(6, 13, 26, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(249,115,22,0.15);
  transition: all 0.3s ease;
}
.navbar.scrolled {
  background: rgba(6, 13, 26, 0.97);
  border-bottom-color: rgba(249,115,22,0.3);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
}
.logo-icon { width: 36px; height: 36px; flex-shrink: 0; border-radius: 8px; display: block; }
.logo-text {
  font-size: 1.4rem; font-weight: 800;
  color: var(--orange);
  letter-spacing: -0.02em;
}
.nav-actions { display: flex; align-items: center; gap: 12px; }
.btn-nav {
  padding: 10px 22px;
  background: var(--orange);
  color: white;
  border-radius: 50px;
  font-weight: 600; font-size: 0.9rem;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.btn-nav:hover {
  background: #ea6c07;
  box-shadow: 0 0 24px var(--orange-glow);
  transform: translateY(-1px);
}
.hamburger {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: white; border-radius: 2px;
  transition: all 0.3s ease;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 16px 24px 20px;
  gap: 4px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 12px 8px;
  font-size: 1rem; font-weight: 500;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: color 0.2s;
}
.mobile-menu a:hover, .mobile-menu a.mobile-download { color: var(--orange); }
.mobile-menu .mobile-download {
  margin-top: 8px; border: none;
  font-weight: 700;
}

/* ─── HERO BANNER (top section) ───────────────────────── */
.hero-banner {
  background: linear-gradient(160deg, #0a0f1e 0%, #111827 40%, #0f172a 100%);
  padding: 120px 24px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero-banner::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--orange), transparent);
}
/* ambient glows */
.banner-bg-glow {
  position: absolute; border-radius: 50%;
  filter: blur(80px); pointer-events: none; z-index: 0;
}
.banner-glow-left {
  width: 400px; height: 400px;
  background: rgba(249,115,22,0.12);
  top: -100px; left: -100px;
  animation: glowDrift 8s ease-in-out infinite;
}
.banner-glow-right {
  width: 350px; height: 350px;
  background: rgba(37,99,235,0.1);
  bottom: -80px; right: -80px;
  animation: glowDrift 10s ease-in-out infinite reverse;
}
@keyframes glowDrift {
  0%,100% { transform: translate(0,0) scale(1); }
  50%      { transform: translate(30px,20px) scale(1.1); }
}
.banner-particles {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
}
.hero-banner-inner {
  position: relative; z-index: 1;
  max-width: 640px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center;
}

/* app icon in banner */
.banner-icon-wrap {
  position: relative; display: inline-flex;
  align-items: center; justify-content: center;
  margin-bottom: 28px;
}
.banner-app-icon {
  width: 88px; height: 88px;
  border-radius: 22px;
  box-shadow: 0 8px 40px rgba(249,115,22,0.4), 0 0 0 1px rgba(249,115,22,0.2);
  position: relative; z-index: 1;
  animation: iconBob 4s ease-in-out infinite;
}
@keyframes iconBob {
  0%,100% { transform: translateY(0) rotate(-1deg); }
  50%      { transform: translateY(-6px) rotate(1deg); }
}
.banner-icon-ring {
  position: absolute; inset: -12px;
  border-radius: 34px;
  border: 1.5px solid rgba(249,115,22,0.25);
  animation: ringPulse 2.5s ease-in-out infinite;
}
@keyframes ringPulse {
  0%,100% { transform: scale(1); opacity: 0.5; }
  50%      { transform: scale(1.08); opacity: 1; }
}

.brand-title {
  font-size: clamp(3.8rem, 9vw, 6.5rem);
  font-weight: 900;
  color: var(--orange);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 14px;
  animation: brandPulse 3s ease-in-out infinite;
}
@keyframes brandPulse {
  0%,100% { text-shadow: 0 0 40px rgba(249,115,22,0.25); }
  50%      { text-shadow: 0 0 80px rgba(249,115,22,0.55), 0 0 140px rgba(249,115,22,0.15); }
}
.brand-tagline {
  font-size: clamp(0.72rem, 1.8vw, 0.88rem);
  font-weight: 700;
  letter-spacing: 0.22em;
  color: #64748b;
  text-transform: uppercase;
  margin-bottom: 24px;
}

/* divider */
.banner-divider {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 20px; width: 200px;
}
.banner-divider span {
  flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(249,115,22,0.4));
}
.banner-divider span:last-child {
  background: linear-gradient(90deg, rgba(249,115,22,0.4), transparent);
}
.divider-dot {
  flex: 0 !important; width: 6px !important; height: 6px !important;
  background: var(--orange) !important;
  border-radius: 50%;
}
.banner-sub {
  font-size: 1rem;
  color: #475569;
  line-height: 1.6;
  max-width: 420px;
}

/* ─── HERO MAIN ────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--dark-3) 0%, var(--dark-2) 100%);
  padding: 80px 24px 100px;
}
.hero-inner {
  position: relative; z-index: 1;
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; gap: 60px;
  flex-wrap: wrap;
}
.hero-text { flex: 1; min-width: 300px; }
.hero-heading {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.gradient-text {
  background: linear-gradient(135deg, var(--orange) 0%, #fbbf24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 36px;
  line-height: 1.7;
}
.download-btns { display: flex; flex-direction: column; gap: 14px; max-width: 260px; }
.btn-download {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 24px;
  background: white; color: #111;
  border-radius: 50px;
  font-weight: 700; font-size: 0.95rem;
  transition: all 0.3s ease;
  position: relative; overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.btn-download::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--orange);
  transform: translateX(-100%);
  transition: transform 0.4s ease;
  z-index: 0;
}
.btn-download:hover::before { transform: translateX(0); }
.btn-download:hover { color: white; box-shadow: 0 6px 30px var(--orange-glow); transform: translateY(-2px); }
.btn-download svg,
.btn-download span { position: relative; z-index: 1; transition: color 0.4s ease; }
.platform-icon { width: 22px; height: 22px; flex-shrink: 0; }

/* phone mockup */
.hero-mockup { flex: 0 0 auto; }
.phone-frame {
  width: 240px;
  border-radius: 40px;
  border: 2px solid rgba(249,115,22,0.3);
  box-shadow: 0 0 60px rgba(249,115,22,0.2), 0 20px 60px rgba(0,0,0,0.5);
  animation: floatPhone 4s ease-in-out infinite;
  overflow: hidden;
  background: #000;
}
@keyframes floatPhone {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}
.phone-screenshot {
  width: 100%; height: auto;
  display: block;
  border-radius: 38px;
}

/* ─── SECTION SHARED ───────────────────────────────────── */
.section-inner { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; }
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 48px;
  line-height: 1.1;
}

/* ─── HOW IT WORKS ─────────────────────────────────────── */
.how-it-works {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--dark-4) 0%, var(--dark-3) 100%);
  padding: 100px 24px;
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}
.step-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}
.step-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--orange), #fbbf24);
  transform: scaleX(0);
  transition: transform 0.4s ease;
  transform-origin: left;
}
.step-card:hover { transform: translateY(-6px); border-color: rgba(249,115,22,0.3); background: rgba(249,115,22,0.06); }
.step-card:hover::before { transform: scaleX(1); }
.step-number {
  font-size: 3rem; font-weight: 900;
  color: var(--orange);
  line-height: 1; margin-bottom: 16px;
  letter-spacing: -0.05em;
}
.step-icon { width: 52px; height: 52px; margin-bottom: 20px; }
.step-card h3 {
  font-size: 1.1rem; font-weight: 700;
  margin-bottom: 12px; color: white;
}
.step-card p { font-size: 0.95rem; color: var(--text-muted); line-height: 1.6; }
.steps-cta {
  text-align: center;
  font-size: 1.1rem; font-weight: 600;
  color: var(--text-muted);
}

/* ─── TRENDING ─────────────────────────────────────────── */
.trending {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--dark-2) 0%, var(--dark-4) 100%);
  padding: 100px 24px;
}
.trending-inner {
  display: flex; align-items: center; gap: 80px; flex-wrap: wrap;
}
.trending-left { flex: 1; min-width: 280px; }
.trending-list { display: flex; flex-direction: column; gap: 0; }
.trending-list li {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 1rem; font-weight: 500;
  color: #cbd5e1;
  transition: all 0.25s ease;
  cursor: default;
}
.trending-list li:hover { color: white; padding-left: 8px; }
.trending-list li:hover .bullet-dot { background: var(--orange); transform: scale(1.4); }
.bullet-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(249,115,22,0.5);
  flex-shrink: 0;
  transition: all 0.25s ease;
}
.trending-right { flex: 0 0 auto; }
.app-icon-large {
  width: 200px; height: 200px;
  border-radius: 44px;
  overflow: hidden;
  box-shadow: 0 0 60px rgba(249,115,22,0.25), 0 20px 60px rgba(0,0,0,0.4);
  animation: floatPhone 5s ease-in-out infinite 0.5s;
}
.app-icon-large img { width: 100%; height: 100%; display: block; object-fit: cover; }

/* ─── FOUNDING CREATOR ─────────────────────────────────── */
.founding {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #0a1628 0%, #122040 50%, #0f1f38 100%);
  padding: 100px 24px;
}
.founding::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(249,115,22,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.founding-inner { display: flex; justify-content: center; }
.founding-content {
  text-align: center; max-width: 600px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(249,115,22,0.2);
  border-radius: 24px;
  padding: 60px 48px;
  backdrop-filter: blur(10px);
}
.founding-content .section-title { margin-bottom: 20px; }
.founding-content p {
  font-size: 1rem; color: var(--text-muted);
  line-height: 1.7; margin-bottom: 36px;
}
.btn-founding {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 36px;
  background: var(--orange);
  color: white;
  border-radius: 50px;
  font-weight: 700; font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 24px var(--orange-glow);
}
.btn-founding:hover {
  background: #ea6c07;
  transform: translateY(-3px);
  box-shadow: 0 8px 40px var(--orange-glow);
}
.btn-founding svg { width: 20px; height: 20px; }

/* ─── FOOTER ───────────────────────────────────────────── */
.footer {
  background: var(--dark-1);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 60px 24px 0;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; gap: 60px; flex-wrap: wrap;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.footer-brand { flex: 1; min-width: 200px; }
.footer-logo { margin-bottom: 12px; }
.footer-tagline {
  font-size: 0.75rem; letter-spacing: 0.15em;
  color: var(--text-muted); font-weight: 500; margin-top: 8px;
}
.footer-links {
  display: flex; gap: 48px; flex-wrap: wrap;
}
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col h4 {
  font-size: 0.85rem; font-weight: 700; letter-spacing: 0.05em;
  color: white; text-transform: uppercase;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(249,115,22,0.3);
  margin-bottom: 4px;
}
.footer-col a {
  font-size: 0.9rem; color: var(--text-muted);
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--orange); }
.social-row { display: flex; gap: 10px; flex-wrap: wrap; }
.social-btn {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.07);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  color: var(--text-muted);
}
.social-btn:hover {
  background: var(--orange); color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px var(--orange-glow);
}
.social-btn svg {
  width: 18px; height: 18px;
  fill: #94a3b8;
  transition: fill 0.25s ease;
  pointer-events: none;
}
.social-btn:hover svg,
.social-btn:hover svg path {
  fill: #ffffff !important;
}
.footer-bottom {
  max-width: 1200px; margin: 0 auto;
  padding: 20px 0;
  text-align: center;
}
.footer-bottom p { font-size: 0.82rem; color: #475569; }

/* ─── MODALS ───────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.modal-overlay.active {
  opacity: 1; pointer-events: all;
}
.modal-box {
  background: #0f1e35;
  border: 1px solid rgba(249,115,22,0.2);
  border-radius: 20px;
  width: 100%; max-width: 720px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 48px;
  position: relative;
  transform: translateY(30px) scale(0.97);
  transition: transform 0.3s ease;
  scrollbar-width: thin;
  scrollbar-color: var(--orange) transparent;
}
.modal-overlay.active .modal-box {
  transform: translateY(0) scale(1);
}
.modal-close {
  position: absolute; top: 20px; right: 20px;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: none; color: var(--text-muted);
  font-size: 1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.modal-close:hover { background: var(--orange); color: white; }
.modal-content h2 {
  font-size: 1.8rem; font-weight: 800;
  color: white; margin-bottom: 6px;
  letter-spacing: -0.02em;
}
.modal-date { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 32px; }
.modal-content h3 {
  font-size: 1rem; font-weight: 700;
  color: var(--orange); margin: 28px 0 10px;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.modal-content h4 {
  font-size: 0.9rem; font-weight: 700;
  color: #cbd5e1; margin: 16px 0 6px;
}
.modal-content p {
  font-size: 0.95rem; color: #94a3b8; line-height: 1.75;
  margin-bottom: 12px;
}
.modal-content ul {
  padding-left: 0; list-style: none;
  display: flex; flex-direction: column; gap: 8px;
  margin-bottom: 12px;
}
.modal-content ul li {
  font-size: 0.95rem; color: #94a3b8; line-height: 1.6;
  padding-left: 20px; position: relative;
}
.modal-content ul li::before {
  content: '→';
  position: absolute; left: 0;
  color: var(--orange); font-size: 0.85rem;
}
.modal-content a { color: var(--orange); }
.modal-content a:hover { text-decoration: underline; }
.modal-content strong { color: #e2e8f0; }

/* ─── RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 900px) {
  .steps-grid { grid-template-columns: 1fr; max-width: 480px; }
  .trending-inner { gap: 48px; }
  .trending-right { order: -1; }
  .hero-mockup { display: none; }
  .footer-inner { flex-direction: column; gap: 40px; }
  .footer-links { gap: 32px; }
}

@media (max-width: 768px) {
  .btn-nav { display: none; }
  .hamburger { display: flex; }
  .hero { padding: 60px 20px 80px; }
  .hero-heading { font-size: 2.2rem; }
  .section-inner { padding: 0; }
  .how-it-works, .trending, .founding { padding: 80px 20px; }
  .section-title { font-size: 1.8rem; margin-bottom: 32px; }
  .founding-content { padding: 40px 28px; }
  .trending-inner { flex-direction: column; align-items: flex-start; }
  .trending-right { align-self: center; }
  .app-icon-large { width: 160px; height: 160px; border-radius: 36px; }
  .footer { padding: 48px 20px 0; }
  .footer-links { flex-direction: column; gap: 28px; }
  .modal-box { padding: 32px 24px; }
}

@media (max-width: 480px) {
  .hero-banner { padding: 100px 20px 48px; }
  .brand-title { font-size: 3.5rem; }
  .hero-heading { font-size: 1.9rem; }
  .download-btns { max-width: 100%; }
  .steps-grid { gap: 16px; }
  .step-card { padding: 28px 22px; }
  .modal-content h2 { font-size: 1.5rem; }
  .social-row { gap: 8px; }
}

/* ─── TOAST ────────────────────────────────────────────── */
.toast {
  position: fixed; bottom: 32px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: #1e293b;
  border: 1px solid rgba(249,115,22,0.4);
  color: white;
  padding: 14px 24px;
  border-radius: 50px;
  font-size: 0.9rem; font-weight: 600;
  display: flex; align-items: center; gap: 8px;
  z-index: 9999;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  white-space: nowrap;
}
.toast svg { width: 18px; height: 18px; color: var(--orange); flex-shrink: 0; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ─── LOADING ANIMATION ────────────────────────────────── */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
body { animation: fadeIn 0.4s ease; }
