/* ============================================================
   INTRO / LANDING PAGE STYLING
   High-tier, crisp white background, bright vibrant accents,
   refined hover cards, subtle gradients, and clean typography.
   ============================================================ */

/* Navbar */
.site-nav {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
  z-index: 100;
  transition: all var(--transition-normal);
}

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

.brand-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo-img {
  width: 64px;
  height: 64px;
  border: none;
  border-radius: 0;
  object-fit: contain;
  background: transparent;
  box-shadow: none;
}

.brand-text-block {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-sub {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

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

.nav-link {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.nav-link:hover {
  color: var(--accent-primary);
}

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

/* Hero Section */
.hero-section {
  padding: 80px 0 60px;
  background: radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.05) 0%, rgba(255, 255, 255, 0) 70%), var(--bg-page);
  position: relative;
  overflow: hidden;
}

.hero-content {
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--accent-light);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-primary);
  margin-bottom: 24px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.hero-title .text-gradient {
  background: linear-gradient(135deg, #1D4ED8 0%, #3B82F6 50%, #06B6D4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 36px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

/* Interactive Preview Box in Hero */
.hero-preview {
  margin-top: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.12);
  overflow: hidden;
  text-align: left;
}

.preview-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: var(--bg-canvas);
  border-bottom: 1px solid var(--border-light);
}

.window-dots {
  display: flex;
  gap: 6px;
}

.window-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.dot-red { background: #EF4444; }
.dot-yellow { background: #F59E0B; }
.dot-green { background: #10B981; }

.preview-status {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.2);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.4); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(22, 163, 74, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); }
}

.preview-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 240px;
}

.preview-col {
  padding: 24px;
}

.preview-col:first-child {
  border-right: 1px solid var(--border-light);
  background: var(--bg-input);
}

.preview-col-output {
  background: var(--bg-card);
}

.preview-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.transcript-sample {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--text-primary);
}

.transcript-sample .tag-m {
  color: var(--accent-primary);
  font-weight: 700;
}

.transcript-sample .tag-r {
  color: #059669;
  font-weight: 700;
}

/* Stats Row */
.stats-section {
  padding: 40px 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-canvas);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat-item {
  text-align: center;
}

.stat-num {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}

.stat-num .highlight {
  color: var(--accent-primary);
}

.stat-label {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 500;
}

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

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}

.section-pill {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-primary);
  background: var(--accent-light);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  display: inline-block;
  margin-bottom: 12px;
  letter-spacing: 0.06em;
}

.section-title {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
}

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(37, 99, 235, 0.4);
  box-shadow: 0 16px 32px -8px rgba(37, 99, 235, 0.12);
}

.feature-icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
  transition: transform var(--transition-fast);
}

.feature-card:hover .feature-icon-box {
  transform: scale(1.08);
}

.icon-blue { background: #EFF6FF; color: #2563EB; }
.icon-green { background: #ECFDF5; color: #059669; }
.icon-purple { background: #F5F3FF; color: #7C3AED; }
.icon-amber { background: #FFFBEB; color: #D97706; }
.icon-coral { background: #FFF1F2; color: #E11D48; }
.icon-teal { background: #F0FDFA; color: #0D9488; }

.feature-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Pricing Section (Scaled +15% for optimal legibility) */
.pricing-section {
  padding: 68px 0;
  background: var(--bg-canvas);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 880px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 28px 30px;
  position: relative;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.pricing-card.featured {
  border: 2px solid var(--accent-primary);
  box-shadow: 0 18px 36px -8px rgba(37, 99, 235, 0.14);
}

.pricing-tag {
  position: absolute;
  top: -11px;
  left: 28px;
  background: var(--accent-primary);
  color: #FFFFFF;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.pricing-tier {
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 5px;
}

.pricing-summary {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-bottom: 18px;
  line-height: 1.48;
}

.price-box {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
}

.price-currency {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
}

.price-amount {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1;
  color: var(--text-primary);
  letter-spacing: -0.03em;
}

.price-unit {
  font-size: 0.84rem;
  color: var(--text-muted);
  font-weight: 600;
}

.pricing-features {
  list-style: none;
  margin-bottom: 26px;
  flex-grow: 1;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.84rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
  line-height: 1.45;
}

.pricing-card .btn {
  padding: 12px 18px;
  font-size: 0.9rem;
  border-radius: 8px;
}

.check-icon {
  color: var(--success);
  font-weight: 800;
  margin-top: 1px;
}

/* Architecture / Cloudflare Banner */
.arch-section {
  padding: 70px 0;
  background: var(--bg-page);
}

.arch-box {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  border-radius: var(--radius-xl);
  padding: 48px;
  color: #FFFFFF;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}

.arch-title {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}

.arch-desc {
  font-size: 1rem;
  color: #94A3B8;
  line-height: 1.6;
  margin-bottom: 24px;
}

.arch-list {
  list-style: none;
}

.arch-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 0.9rem;
  color: #CBD5E1;
}

.arch-pill {
  background: rgba(59, 130, 246, 0.2);
  color: #60A5FA;
  border: 1px solid rgba(59, 130, 246, 0.3);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-family: var(--font-mono);
}

/* FAQ Section */
.faq-section {
  padding: 80px 0;
  background: var(--bg-canvas);
  border-top: 1px solid var(--border-light);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 960px;
  margin: 0 auto;
}

.faq-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 24px;
}

.faq-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.faq-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Footer */
.site-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border-light);
  padding: 60px 0 30px;
}

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

.footer-brand p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 14px;
  line-height: 1.6;
  max-width: 320px;
}

.footer-col h5 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

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

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

.footer-col a {
  font-size: 0.88rem;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.footer-col a:hover {
  color: var(--accent-primary);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .hero-title { font-size: 2.6rem; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; }
  .arch-box { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .preview-body { grid-template-columns: 1fr; }
  .preview-col:first-child { border-right: none; border-bottom: 1px solid var(--border-light); }
}

@media (max-width: 640px) {
  .hero-title { font-size: 2.1rem; }
  .nav-links { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

/* ============================================================
   JELLY BALL THEME TOGGLE (Squish & Bouncy Elastic Motion)
   ============================================================ */
.jelly-theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  vertical-align: middle;
}

.jelly-track {
  position: relative;
  width: 60px;
  height: 30px;
  border-radius: 9999px;
  background: #F1F5F9;
  border: 1.8px solid #DCE3EE;
  box-shadow: inset 0 2px 4px rgba(15, 23, 42, 0.06), 0 2px 5px rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px;
  box-sizing: border-box;
  transition: background-color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: visible;
}

.jelly-theme-toggle:active .jelly-track {
  transform: scale(0.96);
}

.jelly-icon {
  width: 14px;
  height: 14px;
  stroke-width: 2.2;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
  z-index: 1;
}

.sun-icon {
  color: #F59E0B;
  opacity: 1;
  transform: scale(1);
}

.moon-icon {
  color: #94A3B8;
  opacity: 0.35;
  transform: scale(0.85);
}

.jelly-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  box-sizing: border-box;
  pointer-events: none;
  transform-origin: center center;
  z-index: 2;
  
  /* Light mode default: located on right side over moon */
  transform: translateX(30px);
  border: 3px solid #F59E0B;
  background: #FEF3C7;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.35);
  transition: border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

/* Dark Mode States (Dark Navy / Blue Slate Theme) */
[data-theme="dark"] .jelly-track {
  background: #182338;
  border-color: #2D3D58;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.5), 0 0 12px rgba(59, 130, 246, 0.25);
}

[data-theme="dark"] .sun-icon {
  color: #475569;
  opacity: 0.25;
  transform: scale(0.85);
}

[data-theme="dark"] .moon-icon {
  color: #FFFFFF;
  opacity: 1;
  transform: scale(1);
}

[data-theme="dark"] .jelly-thumb {
  transform: translateX(0px);
  border: 3px solid #FFFFFF;
  background: transparent;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

/* Soft Bounce Animation Keyframes */
.jelly-thumb.animate-to-light {
  animation: softBounceToLight 0.42s cubic-bezier(0.34, 1.25, 0.64, 1) forwards;
}

.jelly-thumb.animate-to-dark {
  animation: softBounceToDark 0.42s cubic-bezier(0.34, 1.25, 0.64, 1) forwards;
}

@keyframes softBounceToLight {
  0% {
    transform: translateX(0px) scale(1, 1);
  }
  32% {
    transform: translateX(11px) scale(1.12, 0.92);
  }
  68% {
    transform: translateX(32px) scale(0.95, 1.05);
  }
  86% {
    transform: translateX(29.5px) scale(1.02, 0.99);
  }
  100% {
    transform: translateX(30px) scale(1, 1);
  }
}

@keyframes softBounceToDark {
  0% {
    transform: translateX(30px) scale(1, 1);
  }
  32% {
    transform: translateX(19px) scale(1.12, 0.92);
  }
  68% {
    transform: translateX(-2px) scale(0.95, 1.05);
  }
  86% {
    transform: translateX(0.5px) scale(1.02, 0.99);
  }
  100% {
    transform: translateX(0px) scale(1, 1);
  }
}

/* Dark Theme Overrides for Transcription Studio Intro */
[data-theme="dark"] .site-nav {
  background: rgba(11, 14, 20, 0.95);
  border-color: var(--border-light);
}

[data-theme="dark"] .hero-section {
  background: radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.12) 0%, rgba(11, 14, 20, 0) 70%), var(--bg-page);
}

[data-theme="dark"] .hero-preview {
  background: var(--bg-card);
  border-color: var(--border-light);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.6);
}

[data-theme="dark"] .preview-topbar {
  background: #111827;
  border-color: var(--border-light);
}

[data-theme="dark"] .preview-col:first-child {
  background: #0B0F19;
  border-color: var(--border-light);
}

[data-theme="dark"] .preview-col-output {
  background: var(--bg-card);
}

[data-theme="dark"] .stats-section {
  background: var(--bg-canvas);
  border-color: var(--border-light);
}

[data-theme="dark"] .features-section {
  background: var(--bg-page);
}

[data-theme="dark"] .feature-card,
[data-theme="dark"] .faq-card {
  background: var(--bg-card);
  border-color: var(--border-light);
}

[data-theme="dark"] .feature-card:hover {
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 16px 32px -8px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .icon-blue { background: rgba(37, 99, 235, 0.18); color: #60A5FA; }
[data-theme="dark"] .icon-green { background: rgba(16, 185, 129, 0.18); color: #34D399; }
[data-theme="dark"] .icon-purple { background: rgba(124, 58, 237, 0.18); color: #A78BFA; }
[data-theme="dark"] .icon-amber { background: rgba(217, 119, 6, 0.18); color: #FBBF24; }
[data-theme="dark"] .icon-coral { background: rgba(225, 29, 72, 0.18); color: #FB7185; }
[data-theme="dark"] .icon-teal { background: rgba(13, 148, 136, 0.18); color: #2DD4BF; }

[data-theme="dark"] .pricing-section {
  background: var(--bg-canvas);
  border-color: var(--border-light);
}

[data-theme="dark"] .pricing-card {
  background: var(--bg-card);
  border-color: var(--border-light);
}

[data-theme="dark"] .pricing-card.featured {
  background: #111A2E;
  border-color: var(--accent-primary);
  box-shadow: 0 0 25px rgba(59, 130, 246, 0.2);
}

[data-theme="dark"] .arch-section {
  background: var(--bg-page);
}

[data-theme="dark"] .arch-box {
  background: linear-gradient(135deg, #0B1120 0%, #151F32 100%);
  border: 1px solid var(--border-light);
}

[data-theme="dark"] .faq-section {
  background: var(--bg-canvas);
  border-color: var(--border-light);
}

[data-theme="dark"] .site-footer {
  background: var(--bg-card);
  border-color: var(--border-light);
}
