:root {
  --bg: #030305;
  --text: #fdfdfd;
  --text-muted: #9496a1;
  --accent: #ab8eff;
  --accent-glow: rgba(171, 142, 255, 0.4);
  --gold: #ebc983;
  --teal: #6ce0dc;
  
  --surface: rgba(20, 20, 28, 0.4);
  --surface-border: rgba(255, 255, 255, 0.08);
  
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Manrope", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Background Glowing Orbs (CSS only, highly performant) */
.glow-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.5;
  z-index: -1;
  pointer-events: none;
  animation: drift 20s ease-in-out infinite alternate;
  will-change: transform;
}

.orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(108, 224, 220, 0.15), transparent 70%);
  top: -10%; left: -10%;
}
.orb-2 {
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(171, 142, 255, 0.12), transparent 70%);
  bottom: -20%; right: -10%;
  animation-delay: -5s;
}
.orb-3 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(235, 201, 131, 0.08), transparent 70%);
  top: 40%; left: 60%;
  animation-delay: -10s;
}

@keyframes drift {
  0% { transform: translate(0, 0); }
  100% { transform: translate(50px, 80px); }
}

/* Typography */
h1, h2, h3, .section-title {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.1;
}
i { font-style: italic; }

/* Navigation */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 0;
  background: linear-gradient(180deg, rgba(3,3,5,0.9) 0%, transparent 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.brand {
  font-size: 1.2rem;
  font-weight: 700;
  font-family: var(--font-sans);
  text-decoration: none;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-logo {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--accent));
}
.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s;
}
.nav-links a:hover {
  color: var(--text);
}
.btn-nav {
  padding: 10px 24px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white !important;
}
.btn-nav:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Global Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 18px 40px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 100px;
  transition: all 0.3s ease;
  cursor: pointer;
}
.btn-glow {
  background: linear-gradient(135deg, var(--accent), var(--teal));
  color: #000;
  box-shadow: 0 0 30px var(--accent-glow);
}
.btn-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 50px var(--accent-glow), inset 0 0 10px rgba(255,255,255,0.5);
}

/* Hero Section */
.hero {
  padding: 200px 24px 100px;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}
.hero-content {
  flex: 1;
  max-width: 580px;
}
.badge {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 100px;
  border: 1px solid var(--surface-border);
  background: var(--surface);
  color: var(--teal);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 32px;
}
.hero-title {
  font-size: clamp(3.5rem, 6vw, 5.5rem);
  margin-bottom: 24px;
}
.gradient-text {
  background: linear-gradient(135deg, var(--gold), var(--teal), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-desc {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 48px;
}

.hero-phones {
  flex: 1;
  display: flex;
  justify-content: center;
  perspective: 2000px;
}

/* Base Phone Mockup */
.phone-wrapper {
  position: relative;
  will-change: transform;
  transform-style: preserve-3d;
}
.phone {
  width: 320px;
  padding: 12px;
  border-radius: 44px;
  background: #0d0d12;
  box-shadow: 0 50px 100px rgba(0,0,0,0.8), 
              inset 0 0 0 1px rgba(255,255,255,0.2), 
              inset 0 0 20px rgba(255,255,255,0.05);
  position: relative;
  overflow: hidden;
}
.phone img {
  width: 100%;
  border-radius: 32px;
  display: block;
}
.phone-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%);
  pointer-events: none;
  z-index: 10;
  border-radius: 44px;
}

/* Features Grid */
.features {
  padding: 140px 0;
  position: relative;
}
.section-title {
  font-size: clamp(3rem, 5vw, 4.5rem);
  text-align: center;
  margin-bottom: 80px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}
.card {
  padding: 40px;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  transition: all 0.4s ease;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.card-icon {
  font-size: 2.5rem;
  margin-bottom: 24px;
}
.card h3 {
  font-size: 1.8rem;
  margin-bottom: 16px;
  font-family: var(--font-serif);
}
.card p {
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 1.05rem;
}

/* Screen Showcase */
.screens {
  padding: 140px 0;
}
.showcase {
  display: flex;
  align-items: center;
  gap: 80px;
  background: rgba(14, 22, 34, 0.3);
  border: 1px solid var(--surface-border);
  border-radius: 40px;
  padding: 80px;
}
.showcase-content {
  flex: 1;
}
.showcase-content .section-title {
  text-align: left;
  margin-bottom: 24px;
}
.showcase-desc {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 48px;
  line-height: 1.6;
}
.screen-selector {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.selector-btn {
  background: none;
  border: none;
  text-align: left;
  font-size: 1.4rem;
  color: var(--text-muted);
  font-family: var(--font-serif);
  cursor: pointer;
  padding: 16px 24px;
  border-left: 2px solid rgba(255,255,255,0.1);
  transition: all 0.3s ease;
}
.selector-btn.active, .selector-btn:hover {
  color: var(--text);
  border-left-color: var(--teal);
  background: linear-gradient(90deg, rgba(108, 224, 220, 0.1) 0%, transparent 100%);
}
.showcase-visual {
  flex: 1;
  display: flex;
  justify-content: center;
}

/* Bottom CTA */
.cta {
  padding: 100px 24px 160px;
  text-align: center;
}
.cta-box {
  max-width: 800px;
  margin: 0 auto;
  padding: 80px 40px;
  background: radial-gradient(circle at top, rgba(171, 142, 255, 0.15), transparent 70%), var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 40px;
}
.cta-box h2 {
  font-size: clamp(2.5rem, 4vw, 4rem);
  margin-bottom: 24px;
}
.cta-box p {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 40px;
}

/* Footer */
footer {
  border-top: 1px solid var(--surface-border);
  padding: 40px 0;
}
.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
}
.footer-brand span {
  margin-left: 16px;
  font-size: 0.9rem;
  opacity: 0.5;
}
.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
}
.footer-links a:hover {
  color: var(--text);
}

/* Animations */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile Responsiveness */
@media (max-width: 960px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 140px 16px 60px;
    gap: 40px;
  }
  .hero-content {
    max-width: 100%;
  }
  .hero-title {
    font-size: clamp(2.5rem, 8vw, 4rem);
  }
  .hero-desc {
    font-size: 1.05rem;
    margin-bottom: 32px;
  }
  
  .features {
    padding: 80px 0;
  }
  .section-title {
    font-size: clamp(2.2rem, 7vw, 3rem);
    margin-bottom: 40px;
  }
  .grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .card {
    padding: 24px;
    border-radius: 20px;
  }

  .screens {
    padding: 60px 0;
  }
  .showcase {
    flex-direction: column;
    padding: 24px;
    gap: 24px;
    border-radius: 24px;
  }
  .nav-links a:not(.btn-nav) {
    display: none;
  }
  .screen-selector {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
  }
  .selector-btn {
    border-left: none;
    border-bottom: 2px solid rgba(255,255,255,0.1);
    padding: 10px 14px;
    font-size: 1.1rem;
    flex: 1;
    text-align: center;
  }
  .selector-btn.active {
    border-left-color: transparent;
    border-bottom-color: var(--teal);
    background: linear-gradient(0deg, rgba(108, 224, 220, 0.1) 0%, transparent 100%);
  }

  .cta {
    padding: 60px 16px 100px;
  }
  .cta-box {
    padding: 40px 20px;
    border-radius: 24px;
  }
}

@media (max-width: 600px) {
  .phone {
    width: 260px;
    border-radius: 36px;
  }
  .phone-shine {
    border-radius: 36px;
  }
  .phone img {
    border-radius: 24px;
  }
  .footer-content {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }
  .footer-links {
    flex-direction: column;
    gap: 16px;
    align-items: center;
  }
  .subpage-header {
    padding: 120px 16px 40px;
  }
  .subpage-title {
    font-size: 2.5rem;
  }
  .subpage-grid {
    margin-bottom: 80px;
  }
  .subarticle {
    padding: 24px;
    border-radius: 20px;
  }
}

