/*
* Pupsify Landing Page Styles
* Based on the new Pupsify logo color scheme (orange ring, mint background, cream face, dark details)
*/

/* Local Nunito font (self-hosted, GDPR-friendly) */
@font-face {
  font-family: 'Nunito';
  src: url('../fonts/Nunito-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Nunito';
  src: url('../fonts/Nunito-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Nunito';
  src: url('../fonts/Nunito-900.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* Patrick Hand font for extension mock (local, GDPR-friendly) */
@font-face {
  font-family: 'Patrick Hand';
  src: url('../fonts/PatrickHand-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Main colors from new logo */
  --primary-mint: #c5e5dd;
  --secondary-orange: #f5894a;
  --accent-cream: #f5ebd7;
  --accent-dark: #3d3d3d;

  /* Legacy aliases for compatibility */
  --primary-blue: #c5e5dd;
  --accent-brown: #3d3d3d;
  --cloud-yellow: #f5ebd7;

  /* Additional colors */
  --text-dark: #3d3d3d;
  --text-light: #ffffff;
  --background-light: #fafaf8;
  --background-dark: #3d3d3d;

  /* Functional colors */
  --success: #4caf50;
  --warning: #ffc107;
  --error: #ff5252;

  /* Font sizes */
  --font-xs: 0.75rem;
  --font-sm: 0.875rem;
  --font-md: 1rem;
  --font-lg: 1.25rem;
  --font-xl: 1.5rem;
  --font-2xl: 2rem;
  --font-3xl: 2.5rem;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  /* Border radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);

  /* Transitions */
  --transition-normal: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Nunito', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--background-light);
  overflow-x: hidden;
}

a {
  color: var(--primary-blue);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--secondary-orange);
}

img {
  max-width: 100%;
  height: auto;
}

/* Layout */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-md);
  position: relative;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-md);
}

h1 {
  font-size: var(--font-3xl);
}

h2 {
  font-size: var(--font-2xl);
  text-align: center;
  margin-bottom: var(--space-xl);
}

h3 {
  font-size: var(--font-xl);
}

p {
  margin-bottom: var(--space-md);
}

/* Button Styles */
.btn {
  display: inline-block;
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  outline: none;
}

.primary-btn {
  background: linear-gradient(135deg, var(--secondary-orange), #e07a3d);
  color: var(--text-light);
  position: relative;
  overflow: hidden;
  z-index: 1;
  padding: 0.9rem 1.8rem;
  border-radius: 50px;
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  border: none;
  box-shadow: 0 4px 15px rgba(245, 137, 74, 0.3);
}

.primary-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #e07a3d, #d06a2d);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 50px;
}

.primary-btn:hover {
  color: var(--text-light);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(245, 137, 74, 0.4);
}

.primary-btn:hover::before {
  opacity: 1;
}

.secondary-btn {
  background: transparent;
  color: var(--secondary-orange);
  border: 2px solid var(--secondary-orange);
  position: relative;
  overflow: hidden;
  z-index: 1;
  padding: calc(0.9rem - 2px) 1.8rem;
  border-radius: 50px;
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.secondary-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--secondary-orange), #e07a3d);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 50px;
}

.secondary-btn:hover {
  color: white;
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(245, 137, 74, 0.3);
}

.secondary-btn:hover::before {
  opacity: 1;
}

/* Header */
header {
  background: linear-gradient(135deg, var(--primary-mint), #d8f0e8);
  padding: var(--space-lg) 0;
  text-align: center;
  color: var(--accent-dark);
}

.logo-container {
  margin-bottom: var(--space-md);
}

.logo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
}

.tagline {
  font-size: var(--font-lg);
  margin-bottom: var(--space-md);
}

/* Main Navigation */
.main-nav {
  margin-top: var(--space-md);
}

.main-nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  gap: var(--space-xl);
}

.main-nav a {
  color: var(--accent-dark);
  font-weight: 700;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  transition: background-color 0.3s ease;
}

.main-nav a:hover {
  background-color: rgba(61, 61, 61, 0.1);
  color: var(--secondary-orange);
}

/* Hero Section */
.hero {
  padding: var(--space-3xl) 0;
  background: linear-gradient(135deg, #fafaf8 0%, var(--primary-mint) 100%);
  overflow: hidden;
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

/* Ribbon on mock to indicate Chrome extension */
.mock-ribbon {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 12;
  background: linear-gradient(135deg, var(--accent-cream), #ede3cf);
  color: var(--accent-dark);
  padding: 6px 12px;
  border-radius: 9999px;
  font-weight: 800;
  font-size: 0.85rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  pointer-events: none;
}

.hero-content {
  max-width: 600px;
}

.main-headline {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: var(--space-lg);
  color: var(--text-dark);
  font-weight: 900;
  background: linear-gradient(90deg, #2d3748 0%, #4a5568 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subheadline {
  font-size: 1.5rem;
  color: #4a5568;
  margin-bottom: var(--space-2xl);
  font-weight: 400;
}

.hero-screenshot {
  position: relative;
  z-index: 2;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-radius: 16px;
  overflow: hidden;
  transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
  transition: transform 0.3s ease;
  max-width: 450px;
  margin: 0 auto;
}

.hero-screenshot:hover {
  transform: perspective(1000px) rotateY(0) rotateX(0);
}

.hero-screenshot img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
}

/* Extension mockup (HTML/CSS showcase) */
/* Extension mockup (HTML/CSS showcase) – scoped to .ext-mock */
.ext-mock {
  width: min(360px, 100%);
  background: linear-gradient(
    to bottom,
    var(--primary-mint),
    var(--accent-cream),
    var(--secondary-orange)
  );
  border-radius: 14px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  border: 3px solid var(--secondary-orange);
  font-family:
    'Patrick Hand',
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
}
.ext-mock .container {
  width: 100%;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ext-mock header {
  display: flex;
  flex-direction: column;
}
.ext-mock .title-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
  margin-bottom: 6px;
  position: relative;
}
.ext-mock .title-bar::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    rgba(139, 69, 19, 0) 0%,
    rgba(139, 69, 19, 0.35) 35%,
    rgba(139, 69, 19, 0.8) 50%,
    rgba(139, 69, 19, 0.35) 65%,
    rgba(139, 69, 19, 0) 100%
  );
}
.ext-mock .logo-container {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}
.ext-mock .logo {
  width: 100%;
  height: auto;
  display: block;
}
.ext-mock .title-wrapper {
  flex-grow: 1;
  text-align: left;
  padding: 0 5px;
}
.ext-mock h1 {
  font-size: 24px;
  font-weight: bold;
  color: var(--accent-dark);
  margin-bottom: 0;
  line-height: 1.1;
}
.ext-mock .brand-claim {
  font-size: 12px;
  color: var(--accent-dark);
  margin-top: 2px;
}
.ext-mock .brand-claim a {
  color: var(--secondary-orange);
  text-decoration: none;
}
.ext-mock .brand-claim a:hover {
  text-decoration: underline;
}

.ext-mock .lang-selector {
  position: relative;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}
.ext-mock .current-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 29px;
  height: 19px;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}
.ext-mock .flag-dropdown {
  position: absolute;
  top: 32px;
  right: 0;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  padding: 5px;
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  z-index: 5;
}
.ext-mock .lang-selector:hover .flag-dropdown {
  display: grid;
}
.ext-mock .lang-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 16px;
  border-radius: 3px;
  font-size: 14px;
}

.ext-mock .controls {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ext-mock .toggle-details {
  background: none;
  border: none;
  font-size: 20px;
  margin-right: 6px;
}
.ext-mock .icon-btn {
  background: white;
  border: 2px solid var(--accent-dark);
  border-radius: 8px;
  padding: 4px 8px;
  cursor: default;
}
.ext-mock .icon-btn.disabled {
  opacity: 0.5;
  filter: grayscale(0.6);
  pointer-events: auto; /* allow hover for tooltip */
}
.ext-mock .volume-label {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  column-gap: 8px;
  background: rgba(255, 255, 255, 0.7);
  border: 2px solid var(--accent-dark);
  border-radius: 8px;
  padding: 6px 8px;
  flex: 1;
}
.ext-mock .volume-label.disabled {
  opacity: 0.6;
}
.ext-mock input[disabled] {
  pointer-events: none;
}

/* Simple tooltip for disabled controls */
.ext-mock [data-tip] {
  position: relative;
}
.ext-mock [data-tip]:hover::after {
  content: attr(data-tip);
  position: absolute;
  top: -34px;
  left: 0;
  transform: translateY(-2px);
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  z-index: 20;
}
.ext-mock [data-tip]:hover::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 10px;
  border-width: 6px;
  border-style: solid;
  border-color: transparent transparent rgba(0, 0, 0, 0.85) transparent;
  z-index: 20;
}
.ext-mock .volume-label > #volume-label {
  font-size: 12px;
  color: var(--accent-dark);
}
.ext-mock input[type='range'] {
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 4px;
  background: linear-gradient(90deg, #ffe4b5 0%, #f5deb3 100%);
  outline: none;
}
.ext-mock input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--secondary-orange);
}
.ext-mock input[type='range']::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: none;
  border-radius: 50%;
  background: var(--secondary-orange);
}
.ext-mock .volume-value {
  font-size: 12px;
  color: var(--accent-dark);
  min-width: 36px;
  text-align: right;
}

.ext-mock .sound-buttons h2 {
  text-align: left;
  margin: 4px 0 8px;
  font-size: 16px;
  color: var(--accent-dark);
}
.ext-mock .button-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.ext-mock .sound-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 80px;
  padding: 12px 4px;
  min-width: 0;
  border: 2px solid var(--accent-dark);
  border-radius: 12px;
  background: linear-gradient(to bottom, var(--accent-cream), #ede3cf);
  color: var(--accent-dark);
  font-weight: 700;
  font-size: 14px;
}
.ext-mock .button-icon {
  font-size: 24px;
}
.ext-mock .sound-button.playing {
  background: linear-gradient(135deg, var(--secondary-orange), #e07a3d);
  transform: translateY(1px);
  border-color: var(--accent-dark);
  color: white;
}

.ext-mock .combined-panel {
  margin-top: 6px;
}
.ext-mock .stats-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, #fff8f7 0%, #fff0ee 100%);
  padding: 10px 12px;
  position: relative;
}
.ext-mock .counter-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  padding: 5px 12px;
}
.ext-mock .puff-counter-large {
  font-size: 32px;
  font-weight: bold;
  color: var(--secondary-orange);
  line-height: 1;
}
.ext-mock .puff-label {
  font-size: 14px;
  color: var(--accent-dark);
  margin-top: 2px;
}
.ext-mock .level-badge {
  background-color: var(--accent-cream);
  font-size: 15px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 2px solid var(--accent-dark);
}

.privacy-note {
  margin-top: var(--space-xl);
  font-size: 0.9rem;
  color: #718096;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Language Switcher */
.language-switcher {
  color: var(--accent-dark);
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.language-switcher:hover {
  color: var(--secondary-orange);
}

.language-switcher.active {
  color: var(--secondary-orange);
  text-decoration: underline;
}

.cta-buttons {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

/* Small badge for new features in hero */
.new-feature-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 10px;
  padding: 6px 10px;
  border-radius: 9999px;
  background: rgba(248, 157, 81, 0.12);
  color: #b05a17;
  font-weight: 700;
  font-size: 0.8rem;
  border: 1px solid rgba(248, 157, 81, 0.35);
}

/* Screenshot overlay badge */
.screenshot-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: linear-gradient(135deg, #ff9a3d, #ffcc80);
  color: #4a2d00;
  padding: 6px 10px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 800;
  box-shadow: var(--shadow-sm);
  z-index: 10; /* ensure on top of mock */
  pointer-events: none; /* do not block interactions below */
}

/* Compact compatibility strip below CTA */
.compat-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 10px;
  color: #4a5568;
  font-size: 0.95rem;
}
.compat-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 9999px;
  background: #f7fafc;
  border: 1px solid #e2e8f0;
}

/* Animations and decorative elements */
.emoji {
  display: inline-block;
  margin-right: 8px;
  font-style: normal;
}

.floating {
  animation: float 6s ease-in-out infinite;
  max-width: 200px;
  transition: transform 0.3s ease;
}

.floating:hover {
  transform: scale(1.05);
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
  100% {
    transform: translateY(0px);
  }
}

.bubble {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  animation: bubbleFloat 10s ease-in-out infinite;
}

.bubble-1 {
  width: 30px;
  height: 30px;
  top: 20%;
  left: 10%;
  background: rgba(98, 200, 232, 0.3);
  animation-delay: 0s;
}

.bubble-2 {
  width: 40px;
  height: 40px;
  top: 60%;
  right: 20%;
  background: rgba(248, 157, 81, 0.3);
  animation-delay: 2s;
}

.bubble-3 {
  width: 25px;
  height: 25px;
  bottom: 30%;
  left: 30%;
  background: rgba(139, 94, 60, 0.3);
  animation-delay: 4s;
}

@keyframes bubbleFloat {
  0% {
    transform: translateY(0) translateX(0);
  }
  33% {
    transform: translateY(-15px) translateX(10px);
  }
  66% {
    transform: translateY(10px) translateX(-15px);
  }
  100% {
    transform: translateY(0) translateX(0);
  }
}

/* Features Section */
.features {
  padding: var(--space-3xl) 0;
  background: white;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
}

.feature-card {
  background: white;
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  text-align: center;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  border: 1px solid #edf2f7;
  opacity: 1;
  transform: translateY(0);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
  display: inline-block;
}

.feature-card h3 {
  margin-bottom: var(--space-sm);
  color: var(--text-dark);
}

/* How It Works Section */
.how-it-works {
  padding: var(--space-3xl) 0;
  background: #f8fafc;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-2xl);
  margin: var(--space-2xl) 0;
}

.step {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}

.step-number {
  background: var(--secondary-orange);
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 4px;
}

.step-content h3 {
  margin-bottom: var(--space-xs);
  color: var(--text-dark);
}

.cta-container {
  text-align: center;
  margin-top: var(--space-2xl);
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    margin: 0 auto;
    max-width: 100%;
  }

  .hero-screenshot {
    max-width: 375px; /* Reduced by 25% from 500px */
    margin: var(--space-2xl) auto 0;
  }

  .main-headline {
    font-size: 2.8rem;
  }

  .subheadline {
    font-size: 1.3rem;
  }
}

@media (max-width: 640px) {
  .main-headline {
    font-size: 2.2rem;
  }

  .subheadline {
    font-size: 1.1rem;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
  }
}

/* ===== DEMO SECTION ===== */
.demo-section {
  margin: 2rem 0 3rem 0;
  padding: 2.5rem 1.5rem;
  background: linear-gradient(135deg, #f1f9fd 80%, #e8f5fc 100%);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(98, 200, 232, 0.12);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.demo-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-blue), var(--secondary-orange));
}

.demo-subtitle {
  color: var(--accent-brown);
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.demo-note {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: #666;
  font-style: italic;
}
.button-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.5rem;
}
.sound-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  min-height: 100px;
  padding: 1.2rem 1.5rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--secondary-orange), #e07a3d);
  color: var(--text-light);
  font-size: 1rem;
  font-family: inherit;
  font-weight: 700;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(245, 137, 74, 0.2);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  margin-bottom: 0.5rem;
  position: relative;
  overflow: hidden;
}

.sound-button::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sound-button:hover::after {
  opacity: 1;
}
.sound-button .button-icon {
  font-size: 2rem;
  margin-bottom: 0.3rem;
}
.sound-button:active {
  background: linear-gradient(135deg, #e07a3d, #d06a2d);
  transform: scale(0.96);
  box-shadow: 0 2px 8px rgba(245, 137, 74, 0.3);
}
.sound-button[disabled],
.sound-button:disabled {
  background: #e0e0e0;
  color: #aaa;
  cursor: not-allowed;
  opacity: 0.4;
  box-shadow: none;
  transform: none;
}

.sound-button[disabled]::after,
.sound-button:disabled::after {
  display: none;
}

/* Loading state for buttons */
.sound-button.loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}

.sound-button.loading::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: button-loading 0.8s linear infinite;
}

@keyframes button-loading {
  to {
    transform: rotate(360deg);
  }
}

/* Playing state for sound buttons */
.sound-button.playing {
  transform: scale(0.96);
  box-shadow: 0 2px 8px rgba(245, 137, 74, 0.3);
  background: linear-gradient(135deg, #e07a3d, #d06a2d);
}

/* Animation for elements that appear on scroll */
.feature-card {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease,
    box-shadow 0.3s ease;
}

.feature-card.animate {
  opacity: 1;
  transform: translateY(0);
}

/* Language badge active state */
.language-badge span.active {
  transform: scale(1.15);
  box-shadow:
    0 0 0 2px white,
    0 0 0 4px var(--secondary-orange);
  background: var(--secondary-orange);
}

/* Confetti container */
.confetti-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1000;
}

/* Accessibility focus styles */
button:focus,
a:focus {
  outline: 3px solid rgba(245, 137, 74, 0.5);
  outline-offset: 2px;
}

button:focus:not(:focus-visible) {
  outline: none;
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .feature-card,
  .extension-showcase > *,
  .demo-section {
    opacity: 1 !important;
    transform: none !important;
  }
}
@media (max-width: 600px) {
  .button-grid {
    flex-direction: column;
    align-items: stretch;
  }
  .sound-button {
    width: 100%;
    min-width: unset;
  }
}

.features {
  padding: var(--space-3xl) 0;
  background-color: var(--background-light);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--space-xl);
}

.feature-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-blue), var(--secondary-orange));
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  border-color: transparent;
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1.2rem;
  display: inline-flex;
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, rgba(197, 229, 221, 0.3), rgba(245, 137, 74, 0.1));
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
  background: linear-gradient(135deg, var(--secondary-orange), #e07a3d);
  color: white;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.future.feature-card {
  background: linear-gradient(135deg, #f7f7f7, #eaeaea);
  border: 2px dashed #ccc;
}

/* Extension Showcase Section */
.sound-section {
  padding: var(--space-3xl) 0;
  background: linear-gradient(135deg, #fff9eb, #fcf0db);
  text-align: center;
}

.extension-intro {
  max-width: 800px;
  margin: 0 auto var(--space-2xl);
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-dark);
}

.extension-showcase {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--space-xl);
  gap: var(--space-2xl);
  background: white;
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.extension-showcase::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: linear-gradient(to bottom, var(--primary-blue), var(--secondary-orange));
}

.extension-image {
  flex: 1;
  min-width: 300px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.showcase-img {
  max-width: 200px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  border-radius: 30px;
  animation: float 6s ease-in-out infinite;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  border: 4px solid white;
}

.showcase-img:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.language-badge {
  display: flex;
  gap: 10px;
  margin-top: 1.5rem;
}

.language-badge span {
  background: var(--secondary-orange);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.9rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: default;
}

.language-badge span:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.extension-badge {
  margin-top: var(--space-lg);
}

.extension-badge.coming-soon {
  background: linear-gradient(135deg, var(--primary-blue), var(--secondary-orange));
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  color: var(--text-light);
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.coming-soon-badge {
  font-size: var(--font-lg);
  text-align: center;
}

.extension-features {
  flex: 1;
  min-width: 300px;
  text-align: left;
}

.extension-features h3 {
  margin-bottom: var(--space-lg);
  color: var(--accent-brown);
}

.feature-list {
  list-style: none;
  margin-bottom: var(--space-xl);
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.feature-list li {
  margin-bottom: 1rem;
  padding: 0.8rem 1rem 0.8rem 2.5rem;
  position: relative;
  background: #f8f9fa;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.feature-list li:hover {
  background: #f1f8ff;
  transform: translateX(5px);
}

.feature-list li::before {
  content: '';
  position: absolute;
  left: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* Specific icons for each list item */
.feature-list li:nth-child(1)::before {
  content: '🔊';
}
.feature-list li:nth-child(2)::before {
  content: '🌍';
}
.feature-list li:nth-child(3)::before {
  content: '⚡';
}
.feature-list li:nth-child(4)::before {
  content: '🔔';
}
.feature-list li:nth-child(5)::before {
  content: '🎉';
}
.feature-list li:nth-child(6)::before {
  content: '📱';
}

.extension-cta {
  margin-top: var(--space-xl);
}

/* Contact Section */
.contact-section {
  padding: var(--space-3xl) 0;
  background: linear-gradient(135deg, #f1f9fd, var(--background-light));
  text-align: center;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  padding: var(--space-lg);
  background-color: white;
  border-radius: var(--radius-lg);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-form iframe {
  width: 100%;
  border: none;
  overflow: hidden;
  min-height: 300px;
  border-radius: var(--radius-md);
}

/* Newsletter Section */
.newsletter {
  padding: var(--space-3xl) 0;
  background: linear-gradient(135deg, #e8f5fc, #d1ecf9);
  text-align: center;
}

.newsletter-form {
  display: flex;
  max-width: 500px;
  margin: 0 auto;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.newsletter-form input {
  flex: 1;
  padding: var(--space-md);
  border: 1px solid #ddd;
  border-radius: var(--radius-md);
  font-family: inherit;
}

.form-note {
  font-size: var(--font-sm);
  color: #777;
}

/* Footer */
footer {
  background: #1a202c;
  color: #e2e8f0;
  padding: var(--space-3xl) 0 0;
  margin-top: var(--space-3xl);
  position: relative;
  overflow: hidden;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: var(--space-2xl);
  padding-bottom: var(--space-2xl);
  position: relative;
  z-index: 2;
}

.footer-logo {
  flex: 1;
  min-width: 250px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-logo img {
  max-width: 150px;
  height: auto;
  margin-bottom: var(--space-md);
}

.footer-logo p {
  color: #a0aec0;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-top: var(--space-md);
}

.footer-links {
  flex: 2;
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  min-width: 300px;
}

.footer-nav {
  display: flex;
  gap: var(--space-md);
  align-items: center;
  flex-wrap: wrap;
}

.footer-nav a {
  color: #e2e8f0;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.footer-nav a:hover {
  color: var(--secondary-orange);
}

.divider {
  color: #4a5568;
  font-weight: 300;
}

.footer-cta .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.footer-cta .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.footer-copyright {
  border-top: 1px solid #2d3748;
  padding-top: var(--space-lg);
  margin-top: var(--space-lg);
  color: #a0aec0;
  font-size: 0.9rem;
}

/* Footer responsive adjustments */
@media (max-width: 1024px) {
  .footer-content {
    flex-direction: column;
    gap: var(--space-xl);
  }

  .footer-logo,
  .footer-links {
    width: 100%;
    max-width: 100%;
  }

  .footer-cta .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Remove the duplicate copyright section */
.copyright {
  display: none;
}

/* Legacy styles cleanup */
.footer-img {
  display: none;
}

.link-group {
  display: none;
}

.link-group li {
  margin-bottom: var(--space-sm);
}

.link-group a {
  color: #ccc;
  transition: color 0.3s ease;
}

.link-group a:hover {
  color: var(--secondary-orange);
}

.copyright {
  text-align: center;
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: var(--font-sm);
}

/* Responsive Design */
@media (max-width: 768px) {
  h1 {
    font-size: var(--font-2xl);
  }

  h2 {
    font-size: var(--font-xl);
  }

  .hero .container {
    flex-direction: column;
  }

  .hero-content {
    padding-right: 0;
    margin-bottom: var(--space-xl);
    text-align: center;
  }

  .hero h2 {
    text-align: center;
  }

  .cta-buttons {
    justify-content: center;
  }

  .extension-showcase {
    flex-direction: column;
  }

  .extension-features {
    text-align: center;
  }

  .feature-list li {
    text-align: left;
  }

  .extension-cta {
    display: flex;
    justify-content: center;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .footer-content {
    flex-direction: column;
  }

  .footer-logo {
    align-items: center;
    text-align: center;
  }

  .main-nav ul {
    gap: var(--space-md);
  }

  .contact-form {
    padding: var(--space-md);
  }
}

/* ===== COOKIE CONSENT BANNER ===== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: white;
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  padding: var(--space-md);
  transform: translateY(100%);
  transition: transform var(--transition-normal);
}

.cookie-banner.visible {
  transform: translateY(0);
}

.cookie-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  gap: var(--space-lg);
}

.cookie-text h3 {
  margin-bottom: var(--space-sm);
  font-size: 1.2rem;
}

.cookie-text p {
  font-size: 0.9rem;
  color: #555;
}

.cookie-buttons {
  display: flex;
  gap: var(--space-md);
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .cookie-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-buttons {
    width: 100%;
    justify-content: space-between;
  }
}
