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

:root {
  --bg-deep: #06060b;
  --bg-surface: #0e0e16;
  --bg-card: rgba(16, 16, 26, 0.7);
  --bg-card-hover: rgba(22, 22, 36, 0.85);

  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);

  --text-primary: #f0eef6;
  --text-secondary: rgba(240, 238, 246, 0.55);
  --text-tertiary: rgba(240, 238, 246, 0.3);

  --accent-violet: #a78bfa;
  --accent-pink: #f472b6;
  --accent-gradient: linear-gradient(135deg, var(--accent-violet), var(--accent-pink));

  --header-h: 72px;
  --max-w: 1320px;
  --gutter: 24px;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;

  --font-display: 'Unbounded', sans-serif;
  --font-body: 'Golos Text', sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
button { border: none; background: none; cursor: pointer; font-family: inherit; color: inherit; }

/* ===== AMBIENT BACKGROUND ===== */
.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.ambient__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.12;
  animation: ambientFloat 20s ease-in-out infinite;
}

.ambient__blob--1 {
  width: 600px; height: 600px;
  background: var(--accent-violet);
  top: -200px; left: -100px;
}

.ambient__blob--2 {
  width: 500px; height: 500px;
  background: var(--accent-pink);
  top: 40%; right: -150px;
  animation-delay: -7s;
  animation-duration: 25s;
}

.ambient__blob--3 {
  width: 400px; height: 400px;
  background: #6ee7b7;
  bottom: -100px; left: 30%;
  animation-delay: -14s;
  animation-duration: 30s;
}

@keyframes ambientFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(40px, -30px) scale(1.05); }
  50% { transform: translate(-20px, 20px) scale(0.95); }
  75% { transform: translate(30px, 40px) scale(1.02); }
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(6, 6, 11, 0.85);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border-bottom: 1px solid var(--border-subtle);
  padding-top: env(safe-area-inset-top);
}

.header__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.header__logo-img {
  height: 32px;
  width: auto;
}

.header__logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

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

.header__nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.25s var(--ease-out);
}

.header__nav-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

.header__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 700;
  font-family: var(--font-display);
  background: var(--accent-gradient);
  color: white;
}

.header__profile {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  transition: all 0.25s var(--ease-out);
}

.header__profile:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  border-color: var(--border-hover);
}

.header__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.header__mobile-actions {
  display: none;
  align-items: center;
  gap: 4px;
}

.header__mobile-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.header__mobile-btn:active {
  background: rgba(255, 255, 255, 0.08);
}

.header__badge--mobile {
  position: absolute;
  top: 2px;
  right: 0;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  font-size: 0.6rem;
}

.header__burger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s var(--ease-out);
  transform-origin: center;
}

.header__burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header__burger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.header__burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== MOBILE MENU (inline in header) ===== */
.mobile-menu {
  display: none;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease-out);
}

.mobile-menu.open {
  max-height: 120px;
}

.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 var(--gutter) 12px;
}

.mobile-menu__link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  transition: all 0.25s var(--ease-out);
}

.mobile-menu__link:hover,
.mobile-menu__link:active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

/* ===== PROMO BANNER (LED dot-matrix sign) ===== */
.promo-banner {
  position: relative;
  z-index: 1;
  margin-top: var(--header-h);
  background: #0a0a0a;
  border: 2px solid #1a1a1a;
  border-left: none;
  border-right: none;
  overflow: hidden;
  padding: 8px 0;
}

/* Dot-matrix grid overlay */
.promo-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, transparent 40%, #0a0a0a 41%);
  background-size: 4px 4px;
  z-index: 2;
  pointer-events: none;
  opacity: 0.4;
}

/* LED glow effect */
.promo-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.8);
  z-index: 3;
  pointer-events: none;
}

.promo-banner__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 0 var(--gutter);
  max-width: var(--max-w);
  margin: 0 auto;
}

.promo-banner__text {
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ff3333;
  text-shadow:
    0 0 4px #ff3333,
    0 0 8px rgba(255, 51, 51, 0.5),
    0 0 16px rgba(255, 51, 51, 0.3);
}

.promo-banner__dots {
  font-size: 1rem;
  letter-spacing: 6px;
  color: #ffcc00;
  text-shadow:
    0 0 4px #ffcc00,
    0 0 8px rgba(255, 204, 0, 0.5);
  min-width: 60px;
  text-align: center;
}

@media (max-width: 640px) {
  .promo-banner { display: none; }
}

/* ===== MAIN ===== */
.main {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: calc(var(--header-h) + 28px) var(--gutter) 60px;
}

/* ===== PAGE TITLE ===== */
.page-title {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 36px;
}

/* ===== HERO MODEL (standalone showcase) ===== */
.hero-model {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 44px;
  padding: 30px 30px 30px;
  opacity: 0;
  transform: translateY(24px);
  transition: all 0.6s var(--ease-out);
}

.hero-model.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-model__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(139, 92, 246, 0.25), transparent 60%),
    radial-gradient(ellipse at 80% 30%, rgba(236, 72, 153, 0.2), transparent 50%),
    radial-gradient(ellipse at 60% 80%, rgba(99, 102, 241, 0.15), transparent 50%),
    linear-gradient(135deg, #12101f, #1a1030 40%, #160e24);
  z-index: 0;
}

.hero-model__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.hero-model__content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: stretch;
  margin-bottom: 24px;
}

.hero-model__badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 700;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  color: white;
  margin-bottom: 16px;
}

.hero-model__text {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.hero-model__title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

/* Polaroid + arrows flow */
.hero-model__flow {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}

.hero-model__polaroid {
  width: 220px;
  flex-shrink: 0;
  background: #fff;
  padding: 7px 7px 28px;
  border-radius: 3px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5);
  transform: rotate(-3deg);
}

.hero-model__polaroid img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
}

.hero-model__arrows {
  display: flex;
  flex-direction: row;
  gap: 0;
  align-items: center;
}

.hero-model__arrows svg,
.hero-animate__arrows svg {
  width: 64px;
  height: 64px;
}

.hero-model__arrows svg:nth-child(1),
.hero-animate__arrows svg:nth-child(1) {
  color: rgba(255, 255, 255, 0.45);
  animation: arrowPulse 2.8s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

.hero-model__arrows svg:nth-child(2),
.hero-animate__arrows svg:nth-child(2) {
  color: rgba(255, 255, 255, 0.25);
  animation: arrowPulse 2.8s cubic-bezier(0.22, 1, 0.36, 1) infinite 0.08s;
}

.hero-model__arrows svg:nth-child(3),
.hero-animate__arrows svg:nth-child(3) {
  color: rgba(255, 255, 255, 0.10);
  animation: arrowPulse 2.8s cubic-bezier(0.22, 1, 0.36, 1) infinite 0.16s;
}

@keyframes arrowPulse {
  0% { transform: translateX(0); }
  /* Pull right */
  20% { transform: translateX(12px); }
  /* Snap back (overshoot) */
  40% { transform: translateX(-4px); }
  /* Settle */
  55% { transform: translateX(2px); }
  65% { transform: translateX(-1px); }
  75%, 100% { transform: translateX(0); }
}

.hero-model__cta {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 10px;
  padding: 12px 28px;
  border-radius: 100px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  position: relative;
  z-index: 5;
  font-weight: 600;
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  color: white;
  transition: all 0.3s var(--ease-out);
  box-shadow: 0 4px 24px rgba(139, 92, 246, 0.3);
}

.hero-model__cta svg {
  width: 18px;
  height: 18px;
}

.hero-model__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(139, 92, 246, 0.45);
}

/* Example grid in hero */
.hero-model__examples {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.hero-model__example {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  opacity: 0;
  transform: translateY(16px);
  transition: all 0.5s var(--ease-out);
}

.hero-model__example.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-model__example-img {
  position: relative;
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  overflow: hidden;
}

.hero-model__example-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, var(--ex-color), transparent 70%);
  opacity: 0.2;
}

.hero-model__example-img > span {
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}

.hero-model__example-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  padding: 14px;
  background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, transparent 60%);
}

.hero-model__example-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
}

/* Style pills row — single line, hide overflow */
.hero-model__styles {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow: hidden;
  max-height: 36px;
}

.hero-model__style {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  transition: all 0.25s var(--ease-out);
  opacity: 0;
  transform: translateY(8px);
}

.hero-model__style.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-model__style:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.15);
}

.hero-model__style--more {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(236, 72, 153, 0.2));
  border-color: rgba(139, 92, 246, 0.3);
  color: var(--accent-violet);
  font-weight: 600;
  cursor: default;
}

/* ===== HERO ANIMATE (standalone showcase) ===== */
.hero-animate {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 44px;
  padding: 30px 30px 30px;
  opacity: 0;
  transform: translateY(24px);
  transition: all 0.6s var(--ease-out);
}

.hero-animate.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-animate__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(13, 148, 136, 0.25), transparent 60%),
    radial-gradient(ellipse at 80% 30%, rgba(6, 182, 212, 0.2), transparent 50%),
    radial-gradient(ellipse at 60% 80%, rgba(16, 185, 129, 0.15), transparent 50%),
    linear-gradient(135deg, #0a1a1a, #0d2626 40%, #0a201e);
  z-index: 0;
}

.hero-animate__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.hero-animate__content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: stretch;
}

.hero-animate__text {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.hero-animate__title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.hero-animate__flow {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}

.hero-animate__polaroid {
  width: 180px;
  flex-shrink: 0;
  background: #fff;
  padding: 6px 6px 24px;
  border-radius: 3px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5);
  transform: rotate(-3deg);
}

.hero-animate__polaroid img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
}

.hero-animate__arrows {
  display: flex;
  flex-direction: row;
  gap: 0;
  align-items: center;
}

.hero-animate__arrows svg {
  width: 64px;
  height: 64px;
}

.hero-animate__arrows svg:nth-child(1) { color: rgba(255, 255, 255, 0.45); }
.hero-animate__arrows svg:nth-child(2) { color: rgba(255, 255, 255, 0.25); }
.hero-animate__arrows svg:nth-child(3) { color: rgba(255, 255, 255, 0.10); }

.hero-animate__cta {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  position: relative;
  z-index: 5;
  gap: 10px;
  padding: 12px 28px;
  border-radius: 100px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  background: linear-gradient(135deg, #0d9488, #06b6d4);
  color: white;
  transition: all 0.3s var(--ease-out);
  box-shadow: 0 4px 24px rgba(13, 148, 136, 0.3);
}

.hero-animate__cta svg {
  width: 18px;
  height: 18px;
}

.hero-animate__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(13, 148, 136, 0.45);
}

/* Video showcase */
.hero-animate__showcase {
  display: flex;
  align-items: center;
}

.hero-animate__videos {
  display: flex;
  flex-direction: row;
  gap: 12px;
  width: 100%;
  justify-content: center;
}

.hero-animate__video {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  max-width: 420px;
}

.hero-animate__video video {
  width: 100%;
  display: block;
  border-radius: var(--radius-md);
}

.hero-animate__video-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65) 0%, transparent 100%);
}

/* ===== GROUP (shared) ===== */
.group {
  margin-bottom: 44px;
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
}

.group__header {
  margin-bottom: 24px;
}

.group__title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}

.group__subtitle {
  font-size: 0.82rem;
  color: var(--text-tertiary);
}

.group__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

/* =============================================
   VARIANT 1: light-island
   Warm-tinted dark background with amber accents
   ============================================= */
.group--light-island {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.07), rgba(239, 68, 68, 0.04), rgba(16, 16, 26, 0.9));
  border: 1px solid rgba(245, 158, 11, 0.12);
}

.group--light-island .group__title {
  color: #fbbf24;
}

.group--light-island .group__subtitle {
  color: rgba(251, 191, 36, 0.4);
}

/* =============================================
   VARIANT 2: gradient-ribbon
   Gradient left ribbon + deep purple tint
   ============================================= */
.group--gradient-ribbon {
  background: linear-gradient(135deg, rgba(139,92,246,0.06), rgba(236,72,153,0.03), transparent 70%);
  border: 1px solid rgba(139, 92, 246, 0.1);
  border-left: 4px solid #8b5cf6;
  padding-left: 36px;
}

.group--gradient-ribbon .group__title {
  color: #c4b5fd;
}

/* =============================================
   VARIANT 3: glass-float
   Thick frosted glass with glow underneath
   ============================================= */
.group--glass-float {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  box-shadow:
    0 8px 60px rgba(124, 58, 237, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.group--glass-float::before {
  content: '';
  position: absolute;
  top: -60px; right: -40px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.12), transparent 70%);
  pointer-events: none;
}

.group--glass-float::after {
  content: '';
  position: absolute;
  bottom: -40px; left: -20px;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.08), transparent 70%);
  pointer-events: none;
}

.group--glass-float .group__title {
  color: #a78bfa;
}

/* =============================================
   VARIANT 4: tech-grid
   Technical grid pattern + monospace header
   ============================================= */
.group--tech-grid {
  background:
    linear-gradient(rgba(20, 184, 166, 0.03), rgba(6, 182, 212, 0.02)),
    repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(20, 184, 166, 0.04) 39px, rgba(20, 184, 166, 0.04) 40px),
    repeating-linear-gradient(90deg, transparent, transparent 39px, rgba(20, 184, 166, 0.04) 39px, rgba(20, 184, 166, 0.04) 40px);
  border: 1px solid rgba(20, 184, 166, 0.1);
}

.group--tech-grid .group__title {
  color: #5eead4;
}

.group--tech-grid .group__subtitle {
  color: rgba(94, 234, 212, 0.35);
}

/* ===== CARD ===== */
.card {
  position: relative;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s var(--ease-out);
  opacity: 0;
  transform: translateY(24px);
}

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

.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.05);
}

.card:hover .card__glow { opacity: 1; }
.card:hover .card__visual-icon { transform: scale(1.1); }
.card:hover .card__arrow { transform: translateX(4px); opacity: 1; }
.card:hover .card__visual-bg { opacity: 0.2; }

/* Glow on hover */
.card__glow {
  position: absolute;
  top: -1px; left: -1px; right: -1px;
  height: 3px;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
}

/* Visual placeholder */
.card__visual {
  position: relative;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.card__visual-bg {
  position: absolute;
  inset: 0;
  opacity: 0.12;
  transition: opacity 0.4s var(--ease-out);
}

.card__visual-shape {
  position: absolute;
  border-radius: 50%;
}

.card__visual-icon {
  position: relative;
  z-index: 2;
  font-size: 3.2rem;
  line-height: 1;
  transition: transform 0.4s var(--ease-spring);
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
}

/* Card composite: circles over background */
.card__composite-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.card__circles {
  position: absolute;
  top: 0;
  left: 8px;
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.card__circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
  position: relative;
}

.card__circle:nth-child(2) {
  margin-top: -6px;
}

.card__circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Card split before/after */
.card__split {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 2px 1fr;
}

.card__split-half {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-width: 0;
}

.card__split-divider {
  background: rgba(255, 255, 255, 0.5);
}

/* Card single image */
.card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

/* Card slideshow (JS-driven synchronized crossfade) */
.card__slideshow {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.card__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Age label overlay */
.card__slide-label {
  position: absolute;
  bottom: 8px;
  right: 8px;
  z-index: 3;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  backdrop-filter: blur(4px);
}

/* Base photo circle (top-left, shows "uploaded" photo) */
.card__base-circle {
  position: absolute;
  top: 50%;
  left: 8px;
  transform: translateY(-50%);
  z-index: 4;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.card__base-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Hero example real image */
.hero-model__example-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

/* Card content */
.card__content {
  padding: 16px 20px 20px;
}

.card__title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card__arrow {
  flex-shrink: 0;
  opacity: 0.4;
  transition: all 0.3s var(--ease-out);
}

.card__arrow svg { width: 16px; height: 16px; }

.card__desc {
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

.card__desc:empty {
  display: none;
}

/* Tags */
.card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 12px;
}

.card__tag {
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

/* Badge */
.card__badge {
  position: absolute;
  top: 12px; right: 12px;
  z-index: 3;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.65rem;
  font-weight: 600;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card__badge--popular {
  background: rgba(244, 114, 182, 0.2);
  color: #f472b6;
  border: 1px solid rgba(244, 114, 182, 0.3);
}

/* ===== FOOTER ===== */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border-subtle);
  background: rgba(10, 10, 18, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* Mobile toggle (hidden on desktop) */
.footer__mobile-toggle {
  display: none;
}

/* Footer body always visible on desktop */
.footer__body {
  overflow: hidden;
}

.footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 48px var(--gutter) 32px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
}

/* Logo in footer */
.footer__logo-img {
  height: 32px;
  width: auto;
}

.footer__logo-desktop {
  margin-bottom: 20px;
}

/* Company column */
.footer__col--company .footer__company-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer__company-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  line-height: 1.4;
}

.footer__company-info p {
  font-size: 0.78rem;
  color: var(--text-tertiary);
  line-height: 1.5;
}

/* Column titles */
.footer__col-title {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 16px;
  letter-spacing: 0.01em;
}

/* Footer nav links */
.footer__nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__nav a {
  font-size: 0.82rem;
  color: var(--text-tertiary);
  transition: color 0.2s ease;
}

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

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

/* Bottom bar */
.footer__bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 20px var(--gutter);
  border-top: 1px solid var(--border-subtle);
}

.footer__bottom span {
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

/* Chevron */
.footer__chevron {
  transition: transform 0.3s var(--ease-out);
  color: var(--text-tertiary);
}

.footer__mobile-toggle.open .footer__chevron {
  transform: rotate(180deg);
}

/* ===== GALLERY SIDEBAR ===== */
.gallery-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-out);
}

.gallery-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.gallery {
  position: fixed;
  top: 15px;
  right: 15px;
  bottom: 15px;
  width: 380px;
  z-index: 210;
  background: #111118;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  transform: translateX(calc(100% + 30px));
  visibility: hidden;
  transition: transform 0.35s var(--ease-out), visibility 0s 0.35s;
  overflow: hidden;
}

.gallery.open {
  visibility: visible;
  transition: transform 0.35s var(--ease-out), visibility 0s 0s;
}

.gallery.open {
  transform: translateX(0);
}

.gallery__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.gallery__title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
}

.gallery__close {
  padding: 6px;
  border-radius: 8px;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.gallery__close:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
}

.gallery__list {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Gallery item */
.gallery-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gallery-item__meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.gallery-item__thumb {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.gallery-item__thumbs {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.gallery-item__thumbs .gallery-item__thumb {
  width: 28px;
  height: 28px;
}

.gallery-item__info {
  flex: 1;
  min-width: 0;
}

.gallery-item__model {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gallery-item__setting {
  font-size: 0.7rem;
  color: var(--text-tertiary);
}

.gallery-item__result {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s var(--ease-out);
}

.gallery-item__result:hover {
  transform: scale(1.02);
}

.gallery-item__result img {
  width: 100%;
  display: block;
  border-radius: var(--radius-sm);
}

.gallery-item__download {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  backdrop-filter: blur(4px);
  transition: all 0.2s ease;
  opacity: 0;
}

.gallery-item__result:hover .gallery-item__download {
  opacity: 1;
}

.gallery-item__download:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: scale(1.1);
}

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-out);
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox__close {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  z-index: 1;
  transition: background 0.2s ease;
}

.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lightbox__img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius-md);
}

/* ===== RESPONSIVE ===== */

@media (min-width: 900px) {
  .group__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1100px) {
  .group__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 899px) {
  .footer__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }

  .header__actions { display: none; }
  .header__mobile-actions { display: flex; }

  .page-title {
    font-size: 1.1rem;
    margin-bottom: 24px;
  }

  .group {
    padding: 20px 16px;
    margin-bottom: 28px;
    border-radius: var(--radius-md);
  }

  .group--gradient-ribbon {
    padding-left: 24px;
  }

  .group__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .card__visual { height: 110px; }
  .card__visual-icon { font-size: 2.2rem; }
  .card__content { padding: 12px 14px 16px; }
  .card__title { font-size: 0.78rem; }
  .card__desc { font-size: 0.72rem; }
  .card__tags { display: none; }

  /* Circles smaller on mobile */
  .card__circle {
    width: 44px;
    height: 44px;
    border-width: 1.5px;
  }

  .card__circle:nth-child(2) {
    margin-top: -4px;
  }

  .card__base-circle {
    width: 44px;
    height: 44px;
  }

  /* Hero model mobile */
  .hero-model {
    padding: 24px 20px 20px;
    margin-bottom: 28px;
  }

  .hero-model__content {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .hero-model__arrows { display: none; }
  .hero-model__flow {
    justify-content: center;
  }
  .hero-model__polaroid {
    width: 160px;
  }
  .hero-model__cta {
    align-self: center;
  }

  .hero-model__examples {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .hero-model__example-img {
    aspect-ratio: 3 / 4;
  }

  .hero-model__styles {
    gap: 6px;
  }

  .hero-model__style {
    padding: 5px 12px;
    font-size: 0.72rem;
  }

  /* Hero animate mobile */
  .hero-animate {
    padding: 24px 20px 20px;
    margin-bottom: 28px;
  }

  .hero-animate__content {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .hero-animate__text {
    align-items: center;
    text-align: center;
  }

  .hero-animate__polaroid {
    width: 140px;
  }

  .hero-animate__arrows { display: none; }
  .hero-animate__flow {
    justify-content: center;
  }

  .hero-animate__cta {
    align-self: center;
    order: 10;
  }

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

  .hero-animate__video {
    max-height: 260px;
  }

  /* Footer mobile: collapsed by default */
  .footer__mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px var(--gutter);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .footer__mobile-brand {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .footer__mobile-brand .footer__logo-img {
    height: 28px;
  }

  .footer__body {
    max-height: 0;
    transition: max-height 0.4s var(--ease-out);
  }

  .footer__body.open {
    max-height: 800px;
  }

  .footer__logo-desktop {
    display: none;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 8px var(--gutter) 24px;
  }

  /* Gallery fullscreen on mobile */
  .gallery {
    top: 15px;
    right: 15px;
    bottom: 15px;
    left: 15px;
    width: auto;
    border-radius: var(--radius-md);
  }
}

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

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.1); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.2); }

/* ===== SELECTION ===== */
::selection {
  background: rgba(167, 139, 250, 0.3);
  color: var(--text-primary);
}
