:root {
  --bg: #f5f5f7;
  --card: #fff;
  --ink: #111113;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --accent: #5b4dff;
  --accent-soft: #eceaff;
  --max: 1120px;
  --font: "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; max-width: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: #fff;
  line-height: 1.45;
}
a { color: inherit; text-decoration: none; }
button, input { font-family: inherit; }

.wrap { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }

.bandeau {
  background: #1d1d1f;
  color: #f5f5f7;
}
.bandeau-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  min-height: 38px;
  padding: 8px 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.bandeau p { margin: 0; }
.bandeau a { color: #c8c4ff; font-weight: 750; }

header.site {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255,255,255,0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  height: 56px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 750;
  letter-spacing: -0.04em;
  font-size: 17px;
  margin-right: auto;
}
.logo-word span { color: var(--accent); }
.logo-mark {
  display: block;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  background: #050508;
  box-shadow: 0 0 0 1px rgba(91, 77, 255, 0.18);
  flex-shrink: 0;
}
.logo-mark picture {
  display: block;
  width: 100%;
  height: 100%;
}
.logo-mark img {
  display: block;
  width: 132%;
  height: 132%;
  margin: -16%;
  object-fit: cover;
}
footer.site .logo-mark { width: 32px; height: 32px; }
.foot a.logo {
  display: inline-flex;
  padding: 0;
  font-size: 17px;
  color: inherit;
}

.search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg);
  border-radius: 10px;
  padding: 8px 12px;
  min-width: 220px;
  color: var(--muted);
  font-size: 13px;
  border: 1px solid transparent;
}
.search input {
  border: 0;
  background: none;
  outline: none;
  width: 100%;
  font-size: 13px;
}

nav.desk { display: flex; align-items: stretch; height: 56px; }
nav.desk > a,
nav.desk .has-mega > a,
nav.desk .has-mega > button {
  display: flex;
  align-items: center;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 600;
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--ink);
  height: 56px;
}
nav.desk > a:hover,
.has-mega:hover > a,
.has-mega:hover > button { color: var(--accent); }

.has-mega { position: static; }
.mega {
  display: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 56px;
  width: min(980px, calc(100vw - 24px));
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.12);
  padding: 22px;
  grid-template-columns: 240px 1fr 1fr 1fr;
  gap: 18px;
}
@media (hover: hover) and (min-width: 901px) {
  .has-mega:hover .mega,
  .has-mega:focus-within .mega { display: grid; }
}

.mega-plat {
  background: var(--bg);
  border-radius: 14px;
  padding: 18px;
}
.kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--theme-color, var(--accent));
}
.mega-plat h3 { margin: 8px 0 10px; font-size: 20px; letter-spacing: -0.03em; }
.mega-plat p { margin: 0 0 14px; color: var(--muted); font-size: 13px; }
.link { color: var(--accent); font-weight: 700; font-size: 13px; }
.col h4 {
  margin: 0 0 10px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #86868b;
}
.item { display: block; padding: 8px 0; border-bottom: 1px solid var(--line); }
.item:last-child { border-bottom: 0; }
.item strong { display: block; font-size: 13px; }
.item span { display: block; font-size: 12px; color: var(--muted); }

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff !important;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.cta.lg { padding: 12px 20px; }
.ghost { background: var(--bg); color: var(--ink) !important; }

.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}
.lang-switch a {
  padding: 5px 8px;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.lang-switch a:hover,
.lang-switch a.on {
  color: var(--ink);
  background: var(--bg);
}
.drawer .lang-switch {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.burger {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
  min-height: 44px;
  font-weight: 700;
  cursor: pointer;
}

.drawer { display: none; border-top: 1px solid var(--line); padding: 12px 0 20px; background: #fff; }
.drawer.open { display: block; }
.drawer a { display: block; padding: 12px 0; font-weight: 600; border-bottom: 1px solid var(--line); min-height: 44px; }
.drawer .search { display: none; width: 100%; min-width: 0; margin: 4px 0 12px; }

body.nav-open { overflow: hidden; }

.hero { padding: 56px 0 12px; }
.hero h1 {
  font-size: clamp(40px, 6vw, 64px);
  letter-spacing: -0.05em;
  line-height: 1.02;
  margin: 10px 0 14px;
  max-width: 14ch;
  font-weight: 750;
  color: var(--ink);
}
.hero p.lead { max-width: 46ch; color: var(--muted); font-size: 19px; margin: 0 0 24px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

.cats { display: flex; gap: 8px; flex-wrap: wrap; padding: 8px 0 8px; }
.cats a {
  background: color-mix(in srgb, var(--theme-color, var(--accent)) 12%, var(--bg));
  color: color-mix(in srgb, var(--theme-color, var(--ink)) 78%, var(--ink));
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 650;
}
.cats a:hover {
  background: color-mix(in srgb, var(--theme-color, var(--accent)) 22%, #fff);
  color: var(--theme-color, #3d36a8);
}

.section { padding: 36px 0; }
.section h2 { font-size: 26px; letter-spacing: -0.04em; margin: 0 0 4px; font-weight: 750; }
.sub { color: var(--muted); margin: 0 0 20px; font-size: 15px; }

.billboard {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 0;
  background: #111114;
  color: #f5f5f7;
  border-radius: 22px;
  overflow: hidden;
  min-height: 320px;
}
.billboard-copy { padding: 36px 36px 32px; }
.billboard-copy .kicker { color: #c8c4ff; }
.billboard-copy h2 {
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: -0.04em;
  margin: 8px 0 10px;
  color: #fff;
}
.billboard-copy p { color: #a1a1a6; margin: 0 0 20px; max-width: 36ch; }
.billboard-art {
  background: #0f1419;
}

.theme-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid color-mix(in srgb, var(--theme-color, var(--line)) 42%, var(--line));
}
.theme-head h2 { margin: 0; }
.theme-head .sub { margin: 0; }

.app-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 28px;
}
.app {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.app:hover .app-meta h3 { color: var(--accent); }
.icon {
  --app-color: #5b4dff;
  --theme-color: #5b4dff;
  width: 60px;
  height: 60px;
  border-radius: 14px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.05em;
  color: var(--app-color);
  background: color-mix(in srgb, var(--theme-color) 22%, #fff);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--theme-color) 26%, transparent);
}
.icon.g { --app-color: #2a9d8f; }
.icon.i { --app-color: #e76f51; }
.icon.r { --app-color: #264653; }
.icon.a { --app-color: #ca8a04; }
.icon.w { --app-color: #7c6cff; }
.icon.b { --app-color: #f59e0b; }
.icon.m { --app-color: #ef4444; }
.icon.c { --app-color: #ea580c; }
.icon.has-mark { font-size: 0; }
.icon.has-mark svg {
  width: 52%;
  height: 52%;
  display: block;
}
.icon.slug-feed-audit { --app-color: #10b981; }
.icon.slug-keyword-cleaner { --app-color: #8b5cf6; }
.icon.slug-google-ads-budget { --app-color: #f59e0b; }
.icon.slug-ads-monitor { --app-color: #ef4444; }
.icon.slug-creative-studio { --app-color: #ea580c; }
.icon.slug-agency-command-center { --app-color: #0ea5e9; }
.icon.slug-feed-optimizer { --app-color: #14b8a6; }
.icon.slug-client-report { --app-color: #ec4899; }
.icon.slug-conversion-tracking-audit { --app-color: #a855f7; }
.icon.slug-pmax-insights { --app-color: #f97316; }
.icon.slug-keyword-intelligence { --app-color: #84cc16; }
.icon.slug-flow-optimizer { --app-color: #64748b; }
.icon.slug-change-log { --app-color: #78716c; }
.icon.slug-assessment-mc { --app-color: #6366f1; }
.icon.theme-search { --theme-color: #7c3aed; }
.icon.theme-feed { --theme-color: #059669; }
.icon.theme-ads { --theme-color: #ea580c; }
.icon.theme-reporting { --theme-color: #0284c7; }
.icon.theme-geo { --theme-color: #0d9488; }
.app-meta { min-width: 0; flex: 1; }
.app-meta h3 { margin: 0; font-size: 15px; font-weight: 700; }
.app-meta p { margin: 2px 0 0; font-size: 12px; color: var(--muted); }
.open {
  font-size: 12px;
  font-weight: 800;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 6px 12px;
}

.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.card {
  background: var(--bg);
  border-radius: 18px;
  padding: 20px;
}
.card h3 { margin: 8px 0 6px; font-size: 18px; letter-spacing: -0.03em; }
.card p { margin: 0; color: var(--muted); font-size: 14px; }
.theme-card .count { font-size: 12px; font-weight: 700; color: var(--theme-color, var(--accent)); }
.theme-card {
  box-shadow: inset 0 3px 0 var(--theme-color, var(--accent));
}

.shot {
  height: 220px;
  border-radius: 14px;
  background: #111318;
  margin-bottom: 12px;
  overflow: hidden;
}
.shot-img {
  position: relative;
  display: block;
  margin: 0 0 12px;
  padding: 0;
}
.shot-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}
.shot-img figcaption {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 5px 9px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: rgba(15, 20, 25, 0.78);
}
.shot.ui {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  padding: 14px;
  place-items: unset;
  color: #d7dde6;
  background: #0f1419;
  border: 1px solid #2f3336;
}
.shot.ui-feed { background: #10241d; }
.shot.ui-keywords { background: #1a1430; }
.shot.ui-budget { background: #2a1d08; }
.shot.ui-monitor { background: #2a1212; }
.shot.ui-creative { background: #2a1408; }
.shot.ui-soon { background: #161a20; }
.ui-bar {
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9aa4b2;
}
.ui-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.ui-pills span {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 650;
  color: #e7e9ea;
}
.billboard-art { padding: 0; display: block; min-height: 280px; }
.billboard-art .shot { height: 100%; min-height: 320px; margin: 0; border-radius: 0; }

.previews {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 20px 0 28px;
}
.previews .shot { height: 248px; margin: 0; }

.app-hero {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 8px 0 28px;
  border-bottom: 1px solid var(--line);
}
.app-hero .icon { width: 88px; height: 88px; border-radius: 22px; font-size: 22px; }
.app-hero h1 { margin: 4px 0 4px; font-size: 32px; letter-spacing: -0.04em; }
.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 32px;
  max-width: 520px;
  margin: 24px 0;
  font-size: 14px;
}
.facts dt { color: var(--muted); }
.facts dd { margin: 0 0 10px; font-weight: 650; }

.page-hero { padding: 36px 0 24px; }
.page-hero h1 {
  font-size: clamp(28px, 8vw, 40px);
  letter-spacing: -0.04em;
  margin: 0 0 8px;
}
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.crumbs a { color: var(--accent); }

.filter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.chip {
  border: 0;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 650;
  background: color-mix(in srgb, var(--theme-color, var(--accent)) 10%, var(--bg));
  color: inherit;
}
.chip.on {
  background: color-mix(in srgb, var(--theme-color, var(--accent)) 18%, #fff);
  color: var(--theme-color, #3d36a8);
}

form { display: grid; gap: 12px; max-width: 420px; }
label { font-size: 13px; font-weight: 650; }
input[type="email"], textarea, form input[type="text"] {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 12px;
  font: inherit;
  background: var(--bg);
}
button[type="submit"] {
  border: 0;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  padding: 12px 16px;
  font-weight: 700;
  cursor: pointer;
}

.foot {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 24px;
  padding: 36px 0 12px;
}
.foot h4 { margin: 0 0 10px; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: #86868b; }
.foot a { display: block; padding: 4px 0; font-size: 13px; color: var(--muted); }
footer.site {
  border-top: 1px solid var(--line);
  margin-top: 48px;
  background: var(--bg);
}
.legal { padding: 12px 0 28px; font-size: 12px; color: var(--muted); }

body:has(#portal-cookie:not([hidden])) { padding-bottom: 96px; }

.cookie-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  background: rgba(255,255,255,0.96);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 32px rgba(17,17,19,0.08);
  backdrop-filter: blur(16px);
}
.cookie-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
}
.cookie-inner p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  max-width: 62ch;
}
.cookie-inner a { color: var(--accent); font-weight: 650; }
.cookie-actions { display: flex; gap: 8px; flex-shrink: 0; }
.cookie-actions .cta,
.cookie-actions .cta.ghost {
  border: 0;
  cursor: pointer;
  min-height: 40px;
}
.cookie-actions .cta.ghost {
  background: var(--bg);
  color: var(--ink);
}

@media (max-width: 900px) {
  .cookie-inner { flex-direction: column; align-items: stretch; padding: 14px 0 16px; }
  .cookie-actions { width: 100%; }
  .cookie-actions .cta { flex: 1; text-align: center; }
}

.prose { max-width: 68ch; }
.prose h2 { margin-top: 28px; font-size: 22px; letter-spacing: -0.03em; }
.prose p { color: #3a3a3c; }

@media (max-width: 1100px) {
  .mega { grid-template-columns: 1fr 1fr; }
  .foot { grid-template-columns: 1fr 1fr; }
  .bar .search { min-width: 140px; }
}

@media (max-width: 900px) {
  .wrap { width: min(var(--max), calc(100% - 32px)); }
  nav.desk, .bar > .search, .bar > .cta { display: none; }
  .bar > .lang-switch { margin-left: auto; }
  .burger { display: inline-flex; align-items: center; }
  .logo { margin-right: auto; }
  .bar { height: 52px; gap: 10px; }
  .drawer .search { display: flex; }

  .bandeau-inner {
    flex-direction: column;
    gap: 6px;
    padding: 10px 0;
    text-align: center;
  }
  .bandeau p { font-size: 12px; line-height: 1.4; max-width: 36ch; }

  .hero { padding: 32px 0 8px; }
  .hero h1 { font-size: clamp(32px, 10vw, 44px); max-width: none; }
  .hero p.lead { font-size: 16px; margin-bottom: 18px; }
  .cta.lg { width: 100%; }
  .row { flex-direction: column; align-items: stretch; }
  .row .cta { width: 100%; }

  .cats {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 12px;
    scrollbar-width: none;
  }
  .cats::-webkit-scrollbar { display: none; }
  .cats a { flex: 0 0 auto; min-height: 40px; display: inline-flex; align-items: center; }

  .section { padding: 28px 0; }
  .section h2 { font-size: 22px; }

  .billboard { min-height: 0; border-radius: 16px; }
  .billboard-copy { padding: 22px 20px 20px; }
  .billboard-art { min-height: 140px; }

  .theme-head { flex-wrap: wrap; align-items: baseline; }
  .theme-head .sub { width: 100%; }

  .app { min-height: 64px; }
  .icon { width: 52px; height: 52px; border-radius: 12px; }
  .open { flex-shrink: 0; min-height: 36px; display: inline-flex; align-items: center; }

  .card { padding: 16px; }

  .previews {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    gap: 10px;
  }
  .previews .shot {
    min-width: min(78vw, 280px);
    height: 200px;
    scroll-snap-align: start;
    flex-shrink: 0;
  }

  .app-hero { gap: 14px; padding-bottom: 20px; }
  .app-hero .icon { width: 72px; height: 72px; border-radius: 18px; }
  .app-hero h1 { font-size: 26px; }
  .app-hero .cta { width: 100%; grid-column: 1 / -1; }

  .page-hero { padding: 24px 0 16px; }
  form { max-width: none; }

  .billboard,
  .app-row,
  .grid3,
  .grid2,
  .foot,
  .mega,
  .app-hero,
  .facts {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .bandeau a { font-size: 12px; }
  .shot { height: 140px; }
}
