:root {
  --bg: #05070d;
  --surface: #0c111c;
  --surface-2: #121929;
  --border: rgba(148, 163, 184, 0.13);
  --border-strong: rgba(148, 163, 184, 0.24);
  --text: #e8ecf3;
  --muted: #93a0b8;
  --accent: #22d3ee;
  --accent-2: #818cf8;
  --accent-soft: rgba(34, 211, 238, 0.1);
  --radius: 22px;
  --container: 1200px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }

/* Background */
.bg-glow {
  position: fixed; inset: -20vh -10vw auto; height: 90vh; z-index: -2; pointer-events: none;
  background:
    radial-gradient(40% 50% at 20% 20%, rgba(34, 211, 238, 0.16), transparent 70%),
    radial-gradient(35% 45% at 85% 10%, rgba(129, 140, 248, 0.18), transparent 70%);
  filter: blur(10px);
}
.bg-grid {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 55% at 50% 0%, #000 30%, transparent 75%);
  opacity: 0.5;
}

/* Header */
.header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px) saturate(140%);
  background: rgba(5, 7, 13, 0.6);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.header.is-scrolled { border-color: var(--border); background: rgba(5, 7, 13, 0.82); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 12px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -0.01em; white-space: nowrap; }
.logo-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 14px var(--accent); }
.header-nav { display: flex; align-items: center; gap: 18px; }
.link-back { color: var(--muted); font-size: 14px; font-weight: 500; transition: color 0.2s; }
.link-back:hover { color: var(--text); }
@media (max-width: 560px) { .link-back { display: none; } .logo { font-size: 15px; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; transition: transform 0.25s var(--ease), box-shadow 0.25s, border-color 0.2s, background 0.2s;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-sm { padding: 9px 16px; font-size: 13.5px; }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #04121a; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(34, 211, 238, 0.28); }
.btn-ghost { border-color: var(--border-strong); background: rgba(255, 255, 255, 0.02); }
.btn-ghost:hover { border-color: var(--accent); transform: translateY(-2px); }

/* Hero */
.hero { padding: 88px 20px 56px; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: "JetBrains Mono", monospace; font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent); padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(34, 211, 238, 0.25); background: var(--accent-soft);
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }
.hero-title { font-size: clamp(36px, 6.4vw, 72px); font-weight: 800; margin: 26px auto 20px; max-width: 980px; letter-spacing: -0.035em; }
.grad { background: linear-gradient(120deg, var(--accent) 10%, var(--accent-2) 60%, #c084fc); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { color: var(--muted); font-size: clamp(16px, 2vw, 19px); max-width: 680px; margin: 0 auto; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin: 48px auto 0; max-width: 860px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.stat { background: rgba(12, 17, 28, 0.85); padding: 22px 12px; display: flex; flex-direction: column; gap: 2px; }
.stat b { font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -0.03em; background: linear-gradient(180deg, #fff, #9fb0c9); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: var(--muted); font-size: 13px; line-height: 1.35; }
@media (max-width: 640px) { .stats { grid-template-columns: repeat(2, 1fr); } .hero { padding-top: 56px; } }

/* Section label */
.section-label {
  display: flex; align-items: center; gap: 14px; margin: 72px 0 28px;
  font-family: "JetBrains Mono", monospace; font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted);
}
.section-label span { color: var(--accent); }
.section-label::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--border-strong), transparent); }

/* Browser frame */
.frame {
  border-radius: 14px; overflow: hidden; background: var(--surface-2);
  border: 1px solid var(--border-strong);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7);
}
.frame-bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; background: #0e1422; border-bottom: 1px solid var(--border); }
.frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2a3247; flex: none; }
.frame-bar i:nth-child(1) { background: #ff5f57; } .frame-bar i:nth-child(2) { background: #febc2e; } .frame-bar i:nth-child(3) { background: #28c840; }
.frame-url {
  flex: 1; min-width: 0; margin-left: 10px; height: 22px; line-height: 22px; padding: 0 10px; border-radius: 6px;
  background: rgba(255, 255, 255, 0.04); color: var(--muted); font-size: 11.5px; font-family: "JetBrains Mono", monospace;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center;
}
.frame-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #0a0f19; }
.frame-media img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 0.8s var(--ease); }

.no-shot { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 28px;
  background: radial-gradient(circle at 30% 30%, rgba(34, 211, 238, 0.22), transparent 55%), radial-gradient(circle at 80% 80%, rgba(129, 140, 248, 0.25), transparent 55%), #0b1120; }
.no-shot--crm { background: radial-gradient(circle at 25% 70%, rgba(52, 211, 153, 0.2), transparent 55%), radial-gradient(circle at 80% 20%, rgba(34, 211, 238, 0.22), transparent 55%), #0b1120; }
.no-shot-icon { width: 88px; height: 88px; border-radius: 24px; display: grid; place-items: center; color: var(--accent); background: rgba(34, 211, 238, 0.08); border: 1px solid rgba(34, 211, 238, 0.3); box-shadow: 0 0 40px rgba(34, 211, 238, 0.15); }
.no-shot-icon svg { width: 46px; height: 46px; }
.no-shot-chat { display: flex; flex-direction: column; gap: 8px; width: 38%; }
.bubble { height: 14px; border-radius: 8px; background: rgba(255, 255, 255, 0.1); width: 80%; }
.bubble.out { align-self: flex-end; background: linear-gradient(90deg, rgba(34, 211, 238, 0.55), rgba(129, 140, 248, 0.55)); width: 65%; }
.bubble.short { width: 45%; }

/* Featured */
.featured { display: grid; gap: 28px; }
.feat {
  display: grid; grid-template-columns: 1.35fr 1fr; gap: 40px; align-items: center;
  padding: 28px; border-radius: 28px; border: 1px solid var(--border);
  background: linear-gradient(160deg, rgba(18, 25, 41, 0.9), rgba(8, 11, 19, 0.9));
  position: relative; overflow: hidden;
}
.feat::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.5), transparent 35%, transparent 65%, rgba(129, 140, 248, 0.5));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.feat:nth-child(even) { grid-template-columns: 1fr 1.35fr; }
.feat:nth-child(even) .feat-media { order: 2; }
.feat-media { display: block; transition: transform 0.5s var(--ease); }
.feat-media:hover { transform: translateY(-4px) rotate(-0.3deg); }
.feat-media:hover img { transform: scale(1.04); }
.feat-num { font-family: "JetBrains Mono", monospace; font-size: 46px; font-weight: 500; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(148, 163, 184, 0.45); display: flex; align-items: baseline; gap: 14px; }
.feat-num span { -webkit-text-stroke: 0; color: var(--accent); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }
.feat h3 { font-size: clamp(26px, 3vw, 36px); font-weight: 800; margin: 18px 0 14px; }
.feat p { color: var(--muted); margin: 0 0 20px; font-size: 16px; }
@media (max-width: 900px) {
  .feat, .feat:nth-child(even) { grid-template-columns: 1fr; gap: 24px; padding: 16px 16px 24px; }
  .feat:nth-child(even) .feat-media { order: 0; }
  .feat-body { padding: 0 6px; }
}

/* Tags & actions */
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.tags span { font-size: 12px; font-weight: 500; color: #b9c4d8; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border); }
.card-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }

/* Filters */
.filters { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 28px; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--border-strong); background: rgba(255, 255, 255, 0.02); font-size: 14px; font-weight: 500; color: var(--muted); transition: all 0.2s; }
.chip sup { font-size: 10.5px; margin-left: 5px; opacity: 0.7; }
.chip:hover { color: var(--text); border-color: var(--accent); }
.chip.is-active { color: #04121a; background: linear-gradient(135deg, var(--accent), var(--accent-2)); border-color: transparent; font-weight: 600; }

/* Grid cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 22px; }
.card {
  display: flex; flex-direction: column; border-radius: var(--radius); border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(18, 25, 41, 0.75), rgba(10, 14, 24, 0.9));
  overflow: hidden; transition: transform 0.4s var(--ease), border-color 0.3s, box-shadow 0.4s;
}
.card:hover { transform: translateY(-6px); border-color: rgba(34, 211, 238, 0.4); box-shadow: 0 24px 50px -20px rgba(34, 211, 238, 0.25); }
.card:hover .frame-media img { transform: scale(1.05); }
.card-media { display: block; padding: 14px 14px 0; }
.card-media .frame { border-radius: 12px; box-shadow: none; }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.card-cat { font-family: "JetBrains Mono", monospace; font-size: 11px; color: var(--accent); text-transform: uppercase; letter-spacing: 0.1em; }
.card h3 { font-size: 20px; font-weight: 700; margin: 8px 0 8px; }
.card p { color: var(--muted); font-size: 14.5px; margin: 0 0 16px; }

/* Salons */
.salons-head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: end; margin-bottom: 28px; }
.salons-head h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; }
.salons-head p { color: var(--muted); margin: 0; }
@media (max-width: 800px) { .salons-head { grid-template-columns: 1fr; } }
.salons { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 16px; }
.salon { border-radius: 18px; overflow: hidden; border: 1px solid var(--border); background: var(--surface); transition: transform 0.35s var(--ease), border-color 0.3s; }
.salon:hover { transform: translateY(-4px); border-color: rgba(34, 211, 238, 0.4); }
.salon-img { aspect-ratio: 16 / 10; overflow: hidden; }
.salon-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.salon:hover .salon-img img { transform: scale(1.06); }
.salon-body { padding: 14px 16px 16px; }
.salon-body span { font-size: 11px; font-family: "JetBrains Mono", monospace; color: var(--accent); text-transform: uppercase; letter-spacing: 0.08em; }
.salon-body h4 { font-size: 17px; margin: 4px 0 4px; }
.salon-body p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.5; }

/* CTA */
.cta {
  margin: 96px 0 40px; padding: 44px; border-radius: 28px; display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
  background: radial-gradient(80% 140% at 0% 0%, rgba(34, 211, 238, 0.18), transparent 60%), radial-gradient(70% 140% at 100% 100%, rgba(129, 140, 248, 0.22), transparent 60%), var(--surface);
  border: 1px solid var(--border-strong);
}
.cta h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; margin-bottom: 8px; }
.cta p { margin: 0; color: var(--muted); }
.cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 560px) { .cta { padding: 28px 22px; } .cta-actions .btn { flex: 1; } }

.footer { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 24px; padding-bottom: 40px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--border); }
.footer a:hover { color: var(--accent); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.card.reveal.is-visible:hover { transform: translateY(-6px); }
.salon.reveal.is-visible:hover { transform: translateY(-4px); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; scroll-behavior: auto !important; }
}
