:root {
  --bg: #121214;
  --card: #1e1e24;
  --card-hover: #25252d;
  --green: #00e676;
  --green-dim: rgba(0, 230, 118, 0.12);
  --blue: #2979ff;
  --orange: #ff6d00;
  --purple: #b388ff;
  --purple-dim: rgba(179, 136, 255, 0.14);
  --text: #ffffff;
  --text-muted: #a0a5b5;
  --border: rgba(255, 255, 255, 0.06);
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --max: 1140px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Background glow */
.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 60% 40% at 15% 0%, rgba(0, 230, 118, 0.08), transparent 60%),
    radial-gradient(ellipse 50% 35% at 85% 10%, rgba(179, 136, 255, 0.07), transparent 55%),
    radial-gradient(ellipse 40% 30% at 50% 100%, rgba(41, 121, 255, 0.05), transparent 50%);
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  background: rgba(18, 18, 20, 0.82);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
}

.logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
  flex: 1;
  justify-content: center;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.nav-links a:not(.btn) {
  color: var(--text-muted);
  font-size: 0.92rem;
  transition: color 0.2s;
}

.nav-links a:not(.btn):hover {
  color: var(--text);
}

.lang-switcher-wrap {
  position: relative;
  flex-shrink: 0;
}

.lang-switcher-btn {
  appearance: none;
  -webkit-appearance: none;
  font-family: inherit;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  line-height: 1.2;
  transition: border-color 0.2s, background 0.2s;
}

.lang-switcher-btn:hover,
.lang-switcher-btn[aria-expanded="true"] {
  border-color: rgba(0, 230, 118, 0.45);
  background: var(--card-hover);
}

.lang-switcher-menu {
  display: none;
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  min-width: 11.5rem;
  background: #1a1a20;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  z-index: 300;
  overflow: hidden;
  padding: 0.35rem;
}

.lang-switcher-menu.open {
  display: flex;
  flex-direction: column;
}

.lang-switcher-menu[hidden] {
  display: none !important;
}

.lang-switcher-item {
  appearance: none;
  -webkit-appearance: none;
  font-family: inherit;
  display: block;
  width: 100%;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 0.88rem;
  padding: 0.55rem 0.75rem;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.lang-switcher-item:hover,
.lang-switcher-item.active {
  background: rgba(0, 230, 118, 0.1);
  color: var(--text);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.35rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary,
a.btn-primary {
  background: var(--green);
  color: #052e16;
  box-shadow: 0 8px 28px rgba(0, 230, 118, 0.28);
}

.btn-primary:hover,
a.btn-primary:hover {
  color: #052e16;
  background: #00ff88;
  box-shadow: 0 12px 36px rgba(0, 230, 118, 0.38);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-play,
a.btn-play {
  background: #000;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.75rem 1.25rem;
}

.btn-play:hover,
a.btn-play:hover {
  color: #fff;
  background: #1a1a1a;
}

.btn-play svg {
  width: 22px;
  height: 22px;
}

/* Hero */
.hero {
  position: relative;
  z-index: 1;
  padding: 4.5rem 0 3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: var(--green-dim);
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.hero h1 span {
  color: var(--green);
}

.hero-lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 34rem;
  margin-bottom: 1.75rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
  margin-bottom: 1.5rem;
}

.price-tag {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.price-tag strong {
  color: var(--text);
  font-size: 1.35rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.badge {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.phone-frame {
  position: relative;
  max-width: min(100%, 472px);
  margin-inline: auto;
}

.phone-frame::before {
  content: "";
  position: absolute;
  inset: -12%;
  background: radial-gradient(circle, rgba(0, 230, 118, 0.18), transparent 65%);
  z-index: -1;
}

.phone-frame img {
  width: 100%;
  height: auto;
  border-radius: 28px;
  box-shadow: var(--shadow);
  border: 3px solid rgba(255, 255, 255, 0.08);
  image-rendering: -webkit-optimize-contrast;
}

/* Stats strip */
.stats {
  position: relative;
  z-index: 1;
  padding: 2rem 0 3rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
}

.stat-card strong {
  display: block;
  font-size: 1.5rem;
  color: var(--green);
  margin-bottom: 0.25rem;
}

.stat-card span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Pillars */
.pillars {
  padding: 1rem 0 3rem;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.pillar-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  transition: border-color 0.2s, transform 0.2s;
}

.pillar-card:hover {
  border-color: rgba(0, 230, 118, 0.2);
  transform: translateY(-3px);
}

.pillar-icon {
  display: block;
  font-size: 2rem;
  margin-bottom: 1rem;
  line-height: 1;
}

.pillar-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.65rem;
}

.pillar-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Benefits grid */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.benefit-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem;
}

.benefit-icon {
  display: block;
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.benefit-card h3 {
  font-size: 1rem;
  margin-bottom: 0.45rem;
}

.benefit-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.section-header-compact {
  margin-bottom: 2rem;
}

.section-link-wrap,
.faq-more-wrap {
  text-align: center;
  margin-top: 2rem;
}

.section-link {
  color: var(--green);
  font-weight: 600;
  font-size: 0.95rem;
  transition: opacity 0.2s;
}

.section-link:hover {
  opacity: 0.85;
}

.hero-trust,
.cta-trust {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

.cta-trust {
  margin-top: 1rem;
}

/* AI spotlight */
.ai-spotlight {
  background: linear-gradient(180deg, transparent, rgba(179, 136, 255, 0.04), transparent);
}

.ai-spotlight-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.ai-spotlight-copy .feature-tag {
  margin-bottom: 1rem;
}

.ai-spotlight-copy h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 1rem;
  line-height: 1.25;
}

.ai-spotlight-copy > p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.ai-list {
  margin-bottom: 1.25rem;
}

.ai-footer {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.ai-spotlight-shot {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.ai-spotlight-shot img {
  width: 100%;
}

/* Guide page */
.guide-page {
  position: relative;
  z-index: 1;
  padding: 2.5rem 0 4rem;
}

.guide-intro {
  margin-bottom: 3rem;
}

.guide-intro h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 0.75rem;
}

.guide-block {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
}

.guide-block:first-of-type {
  border-top: none;
  padding-top: 0;
}

/* Languages */
.languages-section {
  padding: 2.5rem 0 3.5rem;
}

.languages-section .section-header {
  margin-bottom: 2rem;
}

.languages-section .section-header .feature-tag {
  margin-bottom: 0.75rem;
}

.languages-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto;
}

.lang-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.25rem 0.75rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.lang-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 230, 118, 0.25);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.lang-card.lang-card-active {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(0, 230, 118, 0.35), 0 12px 32px rgba(0, 230, 118, 0.12);
}

.lang-flag {
  font-size: 2.5rem;
  line-height: 1;
}

.lang-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  text-align: center;
}

.lang-code {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--green);
  background: var(--green-dim);
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
}

.languages-hint {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.languages-hint strong {
  color: var(--text);
}

/* Sections */
section {
  position: relative;
  z-index: 1;
  padding: 4rem 0;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.section-header h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Feature rows */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 4.5rem;
}

.feature.reverse {
  direction: rtl;
}

.feature.reverse > * {
  direction: ltr;
}

.feature-copy h3 {
  font-size: 1.65rem;
  margin-bottom: 0.75rem;
}

.feature-copy p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.feature-list {
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.feature-list li::before {
  content: "✓";
  color: var(--green);
  font-weight: 800;
  flex-shrink: 0;
}

.feature-shot {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.feature-shot img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  margin-inline: auto;
  width: min(100%, 472px);
  max-width: 472px;
  height: auto;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
}

.feature-tag {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.tag-green { background: var(--green-dim); color: var(--green); }
.tag-purple { background: var(--purple-dim); color: var(--purple); }
.tag-blue { background: rgba(41, 121, 255, 0.14); color: var(--blue); }
.tag-orange { background: rgba(255, 109, 0, 0.14); color: var(--orange); }

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.gallery-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s;
}

.gallery-item:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 230, 118, 0.25);
}

.gallery-item img {
  width: 100%;
  height: auto;
  max-height: 560px;
  object-fit: contain;
  object-position: center top;
  padding: 0.75rem 0.75rem 0;
  background: #0c0c0e;
  image-rendering: -webkit-optimize-contrast;
}

.gallery-item figcaption {
  padding: 0.75rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.step {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--green-dim);
  color: var(--green);
  display: grid;
  place-items: center;
  font-weight: 800;
  margin-bottom: 1rem;
}

.step h4 {
  margin-bottom: 0.5rem;
}

.step p {
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* Gemini API guide */
.gemini-section {
  background: linear-gradient(180deg, transparent, rgba(179, 136, 255, 0.04) 30%, transparent);
}

.gemini-section .section-header .feature-tag {
  margin-bottom: 0.75rem;
}

.gemini-link {
  margin-top: 1.25rem;
  border-color: rgba(179, 136, 255, 0.35);
  color: var(--purple);
}

.gemini-link:hover {
  background: var(--purple-dim);
  color: #e8d9ff;
}

.guide-steps {
  list-style: none;
  display: grid;
  gap: 2.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.guide-step {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: grid;
  gap: 1.25rem;
}

.guide-step-copy {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.guide-num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--purple-dim);
  color: var(--purple);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.1rem;
}

.guide-step h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.guide-step p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.guide-step a {
  color: var(--purple);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.guide-step a:hover {
  color: #d4b8ff;
}

.guide-shot {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #0c0c0e;
}

.guide-shot img {
  width: 100%;
  height: auto;
  display: block;
  image-rendering: -webkit-optimize-contrast;
}

.guide-shot-wide img {
  max-height: 420px;
  object-fit: contain;
  object-position: left top;
}

.guide-shot-phone {
  max-width: 400px;
  margin-inline: auto;
}

.guide-note {
  max-width: 900px;
  margin: 2rem auto 0;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  background: var(--purple-dim);
  border: 1px solid rgba(179, 136, 255, 0.2);
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.guide-note strong {
  color: var(--purple);
}

/* Backup section */
.backup-section {
  background: linear-gradient(180deg, transparent, rgba(41, 121, 255, 0.04) 40%, transparent);
}

.backup-section .section-header .feature-tag {
  margin-bottom: 0.75rem;
}

.backup-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: start;
  max-width: 1000px;
  margin: 0 auto;
}

.backup-copy h3 {
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.backup-steps-compact {
  display: grid;
  gap: 1.25rem;
  margin: 1.75rem 0;
}

.backup-mini-step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 1.1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.backup-mini-step h4 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.backup-mini-step p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.backup-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.2rem;
}

.backup-icon-export {
  background: rgba(41, 121, 255, 0.14);
  color: var(--blue);
}

.backup-icon-import {
  background: rgba(255, 109, 0, 0.14);
  color: var(--orange);
}

.backup-note strong {
  color: var(--blue);
}

.backup-shot {
  position: sticky;
  top: 5rem;
}

/* FAQ */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  gap: 0.75rem;
}

.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  text-align: left;
  padding: 1.1rem 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-answer {
  display: none;
  padding: 0 1.25rem 1.1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.faq-answer a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.faq-item.open .faq-answer {
  display: block;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-icon {
  color: var(--green);
  font-size: 1.4rem;
  transition: transform 0.2s;
  flex-shrink: 0;
}

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, rgba(0, 230, 118, 0.1), rgba(179, 136, 255, 0.08));
  border: 1px solid rgba(0, 230, 118, 0.18);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  margin: 2rem 0 0;
}

.cta-band h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 0.75rem;
}

.cta-band p {
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 1.5rem;
}

/* Footer */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  margin-top: 3rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  gap: 1.25rem;
  list-style: none;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-links a:hover {
  color: var(--green);
}

/* Legal pages */
.legal-back {
  margin-left: auto;
  padding: 0.55rem 1rem;
  font-size: 0.88rem;
}

.legal-page {
  position: relative;
  z-index: 1;
  padding: 2.5rem 0 4rem;
}

.legal-content {
  max-width: 760px;
}

.legal-updated {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.legal-content h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.legal-lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.legal-content section {
  margin-top: 2rem;
  padding-top: 0.25rem;
}

.legal-content h2 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.legal-content p,
.legal-content li {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.legal-content ul {
  padding-left: 1.25rem;
  margin-bottom: 0.75rem;
}

.legal-content li {
  margin-bottom: 0.4rem;
}

.legal-content a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-content code {
  font-size: 0.85em;
  background: var(--card);
  border: 1px solid var(--border);
  padding: 0.1rem 0.35rem;
  border-radius: 6px;
  color: var(--text);
}

.legal-related {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 200;
  display: none;
  place-items: center;
  padding: 1rem;
}

.lightbox.open {
  display: grid;
}

.lightbox img {
  max-height: 92vh;
  max-width: min(472px, 96vw);
  width: auto;
  height: auto;
  border-radius: var(--radius);
  image-rendering: -webkit-optimize-contrast;
}

.lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 1100px) {
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Responsive */
@media (max-width: 1180px) {
  .nav-links {
    gap: 0.9rem;
  }

  .nav-links a:not(.btn) {
    font-size: 0.84rem;
  }

  .nav-actions .btn-primary {
    padding: 0.7rem 1rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(18, 18, 20, 0.98);
    padding: 1rem 1.5rem 1.5rem;
    border-bottom: 1px solid var(--border);
    flex: unset;
    justify-content: flex-start;
    gap: 0.25rem;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a:not(.btn) {
    display: block;
    padding: 0.55rem 0;
  }

  .nav-actions {
    margin-left: auto;
  }

  .lang-switcher-menu {
    right: 0;
    left: auto;
  }

  .nav-toggle {
    display: block;
  }

  .hero-grid,
  .feature,
  .stats-grid,
  .steps,
  .pillars-grid,
  .benefits-grid,
  .ai-spotlight-grid {
    grid-template-columns: 1fr;
  }

  .feature.reverse {
    direction: ltr;
  }

  .hero {
    padding-top: 2.5rem;
  }

  .phone-frame {
    max-width: min(92vw, 400px);
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item img {
    max-height: 70vh;
  }

  .backup-layout {
    grid-template-columns: 1fr;
  }

  .backup-shot {
    position: static;
    max-width: 400px;
    margin-inline: auto;
  }

  .languages-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .languages-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
