/* ============================================
   GluQuo — Calm Authority Design System
   ============================================ */

/* Dark theme (default) */
:root {
  --bg: #0a0a0f;
  --text-primary: #f0f0f5;
  --text-secondary: #a0a0b0;
  --text-muted: #6b6b7b;
  --accent: #14B8A6;
  --accent-hover: #2dd4bf;
  --accent-light: rgba(20, 184, 166, 0.12);
  --accent-text: #5eead4;
  --surface: #12121a;
  --border: #1e1e2e;
  --footer-bg: #050508;
  --footer-text: #6b6b7b;
  --navbar-bg: rgba(10, 10, 15, 0.85);
  --navbar-shadow: rgba(0, 0, 0, 0.4);
  --mobile-menu-bg: rgba(10, 10, 15, 0.98);
  --cta-bg: #14B8A6;
  --cta-color: #fff;
  --phone-shadow: 0 25px 80px rgba(20, 184, 166, 0.08), 0 8px 30px rgba(0,0,0,0.4);
  --max-width: 1100px;
  --section-padding: 100px;
  --section-padding-mobile: 60px;
}

/* Light theme */
[data-theme="light"] {
  --bg: #ffffff;
  --text-primary: #0f172a;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --accent: #14B8A6;
  --accent-hover: #0d9488;
  --accent-light: #f0fdfa;
  --accent-text: #15803d;
  --surface: #f8fafc;
  --border: #e2e8f0;
  --footer-bg: #0f172a;
  --footer-text: #94a3b8;
  --navbar-bg: rgba(255, 255, 255, 0.85);
  --navbar-shadow: rgba(0, 0, 0, 0.08);
  --mobile-menu-bg: rgba(255, 255, 255, 0.98);
  --cta-bg: #000;
  --cta-color: #fff;
  --phone-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 4px 16px rgba(0, 0, 0, 0.08);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-primary);
  line-height: 1.6;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* Container
   -------------------------------------------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Navbar
   -------------------------------------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--navbar-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  padding: 0;
  transition: box-shadow 0.3s ease;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}

.navbar.scrolled {
  box-shadow: 0 1px 12px var(--navbar-shadow);
}

.navbar .logo {
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.5px;
}

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

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

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

.nav-cta {
  font-size: 14px !important;
  font-weight: 600 !important;
  color: var(--accent) !important;
  border: 1.5px solid var(--accent);
  padding: 6px 18px;
  border-radius: 8px;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-cta:hover {
  background: var(--accent);
  color: #fff !important;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Hero
   -------------------------------------------- */
.hero {
  text-align: center;
  padding: 140px 0 80px;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.hero .container {
  position: relative;
  z-index: 1;
}

/* Hero Video Background */
.hero-video-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 0;
}

.hero-video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-video-bg::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 10, 15, 0.75) 0%,
    rgba(10, 10, 15, 0.55) 30%,
    rgba(10, 10, 15, 0.8) 70%,
    rgba(10, 10, 15, 1) 100%
  );
}

/* In light mode, make the video overlay lighter */
[data-theme="light"] .hero-video-bg::after {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.85) 0%,
    rgba(255, 255, 255, 0.7) 30%,
    rgba(255, 255, 255, 0.9) 70%,
    rgba(255, 255, 255, 1) 100%
  );
}

/* Theme Toggle Button */
.theme-toggle {
  background: none;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  transition: border-color 0.2s ease, color 0.2s ease;
  flex-shrink: 0;
}

.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
  width: 18px;
  height: 18px;
}

/* Show sun in dark mode (click to go light), moon in light mode (click to go dark) */
.theme-toggle .icon-sun { display: block; }
.theme-toggle .icon-moon { display: none; }
[data-theme="light"] .theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: block; }

.hero-badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-text);
  background: var(--accent-light);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
  letter-spacing: 0.3px;
}

.hero h1 {
  font-size: 52px;
  font-weight: 700;
  letter-spacing: -1.5px;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.hero-subhead {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--cta-bg);
  color: var(--cta-color);
  font-size: 15px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.hero-cta svg {
  flex-shrink: 0;
}

.store-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-cta--coming-soon {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  cursor: default;
  opacity: 0.7;
}

.hero-cta--coming-soon:hover {
  transform: none;
  box-shadow: none;
}

.hero-trust {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 16px;
}

/* Phone Showcase
   -------------------------------------------- */
.phone-showcase {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 24px;
  margin-top: 60px;
}

.phone-frame {
  background: #000;
  border-radius: 36px;
  padding: 12px;
  box-shadow: var(--phone-shadow);
  position: relative;
}

.phone-frame .notch {
  width: 100px;
  height: 28px;
  background: #000;
  border-radius: 0 0 18px 18px;
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.phone-frame img {
  border-radius: 26px;
  width: 100%;
  display: block;
  position: relative;
  z-index: 1;
}

.phone-frame.tilted-left {
  transform: rotate(-5deg) translateY(20px);
}

.phone-frame.tilted-right {
  transform: rotate(5deg) translateY(20px);
}

.phone-showcase > .phone-frame:nth-child(2) {
  width: 240px;
}

.phone-showcase > .phone-frame:nth-child(1),
.phone-showcase > .phone-frame:nth-child(3) {
  width: 200px;
}

/* How It Works
   -------------------------------------------- */
.how-it-works {
  background: var(--bg);
  padding: var(--section-padding) 0;
}

.how-it-works h2 {
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 60px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.step {
  text-align: center;
}

.step-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 24px;
}

.step h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.step p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 280px;
  margin: 0 auto;
}

/* Features
   -------------------------------------------- */
.features {
  background: var(--bg);
  padding: var(--section-padding) 0;
}

.features h2 {
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 60px;
}

.feature-block {
  display: flex;
  align-items: center;
  gap: 60px;
  padding: 60px 0;
}

.feature-block:nth-child(even) {
  flex-direction: row-reverse;
}

.feature-block .feature-text {
  flex: 1;
}

.feature-block .feature-image {
  flex-shrink: 0;
  width: 280px;
}

.feature-block .feature-image .phone-frame {
  width: 100%;
}

.feature-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 12px;
}

.feature-block h3 {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.feature-block p {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Trust Strip
   -------------------------------------------- */
.trust-strip {
  background: var(--surface);
  padding: 40px 0;
}

.trust-items {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}

.trust-item svg {
  flex-shrink: 0;
  color: var(--accent);
}

/* Social Proof
   -------------------------------------------- */
.social-proof {
  background: var(--bg);
  padding: var(--section-padding) 0;
  text-align: center;
}

.social-proof h2 {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.rating {
  font-size: 28px;
  color: #f59e0b;
  margin-bottom: 8px;
  letter-spacing: 4px;
}

.rating-text {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

.testimonial-quote {
  font-size: 22px;
  font-style: italic;
  color: var(--text-primary);
  max-width: 600px;
  margin: 0 auto 20px;
  line-height: 1.6;
  font-weight: 400;
}

.testimonial-author {
  font-size: 15px;
  color: var(--text-secondary);
}

/* Final CTA
   -------------------------------------------- */
.final-cta {
  background: var(--bg);
  padding: var(--section-padding) 0;
  text-align: center;
}

.final-cta h2 {
  font-size: 36px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 28px;
  letter-spacing: -0.5px;
}

/* Footer
   -------------------------------------------- */
.footer {
  background: var(--footer-bg);
  padding: 60px 0 30px;
  color: var(--footer-text);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-brand h4 {
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

.footer-brand p {
  color: var(--footer-text);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 8px;
}

.footer-brand a {
  color: var(--accent);
  font-size: 14px;
  transition: opacity 0.2s ease;
}

.footer-brand a:hover {
  opacity: 0.8;
}

.footer-links h4 {
  color: #fff;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  margin-bottom: 16px;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--footer-text);
  font-size: 14px;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 20px;
  text-align: center;
}

.footer-bottom p {
  font-size: 13px;
  color: var(--footer-text);
  line-height: 1.6;
}

.footer-bottom .disclaimer {
  margin-top: 8px;
  font-size: 12px;
  color: #475569;
}

/* Fade-in Animation
   -------------------------------------------- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Subpage Styles
   -------------------------------------------- */
.page-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
  min-height: 100vh;
}

.page-header {
  text-align: center;
  padding-top: 80px;
  margin-bottom: 40px;
}

.page-header h1 {
  font-size: 36px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.page-header p {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.page-container h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 32px 0 12px;
}

.page-container h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 24px 0 8px;
}

.page-container p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.page-container ul,
.page-container ol {
  margin: 0 0 16px 24px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.page-container a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.page-container a:hover {
  color: var(--accent-hover);
}

/* Responsive — Mobile (max-width: 768px)
   -------------------------------------------- */
@media (max-width: 768px) {
  .hero {
    padding: 120px 0 60px;
  }

  .hero h1 {
    font-size: 32px;
    letter-spacing: -1px;
  }

  .hero h1 br {
    display: none;
  }

  .hero-subhead {
    font-size: 16px;
  }

  .phone-showcase > .phone-frame:nth-child(1),
  .phone-showcase > .phone-frame:nth-child(3) {
    display: none;
  }

  .phone-showcase > .phone-frame:nth-child(2) {
    width: 220px;
  }

  .phone-showcase {
    margin-top: 40px;
  }

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

  .feature-block {
    flex-direction: column !important;
    gap: 32px;
    padding: 40px 0;
  }

  .feature-block .feature-image {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
  }

  .feature-block h3 {
    font-size: 26px;
  }

  .trust-items {
    flex-direction: column;
    gap: 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--mobile-menu-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px var(--navbar-shadow);
  }

  .nav-links.active {
    display: flex;
    flex-direction: column;
  }

  .hamburger {
    display: flex;
  }

  .how-it-works,
  .features,
  .social-proof,
  .final-cta {
    padding: var(--section-padding-mobile) 0;
  }

  .how-it-works h2,
  .features h2,
  .social-proof h2,
  .final-cta h2 {
    font-size: 26px;
  }

  .testimonial-quote {
    font-size: 18px;
  }

  .final-cta h2 {
    font-size: 28px;
  }
}

/* Responsive — Tablet (769px to 1024px)
   -------------------------------------------- */
@media (min-width: 769px) and (max-width: 1024px) {
  .hero h1 {
    font-size: 40px;
  }

  .phone-showcase > .phone-frame:nth-child(1),
  .phone-showcase > .phone-frame:nth-child(3) {
    width: 160px;
  }

  .feature-block {
    gap: 30px;
  }

  .feature-block .feature-image {
    width: 240px;
  }

  .feature-block h3 {
    font-size: 28px;
  }
}
