/* ============================================
   Tvoidom.org — Design System
   AstroWind-inspired, dark/light theme
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: 'Inter', system-ui, -apple-system, sans-serif; line-height: 1.6; transition: background-color 0.3s, color 0.3s; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font: inherit; border: none; background: none; }
ul, ol { list-style: none; }
input, textarea, select { font: inherit; }

/* --- Theme Tokens --- */
:root {
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Inter', system-ui, -apple-system, sans-serif;

  /* Light theme (default) */
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --surface: #f1f5f9;
  --border: #e2e8f0;
  --text: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --primary-light: rgba(99, 102, 241, 0.1);
  --accent: #8b5cf6;
  --success: #10b981;
  --warning: #f59e0b;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.04);
  --header-bg: rgba(255,255,255,0.8);
  --header-border: rgba(226,232,240,0.8);
}

[data-theme="dark"] {
  --bg: #0f172a;
  --bg-alt: #1e293b;
  --surface: #1e293b;
  --border: #334155;
  --text: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-muted: #64748b;
  --primary: #818cf8;
  --primary-hover: #a5b4fc;
  --primary-light: rgba(129, 140, 248, 0.1);
  --accent: #a78bfa;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.4), 0 2px 4px -2px rgba(0,0,0,0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.4), 0 4px 6px -4px rgba(0,0,0,0.3);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.5), 0 8px 10px -6px rgba(0,0,0,0.4);
  --header-bg: rgba(15,23,42,0.85);
  --header-border: rgba(51,65,85,0.8);
}

body {
  background: var(--bg);
  color: var(--text);
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
}
h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.125rem; }

.text-gradient {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.75rem;
}

.section {
  padding: 6rem 0;
}
.section-alt {
  padding: 6rem 0;
  background: var(--bg-alt);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.5rem;
}
.section-header .label {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 0.75rem;
}
.section-header h2 {
  margin-bottom: 1rem;
}
.section-header p {
  color: var(--text-secondary);
  font-size: 1.125rem;
  line-height: 1.7;
}

/* --- Header --- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--header-border);
  transition: background 0.3s;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.25rem;
  padding: 0.4rem 0;
  gap: 1.5rem;
}
.logo {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 0.875rem;
}

.logo-image {
  object-fit: cover;
  background: transparent;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
}
.nav a:hover { color: var(--text); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Language switcher */
.lang-switcher {
  display: flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.lang-switcher button {
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all 0.2s;
}
.lang-switcher button.active {
  background: var(--primary);
  color: #fff;
}
.lang-switcher button:hover:not(.active) {
  color: var(--text);
}

/* Theme toggle */
.theme-toggle {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  transition: all 0.2s;
}
.theme-toggle:hover {
  background: var(--surface);
  color: var(--text);
}
.theme-toggle .icon-sun,
.theme-toggle .icon-moon { width: 20px; height: 20px; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
:root:not([data-theme="dark"]) .theme-toggle .icon-sun { display: none; }
:root:not([data-theme="dark"]) .theme-toggle .icon-moon { display: block; }

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
}
.burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}
.burger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: var(--radius);
  padding: 0.75rem 1.75rem;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 1px 3px rgba(99,102,241,0.3);
}
.btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 4px 12px rgba(99,102,241,0.4);
  transform: translateY(-1px);
}
.btn-outline {
  border: 1.5px solid var(--border);
  color: var(--text);
  background: transparent;
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}
.btn-ghost {
  color: var(--text-secondary);
  padding: 0.5rem 1rem;
}
.btn-ghost:hover { color: var(--primary); }
.btn-sm { padding: 0.5rem 1.25rem; font-size: 0.875rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1rem; }

/* --- Hero with poster background --- */
.hero {
  position: relative;
  padding: 7rem 0 6rem;
  text-align: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: url('/assets/hero-3d-poster.png') center center / cover no-repeat;
  opacity: 0.15;
  z-index: 0;
  will-change: transform;
}
[data-theme="dark"] .hero-bg { opacity: 0.2; }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--bg) 0%, transparent 30%, transparent 70%, var(--bg) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}
.hero .label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-light);
  padding: 0.375rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}
.hero h1 {
  margin-bottom: 1.5rem;
}
.hero .lead {
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 640px;
  margin: 0 auto 2.5rem;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Cards --- */
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all 0.3s;
}
.card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
  transform: translateY(-2px);
}
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.25rem;
}
.card h3 {
  margin-bottom: 0.5rem;
}
.card p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.6;
}
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  margin-top: 1rem;
  transition: gap 0.2s;
}
.card-link:hover { gap: 0.625rem; }

/* Product card */
.product-card {
  position: relative;
  overflow: hidden;
}
.product-card-thumb {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--border);
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
  background: var(--surface);
}
.product-card .card-icon {
  margin-top: 0.25rem;
}
.product-card .card-badge {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  background: var(--primary-light);
  color: var(--primary);
}
.product-card .card-badge.soon {
  background: rgba(245,158,11,0.1);
  color: var(--warning);
}

/* --- Grid Layouts --- */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

/* --- Steps / Process --- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  counter-reset: step;
}
.step {
  position: relative;
  text-align: center;
  counter-increment: step;
}
.step::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 1.125rem;
  margin: 0 auto 1.25rem;
}
.step h3 {
  margin-bottom: 0.5rem;
}
.step p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

/* --- Bento polish --- */
.section-bento .section-header {
  margin-bottom: 2.5rem;
}
.bento-grid {
  gap: 1.25rem;
}
.bento-grid .card {
  border-color: color-mix(in srgb, var(--border) 70%, var(--primary) 30%);
  box-shadow: var(--shadow-sm);
  background: linear-gradient(160deg, color-mix(in srgb, var(--bg) 92%, var(--primary-light) 8%) 0%, var(--bg) 100%);
}
.bento-grid .card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}
.bento-steps {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}
.bento-steps .step {
  text-align: left;
  padding: 1.5rem 1.35rem 1.35rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--bg) 0%, color-mix(in srgb, var(--surface) 30%, var(--bg) 70%) 100%);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.bento-steps .step::before {
  width: 34px;
  height: 34px;
  font-size: 0.85rem;
  margin: 0 0 0.85rem;
}
.bento-steps .step h3 {
  margin-bottom: 0.6rem;
}
.bento-steps .step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: color-mix(in srgb, var(--primary) 55%, var(--border) 45%);
}

/* --- FAQ --- */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq-item.open { border-color: var(--primary); }
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  text-align: left;
  gap: 1rem;
  transition: color 0.2s;
}
.faq-q:hover { color: var(--primary); }
.faq-q .chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 0.3s;
  color: var(--text-muted);
}
.faq-item.open .faq-q .chevron { transform: rotate(180deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-a-inner {
  padding: 0 1.5rem 1.25rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* --- CTA Section --- */
.cta-section {
  padding: 5rem 0;
  text-align: center;
}
.cta-box {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: var(--radius-xl);
  padding: 4rem 2rem;
  color: #fff;
  max-width: 800px;
  margin: 0 auto;
}
.cta-box h2 {
  color: #fff;
  margin-bottom: 1rem;
}
.cta-box p {
  opacity: 0.9;
  font-size: 1.125rem;
  margin-bottom: 2rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
.cta-box .btn-primary {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.cta-box .btn-primary:hover {
  background: #f1f5f9;
  transform: translateY(-1px);
}
.cta-box .btn-outline {
  border-color: rgba(255,255,255,0.4);
  color: #fff;
}
.cta-box .btn-outline:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.1);
}

/* --- Contact Form --- */
.form {
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.form input,
.form textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.9375rem;
  transition: border-color 0.2s;
}
.form input:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}
.form input::placeholder,
.form textarea::placeholder { color: var(--text-muted); }
.form textarea { resize: vertical; min-height: 100px; }
.form-note {
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-align: center;
}
.form-note a { color: var(--primary); text-decoration: underline; }
.form-status {
  text-align: center;
  padding: 0.75rem;
  border-radius: var(--radius);
  font-weight: 500;
}
.form-status:empty {
  display: none;
}
.form-status.success { background: rgba(16,185,129,0.1); color: var(--success); }
.form-status.error { background: rgba(239,68,68,0.1); color: #ef4444; }

/* --- Footer --- */
.footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.footer-brand .logo { margin-bottom: 0.5rem; }
.footer-brand p {
  color: var(--text-muted);
  font-size: 0.875rem;
  max-width: 280px;
  line-height: 1.6;
}
.footer-col h4 {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.footer-col a {
  display: block;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  padding: 0.25rem 0;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--primary); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--text-muted);
}
.footer-social {
  display: flex;
  gap: 1rem;
}
.footer-social a {
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer-social a:hover { color: var(--primary); }

/* --- Use Cases / Features list with icon --- */
.features-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.feature-row {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.feature-row .card-icon {
  flex-shrink: 0;
  margin-bottom: 0;
}
.feature-row h4 { margin-bottom: 0.25rem; }
.feature-row p { color: var(--text-secondary); font-size: 0.9375rem; }

/* --- Stats --- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
  text-align: center;
  padding: 3rem 0;
}
.stat-item .stat-value {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
}
.stat-item .stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* --- Product Page Hero --- */
.product-hero {
  padding: 5rem 0 3rem;
}
.product-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.product-hero-text .label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-light);
  padding: 0.375rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}
.product-hero-text h1 { margin-bottom: 1rem; }
.product-hero-text .lead {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2rem;
}
.product-hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-mockup {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 9/16;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.875rem;
}
.product-mockup-img {
  width: 100%;
  max-width: 320px;
  height: auto;
  border-radius: 24px;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border);
}

/* --- Page header (legal, 404) --- */
.page-header {
  padding: 4rem 0 2rem;
  text-align: center;
}
.page-header h1 { margin-bottom: 0.5rem; }

/* --- Legal --- */
.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 0 4rem;
}
.legal h2 {
  font-size: 1.125rem;
  margin: 2.5rem 0 0.75rem;
}
.legal p {
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  line-height: 1.7;
}
.legal ul {
  margin: 0 0 0.75rem 1.5rem;
  list-style: disc;
}
.legal li {
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  line-height: 1.6;
}
.legal li strong { color: var(--text); }
.legal code {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.875em;
}
.legal .date {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}
.legal .summary-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 2rem;
}
.legal .summary-box strong { display: block; margin-bottom: 0.5rem; color: var(--text); }
.lang-block { display: none; }
.lang-block.active { display: block; }

/* --- 404 --- */
.page-404 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
  padding: 4rem 1.5rem;
}
.page-404 h1 {
  font-size: clamp(5rem, 15vw, 10rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 1rem;
  opacity: 0.3;
}
.page-404 p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 420px;
}

/* --- Visually hidden --- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .product-hero-inner { gap: 2rem; }
}

@media (max-width: 768px) {
  .section, .section-alt { padding: 4.25rem 0; }
  .hero { padding: 5rem 0 4rem; }
  .nav {
    display: none;
    position: fixed;
    top: 4.65rem;
    left: 1rem;
    right: 1rem;
    z-index: 120;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    padding: 0.8rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--bg);
    box-shadow: var(--shadow-xl);
  }
  .nav.open { display: flex; }
  .nav a {
    display: block;
    padding: 0.7rem 0.85rem;
    border-radius: var(--radius-sm);
  }
  .nav a:hover {
    background: var(--surface);
  }
  .burger { display: flex; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .product-hero-inner { grid-template-columns: 1fr; text-align: center; }
  .product-hero-visual { order: -1; }
  .product-mockup { max-width: 260px; }
  .product-hero-text .hero-actions { justify-content: center; }
  .header-actions .lang-switcher { display: flex; }
}

@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .hero { padding: 4rem 0 3rem; }
  .hero-actions { flex-direction: column; align-items: center; }
  .cta-box { padding: 3rem 1.5rem; }
  .product-card-thumb { height: 148px; }
}

/* --- Scroll animations --- */
@media (prefers-reduced-motion: no-preference) {
  .fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  .fade-in.visible {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .fade-in { opacity: 1; transform: none; }
}
