/* ============ DESIGN TOKENS ============ */
:root {
  /* Colors — dark editorial default */
  --bg: #0a0908;
  --bg-deep: #050403;
  --surface: #14110f;
  --surface-2: #1c1815;
  --surface-3: #262119;
  --line: rgba(246, 242, 234, 0.08);
  --line-strong: rgba(246, 242, 234, 0.18);
  --text: #f6f2ea;
  --text-dim: #b8afa3;
  --muted: #7a716a;
  --accent: #ff2e55;
  --accent-ink: #ffffff;
  --accent-soft: rgba(255, 46, 85, 0.14);

  /* Type */
  --font-display: "Unbounded", "Onest", system-ui, sans-serif;
  --font-serif: "PT Serif", "Cormorant Garamond", Georgia, serif;
  --font-body: "Onest", "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  /* Spacing */
  --pad-x: clamp(20px, 5vw, 80px);
  --section-y: clamp(80px, 10vw, 160px);
  --radius: 4px;
  --radius-lg: 18px;
  --radius-xl: 28px;
}

/* Light theme override */
:root[data-theme="light"] {
  --bg: #f4efe6;
  --bg-deep: #ebe5d8;
  --surface: #ffffff;
  --surface-2: #f8f4eb;
  --surface-3: #efe9dc;
  --line: rgba(10, 9, 8, 0.12);
  --line-strong: rgba(10, 9, 8, 0.28);
  --text: #14110f;
  --text-dim: #4a443e;
  --muted: #7a716a;
  --accent-soft: rgba(255, 46, 85, 0.12);
}

/* ============ RESET ============ */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html, body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body {
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
::selection { background: var(--accent); color: var(--accent-ink); }

/* ============ NAV ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--pad-x);
  background: color-mix(in oklab, var(--bg) 80%, transparent);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--line);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 18px;
}
.nav-brand img {
  width: 30px;
  height: 30px;
  border-radius: 7px;
}
.nav-links {
  display: flex;
  gap: 34px;
  font-size: 14px;
  color: var(--text-dim);
}
.nav-links a { transition: color 0.15s; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--text);
  color: var(--bg);
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  transition: transform 0.15s, background 0.15s;
}
.nav-cta:hover { transform: translateY(-1px); }
.nav-cta .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
}
@media (max-width: 840px) {
  .nav-links { display: none; }
}

/* ============ HERO ============ */
.hero {
  position: relative;
  padding: clamp(60px, 9vw, 140px) var(--pad-x) clamp(40px, 6vw, 80px);
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: end;
  min-height: 88vh;
  overflow: hidden;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 36px;
}
.hero-eyebrow .pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--accent) 80%, transparent); }
  70% { box-shadow: 0 0 0 12px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(48px, 8.2vw, 132px);
  line-height: 0.92;
  letter-spacing: -0.035em;
  margin-bottom: 32px;
}
.hero-title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--text);
}
.hero-title .accent-dot {
  display: inline-block;
  width: 0.22em; height: 0.22em;
  border-radius: 50%;
  background: var(--accent);
  margin-left: 0.04em;
  vertical-align: baseline;
  transform: translateY(-0.04em);
}
.hero-sub {
  max-width: 480px;
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.5;
  color: var(--text-dim);
  margin-bottom: 36px;
  text-wrap: pretty;
}
.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  background: var(--text);
  color: var(--bg);
  border-radius: 14px;
  font-weight: 500;
  transition: transform 0.2s;
}
.store-btn:hover { transform: translateY(-2px); }
.store-btn svg { width: 24px; height: 24px; }
.store-btn .label { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.store-btn .label .small { font-size: 10px; opacity: 0.7; font-weight: 400; }
.store-btn .label .big { font-size: 16px; font-weight: 600; }
.store-btn.alt {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line-strong);
}

/* Hero meta strip */
.hero-meta {
  position: absolute;
  left: var(--pad-x);
  bottom: clamp(20px, 3vw, 36px);
  display: flex;
  gap: clamp(28px, 5vw, 60px);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  z-index: 2;
}
.hero-meta div b {
  display: block;
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--text);
  font-weight: 500;
  margin-bottom: 2px;
}

/* Phone in hero */
.hero-phone-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: end;
  align-self: stretch;
  min-height: 540px;
}

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-phone-wrap { min-height: 520px; margin-top: 20px; }
  .hero-meta { position: static; margin-top: 60px; flex-wrap: wrap; }
}

/* ============ TICKER ============ */
.ticker {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  overflow: hidden;
  position: relative;
}
.ticker-track {
  display: flex;
  gap: 60px;
  padding: 18px 0;
  animation: ticker 60s linear infinite;
  white-space: nowrap;
  width: max-content;
}
.ticker-track > span {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.ticker-track > span::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============ SECTION COMMON ============ */
.section {
  padding: var(--section-y) var(--pad-x);
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: clamp(40px, 6vw, 72px);
  flex-wrap: wrap;
}
.kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.kicker::before {
  content: ""; width: 24px; height: 1px; background: var(--accent);
}
.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(36px, 5vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  max-width: 720px;
}
.section-title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}
.section-lede {
  max-width: 380px;
  color: var(--text-dim);
  font-size: 16px;
  line-height: 1.55;
  text-wrap: pretty;
}

/* ============ FEATURES ============ */
.features {
  background: var(--bg);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.feature {
  background: var(--bg);
  padding: 36px 32px 32px;
  display: flex;
  flex-direction: column;
  min-height: 320px;
  position: relative;
  transition: background 0.25s;
}
.feature:hover { background: var(--surface); }
.feature.feat-1 { grid-column: span 4; }
.feature.feat-2 { grid-column: span 2; }
.feature.feat-3 { grid-column: span 2; }
.feature.feat-4 { grid-column: span 2; }
.feature.feat-5 { grid-column: span 2; }
.feature-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-bottom: 18px;
}
.feature-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 30px;
  letter-spacing: -0.02em;
  line-height: 1.04;
  margin-bottom: 12px;
}
.feature-desc {
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.5;
  text-wrap: pretty;
  max-width: 360px;
}
.feature-art {
  margin-top: auto;
  padding-top: 28px;
  position: relative;
  height: 180px;
}
.feature.feat-1 .feature-art { height: 220px; }
@media (max-width: 900px) {
  .features-grid { grid-template-columns: 1fr 1fr; }
  .feature.feat-1, .feature.feat-2, .feature.feat-3, .feature.feat-4, .feature.feat-5 {
    grid-column: span 1;
  }
  .feature.feat-1 { grid-column: span 2; }
}
@media (max-width: 600px) {
  .features-grid { grid-template-columns: 1fr; }
  .feature.feat-1 { grid-column: span 1; }
}

/* ============ HOW IT WORKS ============ */
.steps {
  background: var(--surface);
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.step {
  background: var(--surface);
  padding: 40px 28px 36px;
  position: relative;
  min-height: 360px;
  display: flex;
  flex-direction: column;
}
.step-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 80px;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--text);
  margin-bottom: 22px;
  display: flex;
  align-items: baseline;
}
.step-num .dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--accent);
  margin-left: 6px;
  align-self: flex-end;
  margin-bottom: 8px;
}
.step-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.step-desc {
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.55;
  text-wrap: pretty;
}
.step-tag {
  margin-top: auto;
  padding-top: 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
@media (max-width: 900px) {
  .steps-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .steps-grid { grid-template-columns: 1fr; }
}

/* ============ АФИША ============ */
.afisha {
  background: var(--bg);
}
.afisha-toolbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.chip {
  padding: 9px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.15s;
}
.chip:hover { color: var(--text); border-color: var(--text-dim); }
.chip.active {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}
.event-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.event {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.25s, border-color 0.25s;
}
.event:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.event-img {
  aspect-ratio: 4 / 5;
  position: relative;
  overflow: hidden;
  background: var(--surface-2);
}
.event-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.55), transparent 50%);
}
.event-date {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  background: var(--bg);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}
.event-date b {
  font-family: var(--font-display);
  font-size: 18px;
  display: block;
  text-transform: none;
  letter-spacing: -0.02em;
  margin-top: 2px;
  font-weight: 700;
}
.event-going {
  position: absolute;
  bottom: 14px;
  left: 14px;
  right: 14px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: white;
  font-size: 12px;
  font-family: var(--font-mono);
}
.event-going .avatars {
  display: flex;
}
.event-going .avatars span {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 2px solid var(--bg);
  margin-left: -8px;
  display: inline-block;
}
.event-going .avatars span:first-child { margin-left: 0; }
.event-body { padding: 18px 20px 22px; }
.event-cat {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.event-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-bottom: 10px;
}
.event-meta {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
}
.event-meta::before {
  content: ""; width: 4px; height: 4px; border-radius: 50%;
  background: var(--muted); display: inline-block;
}
.event-meta:first-child::before { display: none; }
.event-loc {
  font-size: 13px;
  color: var(--text-dim);
}
@media (max-width: 1000px) { .event-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .event-grid { grid-template-columns: 1fr; } }

/* ============ BIG CTA ============ */
.big-cta {
  background: var(--bg-deep);
  padding: clamp(80px, 12vw, 160px) var(--pad-x);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.big-cta-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(48px, 10vw, 180px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  margin-bottom: 32px;
}
.big-cta-title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}
.big-cta-sub {
  color: var(--text-dim);
  font-size: 18px;
  max-width: 520px;
  margin: 0 auto 40px;
  text-wrap: pretty;
}
.big-cta-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.big-cta::before {
  content: "";
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft), transparent 70%);
  top: -200px; left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

/* ============ FOOTER ============ */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 80px var(--pad-x) 40px;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 80px;
}
.footer-brand h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 6vw, 56px);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 18px;
}
.footer-brand h3 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}
.footer-brand p {
  color: var(--text-dim);
  font-size: 14px;
  max-width: 340px;
  text-wrap: pretty;
}
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 18px;
}
.footer-col a {
  display: block;
  color: var(--text-dim);
  font-size: 14px;
  padding: 6px 0;
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 16px;
}
@media (max-width: 720px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
}

/* ============ PHONE MOCKUP ============ */
.phone {
  width: 320px;
  height: 660px;
  border-radius: 50px;
  background: linear-gradient(180deg, #1a1715, #0e0c0a);
  padding: 10px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.06),
    0 60px 120px -30px rgba(0,0,0,0.8),
    0 30px 60px -20px rgba(255,46,85,0.18);
  position: relative;
}
.phone::before {
  content: "";
  position: absolute;
  top: 18px; left: 50%;
  transform: translateX(-50%);
  width: 100px; height: 28px;
  background: #000;
  border-radius: 14px;
  z-index: 10;
}
.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 42px;
  background: #0e0c0a;
  overflow: hidden;
  position: relative;
}

/* App screens — generic mini UI */
.app-screen {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  color: #fff;
  font-family: var(--font-body);
}
.app-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 28px 10px;
  font-size: 13px;
  font-weight: 600;
  font-feature-settings: "tnum";
}
.app-status .right { display: flex; gap: 6px; align-items: center; }
.app-status .right svg { width: 14px; height: 14px; }
.app-header {
  padding: 24px 22px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.app-header h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -0.02em;
}
.app-header .avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, #ff2e55, #ff7a4a);
}
.app-tabs {
  display: flex;
  gap: 6px;
  padding: 0 22px 14px;
  font-size: 12px;
}
.app-tabs span {
  padding: 7px 12px;
  border-radius: 999px;
  color: rgba(255,255,255,0.5);
  white-space: nowrap;
}
.app-tabs span.on {
  background: #fff;
  color: #0a0908;
  font-weight: 600;
}
.app-list {
  flex: 1;
  overflow: hidden;
  padding: 4px 18px 100px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.app-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 14px;
  display: flex;
  gap: 12px;
  align-items: center;
}
.app-card .thumb {
  width: 56px; height: 56px;
  border-radius: 12px;
  flex-shrink: 0;
}
.app-card .info { flex: 1; min-width: 0; }
.app-card .info .cat {
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ff2e55;
  margin-bottom: 3px;
  font-weight: 600;
}
.app-card .info .t {
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.app-card .info .m {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  margin-top: 2px;
}
.app-card .when {
  text-align: right;
  font-size: 10px;
  color: rgba(255,255,255,0.6);
}
.app-card .when b {
  display: block;
  font-family: var(--font-display);
  font-size: 16px;
  color: #fff;
  letter-spacing: -0.02em;
}
.app-nav {
  position: absolute;
  bottom: 14px; left: 14px; right: 14px;
  background: rgba(10,9,8,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 22px;
  padding: 12px 14px;
  display: flex;
  justify-content: space-around;
}
.app-nav button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: rgba(255,255,255,0.5);
  font-size: 9px;
  font-weight: 500;
}
.app-nav button.on { color: #fff; }
.app-nav button svg { width: 20px; height: 20px; }

/* Feature illustrations */
.illu {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  overflow: hidden;
}

/* small map illustration */
.illu-map {
  background:
    radial-gradient(circle at 20% 30%, rgba(255,46,85,0.18), transparent 40%),
    radial-gradient(circle at 75% 65%, rgba(255,46,85,0.12), transparent 50%),
    var(--surface-2);
}
.illu-map .grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
}
.illu-map .road {
  position: absolute;
  background: rgba(255,255,255,0.12);
  border-radius: 2px;
}
.pin {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.pin .head {
  background: var(--text);
  color: var(--bg);
  padding: 5px 9px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}
.pin .dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 4px;
  box-shadow: 0 0 0 4px rgba(255,46,85,0.25);
}

/* group / chat illustration */
.illu-chat { padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.bubble {
  max-width: 80%;
  padding: 9px 14px;
  border-radius: 16px;
  font-size: 12px;
  line-height: 1.35;
}
.bubble.them { background: rgba(255,255,255,0.06); align-self: flex-start; }
.bubble.you { background: var(--accent); color: white; align-self: flex-end; border-bottom-right-radius: 4px; }

/* news illustration */
.illu-news { padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.news-row { display: flex; gap: 10px; align-items: center; }
.news-row .stripe { width: 44px; height: 44px; border-radius: 8px; flex-shrink: 0; }
.news-row .lines { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.news-row .lines i:nth-child(1) { display: block; height: 8px; border-radius: 2px; background: rgba(255,255,255,0.18); width: 90%; }
.news-row .lines i:nth-child(2) { display: block; height: 6px; border-radius: 2px; background: rgba(255,255,255,0.08); width: 60%; }

/* groups illustration */
.illu-group { padding: 16px; display: flex; flex-direction: column; gap: 12px; justify-content: center; align-items: center; }
.group-row { display: flex; gap: 6px; }
.group-row .face {
  width: 38px; height: 38px;
  border-radius: 50%;
}
.group-row .more {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600;
}

/* ============ HERO PHONE (real screenshot) ============ */
.hero-phone-stage {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin-left: auto;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}
.hero-phone-glow {
  position: absolute;
  width: 480px; height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft), transparent 65%);
  filter: blur(20px);
  z-index: 0;
  top: 30%;
  pointer-events: none;
}
/* Flat simulator screenshot wrapped in a thin matte-black bezel.
   The screenshot PNG already has rounded corners baked in. */
.device-screen {
  display: inline-block;
  background: #050403;
  padding: 8px;
  border-radius: 50px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.05) inset,
    0 0 0 1px rgba(0,0,0,0.5);
  line-height: 0;
}
.device-screen img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 44px;
}

.hero-screenshot-main {
  position: relative;
  z-index: 1;
  width: 320px;
  filter: drop-shadow(0 60px 80px rgba(0,0,0,0.55)) drop-shadow(0 0 60px rgba(255,46,85,0.18));
  transform: rotate(-2deg);
}

.hero-chip {
  position: absolute;
  z-index: 3;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  padding: 14px 16px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.6);
  animation: float 4s ease-in-out infinite;
}
.hero-chip-1 {
  top: 12%;
  left: -30px;
  width: 220px;
  transform: rotate(-4deg);
}
.hero-chip-2 {
  bottom: 14%;
  right: -40px;
  width: 240px;
  transform: rotate(3deg);
  animation-delay: -2s;
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(var(--r, -4deg)); }
  50% { transform: translateY(-8px) rotate(var(--r, -4deg)); }
}
.hero-chip-1 { --r: -4deg; }
.hero-chip-2 { --r: 3deg; }

.hero-chip-cat {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 6px;
}
.hero-chip-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  color: var(--text);
}
.hero-chip-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-dim);
}
.hero-chip-meta .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.hero-chip-mini {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
}
.hero-chip-mini .online {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #2bd95a;
  box-shadow: 0 0 0 3px rgba(43,217,90,0.18);
}

@media (max-width: 960px) {
  .hero-phone-stage { margin: 0 auto; }
}

/* ============ SCREENS GALLERY ============ */
.screens {
  background: var(--surface);
}
.screens-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr 1fr;
  gap: 28px;
  align-items: end;
}
.screens-card {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.screens-label {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.screens-label .num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--muted);
  padding-top: 4px;
}
.screens-label b {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.screens-label span {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.45;
}
.screens-img-wrap {
  background: var(--bg);
  border-radius: var(--radius-xl);
  padding: 40px 0 0;
  border: 1px solid var(--line);
  overflow: hidden;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  aspect-ratio: 3 / 4;
}
.screens-img-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 30%, var(--accent-soft), transparent 65%);
  opacity: 0.8;
  pointer-events: none;
}
.screens-img-wrap .device-screen {
  position: relative;
  z-index: 1;
  width: 72%;
  transform: translateY(8%);
  filter: drop-shadow(0 30px 40px rgba(0,0,0,0.55));
}
.screens-card-tall {
  margin-bottom: -40px;
}
.screens-card-tall .screens-img-wrap {
  aspect-ratio: 3 / 4.6;
  background: var(--bg-deep);
}
.screens-card-tall .screens-img-wrap .device-screen {
  width: 70%;
}

@media (max-width: 900px) {
  .screens-grid { grid-template-columns: 1fr; gap: 40px; }
  .screens-card-tall { margin-bottom: 0; }
  .screens-img-wrap { aspect-ratio: 3/4 !important; max-width: 420px; margin: 0 auto; width: 100%; }
}

/* News illustration source label */
.illu-news .lines .src {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: var(--accent);
}

/* Group pill */
.illu-group .group-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(255,46,85,0.12);
  border: 1px solid rgba(255,46,85,0.25);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
}
.illu-group .group-pill .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

/* Event "Пойду" button on cards */
.event-going-btn {
  margin-top: 14px;
  width: 100%;
  padding: 12px;
  background: var(--accent);
  color: white;
  font-weight: 600;
  font-size: 14px;
  border-radius: 12px;
  transition: transform 0.15s, filter 0.15s;
  cursor: pointer;
}
.event-going-btn:hover { transform: translateY(-1px); filter: brightness(1.08); }

/* ============ TWEAKS ============ */
[data-theme="light"] .phone {
  background: linear-gradient(180deg, #1a1715, #0e0c0a);
}
[data-theme="light"] ::selection { background: var(--accent); color: white; }
