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

:root {
  --accent: #4f46e5;
  --accent-hover: #4338ca;
  --accent-light: #eef2ff;
  --accent-rgb: 79, 70, 229;
  --danger: #e11d48;
  --danger-hover: #be123c;
  --danger-rgb: 225, 29, 72;
  --surface: #ffffff;
  --surface-alt: #f8fafc;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --text: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 40px rgba(0,0,0,0.15), 0 8px 16px rgba(0,0,0,0.1);
  --shadow-glow: 0 0 20px rgba(var(--accent-rgb), 0.3);
  --radius: 12px;
  --radius-sm: 8px;
  --max-width: 1120px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --gradient-accent: linear-gradient(135deg, #4f46e5, #7c3aed, #4f46e5);
  --gradient-hero: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #1e293b 100%);
  --gradient-text: linear-gradient(135deg, #ffffff, #c4b5fd);
  --glass-bg: rgba(255, 255, 255, 0.8);
  --glass-border: rgba(255, 255, 255, 0.2);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  line-height: 1.6;
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

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

/* === Container === */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* === Top Bar === */
.top-bar {
  background: var(--surface-alt);
  border-bottom: 1px solid var(--border);
  font-size: 0.8rem;
  padding: 8px 0;
  color: var(--text-muted);
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar__left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.top-bar a { color: var(--text-secondary); transition: color 0.2s; }
.top-bar a:hover { color: var(--accent); }

.social-icon {
  width: 20px;
  height: 20px;
  display: inline-block;
  vertical-align: middle;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.social-icon:hover { opacity: 1; }

/* === Header / Navigation === */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--glass-bg);
  border-bottom: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--glass-shadow);
  transition: background 0.3s var(--transition-smooth), box-shadow 0.3s var(--transition-smooth);
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0;
  padding-bottom: 0;
  height: 56px;
}

.header__left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header__left .social-icon {
  width: 24px;
  height: 24px;
}

.nav { display: flex; align-items: center; }

.nav__list {
  display: flex;
  list-style: none;
  gap: 2px;
}

.nav__link {
  padding: 8px 16px;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all 0.25s var(--transition-smooth);
  white-space: nowrap;
}

.nav__link:hover {
  color: var(--text);
  background: var(--surface-alt);
  text-decoration: none;
}

.nav__link--active {
  color: var(--accent);
  background: var(--accent-light);
}

.nav__link--active:hover {
  color: var(--accent);
  background: var(--accent-light);
}

/* Dropdown */
.nav__item { position: relative; }
.nav__expand { display: none; }

.nav__sub {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 260px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xl);
  list-style: none;
  padding: 6px;
  z-index: 200;
  animation: fadeInDown 0.2s var(--transition-smooth);
}

.nav__item:hover > .nav__sub { display: block; }

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.nav__sub a {
  display: block;
  padding: 10px 14px;
  color: var(--text-secondary);
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
  transition: all 0.15s;
  white-space: nowrap;
}

.nav__sub a:hover {
  background: var(--accent-light);
  color: var(--accent);
  text-decoration: none;
}

/* Hamburger */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
}

.nav__toggle:hover { background: var(--surface-alt); }

.nav__toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  margin: 4px 0;
  border-radius: 1px;
  transition: transform 0.3s;
}

/* === Hero Section === */
.hero {
  background: var(--gradient-hero);
  background-size: 200% 200%;
  animation: gradientShift 8s ease infinite;
  color: #fff;
  text-align: center;
  padding: 80px 24px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg at 50% 50%, transparent 0deg, rgba(var(--accent-rgb), 0.03) 60deg, transparent 120deg);
  animation: heroRays 12s linear infinite;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -120px;
  right: -80px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.15), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.025em;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.hero p {
  font-size: 1.125rem;
  opacity: 0.9;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
  position: relative;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes heroRays {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* === Product Hero === */
.product-hero {
  background: var(--gradient-hero);
  background-size: 200% 200%;
  animation: gradientShift 8s ease infinite;
  color: #fff;
  padding: 64px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.product-hero::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg at 50% 50%, transparent 0deg, rgba(var(--accent-rgb), 0.03) 60deg, transparent 120deg);
  animation: heroRays 12s linear infinite;
  pointer-events: none;
}

.product-hero::after {
  content: "";
  position: absolute;
  top: -80px;
  left: -60px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.12), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.product-hero h1 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.025em;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.product-hero p {
  font-size: 1.05rem;
  opacity: 0.9;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
  position: relative;
}

.product-hero .buttons-row {
  justify-content: center;
}

/* === Product Cards Grid === */
.products-grid {
  padding: 64px 0;
}

.products-grid h2 {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 40px;
  color: var(--text);
}

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 180px;
  transition: all 0.3s var(--transition-smooth);
  color: var(--text);
  position: relative;
  top: 0;
}

.card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--accent), #7c3aed, var(--accent));
  opacity: 0;
  z-index: -1;
  transition: opacity 0.3s var(--transition-smooth);
}

.card:hover {
  border-color: transparent;
  box-shadow: var(--shadow-lg), 0 0 24px rgba(var(--accent-rgb), 0.15);
  text-decoration: none;
  top: -4px;
  color: var(--text);
}

.card:hover::before {
  opacity: 1;
}

.card--red {
  background: var(--accent-light);
  border-color: transparent;
}

.card--red:hover {
  border-color: transparent;
}

.card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.card h3 small {
  display: block;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-secondary);
  margin-top: 2px;
}

.card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  flex-grow: 1;
}

.card__arrow {
  font-size: 1.25rem;
  margin-top: 16px;
  display: block;
  color: var(--accent);
  transition: transform 0.3s var(--transition-smooth);
}

.card:hover .card__arrow { transform: translateX(4px); }

/* === Section === */
.section {
  padding: 64px 0;
}

.section--gray { background: var(--surface-alt); }

.section--green {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #1e293b 100%);
  background-size: 200% 200%;
  animation: gradientShift 8s ease infinite;
  color: #fff;
}

.section h2 {
  font-size: 1.375rem;
  font-weight: 600;
  margin-bottom: 24px;
  color: var(--text);
}

.section h2 + .steps + h2 {
  margin-top: 48px;
}

.section--green h2 { color: #fff; }
.section--gray h2 { color: var(--text); }

/* === Features List === */
.features-list {
  list-style: none;
  padding: 0;
  line-height: 1.8;
}

.features-list li {
  margin-bottom: 8px;
  padding-left: 24px;
  position: relative;
  color: var(--text-secondary);
}

.features-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0.6;
}

/* === Benefits === */
.benefits {
  background: var(--surface-alt);
  padding: 64px 24px;
}

.benefits h2 {
  text-align: center;
  font-size: 1.375rem;
  font-weight: 600;
  margin-bottom: 32px;
  color: var(--text);
}

.benefits ul {
  list-style: none;
  padding: 0;
  max-width: 640px;
  margin: 0 auto;
  font-size: 1rem;
}

.benefits li {
  padding: 8px 0 8px 28px;
  position: relative;
  color: var(--text-secondary);
}

.benefits li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* === Buttons === */
.btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s var(--transition-smooth);
  cursor: pointer;
  border: 1px solid transparent;
  letter-spacing: 0.01em;
  position: relative;
}

.btn:hover { text-decoration: none; transform: translateY(-2px); }

.btn--white {
  background: #fff;
  color: var(--text);
  border-color: rgba(255,255,255,0.2);
}
.btn--white:hover { background: var(--surface-alt); color: var(--text); box-shadow: 0 4px 16px rgba(255, 255, 255, 0.2); }

.btn--green {
  background: linear-gradient(135deg, var(--accent), #7c3aed);
  color: #fff;
}
.btn--green:hover { box-shadow: 0 4px 20px rgba(var(--accent-rgb), 0.4); }

.btn--outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn--outline:hover { background: var(--accent); color: #fff; box-shadow: 0 4px 20px rgba(var(--accent-rgb), 0.3); }

.btn--red {
  background: linear-gradient(135deg, var(--danger), #f43f5e);
  color: #fff;
}
.btn--red:hover { box-shadow: 0 4px 20px rgba(var(--danger-rgb), 0.4); }

.buttons-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

/* === Screenshots === */
.screenshots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.screenshots img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
  transition: transform 0.3s var(--transition-smooth), box-shadow 0.3s var(--transition-smooth);
}

.screenshots img:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-xl);
}

.screenshot-single {
  max-width: 700px;
  margin: 0 auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s var(--transition-smooth), box-shadow 0.3s var(--transition-smooth);
}

.screenshot-single:hover {
  transform: scale(1.01);
  box-shadow: var(--shadow-xl);
}

/* === Section Subtitle === */
.section__subtitle {
  color: var(--text-secondary);
  margin-bottom: 24px;
  font-size: 1rem;
}

/* === Map === */
.map-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--surface-alt);
}

.map-wrapper iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}

/* === Video === */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  max-width: 700px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: box-shadow 0.3s var(--transition-smooth);
}

.video-wrapper:hover {
  box-shadow: var(--shadow-xl);
}

.video-wrapper iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}

/* === Tables === */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.table-clean {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.table-clean thead { background: var(--surface-alt); }

.table-clean th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  border-bottom: 2px solid var(--border);
}

.table-clean th:not(:first-child) { text-align: center; }

.table-clean td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-secondary);
}

.table-clean td:not(:first-child) { text-align: center; }

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

.table-clean tbody tr:hover { background: var(--surface-alt); }

/* === Steps === */
.steps { counter-reset: step; }

.steps li {
  list-style: none;
  counter-increment: step;
  padding: 12px 0 12px 48px;
  position: relative;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 10px;
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

.section--green .steps li::before {
  color: #fff;
}

/* === Changelog === */
.changelog { padding: 40px 0; }

.changelog h2 {
  font-size: 1.375rem;
  margin-bottom: 24px;
}

.changelog-entry {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.changelog-entry:last-child { border-bottom: none; }

.changelog-entry h3 {
  font-size: 0.95rem;
  color: var(--accent);
  margin-bottom: 6px;
  font-weight: 600;
}

.changelog-entry ul {
  list-style: disc;
  padding-left: 24px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* === Legal Page === */
.legal-links { list-style: none; }

.legal-links li {
  border-bottom: 1px solid var(--border);
}

.legal-links li:first-child { border-top: 1px solid var(--border); }

.legal-links a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  font-size: 0.95rem;
  color: var(--text);
  transition: color 0.2s;
}

.legal-links a:hover { color: var(--accent); text-decoration: none; }
.legal-links a::after { content: "→"; font-size: 1.1rem; color: var(--text-muted); transition: transform 0.2s; }
.legal-links a:hover::after { transform: translateX(4px); color: var(--accent); }

/* === Donate / Store Section === */
.donate-section {
  text-align: center;
  padding: 40px 24px;
  max-width: 640px;
  margin: 0 auto;
}

.donate-section h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.donate-section p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-size: 1rem;
}

.donate-section .features-list {
  text-align: left;
  max-width: 400px;
  margin: 0 auto 24px;
}

.donate-section .disclaimer {
  margin-top: 20px;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.payment-widgets {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  margin: 24px 0;
}

.payment-widgets > div {
  width: 100%;
  max-width: 500px;
}

/* === Slider === */
.slider {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface-alt);
  max-width: 800px;
  margin: 0 auto;
}

.slider__track {
  display: flex;
  transition: transform 0.4s ease;
}

.slider__slide {
  min-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.slider__slide img {
  max-height: 500px;
  width: auto;
  max-width: 100%;
  border-radius: var(--radius-sm);
  object-fit: contain;
}

.slider__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.9);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text);
  box-shadow: var(--shadow);
  transition: background 0.2s;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.slider__btn:hover {
  background: #fff;
}

.slider__btn--prev { left: 12px; }
.slider__btn--next { right: 12px; }

.slider__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 12px 0;
}

.slider__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
}

.slider__dot--active {
  background: var(--accent);
}

/* === Video Gallery === */
.vgallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.vgallery__item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 16 / 9;
  background: #000;
}

.vgallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s, opacity 0.3s;
}

.vgallery__item:hover img {
  transform: scale(1.05);
  opacity: 0.7;
}

.vgallery__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  box-shadow: var(--shadow-lg);
  transition: transform 0.2s, background 0.2s;
}

.vgallery__play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 10px 0 10px 18px;
  border-color: transparent transparent transparent var(--accent);
}

.vgallery__item:hover .vgallery__play {
  transform: translate(-50%, -50%) scale(1.1);
  background: #fff;
}

/* Video Lightbox */
.vlightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.vlightbox.active {
  display: flex;
}

.vlightbox__close {
  position: absolute;
  top: 16px;
  right: 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  z-index: 1001;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.vlightbox__close:hover {
  opacity: 1;
}

.vlightbox__video {
  max-width: 90%;
  max-height: 85vh;
  border-radius: var(--radius);
  outline: none;
}

@media (max-width: 768px) {
  .vgallery { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .vgallery { grid-template-columns: 1fr; }
}

/* === Blog === */
.blog-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 500px;
  transition: box-shadow 0.2s;
}

.blog-card:hover { box-shadow: var(--shadow-md); }

.blog-card__body { padding: 24px; }

.blog-card__title {
  font-size: 1.125rem;
  margin-bottom: 8px;
}

.blog-card__meta {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* === Footer === */
.footer {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #1e293b 100%);
  border-top: none;
  padding: 48px 0 32px;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer p { margin-bottom: 6px; }

.footer a { color: rgba(255, 255, 255, 0.8); transition: color 0.25s var(--transition-smooth); }
.footer a:hover { color: #c4b5fd; }

.footer__links {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 20px;
  font-size: 0.8rem;
}

/* === 404 === */
.page-404 {
  text-align: center;
  padding: 120px 24px;
}

.page-404 h1 {
  font-size: 6rem;
  font-weight: 700;
  letter-spacing: -0.05em;
  background: linear-gradient(135deg, var(--accent), #7c3aed, #c4b5fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-404 p {
  font-size: 1.125rem;
  margin: 16px 0 32px;
  color: var(--text-secondary);
}

/* === Scroll Reveal Animations === */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--transition-smooth), transform 0.6s var(--transition-smooth);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger-children > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s var(--transition-smooth), transform 0.5s var(--transition-smooth);
}

.stagger-children.visible > * {
  opacity: 1;
  transform: translateY(0);
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0ms; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 80ms; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 160ms; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 240ms; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 320ms; }
.stagger-children.visible > *:nth-child(6) { transition-delay: 400ms; }

/* === Reduced Motion === */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal, .stagger-children > * {
    opacity: 1;
    transform: none;
  }
}

/* === Responsive === */
@media (max-width: 900px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav__toggle { display: block; }

  .nav__list {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 8px;
    box-shadow: var(--shadow-lg);
  }

  .nav__list.open { display: flex; }

  .nav__link {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
  }

  .nav__sub {
    position: static;
    box-shadow: none;
    border: none;
    min-width: 0;
    padding: 0 0 0 16px;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: transparent;
    animation: none;
  }

  .nav__item { position: relative; }

  .nav__item:hover > .nav__sub { display: none; }
  .nav__item.open > .nav__sub { display: block; }

  .nav__expand {
    position: absolute;
    right: 0;
    top: 0;
    width: 48px;
    height: 100%;
    background: none;
    border: none;
    border-left: 1px solid var(--border);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav__expand::after {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--text-secondary);
    border-bottom: 2px solid var(--text-secondary);
    transform: rotate(45deg);
    transition: transform 0.2s;
  }

  .nav__item.open > .nav__expand::after {
    transform: rotate(-135deg);
  }

  .nav__item:has(.nav__expand) > .nav__link {
    padding-right: 56px;
  }

  .nav__sub a {
    padding: 8px 16px;
    font-size: 0.85rem;
  }

  .header .container { position: relative; }

  .hero h1 { font-size: 1.875rem; }
  .hero p { font-size: 1rem; }
  .hero { padding: 56px 24px; }

  .product-hero h1 { font-size: 1.75rem; }
  .product-hero { padding: 48px 24px; }

  .top-bar__left { font-size: 0.75rem; flex-wrap: wrap; }
}

@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
  .section { padding: 40px 0; }
  .products-grid { padding: 40px 0; }
  .top-bar .container { flex-direction: column; gap: 4px; }
  .footer__links { flex-direction: column; gap: 8px; }
}
