/* ==========================================================================
   Aesthetic New Tab - Landing Page Stylesheet
   Design System: Glassmorphism Cosmos Theme with Micro-animations
   ========================================================================== */

:root {
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Color Tokens */
  --bg-dark: #0B0F19;
  --bg-card: rgba(17, 24, 39, 0.65);
  --bg-card-hover: rgba(30, 41, 59, 0.75);
  
  --primary: #A855F7;
  --primary-hover: #9333EA;
  --primary-glow: rgba(168, 85, 247, 0.35);
  
  --secondary: #3B82F6;
  --secondary-glow: rgba(59, 130, 246, 0.3);
  
  --accent-cyan: #00F2FE;
  --accent-pink: #EC4899;
  --accent-emerald: #10B981;
  
  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --text-dim: #64748B;
  
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glass-hover: rgba(168, 85, 247, 0.3);
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  --shadow-card: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px rgba(168, 85, 247, 0.25);
  
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Resets */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Background Ambient Glow Orbs */
.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
  animation: floatOrb 18s ease-in-out infinite alternate;
}

.bg-glow-1 {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.4) 0%, rgba(0, 0, 0, 0) 70%);
  top: -150px;
  left: -100px;
}

.bg-glow-2 {
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.35) 0%, rgba(0, 0, 0, 0) 70%);
  top: 40%;
  right: -150px;
  animation-delay: -6s;
}

.bg-glow-3 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.3) 0%, rgba(0, 0, 0, 0) 70%);
  bottom: 5%;
  left: 20%;
  animation-delay: -12s;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, 60px) scale(1.08); }
  100% { transform: translate(-30px, 30px) scale(0.95); }
}

/* Reusable Utilities & Glassmorphism */
.glass {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  transition: all var(--transition-normal);
}

.glass:hover {
  border-color: var(--border-glass-hover);
}

.shadow-blur {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.gradient-text {
  background: linear-gradient(135deg, #A855F7 0%, #3B82F6 50%, #00F2FE 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all var(--transition-fast);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--primary-glow);
  opacity: 0.95;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  border: 1px solid var(--border-glass);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn-large {
  padding: 14px 32px;
  font-size: 1.05rem;
}

/* Header & Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(11, 15, 25, 0.75);
  border-bottom: 1px solid var(--border-glass);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-icon-img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color var(--transition-fast);
}

.nav-link:hover {
  color: var(--text-main);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-select {
  background: rgba(15, 23, 42, 0.8);
  color: var(--text-main);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  padding: 8px 14px;
  font-size: 0.85rem;
  font-family: var(--font-body);
  outline: none;
  cursor: pointer;
}

.lang-select:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

/* Main Layout */
.main-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 24px 60px;
}

/* Hero Section */
.hero-section {
  padding: 40px 0 80px;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.promo-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 24px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border-glass);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--text-main);
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* Interactive Preview Box */
.hero-visual {
  position: relative;
}

.mock-browser {
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.7);
  border: 1px solid var(--border-glass-hover);
}

.browser-bar {
  background: rgba(15, 23, 42, 0.9);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border-glass);
}

.bar-circle {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.bar-circle:nth-child(1) { background: #EF4444; }
.bar-circle:nth-child(2) { background: #F59E0B; }
.bar-circle:nth-child(3) { background: #10B981; }

.browser-screen {
  position: relative;
  background: #0B0F19;
}

.browser-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Interactive Demo Floating Widgets overlay on Hero Visual */
.interactive-overlay {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 280px;
  padding: 18px;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid var(--primary);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  border-radius: var(--radius-md);
}

.demo-title {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent-pink);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Box Breathing Animation Ring Demo */
.breathing-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0;
}

.breathing-ring {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.3) 0%, rgba(59, 130, 246, 0.1) 100%);
  border: 3px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-main);
  animation: boxBreathing 16s ease-in-out infinite;
  box-shadow: 0 0 20px var(--primary-glow);
}

@keyframes boxBreathing {
  0%, 100% { transform: scale(0.85); border-color: var(--secondary); }
  25% { transform: scale(1.25); border-color: var(--primary); }
  50% { transform: scale(1.25); border-color: var(--accent-cyan); }
  75% { transform: scale(0.85); border-color: var(--accent-pink); }
}

.breathing-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 8px;
}

/* Features Section */
.section-heading {
  text-center: text-align: center;
  max-width: 640px;
  margin: 0 auto 60px;
  text-align: center;
}

.section-tag {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 16px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  margin-bottom: 100px;
}

.feature-card {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}

.feature-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
}

.feature-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Interactive Sound / White Noise Play Button */
.audio-demo-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 8px 16px;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.4);
  border-radius: var(--radius-full);
  color: var(--secondary);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.audio-demo-btn:hover {
  background: rgba(59, 130, 246, 0.3);
  transform: translateY(-1px);
}

/* Installation Guide Section */
.install-section {
  margin-bottom: 100px;
}

.install-card {
  padding: 48px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 36px;
}

.step-item {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 24px;
  position: relative;
}

.step-num {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2rem;
  color: var(--primary);
  opacity: 0.6;
  margin-bottom: 8px;
}

.step-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.step-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* FAQ Accordion */
.faq-section {
  margin-bottom: 100px;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.1rem;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.faq-toggle {
  font-size: 1.2rem;
  transition: transform var(--transition-fast);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal), padding var(--transition-normal);
  padding: 0 24px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.faq-item.active .faq-answer {
  max-height: 200px;
  padding: 0 24px 20px;
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-glass);
  padding: 40px 24px;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.9rem;
  position: relative;
  z-index: 1;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 16px;
}

.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--text-main);
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .interactive-overlay {
    position: static;
    margin-top: 20px;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .nav {
    display: none;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .install-card {
    padding: 24px;
  }
}
