@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

:root {
  /* Google Light Styling (DEFAULT) */
  --bg-app: #ffffff;
  --bg-section-alt: #f8f9fa;
  --bg-surface: #ffffff;
  --border-color: #dadce0;
  --border-color-hover: #bdc1c6;
  
  --text-primary: #202124;
  --text-secondary: #5f6368;
  --text-tertiary: #70757a;
  
  /* Brand colors */
  --google-blue: #1a73e8;
  --google-red: #ea4335;
  --google-yellow: #fbbc05;
  --google-green: #34a853;
  
  --primary: var(--google-blue);
  --primary-hover: #1557b0;
  --primary-glow: rgba(26, 115, 232, 0.1);
  --accent: var(--google-red);
  
  --success: var(--google-green);
  --warning: var(--google-yellow);
  --error: var(--google-red);
  
  --shadow-sm: 0 1px 2px 0 rgba(60,64,67,0.3), 0 1px 3px 1px rgba(60,64,67,0.15);
  --shadow-md: 0 1px 3px 0 rgba(60,64,67,0.3), 0 4px 8px 3px rgba(60,64,67,0.15);
  --shadow-lg: 0 4px 5px 0 rgba(0,0,0,0.14), 0 1px 10px 0 rgba(0,0,0,0.12), 0 2px 4px -1px rgba(0,0,0,0.2);
  
  --border-radius-sm: 8px;
  --border-radius-md: 12px;
  --border-radius-lg: 24px;
  
  --transition-smooth: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-snappy: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  
  --font-family: "Google Sans", "Product Sans", "Roboto", -apple-system, BlinkMacSystemFont, sans-serif;
  --header-height: 64px;
}

[data-theme="dark"] {
  --bg-app: #1f2023;
  --bg-section-alt: #2b2c2f;
  --bg-surface: #2d2e31;
  --border-color: #3c4043;
  --border-color-hover: #5f6368;
  
  --text-primary: #e8eaed;
  --text-secondary: #e8eaed;
  --text-tertiary: #9aa0a6;
  
  --google-blue: #8ab4f8;
  --google-red: #f28b82;
  --google-yellow: #fdd663;
  --google-green: #81c995;
  
  --primary: var(--google-blue);
  --primary-hover: #aecbfa;
  --primary-glow: rgba(138, 180, 248, 0.15);
  --accent: var(--google-red);
  
  --shadow-sm: 0 1px 3px 0 rgba(0,0,0,0.5);
  --shadow-md: 0 4px 8px 3px rgba(0,0,0,0.5);
  --shadow-lg: 0 8px 16px 4px rgba(0,0,0,0.6);
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-app);
  color: var(--text-secondary);
  line-height: 1.6;
  overflow-x: hidden;
  padding-top: var(--header-height);
  transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-weight: 500;
  line-height: 1.25;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition-snappy);
}
a:hover {
  text-decoration: underline;
}

/* Header & Nav */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 1000;
  transition: var(--transition-smooth);
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
}
.logo:hover {
  text-decoration: none;
}
.logo-img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  object-fit: cover;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 8px;
}
.nav-tab {
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition-snappy);
}
.nav-tab:hover {
  background-color: var(--bg-section-alt);
  color: var(--text-primary);
  text-decoration: none;
}
.nav-tab.active {
  background-color: var(--primary-glow);
  color: var(--primary);
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 24px;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition-snappy);
  text-decoration: none;
}
.btn:hover {
  text-decoration: none;
}
.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
}
.btn-primary:hover {
  background-color: var(--primary-hover);
  box-shadow: var(--shadow-sm);
}
.btn-secondary {
  background-color: var(--bg-surface);
  color: var(--primary);
  border-color: var(--border-color);
}
.btn-secondary:hover {
  background-color: var(--bg-section-alt);
  border-color: var(--border-color-hover);
}

/* Hero Section */
.hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 80px 24px 60px;
  background-color: var(--bg-surface);
  max-width: 1200px;
  margin: 0 auto;
}
.hero-content {
  max-width: 800px;
  margin-bottom: 48px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background-color: var(--bg-section-alt);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 24px;
  color: var(--text-secondary);
}
.hero-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  background-color: var(--google-green);
  border-radius: 50%;
}
.hero-title {
  font-size: 3rem;
  letter-spacing: -0.5px;
  margin-bottom: 24px;
}
.hero-title span {
  color: var(--google-blue);
}
.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
}
.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
}

/* Mockup Frame */
.mockup-showcase-container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}
.mockup-frame {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.mockup-header {
  height: 40px;
  background-color: var(--bg-section-alt);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 16px;
}
.mockup-dots {
  display: flex;
  gap: 6px;
}
.mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.mockup-dot.red { background-color: var(--google-red); }
.mockup-dot.yellow { background-color: var(--google-yellow); }
.mockup-dot.green { background-color: var(--google-green); }
.mockup-address-bar {
  flex-grow: 1;
  max-width: 400px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  height: 24px;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--text-tertiary);
}
.mockup-viewport {
  position: relative;
  background-color: #f1f3f4;
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mockup-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Content Sections */
.home-section {
  padding: 80px 24px;
}
.home-section.alt-bg {
  background-color: var(--bg-section-alt);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}
.section-container {
  max-width: 1100px;
  margin: 0 auto;
}
.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-subtitle {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--google-blue);
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.section-title {
  font-size: 2.25rem;
}

/* Grid & Cards */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.feature-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 32px;
  transition: var(--transition-smooth);
}
.feature-card:hover {
  box-shadow: var(--shadow-sm);
  border-color: var(--border-color-hover);
}
.feature-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background-color: var(--primary-glow);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}
.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}
.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Showcase Row */
.showcase-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}
.showcase-text {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 24px;
  border-radius: var(--border-radius-md);
}
.showcase-text h3 {
  font-size: 1.15rem;
  margin: 16px 0 8px;
}
.showcase-text p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Pricing Grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  align-items: stretch;
}
.pricing-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 32px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}
.pricing-card.featured {
  border-color: var(--google-blue);
  border-width: 2px;
  box-shadow: var(--shadow-sm);
}
.pricing-badge {
  position: absolute;
  top: -12px;
  left: 32px;
  background-color: var(--google-blue);
  color: #ffffff;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 12px;
}
.pricing-header h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}
.pricing-header p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  min-height: 48px;
}
.price {
  margin: 16px 0;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
}
.price .period {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-tertiary);
}
.pricing-features {
  list-style: none;
  margin: 24px 0;
  flex-grow: 1;
}
.pricing-features li {
  margin-bottom: 12px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.pricing-features li::before {
  content: '✓';
  color: var(--google-green);
  font-weight: bold;
}
.pricing-btn {
  width: 100%;
}

/* FAQ Accordion */
.faq-accordion-wrapper {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.accordion-item {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  transition: var(--transition-smooth);
}
.accordion-trigger {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 24px;
  font-size: 1.1rem;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-primary);
  font-family: inherit;
  font-weight: 500;
}
.accordion-icon {
  position: relative;
  width: 12px;
  height: 12px;
}
.accordion-icon::before, .accordion-icon::after {
  content: '';
  position: absolute;
  background-color: var(--text-secondary);
  transition: var(--transition-snappy);
}
.accordion-icon::before {
  top: 5px;
  left: 0;
  width: 12px;
  height: 2px;
}
.accordion-icon::after {
  top: 0;
  left: 5px;
  width: 2px;
  height: 12px;
}
.accordion-item.active .accordion-icon::after {
  transform: rotate(90deg);
  opacity: 0;
}
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
  padding: 0 24px;
}
.accordion-item.active .accordion-content {
  max-height: 1000px;
  padding: 0 24px 20px;
  transition: max-height 0.3s cubic-bezier(1, 0, 1, 0);
}
.accordion-content p {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* Timeline */
.timeline-wrapper {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 0;
}
.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: var(--border-color);
  transform: translateX(-50%);
}
.timeline-container {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.timeline-item {
  display: flex;
  justify-content: flex-end;
  width: 50%;
  position: relative;
}
.timeline-item.right {
  align-self: flex-end;
  justify-content: flex-start;
}
.timeline-item.left {
  align-self: flex-start;
}
.timeline-dot {
  position: absolute;
  top: 16px;
  width: 16px;
  height: 16px;
  background-color: var(--bg-surface);
  border: 4px solid var(--google-blue);
  border-radius: 50%;
  z-index: 2;
}
.timeline-item.left .timeline-dot {
  right: -9px;
}
.timeline-item.right .timeline-dot {
  left: -7px;
}
.timeline-content {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 24px;
  width: calc(100% - 32px);
  box-shadow: var(--shadow-sm);
}
.timeline-date {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--google-blue);
}

/* Rich Text & Document Layouts */
.rich-text {
  max-width: 800px;
  margin: 0 auto;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 40px;
}
.rich-text h1 {
  font-size: 2.5rem;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 16px;
}
.rich-text h2 {
  font-size: 1.5rem;
  margin: 32px 0 16px;
}
.rich-text p {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}
.rich-text ul, .rich-text ol {
  margin-bottom: 24px;
  padding-left: 24px;
}
.rich-text li {
  margin-bottom: 8px;
  color: var(--text-secondary);
}
.rich-text code {
  font-family: monospace;
  background-color: var(--bg-section-alt);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9rem;
  border: 1px solid var(--border-color);
}
.rich-text strong {
  color: var(--text-primary);
}

/* Changelog Timeline Page */
.changelog-list {
  list-style: none;
  max-width: 800px;
  margin: 0 auto;
}
.changelog-release-header h3 {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
  margin-top: 40px;
}
.changelog-item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px dashed var(--border-color);
}
.changelog-tag {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 4px;
  height: fit-content;
}
.changelog-tag.added {
  background-color: rgba(52, 168, 83, 0.15);
  color: var(--google-green);
}
.changelog-tag.fixed {
  background-color: rgba(234, 67, 53, 0.15);
  color: var(--google-red);
}
.changelog-tag.changed {
  background-color: rgba(26, 115, 232, 0.15);
  color: var(--google-blue);
}
.changelog-text p {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* Responsive Overrides */
@media (max-width: 768px) {
  .header {
    padding: 0 16px;
  }
  .nav-links {
    display: none; /* simple hidden on mobile, fallback layout */
  }
  .hero-title {
    font-size: 2.25rem;
  }
  .timeline-line {
    left: 16px;
  }
  .timeline-item {
    width: 100%;
    align-self: flex-start !important;
    justify-content: flex-start;
    padding-left: 32px;
  }
  .timeline-item.left .timeline-dot, .timeline-item.right .timeline-dot {
    left: 8px;
  }
  .timeline-content {
    width: 100%;
  }
  .rich-text {
    padding: 20px;
  }
}

/* Interactive Showcase Tab Styles */
.showcase-tab-btn {
  padding: 8px 20px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  background-color: var(--bg-surface);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
}
.showcase-tab-btn:hover {
  background-color: var(--bg-section-alt);
  color: var(--text-primary);
  border-color: #bdc1c6;
}
.showcase-tab-btn.active {
  background-color: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 1px 2px 0 rgba(60,64,67,0.3), 0 1px 3px 1px rgba(60,64,67,0.15);
}

