/* Why this exists:
   Core design system stylesheet for the marketing website.
   It provides CSS variable theme definitions (supporting light and dark mode toggles),
   responsive grid layouts, glassmorphism card designs, typography overrides, 
   and micro-animations to create a premium feel.
*/

:root {
  color-scheme: dark;
  --bg: #08090d;
  --surface: rgba(19, 21, 28, 0.82);
  --surface-strong: rgba(27, 30, 39, 0.95);
  --surface-soft: rgba(255, 255, 255, 0.065);
  --line: rgba(255, 255, 255, 0.09);
  --text: #f7f8fb;
  --muted: rgba(247, 248, 251, 0.68);
  --quiet: rgba(247, 248, 251, 0.45);
  --accent: #ff315a;
  --accent-soft: rgba(255, 49, 90, 0.14);
  --cyan: #3fd5e8;
  --cyan-soft: rgba(63, 213, 232, 0.1);
  --green: #35d99d;
  --violet: #8b5cf6;
  --shadow: 0 24px 64px rgba(0, 0, 0, 0.34);
  --max: 1160px;
  --radius-card: 12px;
  --radius-panel: 16px;
  --gradient-accent: linear-gradient(135deg, #ff315a, #b5179e);
  --font-heading: 'Outfit', Inter, sans-serif;
  --font-body: 'Inter', ui-sans-serif, system-ui, sans-serif;
}

body.light-theme {
  color-scheme: light;
  --bg: #f6f8fb;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: rgba(255, 255, 255, 0.95);
  --surface-soft: rgba(0, 0, 0, 0.045);
  --line: rgba(0, 0, 0, 0.08);
  --text: #14171f;
  --muted: rgba(20, 23, 31, 0.76);
  --quiet: rgba(20, 23, 31, 0.52);
  --accent: #e51d46;
  --accent-soft: rgba(229, 29, 70, 0.08);
  --cyan: #0d9488;
  --cyan-soft: rgba(13, 148, 136, 0.08);
  --green: #15803d;
  --violet: #6d28d9;
  --shadow: 0 24px 64px rgba(20, 23, 31, 0.08);
  --gradient-accent: linear-gradient(135deg, #e51d46, #86198f);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background:
    radial-gradient(circle at 14% -8%, rgba(255, 49, 90, 0.12), transparent 34%),
    radial-gradient(circle at 100% 0%, rgba(63, 213, 232, 0.08), transparent 32%),
    linear-gradient(135deg, #090a0f 0%, #11131b 54%, #08090d 100%);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background 0.3s ease, color 0.3s ease;
}

body.light-theme {
  background:
    radial-gradient(circle at 14% -8%, rgba(229, 29, 70, 0.05), transparent 34%),
    radial-gradient(circle at 100% 0%, rgba(13, 148, 136, 0.04), transparent 32%),
    linear-gradient(135deg, #f6f8fb 0%, #eef2f7 54%, #f6f8fb 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  background-image: radial-gradient(var(--text) 0.5px, transparent 0.5px);
  background-size: 8px 8px;
  opacity: 0.015;
}

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

picture {
  display: block;
}

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

code, kbd {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

code {
  padding: 2px 6px;
  border-radius: 6px;
  color: var(--accent);
  background: var(--surface-soft);
  font-size: 0.9em;
}

kbd {
  padding: 4px 8px;
  border-radius: 6px;
  color: var(--text);
  background: var(--surface-strong);
  border: 1px solid var(--line);
  box-shadow: inset 0 -1.5px 0 var(--line);
  font-size: 0.85em;
  font-weight: 700;
  display: inline-block;
}

/* NAVBAR */
.navbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px max(24px, calc((100vw - var(--max)) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(8, 9, 13, 0.75);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  transition: background 0.3s ease, border-color 0.3s ease;
}

body.light-theme .navbar {
  background: rgba(246, 248, 251, 0.75);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
}

.logo img {
  width: 32px;
  height: 32px;
}

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

.nav-links a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

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

.nav-links a.active {
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
}

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

/* THEME TOGGLE */
.theme-btn {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  color: var(--text);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
}

.theme-btn:hover {
  background: var(--line);
  transform: scale(1.05);
}

.theme-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.theme-btn .sun-icon {
  display: none;
}

body.light-theme .theme-btn .moon-icon {
  display: none;
}

body.light-theme .theme-btn .sun-icon {
  display: block;
}

.nav-btn {
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
  color: #fff !important;
  background: var(--gradient-accent);
  box-shadow: 0 4px 12px var(--accent-soft);
}

.nav-btn:hover {
  transform: translateY(-1px);
  opacity: 0.95;
}

/* STRUCTURE */
.hero, .section, footer, .container {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  min-height: calc(100vh - 80px);
  padding: 120px 0 60px;
  gap: 60px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--cyan);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 6px;
  height: 6px;
  content: "";
  border-radius: 50%;
  background: currentColor;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
}

h3 {
  font-size: 1.5rem;
}

.hero-lede {
  margin-top: 20px;
  font-size: 1.15rem;
  color: var(--muted);
  line-height: 1.6;
}

.hero-actions, .cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  color: #fff;
  background: var(--gradient-accent);
  box-shadow: 0 10px 25px var(--accent-soft);
}

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

.btn-secondary {
  color: var(--text);
  background: var(--surface-soft);
  border: 1px solid var(--line);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  background: var(--line);
}

/* Proof indicators */
.proof-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 40px;
}

.proof-row div {
  padding: 16px;
  border-radius: var(--radius-card);
  background: var(--surface);
  border: 1px solid var(--line);
}

.proof-row dt {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
}

.proof-row dd {
  margin-top: 4px;
  font-size: 0.85rem;
  color: var(--muted);
}

/* GLASS PANEL BACKGROUNDS */
.hero-media, .card-glass, .panel-glass, .container-page {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent),
    var(--surface);
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hero-media {
  padding: 12px;
}

.hero-media img {
  border-radius: var(--radius-card);
  width: 100%;
}

/* SECTIONS */
.section {
  padding: 80px 0;
}

.section-header {
  max-width: 700px;
  margin-bottom: 48px;
}

.section-header p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 1.1rem;
}

.section-header.center {
  margin-inline: auto;
  text-align: center;
}

.section-header.center .eyebrow {
  justify-content: center;
}

/* GRID LAYOUTS */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

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

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

/* FEATURE CARD */
.feature-card {
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s, border-color 0.25s;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.feature-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: #fff;
}

.icon-accent { background: var(--accent); }
.icon-cyan { background: var(--cyan); }
.icon-green { background: var(--green); }
.icon-violet { background: var(--violet); }

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

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

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

/* INTERACTIVE VIDEO SPEED CONTROLLER SANDBOX */
.sandbox-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sandbox-player {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: #000;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
}

.sandbox-player video {
  width: 100%;
  height: 100%;
  display: block;
}

/* Custom speed overlay toast */
.sandbox-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.85);
  background: rgba(8, 9, 13, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 1.5rem;
  font-family: var(--font-heading);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.sandbox-overlay.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.sandbox-overlay-slider {
  width: 80px;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 4px;
}

.sandbox-overlay-fill {
  height: 100%;
  background: var(--accent);
  width: 50%;
  transition: width 0.1s ease;
}

/* Custom floating speed widget simulation */
.sandbox-widget {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(19, 21, 28, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  padding: 4px 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 5;
  box-shadow: var(--shadow);
  opacity: 1;
  transition: opacity 0.3s;
}

.sandbox-widget button {
  background: none;
  border: none;
  color: #fff;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 1.1rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.sandbox-widget button:hover {
  background: rgba(255, 255, 255, 0.15);
}

.sandbox-widget .speed-pill {
  font-weight: 700;
  font-size: 0.85rem;
  padding: 2px 8px;
  border-radius: 20px;
  background: var(--accent);
  color: #fff;
  min-width: 44px;
  text-align: center;
  cursor: pointer;
}

.sandbox-controls {
  padding: 16px;
  border-radius: var(--radius-card);
  background: var(--surface-soft);
  border: 1px solid var(--line);
}

.sandbox-controls-title {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.sandbox-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sandbox-presets button {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.15s;
}

.sandbox-presets button:hover, .sandbox-presets button.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.sandbox-instructions {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* USE CASES SECTION */
.usecase-card {
  padding: 30px;
}

.usecase-card h3 {
  margin-bottom: 12px;
}

.usecase-card ul {
  list-style: none;
  margin-top: 16px;
}

.usecase-card li {
  position: relative;
  padding-left: 20px;
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 8px;
}

.usecase-card li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--cyan);
  font-weight: bold;
}

/* COMPARISON SECTION */
.comparison-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-panel);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.comparison-table th, .comparison-table td {
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}

.comparison-table th {
  font-family: var(--font-heading);
  font-weight: 800;
  background: var(--surface-strong);
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table td.check {
  color: var(--green);
  font-weight: bold;
}

.comparison-table td.cross {
  color: var(--accent);
  font-weight: bold;
}

.comparison-table .highlight-col {
  background: var(--accent-soft);
  font-weight: 600;
}

/* TESTIMONIALS SECTION */
.testimonial-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-rating {
  color: #fbbf24; /* Amber star color */
  font-size: 1.1rem;
  margin-bottom: 14px;
}

.testimonial-text {
  font-style: italic;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 20px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

.testimonial-details h3,
.testimonial-details h4 {
  font-size: 0.9rem;
  font-family: var(--font-body);
}

.testimonial-details span {
  font-size: 0.75rem;
  color: var(--quiet);
}

/* SCREENSHOT SHOWCASE */
.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.screenshot-card {
  overflow: hidden;
}

.screenshot-card.wide {
  grid-column: 1 / -1;
}

.screenshot-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #000;
  border-bottom: 1px solid var(--line);
}

.screenshot-card div {
  padding: 24px;
}

.screenshot-card h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

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

/* TIMELINE (CHANGELOG) */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 40px auto 0;
  padding-left: 32px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--line);
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -32px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg);
  border: 4px solid var(--accent);
}

.timeline-version {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
}

.timeline-date {
  font-size: 0.85rem;
  color: var(--quiet);
  margin-bottom: 12px;
}

.timeline-content {
  padding: 20px;
}

.timeline-content ul {
  margin-top: 12px;
  padding-left: 20px;
}

.timeline-content li {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 6px;
}

/* FAQ LIST */
.faq-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 820px;
  margin: 0 auto;
}

.faq-item {
  padding: 24px;
  cursor: pointer;
  transition: background 0.2s;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-question h2,
.faq-question h3 {
  font-size: 1.15rem;
}

.faq-icon {
  font-size: 1.5rem;
  font-weight: 300;
  transition: transform 0.2s;
  user-select: none;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease, margin-top 0.25s ease;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  margin-top: 16px;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

/* CONTACT FORM */
.contact-form-wrapper {
  max-width: 600px;
  margin: 0 auto;
  padding: 32px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: var(--text);
}

.form-control {
  width: 100%;
  min-height: 48px;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

textarea.form-control {
  min-height: 140px;
  resize: vertical;
}

/* INNER CONTAINER PAGES (Privacy, Terms, About, FAQ) */
.container-page {
  margin: 120px auto 60px;
  padding: 40px;
  max-width: 820px;
}

.container-page h1 {
  margin-bottom: 12px;
}

.container-page .meta {
  font-size: 0.85rem;
  color: var(--quiet);
  margin-bottom: 24px;
}

.container-page h2 {
  margin-top: 36px;
  margin-bottom: 12px;
  font-size: 1.6rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 6px;
}

.container-page h3 {
  margin-top: 24px;
  margin-bottom: 10px;
  font-size: 1.25rem;
}

/* Why this exists: Keeps changelog release titles sized like h3 while preserving semantic h1 -> h2 hierarchy. */
.container-page h2.changelog-entry {
  margin-top: 24px;
  margin-bottom: 10px;
  font-size: 1.25rem;
  border-bottom: none;
  padding-bottom: 0;
}

.container-page p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

.container-page ul {
  padding-left: 20px;
  margin-bottom: 16px;
  color: var(--muted);
}

.container-page li {
  margin-bottom: 8px;
}

/* ERROR PAGES (404/500) */
.error-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  text-align: center;
  padding: 40px 24px;
}

.error-code {
  font-family: var(--font-heading);
  font-size: clamp(6rem, 12vw, 10rem);
  font-weight: 900;
  line-height: 1;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 16px;
  animation: pulse 2s infinite alternate;
}

.error-title {
  font-size: 2rem;
  margin-bottom: 16px;
}

.error-description {
  color: var(--muted);
  max-width: 480px;
  margin-bottom: 32px;
}

/* FOOTER */
footer {
  padding: 60px 0 30px;
  border-top: 1px solid var(--line);
  margin-top: 80px;
}

.footer-content {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-brand-info {
  max-width: 340px;
}

.footer-brand-info p {
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--muted);
}

.footer-links-group {
  display: flex;
  gap: 60px;
}

.footer-column h4 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
  color: var(--text);
}

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

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

.footer-column a {
  font-size: 0.9rem;
  color: var(--muted);
}

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

.copyright {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 0.85rem;
  color: var(--quiet);
}

/* BREADCRUMBS & GUIDE LINKS */
.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--quiet);
  margin-bottom: 18px;
}

.breadcrumbs a {
  color: var(--muted);
}

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

.breadcrumbs.center {
  justify-content: center;
}

.inline-link {
  color: var(--cyan);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

/* KEYFRAMES & ANIMATIONS */
/* Why this exists: Scope opacity-0 reveal to JS-enabled browsers so crawlers and no-JS renders always see full page copy */
.js .fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js .fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

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

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

@keyframes pulse {
  0% { transform: scale(1); }
  100% { transform: scale(1.03); }
}

/* RESPONSIVE MEDIA QUERIES */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 120px;
    padding-bottom: 40px;
    gap: 40px;
    text-align: center;
  }
  
  .hero-lede {
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .proof-row {
    max-width: 500px;
    margin-inline: auto;
  }

  .grid-3 {
    grid-template-columns: 1fr 1fr;
  }

  .grid-4 {
    grid-template-columns: 1fr 1fr;
  }
  
  .screenshot-grid {
    grid-template-columns: 1fr;
  }
  
  .screenshot-card.wide {
    grid-column: auto;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 12px 16px;
  }

  .logo span {
    font-size: 1rem;
    max-width: 180px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .nav-links {
    display: none; /* Mobile menu hidden, will simplify to direct chrome installation CTA or standard simple list */
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }

  .footer-links-group {
    gap: 32px;
    flex-wrap: wrap;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 32px;
  }

  .container-page {
    padding: 24px;
    margin-top: 90px;
  }
}

/* LANGUAGE SWITCHER & MODAL */
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  color: var(--text);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  transition: background 0.2s, transform 0.2s, border-color 0.2s;
}

.lang-btn:hover {
  background: var(--line);
  transform: scale(1.03);
}

.lang-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  flex-shrink: 0;
}

.lang-btn .lang-chevron {
  width: 13px;
  height: 13px;
  opacity: 0.7;
}

.lang-btn-code {
  max-width: 96px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lang-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(8, 9, 13, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.lang-modal-backdrop.open {
  display: flex;
}

.lang-modal {
  width: min(560px, 100%);
  max-height: 82vh;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-panel);
  background: var(--surface-strong);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.lang-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.lang-modal-header h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
}

.lang-modal-close {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
}

.lang-modal-close:hover {
  color: var(--text);
  background: var(--surface-soft);
}

.lang-search-wrap {
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
}

.lang-search {
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.92rem;
  outline: none;
}

.lang-search:focus {
  border-color: var(--accent);
}

.lang-list {
  overflow-y: auto;
  padding: 10px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}

.lang-option {
  width: 100%;
  text-align: start;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 10px 14px;
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.lang-option:hover {
  background: var(--surface-soft);
  border-color: var(--line);
}

.lang-option.active {
  background: var(--accent-soft);
  border-color: var(--accent);
}

.lang-option-main {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.lang-native {
  font-weight: 700;
  font-size: 0.96rem;
}

.lang-english {
  font-size: 0.82rem;
  color: var(--muted);
}

.lang-countries {
  margin-top: 3px;
  font-size: 0.76rem;
  color: var(--quiet);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lang-empty {
  padding: 28px 16px;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
}

/* RTL SUPPORT */
[dir="rtl"] .comparison-table th,
[dir="rtl"] .comparison-table td {
  text-align: right;
}

/* HIDE GOOGLE TRANSLATE TOP BANNER */
.goog-te-banner-frame.skiptranslate,
iframe.goog-te-banner-frame,
.VIpgJd-ZVi9od-ORHb-OEVmcd {
  display: none !important;
}

body {
  top: 0 !important;
}

@media (max-width: 768px) {
  .lang-btn {
    padding: 0 10px;
  }
  .lang-btn-code {
    display: none;
  }
}
