@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');
@import url('./design-tokens.css');

/* ==========================================================================
   RESET & BASE
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  font-family: var(--font-family-body);
  background-color: var(--bg-page);
  color: var(--text-body);
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100vw;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-display);
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.25;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
  outline: none;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ==========================================================================
   BUTTONS & BADGES
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-family-display);
  font-weight: 600;
  font-size: 15px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-smooth);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

/* Primary Header Action Button */
.btn-primary-blue {
  background-color: var(--firetalk-primary);
  color: #ffffff;
  border-radius: var(--radius-sm);
  padding: 10px 20px;
}
.btn-primary-blue:hover {
  background-color: var(--firetalk-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 132, 255, 0.35);
}

/* Outline Login Button */
.btn-outline-blue {
  border: 1.5px solid var(--firetalk-primary);
  color: var(--firetalk-primary);
  background: transparent;
  padding: 9px 24px;
  border-radius: var(--radius-sm);
}
.btn-outline-blue:hover {
  background-color: var(--firetalk-primary-light);
}

/* The High-Converting Coral/Orange Download CTA */
.btn-cta-coral {
  background-color: var(--firetalk-cta);
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-cta);
  position: relative;
  overflow: hidden;
}
.btn-cta-coral:hover {
  background-color: var(--firetalk-cta-hover);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -4px var(--firetalk-cta-shadow);
}
.btn-cta-coral:active {
  background-color: var(--firetalk-cta-active);
  transform: translateY(0);
}
.btn-cta-coral .win-icon {
  width: 17px;
  height: 17px;
  fill: currentColor;
  margin-left: 2px;
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  height: var(--header-height);
  display: flex;
  align-items: center;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

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

.brand-icon {
  width: 38px;
  height: 38px;
  object-fit: contain;
  transition: transform var(--transition-smooth);
}
.brand-logo:hover .brand-icon {
  transform: scale(1.08) rotate(-4deg);
}

.brand-name {
  font-family: var(--font-family-display);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--firetalk-primary);
  display: flex;
  align-items: baseline;
}
.brand-name .brand-dot {
  color: var(--firetalk-flame-end);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-family-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-body);
  position: relative;
  padding: 4px 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--firetalk-primary);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--firetalk-primary);
  transition: width var(--transition-fast);
  border-radius: 2px;
}
.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

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

/* Mobile Hamburger Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  cursor: pointer;
  padding: 8px;
}
.mobile-toggle span {
  width: 24px;
  height: 2px;
  background-color: var(--text-main);
  border-radius: 2px;
  transition: all var(--transition-smooth);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  padding-top: 60px;
  padding-bottom: 50px;
  background-color: #ffffff;
  position: relative;
  overflow: hidden;
}

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

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

.hero-title {
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.12;
  margin-bottom: 20px;
  color: #111827;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-body);
  line-height: 1.5;
  margin-bottom: 20px;
}

.hero-device-note {
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 32px;
}

/* Showcase Graphic (Right Side of Hero) */
.hero-showcase {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-showcase-wrapper {
  position: relative;
  width: 100%;
  max-width: 600px;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-glow-ambient {
  position: absolute;
  inset: -20px;
  border-radius: 40px;
  background: radial-gradient(circle at 50% 50%, rgba(0, 132, 255, 0.32), rgba(217, 38, 169, 0.26), transparent 72%);
  filter: blur(36px);
  z-index: 1;
  pointer-events: none;
  animation: pulseGlowAmbient 5s ease-in-out infinite alternate;
}

@keyframes pulseGlowAmbient {
  0% {
    opacity: 0.7;
    transform: scale(0.97);
  }
  100% {
    opacity: 1;
    transform: scale(1.03);
  }
}

.hero-showcase-img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.4), 0 0 40px rgba(0, 132, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.hero-showcase-wrapper:hover .hero-showcase-img {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 32px 75px -12px rgba(0, 0, 0, 0.5), 0 0 50px rgba(0, 132, 255, 0.28);
}

/* Hero Download Count Bar */
.hero-stat-banner {
  text-align: center;
  padding: 40px 0 30px;
}

.stat-number {
  font-family: var(--font-family-display);
  font-size: 48px;
  font-weight: 800;
  color: var(--firetalk-primary);
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
}

.stat-label {
  color: var(--firetalk-primary);
  font-weight: 700;
  font-size: 40px;
}

/* ==========================================================================
   ALTERNATING FEATURE SECTIONS
   ========================================================================== */
.feature-section {
  padding: 80px 0;
  position: relative;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 64px;
  align-items: center;
}

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

/* The Stylish Dynamic Brush Underline for Headings */
.brush-highlight {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}

.brush-highlight::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 3px;
  width: 100%;
  height: 8px;
  background: linear-gradient(90deg, rgba(6, 182, 212, 0.55), rgba(217, 70, 239, 0.45));
  border-radius: 4px;
  z-index: -1;
  opacity: 0.9;
}

.feature-title {
  font-size: 40px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 24px;
}

.feature-text {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 32px;
  max-width: 480px;
}

/* Feature 3D Showcase Stages */
.feature-stage-container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.feature-stage-visual {
  position: relative;
  width: 100%;
  max-width: 560px;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-glow-ambient {
  position: absolute;
  inset: -16px;
  border-radius: 36px;
  background: radial-gradient(circle at 50% 50%, rgba(0, 212, 255, 0.26), rgba(168, 85, 247, 0.22), transparent 70%);
  filter: blur(32px);
  z-index: 1;
  pointer-events: none;
  animation: pulseGlowAmbient 6s ease-in-out infinite alternate;
}

.feature-showcase-img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.4), 0 0 32px rgba(0, 180, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.feature-stage-visual:hover .feature-showcase-img {
  transform: translateY(-4px);
  box-shadow: 0 28px 65px -10px rgba(0, 0, 0, 0.5), 0 0 45px rgba(0, 180, 255, 0.26);
}

/* ==========================================================================
   COMMUNITY REVIEWS / TESTIMONIALS
   ========================================================================== */
.reviews-section {
  padding: 90px 0 100px;
  background-color: var(--bg-page);
  text-align: center;
}

.reviews-header {
  margin-bottom: 48px;
}

.reviews-title {
  font-size: 38px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.trustpilot-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.trustpilot-star {
  color: #00b67a;
  font-size: 20px;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: left;
}

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-smooth);
}
.review-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.review-headline {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
  line-height: 1.35;
}

.review-author {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
  font-weight: 500;
}

.review-body {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ==========================================================================
   FINAL CTA BANNER & FOOTER
   ========================================================================== */
.footer-cta-wrapper {
  background-color: var(--bg-banner);
  color: #ffffff;
  padding: 80px 0 40px;
}

.footer-cta-content {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 60px;
}

.cta-banner-title {
  font-size: 46px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.cta-banner-subtitle {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 32px;
}

.footer-divider {
  border: none;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.22);
  margin-bottom: 50px;
}

/* Footer Navigation Columns */
.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 32px;
  margin-bottom: 60px;
}

.footer-col-title {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 18px;
}

.footer-link-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link-list a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
  transition: color var(--transition-fast);
}
.footer-link-list a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-bottom-bar {
  padding-top: 24px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
}

/* ==========================================================================
   KEYFRAME ANIMATIONS
   ========================================================================== */
@keyframes floatBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 10px 25px -4px rgba(255, 0, 122, 0.25);
  }
  50% {
    box-shadow: 0 15px 35px 0px rgba(255, 0, 122, 0.45);
  }
}

@keyframes pulseScale {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid,
  .feature-grid,
  .feature-grid.reverse {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-content {
    max-width: 100%;
    text-align: center;
  }

  .hero-title {
    font-size: 42px;
  }

  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-links-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 992px) {
  .nav-links {
    display: none;
  }

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

  .nav-actions .btn-download-trigger,
  .nav-actions .btn-cta-coral {
    display: none;
  }

  .nav-actions .btn-outline-blue {
    padding: 6px 12px;
    font-size: 13px;
    white-space: nowrap;
  }

  .mobile-toggle {
    display: flex;
  }

  .hero-title {
    font-size: 34px;
  }

  .feature-title {
    font-size: 30px;
  }

  .stat-number {
    font-size: 36px;
  }
  .stat-label {
    font-size: 28px;
  }

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

  .footer-links-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-banner-title {
    font-size: 32px;
  }

  .soft-blue-stage {
    height: auto;
    padding: 30px 16px;
  }
}

/* ==========================================================================
   UNIVERSAL DARK MODE OVERRIDES (STYLE.CSS)
   ========================================================================== */
html[data-theme="dark"],
html.dark {
  background-color: var(--bg-page);
  color: var(--text-secondary);
}

html[data-theme="dark"] .main-header,
html.dark .main-header {
  background: var(--bg-surface-translucent);
  border-bottom: 1px solid var(--border-subtle);
}

html[data-theme="dark"] .nav-item,
html.dark .nav-item {
  color: var(--text-secondary);
}

html[data-theme="dark"] .nav-item:hover,
html[data-theme="dark"] .nav-item.active,
html.dark .nav-item:hover,
html.dark .nav-item.active {
  color: var(--text-primary);
  background: var(--bg-surface-hover);
}

html[data-theme="dark"] .soft-blue-stage,
html.dark .soft-blue-stage {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
}

html[data-theme="dark"] .room-directory-card,
html.dark .room-directory-card {
  background: var(--bg-surface-elevated);
  border-color: var(--border-subtle);
  color: var(--text-primary);
}

html[data-theme="dark"] .room-title-link,
html.dark .room-title-link {
  color: var(--text-primary);
}

html[data-theme="dark"] .dm-notify-card,
html.dark .dm-notify-card {
  background: var(--bg-surface-elevated);
  border-color: var(--border-subtle);
  color: var(--text-primary);
}

html[data-theme="dark"] .review-card,
html.dark .review-card {
  background: var(--bg-surface);
  border-color: var(--border-subtle);
}

html[data-theme="dark"] .review-headline,
html.dark .review-headline {
  color: var(--text-primary);
}

html[data-theme="dark"] .review-body,
html.dark .review-body {
  color: var(--text-secondary);
}

html[data-theme="dark"] .footer-cta-wrapper,
html.dark .footer-cta-wrapper {
  background-color: var(--bg-footer);
}

/* Ensure buttons in light mode have solid background so white text is crisp */
.btn-cta-coral,
.btn-download-trigger {
  background: var(--firetalk-cta, #ff573d) !important;
  color: #ffffff !important;
}

.btn-primary {
  background: var(--firetalk-primary, #0084ff) !important;
  color: #ffffff !important;
}
