/* Hallmark · restyle: typography and navigation · reference: Hexik · keep the Lumigate palette and layout. */
@font-face {
  font-family: Inter;
  src: url('assets/fonts/inter-variable.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --page: #09070e;
  --panel: #13101b;
  --line: #282033;
  --text: #f7f3fc;
  --muted: #a9a1b6;
  --accent: #cba3ff;
  --primary: #dac0ff;
  --wrap: 1180px;
  --tap: 44px;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --font-body: Inter, ui-sans-serif, system-ui, sans-serif;
  font-family: var(--font-body);
  font-synthesis: none;
  color: var(--text);
  background: var(--page);
}
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; }
body { margin: 0; min-width: 0; overflow-x: clip; }
body:has(dialog[open]) { overflow: hidden; }
button, input, select { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
:is(a, button, summary) { touch-action: manipulation; -webkit-tap-highlight-color: #cba3ff38; }
button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
::selection { color: var(--page); background: var(--primary); }
.wrap { width: min(calc(100% - 64px), var(--wrap)); margin-inline: auto; }
.symbols { position: absolute; width: 0; height: 0; }
.icon { flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.skip-link { position: fixed; z-index: 3; inset: 12px auto auto 12px; padding: 12px 16px; border-radius: 8px; color: var(--page); background: var(--primary); transform: translateY(calc(-100% - 20px)); }
.skip-link:focus { transform: none; }

.brand { display: inline-flex; flex: none; align-items: center; gap: 9px; font-size: 1.125rem; font-weight: 750; letter-spacing: -.025em; white-space: nowrap; }
.brand img { flex: none; }
.brand-store { color: var(--accent); }
.footer a:hover, .footer button:hover { color: var(--text); }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: var(--tap);
  padding: 0 15px; border: 1px solid transparent; border-radius: 9px;
  font-size: .9375rem; font-weight: 550; line-height: 1.2; transition: scale 120ms var(--ease-out), background .18s, border-color .18s, color .18s;
}
.button-primary { background: linear-gradient(155deg, #eedfff, #bc91fb); color: #1d102a; border-color: #e6cdff; box-shadow: 0 3px 12px #08060d70, inset 0 1px 0 #fff9; }
.button-primary:hover { background: #eee0ff; }
.button-quiet { color: var(--text); background: #1b1625; border-color: #342942; }
.button-quiet:hover { border-color: #674b84; background: #251a33; }
:is(.button, .search-button, .dialog-close, .help-button):active { filter: brightness(.9); }

.hero { position: relative; isolation: isolate; min-height: 650px; overflow: hidden; text-align: center; }
.hero-art {
  position: absolute; z-index: -1; top: 20px; left: 50%; width: min(1060px, 100%); aspect-ratio: 3 / 2;
  transform: translateX(-50%); background: center / 100% 100% no-repeat url('assets/hero.webp?v=catalog');
  mask-image: linear-gradient(180deg, transparent 2%, #000 25% 75%, transparent 92%), linear-gradient(90deg, transparent, #000 6% 94%, transparent);
  mask-composite: intersect; mix-blend-mode: screen;
}
.hero-content { padding-top: 58px; }
.hero h1 { margin: 0; min-width: 0; overflow-wrap: break-word; font-size: clamp(2.375rem, 4.35vw, 4rem); font-weight: 700; line-height: 1.06; letter-spacing: -.03em; text-wrap: balance; }
.hero-description { max-width: 50ch; margin: 20px auto 26px; color: #c7bed4; font-size: 1.0625rem; line-height: 1.55; text-wrap: pretty; }
.hero-cta { min-height: 49px; padding-inline: 19px; font-size: 1rem; }

.section { scroll-margin-top: 25px; }
.catalog { padding-top: 56px; }
.section-heading { margin-bottom: 28px; text-align: center; }
.section-heading h2 { margin: 0; min-width: 0; overflow-wrap: break-word; font-size: clamp(1.75rem, 3vw, 2.375rem); line-height: 1.16; font-weight: 650; letter-spacing: -.025em; text-wrap: balance; }
.section-heading > p:last-child { margin: 10px 0 0; color: var(--muted); font-size: .9375rem; line-height: 1.6; text-wrap: pretty; }
.services { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.service {
  position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: space-between; gap: 112px;
  width: 100%; min-height: 264px; overflow: hidden; padding: 13px 13px 15px; border: 1px solid var(--line);
  border-radius: 13px; background: var(--panel);
  color: var(--text); text-align: left; transition: border-color .18s, box-shadow .18s;
}
.service:hover { border-color: #674b84; box-shadow: 0 10px 25px #080512ad; }
.service-top { display: flex; justify-content: space-between; align-items: start; }
.service-icon, .service-arrow, .bot-icon { flex: none; display: grid; place-items: center; border: 1px solid #ffffff12; border-radius: 8px; }
.service-icon { width: 36px; height: 36px; background: #ffffff08; color: var(--tint); }
.service-icon .icon { width: 20px; height: 20px; }
.brand-icon { width: 19px; height: 19px; background: currentColor; mask: var(--logo) center / contain no-repeat; }
.brand-steam { --logo: url('assets/steam.svg'); }
.brand-spotify { --logo: url('assets/spotify.svg'); }
.brand-telegram { --logo: url('assets/telegram.svg'); }
.brand-apple { --logo: url('assets/apple.svg'); }
.service-arrow { width: 28px; height: 28px; color: #bcb0ce; background: #ffffff09; transition: background .22s, color .22s; }
.service-arrow .icon { width: 14px; height: 14px; }
.service:hover .service-arrow { color: #180e24; background: var(--primary); }
.service-art {
  position: absolute; z-index: -1; top: 24px; left: 50%; width: 176px; aspect-ratio: 1;
  transform: translateX(-50%); background: url('assets/services.webp') var(--x) var(--y) / 300% 200% no-repeat;
  mix-blend-mode: screen; mask-image: radial-gradient(circle, #000 57%, transparent 74%); transition: transform .25s;
}
.ai { --x: 0%; --y: 0%; --tint: #e5a0fd; }
.steam { --x: 50%; --y: 0%; --tint: #a3b9ff; }
.spotify { --x: 100%; --y: 0%; --tint: #a5e6cb; }
.telegram { --x: 0%; --y: 100%; --tint: #a6c7ff; }
.apple { --x: 50%; --y: 100%; --tint: #e5d9f5; }
.games { --x: 100%; --y: 100%; --tint: #d3a6ff; }
.service-copy { position: relative; display: grid; gap: 6px; padding: 3px; }
.service-copy strong { font-size: 1.0625rem; font-weight: 600; letter-spacing: -.012em; }
.service-copy > span { min-height: 40px; color: var(--muted); font-size: .875rem; line-height: 1.5; text-wrap: pretty; }
.bot-banner {
  display: flex; gap: 16px; align-items: center; margin-top: 20px; padding: 19px;
  border: 1px solid #38284c; border-radius: 13px; background: #16101f;
}
.bot-icon { width: 47px; height: 47px; color: #d8b0ff; background: #a36aff1c; border-color: #9261ce3d; }
.bot-icon .icon { width: 22px; height: 22px; }
.bot-banner h3 { margin: 0 0 4px; font-size: 17px; letter-spacing: -.025em; }
.bot-banner p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.bot-banner .button { margin-left: auto; flex: none; }

.reviews { padding-top: 108px; text-align: center; }

.faq { padding: 92px 0 104px; }
.faq-list { max-width: 690px; margin: 0 auto; display: grid; gap: 8px; }
.faq details { border: 1px solid var(--line); border-radius: 9px; background: #14101c; }
.faq details[open] { border-color: #49325e; background: #181122; }
.faq summary { display: flex; align-items: center; gap: 13px; min-height: 50px; padding: 10px 14px; list-style: none; color: #ede6f4; cursor: pointer; font-size: 14px; font-weight: 750; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { margin-left: auto; width: 15px; height: 15px; color: #b099c5; }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq details p { margin: 0; padding: 0 40px 16px 14px; color: #b9aec5; font-size: .875rem; line-height: 1.65; }
.footer { padding: 38px 0 20px; border-top: 1px solid var(--line); background: #110e17; }
.footer-grid { display: grid; grid-template-columns: 1.45fr repeat(3, 1fr); gap: 22px; }
.footer h3 { margin: 3px 0 12px; font-size: 13px; }
.footer-grid > div:not(.footer-brand) > :is(a, button) { display: flex; align-items: center; width: fit-content; min-height: 28px; padding: 3px 0; border: none; background: none; color: var(--muted); font-size: 13px; text-align: left; }
.footer-grid > div:not(.footer-brand) > :is(a, button):hover { color: var(--text); }
.footer-brand p { max-width: 225px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; padding-top: 17px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.footer-bottom a { display: flex; align-items: center; gap: 4px; min-height: 28px; }
.footer-bottom .icon { width: 13px; height: 13px; }
.help-button { position: fixed; right: 22px; bottom: 22px; z-index: 2; display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid #d8b4ff; border-radius: 50%; background: #be92f8; color: #1e1030; box-shadow: 0 4px 18px #08060d99; transition: background .18s; }
.help-button:hover { background: #e3c9ff; }
.help-button .icon { width: 23px; height: 23px; }

.dialog { width: min(480px, calc(100% - 32px)); max-height: calc(100% - 40px); max-height: calc(100dvh - 40px); padding: 28px; overflow: auto; overscroll-behavior: contain; color: var(--text); background: #171020; border: 1px solid #4f3766; border-radius: 17px; box-shadow: 0 15px 80px #000a; }
.dialog::backdrop { background: #07040bd9; backdrop-filter: blur(4px); }
.dialog-close { position: absolute; right: 12px; top: 12px; display: grid; place-items: center; width: var(--tap); height: var(--tap); padding: 0; border: 1px solid #423052; border-radius: 8px; color: var(--accent); background: #231832; }
.dialog-close:hover { color: var(--text); border-color: #806299; }
.dialog h2 { margin: 0 38px 10px 0; font-size: 1.625rem; line-height: 1.18; letter-spacing: -.035em; }
.dialog p { color: #c5b8d3; font-size: .875rem; line-height: 1.6; }
.dialog label { display: grid; gap: 8px; margin: 16px 0 12px; color: var(--text); font-size: .875rem; font-weight: 750; }
.dialog :is(select, input) { width: 100%; min-height: var(--tap); border: 1px solid #4f3766; border-radius: 8px; background: #120d1b; color: var(--text); caret-color: var(--accent); padding: 8px 11px; font-size: 1rem; }
.dialog .panel-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 17px; }
.dialog input::placeholder { color: var(--muted); opacity: 1; }
.dialog [role='status']:empty { margin: 0; }
#search-status { margin: 12px 0 0; }
.search-results, .draft-list { padding: 0; margin: 8px 0 0; list-style: none; display: grid; gap: 8px; }
.search-results button, .draft-list li { width: 100%; padding: 11px 12px; border: 1px solid #39294b; border-radius: 8px; color: var(--text); background: #1f162c; text-align: left; font-size: 13px; }
.search-results button { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: var(--tap); }
.search-results button:is(:hover, :focus-visible) { border-color: #8a5dae; background: #2a1c3b; }
.search-results svg { width: 16px; height: 16px; color: var(--accent); }
.draft-list li { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.draft-list strong, .draft-list small { display: block; }
.draft-list small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.draft-list button { flex: none; min-width: var(--tap); padding: 0; }

/* React Bits Animated Content: play the entrance once, with a short stagger. */
@keyframes enter-up {
  from { opacity: .55; translate: 0 10px; }
  to { opacity: 1; translate: 0 0; }
}
@keyframes enter-art {
  from { opacity: .5; scale: .985; }
  to { opacity: 1; scale: 1; }
}
@keyframes enter-palette {
  from { opacity: 0; translate: 0 8px; scale: .98; }
  to { opacity: 1; translate: 0 0; scale: 1; }
}
@keyframes enter-backdrop { from { opacity: 0; } to { opacity: 1; } }

.hero-cta-zone { display: inline-flex; }

@media (prefers-reduced-motion: no-preference) {
  :is(.button, .search-button):active { scale: .98; }
  .hero-content > * { animation: enter-up .48s var(--ease-out) var(--entry-delay, 0s) backwards; }
  .hero-description { --entry-delay: 55ms; }
  .hero-cta-zone { --entry-delay: 100ms; }
  .hero-art { animation: enter-art .64s var(--ease-out) backwards; }
  .enter-in-view { animation: enter-up .32s var(--ease-out) var(--entry-delay, 0s) backwards; }
  .hero-cta-zone:focus-within, .enter-in-view:focus-within { animation: none; }

  /* DesignBookmark Command palette: spring in without replacing native dialog behavior. */
  .dialog[open][data-pointer-open] { animation: enter-palette .22s var(--ease-out); }
  .dialog[open][data-pointer-open]::backdrop { animation: enter-backdrop .16s ease-out; }
}

@media (prefers-reduced-motion: no-preference) and (any-hover: hover) and (any-pointer: fine) {
  /* DesignBookmark Magnetic button and Parallax ticket. */
  .hero-cta {
    translate: calc(var(--pointer-x, 0) * 9px) calc(var(--pointer-y, 0) * 5px);
    transition: translate .24s var(--ease-out), scale 120ms var(--ease-out), background .18s;
  }
  .hero-cta-zone:hover .hero-cta { transition-duration: .15s; }
  .service:hover .service-art {
    transform: translateX(-50%) perspective(440px)
      rotateX(calc(var(--pointer-y, 0) * -10deg)) rotateY(calc(var(--pointer-x, 0) * 13deg)) scale(1.05);
  }
  .service::before {
    content: ''; position: absolute; z-index: -1; inset: 0; pointer-events: none; opacity: 0;
    background: radial-gradient(140px circle at calc(50% + var(--pointer-x, 0) * 50%) calc(50% + var(--pointer-y, 0) * 50%), color-mix(in srgb, var(--tint) 21%, transparent), transparent);
    transition: opacity .22s;
  }
  .service:hover::before { opacity: 1; }
}

@media (max-width: 980px) {
  .wrap { width: min(calc(100% - 48px), var(--wrap)); }
  .hero { min-height: 600px; }
  .hero-art { top: auto; bottom: -22px; }
  .services { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .service { min-height: 240px; padding: 10px; gap: 96px; }
  .service-art { width: 165px; }
}
@media (max-width: 730px) {
  .wrap { width: calc(100% - 32px); }
  .help-button { display: none; }
  .hero { min-height: 535px; }
  .hero-content { padding-top: 40px; }
  .hero-art { bottom: 8px; }
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-art { width: 176px; }
  .catalog { padding-top: 36px; }
  .reviews { padding-top: 72px; }
  .faq { padding-top: 64px; padding-bottom: 80px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 425px) {
  .hero { min-height: 475px; }
  .hero h1 { font-size: clamp(1.875rem, 8.6vw, 2.375rem); }
  .hero-description { max-width: 34ch; margin: 16px auto 20px; font-size: .9375rem; }
  .hero-art { bottom: 30px; }
  .services { gap: 9px; }
  .service { min-height: 215px; gap: 78px; }
  .service-art { width: 145px; top: 28px; }
  .service-copy strong { font-size: .9375rem; }
  .service-copy > span { min-height: 0; font-size: .8125rem; }
  .bot-banner { display: grid; grid-template-columns: auto 1fr; padding: 13px; gap: 10px; }
  .bot-banner .button { grid-column: 2; margin-left: 0; justify-self: start; }
  .bot-banner h3 { font-size: 15px; }
  .bot-banner p { font-size: .8125rem; }
  .dialog { padding: 22px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  .dialog::backdrop { backdrop-filter: none; }
}
