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

:root {
  --primary: hsl(154, 60%, 42%);
  --primary-hover: hsl(154, 60%, 36%);
  --primary-light: hsl(154, 60%, 95%);
  --primary-glow: hsla(154, 60%, 50%, 0.25);
  --destructive: hsl(0, 72%, 58%);
  --destructive-glow: hsla(0, 72%, 58%, 0.35);
  --bg: #ffffff;
  --bg-soft: #f8faf9;
  --bg-muted: #f1f5f3;
  --bg-card: #ffffff;
  --text: hsl(0, 0%, 13%);
  --text-muted: hsl(0, 0%, 46%);
  --text-subtle: hsl(0, 0%, 62%);
  --border: hsl(0, 0%, 90%);
  --border-light: hsl(0, 0%, 94%);
  --card-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.04);
  --card-shadow-hover: 0 4px 12px rgba(0,0,0,0.08), 0 8px 32px rgba(0,0,0,0.06);
  --radius: 5px;
  --radius-lg: 6px;
  --radius-xl: 8px;
}

/* Dark mode definitions */
[data-theme="dark"] {
  --bg: hsl(215, 16%, 12%); /* Darker background */
  --bg-soft: hsl(215, 16%, 15%);
  --bg-muted: hsl(215, 16%, 18%);
  --bg-card: hsl(215, 16%, 17%); /* Slightly lighter than bg */
  --text: hsl(210, 20%, 98%);
  --text-muted: hsl(215, 16%, 70%);
  --text-subtle: hsl(215, 16%, 55%);
  --border: hsl(215, 16%, 28%);
  --border-light: hsl(215, 16%, 24%);
  --card-shadow: 0 4px 20px rgba(0,0,0,0.5);
  --card-shadow-hover: 0 8px 32px rgba(0,0,0,0.6);
  --primary-light: hsla(154, 60%, 50%, 0.15);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: hsl(215, 16%, 12%);
    --bg-soft: hsl(215, 16%, 15%);
    --bg-muted: hsl(215, 16%, 18%);
    --bg-card: hsl(215, 16%, 17%);
    --text: hsl(210, 20%, 98%);
    --text-muted: hsl(215, 16%, 70%);
    --text-subtle: hsl(215, 16%, 55%);
    --border: hsl(215, 16%, 28%);
    --border-light: hsl(215, 16%, 24%);
    --card-shadow: 0 4px 20px rgba(0,0,0,0.5);
    --card-shadow-hover: 0 8px 32px rgba(0,0,0,0.6);
    --primary-light: hsla(154, 60%, 50%, 0.15);
  }
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ======================== NAVBAR ======================== */
.navbar {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 48px);
  max-width: 1200px;
  background: var(--bg-card); /* Changed to bg-card for better contrast if needed, or keep bg with blur */
  background: rgba(var(--bg), 0.8); /* Fallback */
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
[data-theme="dark"] .navbar {
  background: hsla(215, 16%, 17%, 0.8); /* Match card bg with opacity */
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.navbar-brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.navbar-brand span {
  color: var(--primary);
  letter-spacing: -0.04em;
  margin-left: -2px;
}

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

.navbar-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
  cursor: pointer;
}

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

.navbar-links a.nav-account {
  color: var(--primary);
  font-weight: 700;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius);
  background: var(--bg-muted);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text) !important;
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
  position: relative;
}

.lang-switch:hover {
  background: var(--primary-light);
  color: var(--primary) !important;
}

#lang-flag {
  font-size: 1rem;
  line-height: 1;
}
#lang-flag img {
  width: 20px;
  height: auto;
  border-radius: 2px;
}

/* Lang Dropdown */
.lang-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  width: 150px;
  padding: 4px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-5px);
  transition: all 0.2s ease;
  z-index: 101;
}

.lang-dropdown-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.15s;
}

.lang-option:hover {
  background: var(--bg-muted);
}

.lang-option img {
  width: 18px;
  height: auto;
  border-radius: 2px;
}

.lang-option span {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
}

.theme-option svg {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
}
.theme-option:hover svg {
  color: var(--text);
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  border-radius: var(--radius-lg);
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  padding: 10px 20px;
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--primary-glow);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 20px;
}

.btn-outline:hover {
  border-color: var(--text-muted);
  background: var(--bg-muted);
}
.btn-ghost {
    background: transparent;
    color: var(--text);
    padding: 10px 20px;
    border: 1px solid var(--border);
}
.btn-ghost:hover {
    background: var(--bg-muted);
    border-color: var(--text-muted);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1.05rem;
}

/* ======================== HERO ======================== */
.hero {
  padding-top: 140px;
  padding-bottom: 80px;
  text-align: center;
  background: radial-gradient(circle at 50% 0%, var(--primary-light) 0%, transparent 60%);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 24px;
  box-shadow: var(--card-shadow);
}

.hero h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero h1 .highlight {
  color: var(--primary);
  background: linear-gradient(120deg, var(--primary) 0%, hsl(160, 60%, 55%) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 40px;
}

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

.btn-download {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 24px;
  border-radius: var(--radius-lg);
  font-size: 0.95rem;
  transition: all 0.2s ease;
  min-width: 140px;
  box-shadow: var(--card-shadow);
}

.btn-download:hover {
  background: var(--bg-soft);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--card-shadow-hover);
}

.btn-download svg {
  transition: transform 0.2s;
}

.btn-download:hover svg {
  transform: scale(1.1);
}

.btn-record {
  background: var(--text);
  color: #fff;
  border: 1px solid transparent;
}

.btn-record:hover {
  background: #000;
  transform: scale(1.02);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

[data-theme="dark"] .btn-record {
  background: #fff;
  color: #000;
}
[data-theme="dark"] .btn-record:hover {
  background: #f0f0f0;
}

.rec-dot {
  width: 10px;
  height: 10px;
  background: var(--destructive);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--destructive-glow);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.hero-screenshot {
  margin-top: 20px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.12);
  border: 1px solid var(--border);
  background: var(--bg-card);
  position: relative;
}

.hero-screenshot img {
  display: block;
  width: 100%;
}

/* Animations */
.animate-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
.delay-6 { animation-delay: 0.6s; }
.delay-7 { animation-delay: 0.7s; }

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ======================== FEATURES ======================== */
.features {
  padding: 100px 0;
  background: var(--bg-soft);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.features-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.section-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.feature-card {
  background: var(--bg-card);
  padding: 32px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
  border-color: var(--primary-glow);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--bg-muted);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--primary);
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ======================== PRICING ======================== */
.pricing {
  padding: 100px 0;
}

.pricing-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 60px;
}

.pricing-grid {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
  width: 100%;
  max-width: 380px;
  position: relative;
  transition: all 0.3s;
}

.pricing-card.popular {
  border-color: var(--primary);
  box-shadow: 0 8px 32px var(--primary-glow);
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.pricing-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 4px;
}

.pricing-currency {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-muted);
}

.pricing-amount {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}

.pricing-period {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.pricing-note {
  font-size: 0.85rem;
  color: var(--primary);
  background: var(--primary-light);
  padding: 8px 12px;
  border-radius: var(--radius);
  margin-bottom: 32px;
  display: inline-block;
}

.pricing-features {
  list-style: none;
  margin-bottom: 32px;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.pricing-features li svg {
  width: 20px;
  height: 20px;
  color: var(--primary);
  flex-shrink: 0;
}

.tooltip-container {
    display: inline-flex;
    position: relative;
    margin-left: 8px;
    vertical-align: middle;
}

.info-icon {
    width: 16px;
    height: 16px;
    color: var(--text-muted);
    cursor: help;
}

.tooltip-content {
    visibility: hidden;
    width: 220px;
    background-color: var(--bg-card);
    color: var(--text);
    text-align: center;
    border-radius: 6px;
    padding: 12px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -110px;
    opacity: 0;
    transition: opacity 0.3s;
    border: 1px solid var(--border);
    box-shadow: var(--card-shadow);
    font-size: 0.8rem;
    line-height: 1.4;
}

.tooltip-container:hover .tooltip-content {
    visibility: visible;
    opacity: 1;
}

/* ======================== CTA SECTION ======================== */
.cta-section {
    padding: 100px 0;
    background: var(--bg);
    border-top: 1px solid var(--border-light);
}

.cta-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 80px 24px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: var(--card-shadow);
    background-image: radial-gradient(circle at 50% 0%, var(--primary-light) 0%, transparent 70%);
}

.cta-box h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}
.cta-box h2 .highlight {
    color: var(--primary);
}

.cta-box p {
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ======================== FOOTER ======================== */
.footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  padding: 60px 0 24px;
  font-size: 0.9rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: -0.02em;
}

.footer-brand img {
    width: 24px;
    height: 24px;
    border-radius: 6px;
}

.footer-brand span {
    color: var(--primary);
}

.footer-links {
    display: flex;
    gap: 32px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links a {
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.2s;
}

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

.footer-copy {
    color: var(--text-subtle);
    font-size: 0.85rem;
}

/* ======================== RESPONSIVE ======================== */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  .navbar-links {
    display: none; /* simple mobile hide for now */
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .footer-links {
      flex-direction: column;
      gap: 16px;
  }
}

/* Google Sign-In Button Customization */
.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-card);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    text-decoration: none;
    min-width: 200px;
}

.btn-google:hover {
    background-color: var(--bg-soft);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
    border-color: var(--border-light);
}

.btn-google:active {
    background-color: var(--bg-muted);
    transform: translateY(0);
    box-shadow: none;
}

.google-icon {
    width: 18px;
    height: 18px;
    margin-right: 12px;
}

/* Dark mode adjustments for Google button */
[data-theme="dark"] .btn-google {
    background-color: #131314;
    color: #e3e3e3;
    border-color: #424242;
}

[data-theme="dark"] .btn-google:hover {
    background-color: #2d2d2d;
    border-color: #585858;
}

[data-theme="dark"] .btn-google:active {
    background-color: #383838;
}

/* Green outline for Google button as requested */
.btn-google.btn-outline-green {
    border: 1px solid var(--primary);
    box-shadow: 0 0 4px var(--primary-glow);
}

.btn-google.btn-outline-green:hover {
    box-shadow: 0 0 8px var(--primary-glow);
    background-color: var(--primary-light);
}

[data-theme="dark"] .btn-google.btn-outline-green:hover {
    background-color: hsla(154, 60%, 50%, 0.1);
}
