/* Import Google Fonts (Outfit & Inter) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* CSS Custom Properties / Design System */
:root {
  /* Color Palette (HSL) */
  --bg-dark: hsl(240, 10%, 3.9%);
  --bg-card: hsla(240, 10%, 7%, 0.6);
  --bg-card-hover: hsla(240, 10%, 10%, 0.8);
  --border-color: hsla(240, 5.9%, 90%, 0.08);
  --border-color-hover: hsla(240, 5.9%, 90%, 0.15);
  
  --text-primary: hsl(0, 0%, 98%);
  --text-secondary: hsl(240, 5%, 65%);
  --text-muted: hsl(240, 5%, 45%);
  
  --accent-primary: hsl(263, 70%, 50%); /* Violet */
  --accent-primary-hover: hsl(263, 80%, 58%);
  --accent-primary-glow: hsla(263, 70%, 50%, 0.35);
  
  --accent-secondary: hsl(142, 71%, 45%); /* Emerald */
  --accent-secondary-hover: hsl(142, 80%, 52%);
  
  --accent-blue: hsl(217, 91%, 56%); /* Chrome Web Store Style blue */
  --accent-blue-hover: hsl(217, 100%, 62%);
  --accent-blue-glow: hsla(217, 91%, 56%, 0.3);

  /* Fonts */
  --font-title: 'Outfit', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --container-width: 1100px;
}

/* Base Reset & Settings */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  /* Ambient glow background */
  background-image: 
    radial-gradient(circle at 10% 20%, hsla(263, 70%, 50%, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, hsla(142, 71%, 45%, 0.05) 0%, transparent 40%);
  background-attachment: fixed;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: hsl(240, 5%, 15%);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: hsl(240, 5%, 25%);
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-title);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

p {
  color: var(--text-secondary);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

/* Layout Utilities */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 8rem 0 4rem;
}

/* Gradient Text */
.gradient-text {
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--accent-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-emerald {
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--accent-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  background-color: hsla(240, 10%, 3.9%, 0.7);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 4.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
}

.logo-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-primary);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--accent-primary);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.nav-links a:hover {
  color: var(--text-primary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--accent-primary);
  color: var(--text-primary);
  box-shadow: 0 4px 20px var(--accent-primary-glow);
}

.btn-primary:hover {
  background-color: var(--accent-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px hsla(263, 70%, 50%, 0.5);
}

.btn-chrome {
  background-color: var(--bg-dark);
  border: 1px solid var(--border-color-hover);
  color: var(--text-primary);
}

.btn-chrome:hover {
  border-color: var(--accent-blue);
  background-color: hsla(217, 91%, 56%, 0.05);
  box-shadow: 0 4px 15px var(--accent-blue-glow);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.btn-secondary:hover {
  border-color: var(--border-color-hover);
  color: var(--text-primary);
  background-color: rgba(255, 255, 255, 0.02);
}

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  border-radius: 6px;
}

/* Hero Section */
.hero {
  text-align: center;
  position: relative;
  overflow: hidden;
  padding-top: 10rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: hsla(263, 70%, 50%, 0.1);
  border: 1px solid hsla(263, 70%, 50%, 0.2);
  color: hsl(263, 90%, 75%);
  padding: 0.4rem 1rem;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 2rem;
  animation: fadeInDown 0.8s ease-out;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  background-color: hsl(263, 90%, 70%);
  border-radius: 50%;
  animation: pulseGlow 2s infinite;
}

.hero-title {
  font-size: 4rem;
  line-height: 1.1;
  max-width: 800px;
  margin: 0 auto 1.5rem;
  animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle {
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto 2.5rem;
  color: var(--text-secondary);
  animation: fadeInUp 1s ease-out;
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 1rem;
  animation: fadeInUp 1.2s ease-out;
}

/* Products Section */
.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-top: 3rem;
}

@media (min-width: 768px) {
  .products-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

/* Product Cards (Glassmorphism & Neon Glow) */
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 24px;
  padding: 3rem;
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-color-hover);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
  transform: translateY(-4px);
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(800px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(255, 255, 255, 0.04), transparent 40%);
  z-index: 1;
  pointer-events: none;
}

.product-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.35rem 0.75rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

.tag-active {
  background-color: hsla(142, 71%, 45%, 0.1);
  border: 1px solid hsla(142, 71%, 45%, 0.2);
  color: hsl(142, 90%, 70%);
}

.tag-upcoming {
  background-color: hsla(240, 5%, 50%, 0.1);
  border: 1px solid hsla(240, 5%, 50%, 0.2);
  color: var(--text-secondary);
}

.product-header h3 {
  font-size: 2.25rem;
  margin-bottom: 0.75rem;
}

.product-description {
  font-size: 1.05rem;
  margin-bottom: 2rem;
  max-width: 500px;
}

/* Feature Checklist */
.product-features {
  list-style: none;
  margin-bottom: 2.5rem;
}

.product-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.feature-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--accent-secondary);
}

/* Purchase Simulation Block */
.pricing-block {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.pricing-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.price-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.price-value {
  font-family: var(--font-title);
  font-size: 1.75rem;
  font-weight: 800;
}

.price-value span {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.pricing-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Upcoming Card specifics (Blurred) */
.product-upcoming {
  border-style: dashed;
  background: hsla(240, 10%, 5%, 0.4);
  opacity: 0.8;
}

.product-upcoming:hover {
  opacity: 1;
}

.pulse-indicator {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--text-muted);
  margin-right: 0.5rem;
  animation: pulsePulse 1.5s infinite;
}

/* Philosophy Section */
.philosophy {
  position: relative;
  text-align: center;
}

.philosophy-card {
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem 3rem;
  background: linear-gradient(185deg, hsla(263, 70%, 50%, 0.03), hsla(142, 71%, 45%, 0.02));
  border: 1px solid var(--border-color);
  border-radius: 32px;
  backdrop-filter: blur(8px);
}

.philosophy-tag {
  font-family: var(--font-title);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-primary);
  margin-bottom: 1.5rem;
}

.philosophy-title {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.philosophy-text {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

/* Legal Pages Styling (privacy.html & terms.html) */
.legal-header {
  padding-top: 10rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 4rem;
}

.legal-title {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.legal-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.legal-content {
  max-width: 800px;
  margin: 0 auto 8rem;
}

.legal-content h2 {
  font-size: 1.75rem;
  margin: 2.5rem 0 1rem;
}

.legal-content p {
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
}

.legal-content ul {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.legal-content li {
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

/* Footer */
footer {
  border-top: 1px solid var(--border-color);
  padding: 4rem 0;
  margin-top: 8rem;
  background-color: hsla(240, 10%, 2%, 0.8);
}

.footer-container {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-container {
    flex-direction: row;
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-brand .logo {
  font-size: 1.25rem;
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--text-primary);
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.02);
  padding-top: 2rem;
  width: 100%;
}

/* Keyframe Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulseGlow {
  0%, 100% {
    opacity: 0.6;
    box-shadow: 0 0 4px var(--accent-primary);
  }
  50% {
    opacity: 1;
    box-shadow: 0 0 14px var(--accent-primary);
  }
}

@keyframes pulsePulse {
  0%, 100% {
    transform: scale(1);
    background-color: var(--text-muted);
  }
  50% {
    transform: scale(1.2);
    background-color: var(--accent-primary);
  }
}
