/* ===== DESIGN TOKENS ===== */
:root {
  --primary: #00e5ff;
  --primary-glow: rgba(0, 229, 255, 0.25);
  --secondary: #7c4dff;
  --accent: #00e676;
  --danger: #ff1744;
  --bg-deep: #030712;
  --bg-dark: #0a0f1e;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.08);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(0, 229, 255, 0.2);
  --text-primary: #f0f4ff;
  --text-secondary: rgba(240, 244, 255, 0.6);
  --text-muted: rgba(240, 244, 255, 0.4);
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Outfit', 'Inter', sans-serif;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-xl: 40px;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-main);
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ===== ANIMATED BACKGROUND GRID ===== */
.bg-grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.04;
  background-image:
    linear-gradient(var(--primary) 1px, transparent 1px),
    linear-gradient(90deg, var(--primary) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridDrift 20s linear infinite;
}
@keyframes gridDrift { to { background-position: 60px 60px; } }

/* ===== FLOATING PARTICLES ===== */
.particles { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.particle {
  position: absolute; border-radius: 50%; pointer-events: none;
  background: var(--primary); opacity: 0;
  animation: particleFloat linear infinite;
}
@keyframes particleFloat {
  0% { transform: translateY(100vh) scale(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-20vh) scale(1); opacity: 0; }
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 0 40px; height: 72px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(3, 7, 18, 0.6);
  backdrop-filter: blur(20px) saturate(1.5);
  border-bottom: 1px solid var(--border-subtle);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.navbar.scrolled { background: rgba(3, 7, 18, 0.92); box-shadow: 0 4px 30px rgba(0,0,0,0.3); }
.nav-brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; }
.nav-brand .brand-icon { font-size: 1.6rem; }
.nav-brand span { background: linear-gradient(135deg, var(--primary), var(--secondary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
  font-size: 0.9rem; font-weight: 500; color: var(--text-secondary);
  transition: color 0.3s; position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px;
  background: var(--primary); border-radius: 2px; transition: width 0.3s;
}
.nav-links a:hover { color: var(--primary); }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  padding: 10px 24px; border-radius: 50px; font-weight: 600; font-size: 0.9rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff; border: none; cursor: pointer;
  transition: all 0.3s; box-shadow: 0 4px 20px var(--primary-glow);
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 30px var(--primary-glow); }
.mobile-toggle { display: none; background: none; border: none; color: var(--text-primary); font-size: 1.5rem; cursor: pointer; }

/* ===== HERO SECTION ===== */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  justify-content: center; padding: 120px 40px 80px; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(180deg, rgba(3,7,18,0.3) 0%, rgba(3,7,18,0.7) 50%, var(--bg-deep) 100%),
              url('hero_bg.png') center/cover no-repeat;
}
.hero-glow {
  position: absolute; width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, var(--primary-glow), transparent 70%);
  top: 20%; left: 50%; transform: translate(-50%, -50%);
  animation: heroGlow 6s ease-in-out infinite alternate;
  z-index: 0;
}
@keyframes heroGlow { 0% { opacity: 0.4; scale: 1; } 100% { opacity: 0.8; scale: 1.2; } }
.hero-content { position: relative; z-index: 2; text-align: center; max-width: 900px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 20px; border-radius: 50px;
  background: rgba(0, 229, 255, 0.08); border: 1px solid rgba(0, 229, 255, 0.2);
  font-size: 0.85rem; color: var(--primary); font-weight: 500;
  margin-bottom: 28px;
  animation: fadeInUp 0.8s ease-out;
}
.hero-badge .badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.hero h1 {
  font-family: var(--font-display); font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 800; line-height: 1.1; margin-bottom: 24px;
  animation: fadeInUp 0.8s ease-out 0.1s both;
}
.hero h1 .gradient-text {
  background: linear-gradient(135deg, var(--primary), #40c4ff, var(--secondary), #e040fb);
  background-size: 300% 300%; -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  animation: gradientShift 8s ease infinite;
}
@keyframes gradientShift { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--text-secondary);
  max-width: 600px; margin: 0 auto 40px; line-height: 1.8;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; animation: fadeInUp 0.8s ease-out 0.3s both; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 36px; border-radius: 50px; font-weight: 700; font-size: 1rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff; border: none; cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 32px var(--primary-glow);
}
.btn-primary:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 12px 40px var(--primary-glow); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 36px; border-radius: 50px; font-weight: 600; font-size: 1rem;
  background: var(--bg-card); color: var(--text-primary);
  border: 1px solid var(--border-subtle); cursor: pointer;
  transition: all 0.4s;
}
.btn-secondary:hover { background: var(--bg-card-hover); border-color: var(--border-glow); transform: translateY(-2px); }

.hero-stats {
  display: flex; justify-content: center; gap: 48px; margin-top: 60px;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}
.stat-item { text-align: center; }
.stat-value { font-family: var(--font-display); font-size: 2.2rem; font-weight: 800; color: var(--primary); }
.stat-label { font-size: 0.85rem; color: var(--text-muted); margin-top: 4px; }

/* ===== DEVICE SHOWCASE ===== */
.hero-devices {
  position: relative; z-index: 2; margin-top: 80px;
  display: flex; justify-content: center; align-items: flex-end; gap: 30px;
  animation: fadeInUp 1s ease-out 0.5s both;
}
.device-phone { width: 280px; position: relative; }
.device-phone img { width: 100%; border-radius: 28px; box-shadow: 0 30px 80px rgba(0,0,0,0.5), 0 0 40px var(--primary-glow); }
.device-phone.featured { width: 320px; transform: translateY(-20px); }
.device-phone.featured img { box-shadow: 0 40px 100px rgba(0,0,0,0.6), 0 0 60px var(--primary-glow); }

/* ===== SECTION COMMONS ===== */
.section { position: relative; z-index: 1; padding: 120px 40px; }
.section-header { text-align: center; max-width: 700px; margin: 0 auto 80px; }
.section-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 2px;
  color: var(--primary); margin-bottom: 16px;
}
.section-tag::before, .section-tag::after { content: ''; width: 20px; height: 1px; background: var(--primary); }
.section-title {
  font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800; line-height: 1.2; margin-bottom: 20px;
}
.section-desc { font-size: 1.1rem; color: var(--text-secondary); line-height: 1.8; }

/* ===== FEATURES SECTION ===== */
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  max-width: 1200px; margin: 0 auto;
}
.feature-card {
  position: relative; padding: 40px 32px; border-radius: var(--radius-lg);
  background: var(--bg-card); border: 1px solid var(--border-subtle);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1); overflow: hidden;
  cursor: default;
}
.feature-card::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.05), transparent 60%);
  opacity: 0; transition: opacity 0.5s;
}
.feature-card:hover { transform: translateY(-8px); border-color: var(--border-glow); background: var(--bg-card-hover); }
.feature-card:hover::before { opacity: 1; }
.feature-icon {
  width: 64px; height: 64px; border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; margin-bottom: 24px;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.1), rgba(124, 77, 255, 0.1));
  border: 1px solid rgba(0, 229, 255, 0.15);
}
.feature-card h3 { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; margin-bottom: 12px; }
.feature-card p { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.7; }

/* ===== SHOWCASE / SCREENSHOTS ===== */
.showcase { background: linear-gradient(180deg, var(--bg-deep), var(--bg-dark), var(--bg-deep)); }
.screenshot-carousel {
  display: flex; gap: 24px; overflow-x: auto; padding: 20px 40px 40px;
  max-width: 1400px; margin: 0 auto;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.screenshot-carousel::-webkit-scrollbar { display: none; }
.screenshot-item {
  flex: 0 0 auto; scroll-snap-align: center;
  border-radius: var(--radius-lg); overflow: hidden;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}
.screenshot-item img {
  height: 520px; width: auto; object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.screenshot-item:hover { transform: translateY(-10px) scale(1.02); }
.screenshot-item:hover img { box-shadow: 0 30px 80px rgba(0,0,0,0.5), 0 0 30px var(--primary-glow); }
.screenshot-label {
  position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
  padding: 8px 20px; border-radius: 50px;
  background: rgba(3, 7, 18, 0.8); backdrop-filter: blur(10px);
  font-size: 0.8rem; font-weight: 600; white-space: nowrap;
  border: 1px solid var(--border-subtle);
}

/* ===== AR EXPERIENCE SECTION ===== */
.ar-section { position: relative; overflow: hidden; }
.ar-content {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px;
  max-width: 1200px; margin: 0 auto; align-items: center;
}
.ar-text { position: relative; z-index: 2; }
.ar-text h2 {
  font-family: var(--font-display); font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800; line-height: 1.2; margin-bottom: 24px;
}
.ar-text p { font-size: 1.05rem; color: var(--text-secondary); margin-bottom: 32px; line-height: 1.8; }
.ar-features-list { list-style: none; display: flex; flex-direction: column; gap: 16px; margin-bottom: 36px; }
.ar-features-list li {
  display: flex; align-items: center; gap: 12px;
  font-size: 0.95rem; color: var(--text-secondary);
}
.ar-features-list .check {
  width: 28px; height: 28px; border-radius: 8px;
  background: rgba(0, 230, 118, 0.1); border: 1px solid rgba(0, 230, 118, 0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; flex-shrink: 0;
}
.ar-visual { position: relative; display: flex; justify-content: center; }
.ar-visual img {
  width: 90%; max-width: 500px; border-radius: var(--radius-lg);
  box-shadow: 0 40px 100px rgba(0,0,0,0.5), 0 0 60px var(--primary-glow);
}

/* ===== DEVICE COMPARISON (iPad + iPhone) ===== */
.device-section { background: linear-gradient(180deg, var(--bg-deep), var(--bg-dark)); }
.device-grid {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 60px;
  max-width: 1200px; margin: 0 auto; align-items: center;
}
.device-visual { position: relative; display: flex; gap: 20px; align-items: flex-end; justify-content: center; }
.device-ipad { width: 65%; position: relative; }
.device-ipad img { width: 100%; border-radius: 16px; box-shadow: 0 30px 80px rgba(0,0,0,0.5); }
.device-iphone { width: 30%; position: relative; margin-bottom: 20px; }
.device-iphone img { width: 100%; border-radius: 20px; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.device-text h2 { font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 800; margin-bottom: 20px; line-height: 1.2; }
.device-text p { font-size: 1.05rem; color: var(--text-secondary); line-height: 1.8; margin-bottom: 24px; }

/* ===== LANGUAGE GLOBE ===== */
.languages-visual { text-align: center; margin-top: 60px; }
.lang-chips {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
  max-width: 800px; margin: 0 auto;
}
.lang-chip {
  padding: 10px 20px; border-radius: 50px;
  background: var(--bg-card); border: 1px solid var(--border-subtle);
  font-size: 0.85rem; font-weight: 500; display: flex; align-items: center; gap: 8px;
  transition: all 0.3s;
}
.lang-chip:hover { border-color: var(--border-glow); background: var(--bg-card-hover); transform: translateY(-3px); }

/* ===== SUPPORT & PRIVACY ===== */
.info-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px;
  max-width: 1200px; margin: 0 auto;
}
.info-card {
  padding: 48px 40px; border-radius: var(--radius-lg);
  background: var(--bg-card); border: 1px solid var(--border-subtle);
  backdrop-filter: blur(10px);
}
.info-card h2 { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; margin-bottom: 20px; color: var(--primary); }
.info-card p { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.8; }
.email-link {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--primary); font-weight: 600; font-size: 1.1rem;
  margin-top: 16px; transition: color 0.3s;
}
.email-link:hover { color: #40c4ff; }
.policy-scroll {
  max-height: 350px; overflow-y: auto; padding-right: 16px; margin-top: 16px;
}
.policy-scroll::-webkit-scrollbar { width: 4px; }
.policy-scroll::-webkit-scrollbar-track { background: transparent; }
.policy-scroll::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }
.policy-scroll h3 { color: var(--text-primary); font-size: 1rem; margin: 20px 0 8px; }
.policy-scroll h3:first-child { margin-top: 0; }
.policy-scroll p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.7; }

/* ===== CTA SECTION ===== */
.cta-section {
  position: relative; padding: 120px 40px; text-align: center; overflow: hidden;
}
.cta-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(0, 229, 255, 0.08) 0%, transparent 70%);
}
.cta-content { position: relative; z-index: 2; max-width: 700px; margin: 0 auto; }
.cta-content h2 {
  font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800; margin-bottom: 20px;
}
.cta-content p { font-size: 1.1rem; color: var(--text-secondary); margin-bottom: 40px; }
.app-store-btn {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 18px 40px; border-radius: 16px;
  background: #fff; color: #000;
  font-size: 1rem; font-weight: 700;
  transition: all 0.4s; box-shadow: 0 8px 30px rgba(255,255,255,0.1);
}
.app-store-btn:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 12px 40px rgba(255,255,255,0.15); }
.app-store-btn svg { width: 28px; height: 28px; }

/* ===== FOOTER ===== */
.footer {
  padding: 40px; text-align: center;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.85rem; color: var(--text-muted);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal {
  opacity: 0; transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .ar-content { grid-template-columns: 1fr; gap: 40px; }
  .ar-visual { order: -1; }
  .device-grid { grid-template-columns: 1fr; }
  .device-visual { order: -1; }
  .info-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .navbar { padding: 0 20px; }
  .nav-links { display: none; }
  .mobile-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute;
    top: 72px; left: 0; right: 0; background: rgba(3, 7, 18, 0.95);
    backdrop-filter: blur(20px); padding: 24px; gap: 20px;
    border-bottom: 1px solid var(--border-subtle);
  }
  .hero { padding: 100px 20px 60px; }
  .hero-devices { flex-direction: column; align-items: center; gap: 20px; }
  .device-phone, .device-phone.featured { width: 240px; transform: none; }
  .section { padding: 80px 20px; }
  .features-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }
  .screenshot-item img { height: 380px; }
  .hero-actions { flex-direction: column; align-items: center; }
}
