/* ==========================================================================
   Google AI Edge Foresight Landing Page Stylesheet
   ========================================================================== */

/* --- CSS Variables & Design Tokens --- */
:root {
  --bg-hero: #00303A;
  --bg-hero-deep: #00303A;
  --bg-dark: #1F1F1F;
  --bg-darker: #161616;
  --bg-card: #282A2C;
  --bg-card-light: #E9EEF6;

  --text-white: #FFFFFF;
  --text-primary: #FFFFFF;
  --text-secondary: #C4C7C5;
  --text-muted: #8E918F;
  --text-dark: #1F1F1F;
  --text-link: #7FCFFF;

  --accent-green: #86E450;
  --accent-mint: #81C995;
  --accent-cyan: #5AB3F0;
  --accent-blue: #3186FF;
  --accent-teal: #004D5A;
  --accent-teal-hover: #006374;
  --accent-pink: #F28B82;
  --accent-orange: #FFA726;
  --accent-purple: #C58AF9;

  --border-glass: rgba(255, 255, 255, 0.12);
  --border-light: rgba(255, 255, 255, 0.08);
  --border-green: rgba(134, 228, 80, 0.4);

  --font-display: 'Google Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-body: 'Google Sans Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 999px;

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-primary);
  background-color: var(--bg-hero);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  padding: 0 !important;
  background-color: var(--bg-hero);
  color: var(--text-primary);
  overflow: initial !important;
  line-height: 1.5;
}

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

a:focus {
  outline: none;
  text-decoration: none;
}

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

/* ==========================================================================
   Always Visible Navigation Header
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 72px;
  z-index: 1000;
  transition: background-color var(--transition-smooth), backdrop-filter var(--transition-smooth), border-color var(--transition-smooth);
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: rgba(0, 48, 58, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-glass);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.header-container {
  max-width: 1400px;
  height: 100%;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.header-logo-icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
  transition: transform var(--transition-bounce);
}

.brand-link:hover .header-logo-icon {
  transform: rotate(15deg) scale(1.08);
}

.header-brand-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.2px;
  color: var(--text-white);
}

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

.nav-link {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

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

.btn-download-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  background-color: var(--accent-teal);
  color: var(--text-white);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.9rem;
  transition: background-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-download-nav:hover {
  background-color: var(--accent-teal-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 77, 90, 0.4);
}

/* Download icon is shown only in the compact mobile button. */
.btn-download-icon {
  display: none;
}

/* ==========================================================================
   Hero Section with Interactive Universe
   ========================================================================== */
.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 750px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 60%, rgba(0, 77, 90, 0.35) 0%, rgba(0, 48, 58, 0.6) 45%, var(--bg-hero) 80%), var(--bg-hero);
  overflow: hidden;
}

/* Subtle bottom fade overlay for seamless blending with features section */
.hero-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 160px;
  background: linear-gradient(180deg, transparent 0%, var(--bg-hero) 100%);
  pointer-events: none;
  z-index: 5;
}

/* Canvas takes entire hero background */
.universe-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: auto;
}

/* Hero Content */
.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 1020px;
  padding: 0 24px;
  margin-top: -300px; /* Aligns text gracefully above the central star */
  pointer-events: none; /* Let pointer pass to canvas for tilt */
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -0.5px;
  color: var(--text-white);
  margin-bottom: 16px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
  pointer-events: auto;
}

.hero-subtext {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
  pointer-events: auto;
}

.hero-subtext-dot {
  margin: 0 8px;
  color: var(--accent-mint);
}

.hero-cta-wrapper {
  display: flex;
  justify-content: center;
  pointer-events: auto;
}

.btn-hero-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 36px;
  border-radius: var(--radius-pill);
  background-color: var(--text-white);
  color: var(--bg-hero);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.1px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  transition: transform var(--transition-bounce), box-shadow var(--transition-fast), background-color var(--transition-fast);
}

.btn-hero-download:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 35px rgba(255, 255, 255, 0.25), 0 8px 24px rgba(0, 0, 0, 0.4);
  background-color: #f8fafc;
}

/* ==========================================================================
   Arrow Row (Pinned until scrolled)
   ========================================================================== */
.arrow-row {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 76px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s ease;
}

.arrow-row.hidden {
  opacity: 0;
  visibility: hidden;
  transform: translateY(100%);
  pointer-events: none;
}

.arrow-indicator {
  color: var(--text-white);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: gentleBounce 2.2s infinite ease-in-out;
}

@keyframes gentleBounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(8px);
  }
}

.arrow-row:hover .arrow-indicator {
  color: var(--accent-green);
}

/* ==========================================================================
   Widescreen Video Showcase
   ========================================================================== */
.showcase-section {
  width: 100%;
  padding: 40px 32px 0;
  scroll-margin-top: 40px; /* Keep video clear of the fixed 72px header */
  background-color: var(--bg-hero);
  display: flex;
  justify-content: center;
}

.showcase-container {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
}

.showcase-video-card {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 70vh;
  margin: 0 auto;
  background-color: #000;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-glass);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.35), 0 4px 16px rgba(0, 0, 0, 0.2);
  overflow: hidden; /* Clip the video inside rounded bezel corners */
  isolation: isolate;
}

.widescreen-video {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  border: none;
  outline: none;
  border-radius: var(--radius-xl); /* Safari ignores parent overflow clipping on video */
}

@media (max-width: 768px) {
  .showcase-section {
    padding: 24px 16px 0;
  }

  .showcase-video-card,
  .widescreen-video {
    border-radius: 20px;
  }
}

/* ==========================================================================
   Features Section (3 Full Screens)
   ========================================================================== */
.features-wrapper {
  position: relative;
  background: linear-gradient(180deg, var(--bg-hero) 0%, var(--bg-hero) 100px, #172428 400px, var(--bg-dark) 800px, var(--bg-dark) 100%);
  width: 100%;
}

.card-screen {
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 32px;
  box-sizing: border-box;
}

.card-container {
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 64px;
}

/* Left Column Text */
.card-text-col {
  flex: 1;
  max-width: 520px;
}

.section-badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent-mint);
  margin-bottom: 16px;
}

.card-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.2vw, 3rem);
  font-weight: 400;
  line-height: 1.16;
  letter-spacing: -0.4px;
  color: var(--text-white);
  margin-bottom: 24px;
}

.card-description {
  font-family: var(--font-body);
  font-size: 1.15rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.feature-bullets {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.bullet-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  color: var(--text-secondary);
}

.bullet-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.bullet-dot.blue { background-color: var(--accent-blue); }
.bullet-dot.green { background-color: var(--accent-green); }
.bullet-dot.orange { background-color: var(--accent-orange); }
.bullet-dot.cyan { background-color: var(--accent-cyan); }
.bullet-dot.mint { background-color: var(--accent-mint); }
.bullet-dot.pink { background-color: var(--accent-pink); }
.bullet-dot.purple { background-color: var(--accent-purple); }

/* Right Column Media */
.card-media-col {
  flex: 1.1;
  max-width: 640px;
}

.media-frame {
  position: relative;
  background-color: var(--bg-card-light);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  border: 1px solid var(--border-glass);
}

.media-screenshot {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.media-screenshot.no-shadow {
  box-shadow: none;
}

.frame-ambient-glow {
  position: absolute;
  inset: -20px;
  border-radius: calc(var(--radius-xl) + 20px);
  background: radial-gradient(circle, rgba(90, 179, 240, 0.1) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

/* --- Card 2: Interactive Meeting UI Mock --- */
.interactive-frame {
  background: #181d20;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.meeting-ui-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: #202528;
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.meeting-ui-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.meeting-status {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pulse-indicator {
  width: 10px;
  height: 10px;
  background-color: #ef4444;
  border-radius: 50%;
  box-shadow: 0 0 10px #ef4444;
  animation: livePulse 1.8s infinite;
}

@keyframes livePulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.6; }
}

.meeting-title {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-white);
}

.meeting-badge {
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(134, 228, 80, 0.15);
  color: var(--accent-green);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(134, 228, 80, 0.3);
}

.meeting-ui-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.transcript-row {
  display: flex;
  gap: 14px;
}

.speaker-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #3b82f6;
  color: var(--text-white);
  font-weight: 600;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.speaker-content {
  flex: 1;
}

.speaker-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.speaker-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-white);
}

.speaker-time {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.speaker-text {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.ai-proactive-card {
  background: linear-gradient(135deg, rgba(0, 99, 155, 0.25) 0%, rgba(0, 48, 58, 0.4) 100%);
  border: 1px solid rgba(90, 179, 240, 0.35);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.ai-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.ai-badge {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-link);
  display: flex;
  align-items: center;
  gap: 6px;
}

.ai-sparkle {
  color: var(--accent-green);
}

.source-chip {
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
}

.ai-answer-text {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-white);
  margin-bottom: 14px;
}

.ai-actions {
  display: flex;
  gap: 10px;
}

.action-btn {
  font-size: 0.8rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-white);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.action-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* --- Card 3: Notes Enhancement Mock --- */
.notes-ui-card {
  background: #202528;
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.notes-ui-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.doc-icon {
  font-size: 1.25rem;
}

.notes-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-white);
  flex: 1;
}

.ai-status-pill {
  font-size: 0.8rem;
  font-weight: 600;
  background: linear-gradient(135deg, rgba(197, 138, 249, 0.2), rgba(90, 179, 240, 0.2));
  color: var(--accent-purple);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(197, 138, 249, 0.3);
}

.notes-ui-content {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.note-section-title {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.note-bullets {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.action-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.action-item-check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.action-item-check.checked span:not(.assignee-tag) {
  text-decoration: line-through;
  opacity: 0.7;
}

.assignee-tag {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--text-link);
  background: rgba(90, 179, 240, 0.12);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.note-footer-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 12px;
}

/* ==========================================================================
   Powered by Gemma Section (Full Screen)
   ========================================================================== */
.gemma-screen {
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-dark);
  padding: 100px 32px;
  box-sizing: border-box;
}

.gemma-container {
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 80px;
}

.gemma-logo-col {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.gemma-logo-box {
  position: relative;
  width: 100%;
  max-width: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gemma-logo-svg {
  width: 100%;
  height: auto;
  display: block;
  z-index: 2;
  filter: drop-shadow(0 10px 30px rgba(49, 134, 255, 0.3));
}

.gemma-backdrop-glow {
  position: absolute;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(49, 134, 255, 0.25) 0%, rgba(52, 107, 241, 0.1) 45%, transparent 70%);
  border-radius: 50%;
  z-index: 1;
  filter: blur(40px);
  animation: gemmaPulse 4s infinite alternate ease-in-out;
}

@keyframes gemmaPulse {
  0% { transform: scale(0.9); opacity: 0.6; }
  100% { transform: scale(1.15); opacity: 1; }
}

.gemma-text-col {
  flex: 1.1;
  max-width: 580px;
}

.gemma-badge {
  color: var(--text-link);
}

.gemma-heading {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 3.5vw, 3.1rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.4px;
  color: var(--text-white);
  margin-bottom: 24px;
}

.gemma-description {
  font-family: var(--font-body);
  font-size: 1.15rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 36px;
}

.gemma-link {
  color: var(--text-link);
  text-underline-offset: 4px;
  transition: color var(--transition-fast);
}

.gemma-link:hover {
  color: var(--text-white);
}

.gemma-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.highlight-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.highlight-card:hover {
  transform: translateY(-2px);
  border-color: rgba(90, 179, 240, 0.4);
}

.highlight-number {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--text-link);
  margin-bottom: 4px;
}

.highlight-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 4px;
}

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

/* ==========================================================================
   Frequently Asked Questions (Collapsible Accordion)
   ========================================================================== */
.faq-screen {
  width: 100%;
  background-color: var(--bg-dark);
  padding: 128px 32px;
  box-sizing: border-box;
}

.faq-container {
  max-width: 1192px;
  margin: 0 auto;
}

.faq-heading {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 3.5vw, 3rem);
  font-weight: 400;
  line-height: 1.16;
  letter-spacing: -0.4px;
  color: var(--text-white);
  margin-bottom: 48px;
}

.faq-list {
  display: flex;
  flex-direction: column;
}

.faq-item {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  scroll-margin-top: 96px;
  transition: background-color var(--transition-fast);
}

.faq-item:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.faq-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 8px;
  cursor: pointer;
  user-select: none;
}

.faq-header:hover .faq-question {
  color: var(--text-link);
}

.faq-question {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 400;
  line-height: 1.35;
  color: var(--text-white);
  transition: color var(--transition-fast);
}

.faq-chevron {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-white);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
  margin-left: 24px;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease, padding 0.35s ease;
  opacity: 0;
  padding: 0 8px;
}

.faq-item.open .faq-content {
  max-height: 800px;
  opacity: 1;
  padding-bottom: 32px;
}

.faq-answer-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 920px;
}

.faq-answer-lead,
.faq-answer-sub {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

.faq-answer-grid a {
  color: var(--text-link);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color var(--transition-fast);
}

.faq-answer-grid a:hover {
  color: var(--text-white);
}

.faq-answer-grid strong {
  color: var(--text-white);
  font-weight: 500;
}

.faq-steps-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 12px 0 16px 20px;
  padding-left: 4px;
}

.faq-steps-list li {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

.faq-note {
  margin-top: 12px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* ==========================================================================
   Download App Section
   ========================================================================== */
.download-section {
  width: 100%;
  background-color: var(--bg-dark);
  padding: 80px 32px 120px;
  display: flex;
  justify-content: center;
}

.download-card {
  position: relative;
  max-width: 960px;
  width: 100%;
  background: radial-gradient(circle at 50% 0%, #004554 0%, #002830 60%, #001920 100%);
  border: 1px solid var(--border-green);
  border-radius: var(--radius-xl);
  padding: 64px 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

.download-glow {
  position: absolute;
  top: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(134, 228, 80, 0.3) 0%, transparent 70%);
  filter: blur(50px);
  pointer-events: none;
}

.download-orb {
  width: 80px;
  height: 80px;
  margin-bottom: 24px;
  filter: drop-shadow(0 10px 25px rgba(0, 229, 255, 0.4));
  animation: orbFloat 4s infinite alternate ease-in-out;
}

@keyframes orbFloat {
  0% { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}

.download-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--text-white);
  margin-bottom: 16px;
}

.download-subtitle {
  font-family: var(--font-body);
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 36px;
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.btn-primary-download {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: var(--radius-pill);
  background-color: var(--text-white);
  color: var(--bg-hero);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: transform var(--transition-bounce), box-shadow var(--transition-fast);
}

.btn-primary-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 255, 255, 0.25);
}

.btn-secondary-download {
  display: inline-flex;
  align-items: center;
  padding: 16px 28px;
  border-radius: var(--radius-pill);
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--text-white);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  border: 1px solid var(--border-glass);
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

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

/* ==========================================================================
   Footer: Google AI Edge Foresight
   ========================================================================== */
.site-footer {
  background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-hero-deep) 100%);
  /* border-top: 1px solid var(--border-light); */
  padding: 20vh 32px 48px;
  width: 100%;
}

.site-footer a {
  color: var(--text-link);
}

.footer-inner {
  max-width: 1192px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.footer-brand-lockup {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.footer-brand-orb {
  width: 75px;
  height: 75px;
  object-fit: contain;
  filter: drop-shadow(0 4px 16px rgba(0, 230, 118, 0.35));
}

.footer-brand-name {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 500;
  letter-spacing: -0.3px;
  color: var(--text-white);
}

.footer-support {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-secondary);
}

.footer-support a {
  color: var(--text-link);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color var(--transition-fast);
}

.footer-support a:hover {
  color: var(--text-white);
}

.footer-legal {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  /* border-top: 1px solid rgba(255, 255, 255, 0.08); */
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 12px;
  align-items: center;
}

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

.footer-links .divider {
  opacity: 0.4;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 1024px) {
  .card-container {
    flex-direction: column;
    text-align: center;
    gap: 48px;
  }

  .card-text-col {
    max-width: 100%;
  }

  .feature-bullets {
    align-items: center;
  }

  .gemma-container {
    flex-direction: column;
    text-align: center;
    gap: 48px;
  }

  .gemma-text-col {
    max-width: 100%;
  }

  .faq-answer-grid {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .header-nav .nav-link {
    display: none;
  }

  .hero-content {
    margin-top: -180px;
  }

  .gemma-highlights {
    grid-template-columns: 1fr;
  }

  .footer-legal {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .feature-bullets {
    align-items: flex-start;
  }

  .bullet-item {
    text-align: left;
  }

  .bullet-item .bullet-dot {
    display: none;
  }

  .bullet-item > :last-child::before {
    content: "・";
  }

  .card-heading {
    margin: 24px 0;
  }

  .card-description {
    color: white;
    font-size: 1rem;
  }

  .footer-brand-lockup {
    img {
      width: 50px;
      height: 50px;
    }

    .footer-brand-name {
      font-size: 1.5rem;
    }
  }

  /* Left-align card and Gemma copy on phones so it matches the bullets. */
  .card-text-col,
  .gemma-text-col {
    text-align: left;
  }

  /* Navbar: single-line title and compact download button (icon + "macOS"). */
  .header-container {
    padding: 0 16px;
    gap: 12px;
  }

  .brand-link {
    gap: 8px;
    min-width: 0;
  }

  .header-logo-icon {
    width: 32px;
    height: 32px;
  }

  .header-brand-text {
    font-size: clamp(0.9rem, 4.1vw, 1.05rem);
    white-space: nowrap;
  }

  .btn-download-nav {
    flex-shrink: 0;
    gap: 6px;
    padding: 8px 16px;
    white-space: nowrap;
  }

  .btn-download-nav-prefix {
    display: none;
  }

  .btn-download-icon {
    display: block;
  }

  /* Bullets: hanging indent so wrapped lines align with the text, not the marker. */
  .bullet-item > :last-child {
    position: relative;
    padding-left: 1.2em;
  }

  .bullet-item > :last-child::before {
    position: absolute;
    left: 0;
  }

  /* Footer: keep the brand name on one line, centered with the orb. */
  .footer-brand-lockup {
    gap: 12px;
  }

  .footer-brand-lockup .footer-brand-name {
    font-size: 1.25rem;
    white-space: nowrap;
  }
}
