/* ==========================================================================
   Pharm Labs — main stylesheet
   ========================================================================== */

:root {
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --hand: "Caveat", "Comic Sans MS", cursive;

  --blue: #2f6bff;
  --blue-2: #5a8cff;
  --violet: #8b5cf6;
  --pink: #d65bff;
  --grad: linear-gradient(92deg, #4d7cff 0%, #7b6bff 48%, #a65cff 100%);
  --grad-btn: linear-gradient(92deg, #2a62ff 0%, #4a7dff 100%);
  --grad-violet: linear-gradient(92deg, #4f6cff 0%, #8b5cf6 100%);

  --radius: 28px;
  --radius-sm: 16px;
  --container: 1240px;
  --pad: clamp(20px, 4vw, 48px);
  --header-h: 84px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #060918;
  --bg-2: #0a0f2a;
  --surface: rgba(16, 22, 56, .62);
  --surface-solid: #0f1536;
  --surface-2: rgba(28, 36, 86, .55);
  --line: rgba(130, 150, 255, .16);
  --line-strong: rgba(130, 150, 255, .32);
  --text: #f3f5ff;
  --muted: #a3acd8;
  --accent: #4f86ff;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, .8);
  --glow: 0 0 0 1px rgba(110, 140, 255, .14), 0 20px 60px -20px rgba(60, 90, 255, .35);
  --hero-shade: linear-gradient(90deg, rgba(6, 9, 24, .92) 0%, rgba(6, 9, 24, .6) 34%, rgba(6, 9, 24, 0) 62%),
                linear-gradient(0deg, var(--bg) 0%, rgba(6, 9, 24, 0) 26%);
  --about-shade: linear-gradient(90deg, rgba(6, 9, 24, .9) 0%, rgba(6, 9, 24, .55) 38%, rgba(6, 9, 24, 0) 70%);
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #f3f5ff;
  --bg-2: #e7ebff;
  --surface: rgba(255, 255, 255, .78);
  --surface-solid: #ffffff;
  --surface-2: rgba(235, 239, 255, .9);
  --line: rgba(30, 45, 130, .1);
  --line-strong: rgba(30, 45, 130, .22);
  --text: #0b1033;
  --muted: #4d5683;
  --accent: #2357f5;
  --shadow: 0 30px 70px -35px rgba(30, 45, 130, .45);
  --glow: 0 0 0 1px rgba(30, 45, 130, .06), 0 24px 60px -28px rgba(40, 70, 200, .35);
  --hero-shade: linear-gradient(90deg, rgba(243, 245, 255, .94) 0%, rgba(243, 245, 255, .7) 34%, rgba(243, 245, 255, 0) 62%),
                linear-gradient(0deg, var(--bg) 0%, rgba(243, 245, 255, 0) 26%);
  --about-shade: linear-gradient(90deg, rgba(243, 245, 255, .94) 0%, rgba(243, 245, 255, .66) 40%, rgba(243, 245, 255, 0) 72%);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  transition: background-color .5s var(--ease), color .5s var(--ease);
}
body::before { /* subtle noise for depth */
  content: ""; position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3 { margin: 0; line-height: 1.05; letter-spacing: -.025em; font-weight: 800; }
p { margin: 0; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

.container { width: min(100% - 2 * var(--pad), var(--container)); margin-inline: auto; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 300; padding: 10px 16px; background: var(--blue); color: #fff; border-radius: 10px; }
.skip:focus { top: 16px; }

.grad-text {
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-box-decoration-break: clone; box-decoration-break: clone; padding-bottom: .06em;
}
.accent { color: var(--accent); }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--muted);
}
.h2 { font-size: clamp(36px, 5vw, 64px); }

/* ---------- Buttons ---------- */
.btn {
  --h: 56px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: var(--h); padding: 0 30px; border-radius: 999px;
  font-weight: 700; font-size: 16px; white-space: nowrap; isolation: isolate; overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), background-color .3s;
}
.btn--sm { --h: 46px; padding: 0 22px; font-size: 15px; }
.btn--primary { color: #fff; background: var(--grad-btn); box-shadow: 0 12px 30px -10px rgba(47, 107, 255, .7), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn--violet  { color: #fff; background: var(--grad-violet); box-shadow: 0 12px 30px -10px rgba(139, 92, 246, .7), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn--primary::before, .btn--violet::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: linear-gradient(92deg, #7b6bff, #b05cff); opacity: 0; transition: opacity .4s var(--ease);
}
.btn--primary:hover::before, .btn--violet:hover::before { opacity: 1; }
.btn--primary:hover, .btn--violet:hover { box-shadow: 0 18px 40px -12px rgba(123, 107, 255, .85), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn--ghost { border: 1.5px solid var(--line-strong); background: var(--surface); backdrop-filter: blur(10px); }
.btn--ghost:hover { border-color: var(--accent); }
.arrow { position: relative; width: 16px; height: 12px; display: inline-block; overflow: hidden; }
.arrow::before, .arrow::after {
  content: ""; position: absolute; inset: 0; transition: transform .45s var(--ease);
  background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 12' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 6h13M9 1l5 5-5 5'/%3E%3C/svg%3E");
}
.arrow::after { transform: translateX(-120%); }
.btn:hover .arrow::before { transform: translateX(120%); }
.btn:hover .arrow::after { transform: translateX(0); }
.btn--ghost .arrow::before, .btn--ghost .arrow::after { filter: var(--arrow-filter, none); }
[data-theme="light"] .btn--ghost .arrow { --arrow-filter: invert(1); }

/* ---------- Preloader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 400; display: grid; place-items: center;
  background: var(--bg); color: var(--text);
}
html:not(.js) .loader { display: none; }
.loader__inner { display: grid; justify-items: center; gap: 18px; }
.loader__flask { width: 64px; height: 80px; color: var(--text); }
.loader__brand { font-weight: 800; font-size: 28px; letter-spacing: .02em; line-height: 1; text-align: center; }
.loader__brand span { display: block; font-size: 11px; letter-spacing: .72em; margin: 6px 0 0 .72em; color: var(--muted); }
.loader__count { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--muted); font-size: 14px; }

/* ---------- Cursor ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 350; pointer-events: none; display: none; }
@media (hover: hover) and (pointer: fine) { .cursor { display: block; } }
.cursor__dot { position: fixed; left: 0; top: 0; width: 6px; height: 6px; border-radius: 50%; translate: -50% -50%; background: var(--accent); }

.progress { position: fixed; left: 0; top: 0; z-index: 210; height: 3px; width: 100%; background: var(--grad); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 200; height: var(--header-h);
  transition: transform .5s var(--ease), background-color .4s, box-shadow .4s, backdrop-filter .4s;
}
.header.is-scrolled {
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 1px 0 var(--line);
}
.header.is-hidden { transform: translateY(-100%); }
.header__bar { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: inline-flex; flex-direction: column; align-items: center; line-height: 1; font-weight: 800; }
.logo__main { font-size: 26px; letter-spacing: .01em; }
.logo__sub { font-size: 9.5px; letter-spacing: .78em; margin: 5px 0 0 .78em; font-weight: 700; }
.nav { display: flex; gap: 6px; margin-right: auto; margin-left: 56px; }
.nav__link { position: relative; padding: 10px 16px; font-weight: 600; font-size: 15.5px; color: var(--text); opacity: .86; transition: opacity .3s; }
.nav__link::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 4px; height: 2px; border-radius: 2px;
  background: var(--grad); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease);
}
.nav__link:hover, .nav__link.is-active { opacity: 1; }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); transform-origin: left; }
.header__actions { display: flex; align-items: center; gap: 14px; }
.header__cta { border: 1.5px solid rgba(140, 160, 255, .5); }

.theme-toggle {
  position: relative; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  border: 1.5px solid var(--line-strong); background: var(--surface); backdrop-filter: blur(10px);
  transition: border-color .3s, transform .5s var(--ease);
}
.theme-toggle:hover { border-color: var(--accent); transform: rotate(18deg); }
.theme-toggle svg { position: absolute; width: 20px; height: 20px; transition: transform .6s var(--ease), opacity .4s; }
.theme-toggle__sun { fill: #ffc940; stroke: #ffc940; stroke-width: 2; }
.theme-toggle__moon { fill: #9fb4ff; }
[data-theme="dark"] .theme-toggle__sun { transform: rotate(-90deg) scale(.3); opacity: 0; }
[data-theme="light"] .theme-toggle__moon { transform: rotate(90deg) scale(.3); opacity: 0; }
[data-theme="light"] .theme-toggle__sun { fill: #f5a300; stroke: #f5a300; }

.burger { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--line-strong); position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .45s var(--ease), top .45s var(--ease); }
.burger span:nth-child(1) { top: 18px; }
.burger span:nth-child(2) { top: 26px; }
.menu-open .burger span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.menu-open .burger span:nth-child(2) { top: 22px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 190; display: flex; flex-direction: column; justify-content: center; gap: 40px;
  padding: calc(var(--header-h) + 20px) var(--pad) 40px; background: var(--bg);
  clip-path: circle(0 at calc(100% - 46px) 42px); transition: clip-path .8s var(--ease); visibility: hidden;
}
.menu-open .mobile-menu { clip-path: circle(150% at calc(100% - 46px) 42px); visibility: visible; }
.mobile-menu__nav { display: grid; gap: 6px; }
.mobile-menu__nav a { font-size: clamp(42px, 12vw, 72px); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.mobile-menu .btn { align-self: flex-start; }
.mobile-menu__nav a, .mobile-menu .btn { opacity: 0; transform: translateY(30px); transition: opacity .5s, transform .7s var(--ease); }
.menu-open .mobile-menu__nav a, .menu-open .mobile-menu .btn { opacity: 1; transform: none; }
.menu-open .mobile-menu__nav a:nth-child(1) { transition-delay: .15s; }
.menu-open .mobile-menu__nav a:nth-child(2) { transition-delay: .2s; }
.menu-open .mobile-menu__nav a:nth-child(3) { transition-delay: .25s; }
.menu-open .mobile-menu__nav a:nth-child(4) { transition-delay: .3s; }
.menu-open .mobile-menu .btn { transition-delay: .38s; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: max(100svh, 760px); display: flex; align-items: center; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__img {
  position: absolute; inset: -6% 0 0; background-size: cover; background-position: 70% 80%;
  transition: opacity .9s var(--ease); will-change: transform;
}
.hero__img--night { background-image: url("../assets/img/hero-night.webp"); }
.hero__img--day { background-image: url("../assets/img/hero-day.webp"); opacity: 0; }
[data-theme="light"] .hero__img--day { opacity: 1; }
[data-theme="light"] .hero__img--night { opacity: 0; }
.hero__shade { position: absolute; inset: 0; background: var(--hero-shade); transition: background .6s; }
.hero__sparks { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

.hero__mascot {
  position: absolute; z-index: 1; left: 70%; bottom: 16%; width: clamp(320px, 36vw, 620px);
  translate: -50% 0; pointer-events: none;
}
.hero__mascot-float { position: relative; animation: float 6s ease-in-out infinite; }
.hero__mascot img { width: 100%; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .45)); }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-14px) rotate(-1deg); } }
.bubble {
  position: absolute; border-radius: 50%; opacity: 0;
  background: radial-gradient(circle at 35% 30%, #fff 0 8%, #8fb1ff 22%, #6b5cff 70%, #4a2bd8 100%);
  box-shadow: 0 0 24px rgba(120, 130, 255, .8); animation: bubble 4.5s ease-in infinite;
}
.bubble.b1 { width: 22px; height: 22px; left: 80%; top: 40%; }
.bubble.b2 { width: 14px; height: 14px; left: 84%; top: 44%; animation-delay: 1.5s; }
.bubble.b3 { width: 18px; height: 18px; left: 77%; top: 42%; animation-delay: 3s; }
@keyframes bubble {
  0% { opacity: 0; transform: translate(0, 0) scale(.4); }
  15% { opacity: 1; }
  100% { opacity: 0; transform: translate(20px, -180px) scale(1.15); }
}

.hero__content { position: relative; z-index: 2; padding-top: calc(var(--header-h) + 40px); padding-bottom: 80px; }
.hero__title { font-size: clamp(56px, 8.6vw, 128px); line-height: .98; letter-spacing: -.04em; margin-bottom: 28px; }
.hero__title .line { display: block; }
.hero__lead { max-width: 500px; font-size: clamp(17px, 1.4vw, 20px); color: var(--text); opacity: .9; margin-bottom: 36px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 64px; }
.stats { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(28px, 5vw, 72px); }
.stats b { display: block; font-size: clamp(26px, 2.6vw, 36px); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stats small { font-size: 14px; color: var(--muted); font-weight: 500; }

.scroll-hint {
  position: absolute; z-index: 2; left: 50%; bottom: 28px; translate: -50% 0; width: 28px; height: 46px;
  border: 2px solid var(--line-strong); border-radius: 20px;
}
.scroll-hint span { position: absolute; left: 50%; top: 9px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--text); animation: wheel 1.8s var(--ease) infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(-4px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* split letters */
.char { display: inline-block; will-change: transform; }
.word { display: inline-block; white-space: nowrap; }
.mask { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }

/* ---------- Marquee ---------- */
.marquee { position: relative; padding: 40px 0 70px; overflow: hidden; display: grid; gap: 26px; }
.marquee__row { display: flex; width: max-content; will-change: transform; }
.marquee__track { display: flex; align-items: center; gap: 22px; padding-right: 22px; }
.dog {
  position: relative; width: 150px; height: 170px; flex: none; border-radius: 26px; overflow: hidden;
  background: var(--c, #2f6bff); box-shadow: var(--glow);
  transition: transform .5s var(--ease);
}
.dog::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 30%, rgba(255, 255, 255, .45), transparent 65%); }
.dog img { position: absolute; left: 50%; bottom: -6px; width: 118%; max-width: none; translate: -50% 0; transition: transform .5s var(--ease); }
.dog:hover { transform: translateY(-8px) rotate(-3deg); }
.dog:hover img { transform: scale(1.08); }
.dog span { position: absolute; left: 12px; top: 10px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .9); text-shadow: 0 1px 4px rgba(0, 0, 0, .3); }
.marquee__row--text .marquee__track { gap: 36px; padding-right: 36px; }
.marquee__row--text span {
  font-size: clamp(54px, 8vw, 120px); font-weight: 800; letter-spacing: -.04em; line-height: 1; text-transform: uppercase;
  color: color-mix(in srgb, var(--text) 9%, transparent); transition: color .4s;
}
.marquee__row--text span:hover { color: var(--accent); }
.marquee__row--text i { width: 44px; height: 44px; flex: none; background: var(--grad); mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cellipse cx='20' cy='27' rx='9' ry='7.5'/%3E%3Cellipse cx='9' cy='16' rx='3.6' ry='4.6'/%3E%3Cellipse cx='16' cy='9.5' rx='3.6' ry='4.8'/%3E%3Cellipse cx='24' cy='9.5' rx='3.6' ry='4.8'/%3E%3Cellipse cx='31' cy='16' rx='3.6' ry='4.6'/%3E%3C/svg%3E") center/contain no-repeat; }

/* ---------- Featured ---------- */
.featured { position: relative; }
.featured__pin { height: 100svh; display: flex; align-items: center; justify-content: center; }
.featured__card {
  position: relative; width: 100%; height: 100%; display: flex; align-items: center; overflow: hidden;
  background: radial-gradient(120% 90% at 85% 10%, rgba(80, 70, 255, .25), transparent 55%), linear-gradient(160deg, var(--surface-solid), var(--bg-2));
  border: 1px solid var(--line); border-radius: var(--radius);
  will-change: transform; transform-origin: 50% 50%;
}
.featured__glow { position: absolute; width: 60vw; height: 60vw; right: -20vw; bottom: -30vw; border-radius: 50%; background: radial-gradient(circle, rgba(139, 92, 246, .3), transparent 65%); pointer-events: none; }
.featured__grid { position: relative; display: grid; grid-template-columns: minmax(300px, 0.8fr) 1.7fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.featured__title { font-size: clamp(54px, 6vw, 92px); white-space: nowrap; letter-spacing: -.04em; margin: 12px 0 10px; }
.featured__tag { font-size: clamp(19px, 1.8vw, 24px); font-weight: 700; margin-bottom: 18px; }
.featured__desc { color: var(--muted); max-width: 400px; margin-bottom: 30px; }
.featured__actions { display: grid; gap: 22px; justify-items: start; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 18px 0 14px; border-radius: 12px;
  background: #000; color: #fff; border: 1px solid rgba(255, 255, 255, .22); transition: transform .4s var(--ease), border-color .3s;
}
.store:hover { transform: translateY(-3px); border-color: rgba(255, 255, 255, .5); }
.store svg { width: 24px; height: 24px; fill: #fff; flex: none; }
.store span { display: grid; font-size: 17px; font-weight: 700; line-height: 1.05; letter-spacing: -.01em; }
.store small { font-size: 10px; font-weight: 500; letter-spacing: .02em; }

.featured__gallery {
  position: relative; display: grid; grid-template-columns: 2.2fr 1fr; grid-template-rows: repeat(3, 1fr);
  gap: 16px; height: min(66vh, 580px); padding-right: 130px;
}
.featured__gallery figure { margin: 0; position: relative; overflow: hidden; border-radius: 22px; box-shadow: var(--shadow); transform-style: preserve-3d; }
.featured__gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.featured__gallery figure:hover img { transform: scale(1.06); }
.featured__gallery figure::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); pointer-events: none; }
.g-main { grid-row: 1 / 4; }
.note {
  position: absolute; right: 0; top: 12%; width: 120px; display: grid; justify-items: center; gap: 4px;
  font-family: var(--hand); font-size: 30px; line-height: 1.05; color: var(--text); transform: rotate(6deg);
}
.note span { display: block; }
.note span:nth-child(2) { margin-left: 18px; }
.note span:nth-child(4) { margin-left: 24px; }
.note__arrow { width: 56px; height: 46px; margin-top: 8px; color: var(--text); }
.paw-deco { position: absolute; width: 40px; height: 40px; fill: var(--line-strong); }
.featured__gallery .paw-deco { right: 40px; bottom: 8%; }

/* ---------- Values ---------- */
.values {
  display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(60px, 8vw, 120px);
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); backdrop-filter: blur(10px);
  box-shadow: var(--glow); overflow: hidden;
}
.value { position: relative; padding: 44px 28px 40px; text-align: center; display: grid; justify-items: center; gap: 10px; transition: background-color .4s; }
.value + .value::before { content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px; background: var(--line); }
.value:hover { background: var(--surface-2); }
.value__icon { width: 64px; height: 64px; margin-bottom: 8px; display: grid; place-items: center; border-radius: 20px; transition: transform .6s var(--ease); }
.value:hover .value__icon { transform: translateY(-6px) rotate(-6deg) scale(1.08); }
.value__icon svg { width: 52px; height: 52px; fill: none; stroke: #7a8cff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 10px rgba(110, 120, 255, .6)); }
.value:nth-child(1) svg { stroke: #9a7bff; }
.value:nth-child(2) svg { stroke: #4f9bff; }
.value:nth-child(3) svg { stroke: #ffb648; filter: drop-shadow(0 0 10px rgba(255, 182, 72, .6)); }
.value:nth-child(4) svg { stroke: #5fa8ff; }
.value__icon .dot { fill: currentColor; }
.value h3 { font-size: 19px; letter-spacing: -.01em; line-height: 1.2; }
.value p { font-size: 15px; color: var(--muted); max-width: 190px; line-height: 1.5; }

/* ---------- Games (horizontal) ---------- */
.games { padding-top: clamp(100px, 12vw, 170px); }
.games__head { margin-bottom: 50px; display: grid; gap: 16px; }
.games__head .h2 { max-width: 760px; }
.games__head em { font-style: normal; }
.games__lead { color: var(--muted); max-width: 520px; }
.games__pin { overflow: hidden; }
.games__track { display: flex; gap: 28px; padding: 10px var(--pad) 40px max(var(--pad), calc((100vw - var(--container)) / 2)); width: max-content; will-change: transform; }
.game {
  position: relative; width: clamp(280px, 28vw, 380px); aspect-ratio: 3 / 4.4; flex: none; border-radius: var(--radius); overflow: hidden;
  background: var(--surface-solid); border: 1px solid var(--line); box-shadow: var(--shadow); isolation: isolate;
}
.game__media { position: absolute; inset: 0; z-index: -1; }
.game__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .6s; }
.game:not(.game--live) .game__media img { filter: saturate(.85) brightness(.85); }
.game:hover .game__media img { transform: scale(1.08); filter: none; }
.game::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 45%, rgba(4, 6, 20, .92)); }
.game__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px; color: #fff; display: grid; gap: 6px; }
.game__body h3 { font-size: 30px; }
.game__body p { font-size: 14.5px; opacity: .8; }
.game__link { position: absolute; inset: 0; }
.badge { justify-self: start; padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: rgba(255, 255, 255, .16); backdrop-filter: blur(8px); }
.badge--live { background: #19c37d; display: inline-flex; align-items: center; gap: 7px; }
.badge--live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .8); } 100% { box-shadow: 0 0 0 9px rgba(255, 255, 255, 0); } }
.game--idea { display: grid; place-items: center; text-align: center; background: linear-gradient(160deg, rgba(79, 108, 255, .25), rgba(139, 92, 246, .25)), var(--surface-solid); border: 1.5px dashed var(--line-strong); }
.game--idea::after { display: none; }
.game__idea { padding: 34px; display: grid; justify-items: center; gap: 14px; }
.game__idea svg { width: 64px; height: 80px; color: var(--accent); animation: float 5s ease-in-out infinite; }
.game__idea h3 { font-size: 28px; }
.game__idea p { color: var(--muted); font-size: 15px; margin-bottom: 8px; }

/* ---------- About (zoom banner) ---------- */
.about { position: relative; margin-top: clamp(80px, 10vw, 140px); }
.about__pin { height: 100svh; position: relative; }
.about__frame { position: absolute; inset: 0; overflow: hidden; clip-path: inset(0 round 0); will-change: clip-path; }
.about__media { position: absolute; inset: 0; }
.about__media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; will-change: transform; }
.about__shade { position: absolute; inset: 0; background: var(--about-shade); }
.about__content { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 22px; }
.about__content .h2 { font-size: clamp(40px, 5.4vw, 76px); }
.about__text { max-width: 520px; font-size: clamp(17px, 1.4vw, 20px); margin-bottom: 8px; }
.about__text .w { opacity: .18; transition: opacity .2s; }

/* ---------- Story ---------- */
.story { padding: clamp(100px, 12vw, 170px) 0 20px; display: grid; grid-template-columns: 1fr 1.4fr; gap: 60px; align-items: start; }
.story__intro { position: sticky; top: calc(var(--header-h) + 40px); display: grid; gap: 16px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; counter-reset: s; }
.step {
  position: relative; padding: 34px 34px 34px 120px; border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--surface); box-shadow: var(--glow); transition: transform .6s var(--ease), border-color .4s;
}
.step:hover { transform: translateX(10px); border-color: var(--line-strong); }
.step__n { position: absolute; left: 34px; top: 30px; font-size: 44px; font-weight: 800; letter-spacing: -.04em; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step h3 { font-size: 24px; margin-bottom: 8px; }
.step p { color: var(--muted); }

/* ---------- Careers ---------- */
.careers { padding-top: clamp(100px, 12vw, 170px); }
.careers__banner {
  position: relative; display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; min-height: 440px;
  padding: clamp(36px, 5vw, 64px); border-radius: var(--radius); overflow: hidden; isolation: isolate;
  background:
    radial-gradient(90% 120% at 85% 60%, rgba(60, 120, 255, .55), transparent 60%),
    radial-gradient(60% 80% at 100% 0%, rgba(150, 90, 255, .4), transparent 60%),
    linear-gradient(120deg, #0b1440 0%, #10237a 60%, #1d4fe0 100%);
  color: #fff; border: 1px solid rgba(120, 150, 255, .35); box-shadow: 0 40px 100px -40px rgba(40, 80, 255, .6);
}
[data-theme="light"] .careers__banner {
  background:
    radial-gradient(90% 120% at 85% 60%, rgba(120, 170, 255, .7), transparent 60%),
    radial-gradient(60% 80% at 100% 0%, rgba(190, 150, 255, .6), transparent 60%),
    linear-gradient(120deg, #e4ebff 0%, #c9d8ff 60%, #8fb0ff 100%);
  color: var(--text); border-color: rgba(60, 90, 200, .2);
}
.careers__text { position: relative; z-index: 2; display: grid; gap: 18px; justify-items: start; }
.careers__text .eyebrow { color: inherit; opacity: .75; }
.careers__text .accent { color: #6ea2ff; }
[data-theme="light"] .careers__text .accent { color: var(--accent); }
.careers__text p { max-width: 480px; opacity: .88; margin-bottom: 10px; }
.careers__dog { position: relative; justify-self: center; width: min(100%, 440px); margin: -40px 0 -80px; }
.careers__dog img { position: relative; z-index: 1; width: 100%; filter: drop-shadow(0 30px 30px rgba(0, 0, 0, .35)); }
.crown { position: absolute; z-index: 2; width: 54px; left: 44%; top: 0; color: #9cc0ff; transform: rotate(-10deg); }
.speed-lines { position: absolute; left: -20%; top: 30%; width: 50%; height: 40%; display: grid; align-content: space-around; }
.speed-lines i { display: block; height: 3px; border-radius: 3px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .6)); animation: speed 1.2s linear infinite; }
.speed-lines i:nth-child(2) { width: 70%; animation-delay: .4s; }
.speed-lines i:nth-child(3) { width: 85%; animation-delay: .8s; }
@keyframes speed { 0% { transform: translateX(60%); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateX(-60%); opacity: 0; } }
.careers__banner .paw-deco { fill: rgba(255, 255, 255, .16); }
.paw-deco--a { right: 6%; top: 10%; transform: rotate(20deg); }
.paw-deco--b { left: 52%; bottom: 10%; width: 56px; height: 56px; transform: rotate(-15deg); }


/* ---------- Contact ---------- */
.contact { padding: clamp(100px, 12vw, 170px) 0 clamp(80px, 10vw, 140px); display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 100px); align-items: start; }
.contact__info { display: grid; gap: 18px; justify-items: start; }
.contact__info p { color: var(--muted); max-width: 400px; }
.contact__mail { font-size: clamp(22px, 2.4vw, 32px); font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; position: relative; }
.contact__mail::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--grad); transform: scaleX(.3); transform-origin: left; transition: transform .6s var(--ease); }
.contact__mail:hover::after { transform: scaleX(1); }
.form {
  position: relative; display: grid; gap: 18px; padding: clamp(28px, 4vw, 44px); border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--glow); backdrop-filter: blur(12px);
}
.field { position: relative; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; color: var(--text); background: transparent; border: 1.5px solid var(--line-strong);
  border-radius: 16px; padding: 26px 18px 10px; outline: none; transition: border-color .3s, box-shadow .3s; resize: vertical;
}
.field select { appearance: none; cursor: pointer; background: no-repeat right 18px center / 12px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%237f8bc4' stroke-width='2'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); }
.field select option { background: var(--surface-solid); color: var(--text); }
.field label { position: absolute; left: 19px; top: 18px; color: var(--muted); pointer-events: none; transform-origin: 0 0; transition: transform .35s var(--ease), color .3s; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label,
.field--select label { transform: translateY(-9px) scale(.76); color: var(--accent); }
.field__err { display: block; height: 0; overflow: hidden; color: #ff6b81; font-size: 13px; font-weight: 600; transition: height .3s, margin .3s; }
.field.is-invalid input, .field.is-invalid textarea { border-color: #ff6b81; animation: shake .4s; }
.field.is-invalid .field__err { height: 20px; margin-top: 6px; }
@keyframes shake { 25% { transform: translateX(-6px); } 50% { transform: translateX(5px); } 75% { transform: translateX(-3px); } }
.form__submit { justify-self: start; }
.form__submit.is-loading { pointer-events: none; }
.form__submit.is-loading span::after { content: "…"; }
.form__success {
  position: absolute; inset: 0; border-radius: inherit; display: grid; place-content: center; justify-items: center; gap: 12px; text-align: center; padding: 30px;
  background: var(--surface-solid); opacity: 0; visibility: hidden; transform: scale(.96); transition: opacity .5s, transform .6s var(--ease), visibility .5s;
}
.form.is-sent .form__success { opacity: 1; visibility: visible; transform: none; }
.form__success svg { width: 76px; height: 76px; fill: none; stroke: #19c37d; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.form__success circle { stroke-dasharray: 151; stroke-dashoffset: 151; }
.form__success path { stroke-dasharray: 36; stroke-dashoffset: 36; }
.form.is-sent .form__success circle { transition: stroke-dashoffset .8s var(--ease) .2s; stroke-dashoffset: 0; }
.form.is-sent .form__success path { transition: stroke-dashoffset .5s var(--ease) .8s; stroke-dashoffset: 0; }
.form__success h3 { font-size: 28px; }
.form__success p { color: var(--muted); margin-bottom: 8px; }

/* ---------- Footer ---------- */
.footer { position: relative; padding-bottom: 36px; overflow: hidden; }
.footer__big {
  display: flex; justify-content: center; gap: .2em; font-size: clamp(56px, 13.6vw, 230px); font-weight: 800; letter-spacing: -.05em; line-height: .9;
  user-select: none; padding: 20px 0 50px; white-space: nowrap;
}
.footer__big span {
  background: linear-gradient(180deg, color-mix(in srgb, var(--text) 9%, transparent), color-mix(in srgb, var(--text) 2%, transparent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  position: relative;
}
.footer__big span::after {
  content: attr(data-t); position: absolute; inset: 0; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  clip-path: inset(100% 0 0 0); transition: clip-path .8s var(--ease);
}
.footer__big span:hover::after { clip-path: inset(0 0 0 0); }
.footer__row { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; padding: 34px 0; border-top: 1px solid var(--line); }
.footer__nav { display: flex; gap: 34px; flex-wrap: wrap; font-weight: 600; font-size: 15px; }
.footer__nav a, .footer__legal a { opacity: .8; transition: opacity .3s, color .3s; }
.footer__nav a:hover, .footer__legal a:hover { opacity: 1; color: var(--accent); }
.socials { display: flex; gap: 10px; }
.socials a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--line); transition: transform .5s var(--ease), background-color .3s, border-color .3s; }
.socials a:hover { transform: translateY(-4px); background: var(--blue); border-color: var(--blue); color: #fff; }
.socials svg { width: 18px; height: 18px; fill: currentColor; }
.footer__legal { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 13.5px; color: var(--muted); }
.footer__legal div { display: flex; gap: 30px; }

.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 150; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: var(--grad-btn); color: #fff; box-shadow: 0 14px 30px -10px rgba(47, 107, 255, .7);
  opacity: 0; transform: translateY(20px) scale(.8); pointer-events: none; transition: opacity .4s, transform .5s var(--ease);
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.toast {
  position: fixed; left: 50%; bottom: 30px; z-index: 260; translate: -50% 0; padding: 14px 22px; border-radius: 14px; max-width: calc(100vw - 40px);
  background: var(--surface-solid); border: 1px solid var(--line-strong); box-shadow: var(--shadow); font-weight: 600; font-size: 15px;
  opacity: 0; transform: translateY(20px); pointer-events: none; transition: opacity .4s, transform .5s var(--ease);
}
.toast.is-visible { opacity: 1; transform: none; }

/* ---------- Legal pages ---------- */
.legal { padding: calc(var(--header-h) + 60px) 0 100px; }
.legal__head { display: grid; gap: 14px; margin-bottom: 50px; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.legal__head p { color: var(--muted); }
.legal__body { max-width: 760px; }
.legal__body h2 { font-size: 24px; margin: 44px 0 14px; letter-spacing: -.015em; }
.legal__body p, .legal__body li { color: var(--muted); }
.legal__body p + p { margin-top: 12px; }
.legal__body ul { padding-left: 22px; margin: 12px 0 0; display: grid; gap: 6px; }
.legal__body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.header--solid { background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: blur(16px); box-shadow: 0 1px 0 var(--line); }

/* ---------- View transition (theme switch) ---------- */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { z-index: 1; }

/* ---------- Initial states for animated items (only with JS) ---------- */
.js [data-anim] { opacity: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav { margin-left: 24px; }
  .nav__link { padding: 10px 10px; }
  .featured__gallery { padding-right: 0; }
  .note { display: none; }
  .values { grid-template-columns: repeat(2, 1fr); }
  .value:nth-child(3)::before { display: none; }
  .value:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 900px) {
  :root { --header-h: 72px; }
  .nav, .header__cta { display: none; }
  .burger { display: block; }
  .hero { min-height: 100svh; align-items: flex-start; }
  .hero__content { padding-top: calc(var(--header-h) + 24px); padding-bottom: 300px; }
  .hero__mascot { left: 62%; bottom: 2%; width: min(66vw, 400px); }
  .hero__img { background-position: 62% 80%; }
  [data-theme="dark"] { --hero-shade: linear-gradient(180deg, rgba(6, 9, 24, .88) 0%, rgba(6, 9, 24, .5) 46%, rgba(6, 9, 24, 0) 70%), linear-gradient(0deg, var(--bg) 0%, rgba(6, 9, 24, 0) 20%); }
  [data-theme="light"] { --hero-shade: linear-gradient(180deg, rgba(243, 245, 255, .9) 0%, rgba(243, 245, 255, .55) 46%, rgba(243, 245, 255, 0) 70%), linear-gradient(0deg, var(--bg) 0%, rgba(243, 245, 255, 0) 20%); }
  .hero__cta { margin-bottom: 36px; gap: 10px; }
  .hero__cta .btn { --h: 50px; padding: 0 22px; font-size: 15px; }
  .scroll-hint { display: none; }
  .featured { padding: 0 var(--pad); }
  .featured__pin { height: auto; }
  .featured__card { padding: 48px 0 36px; }
  .featured__grid { grid-template-columns: 1fr; }
  .featured__gallery { height: auto; grid-template-columns: repeat(3, 1fr); grid-template-rows: auto auto; }
  .g-main { grid-row: auto; grid-column: 1 / -1; aspect-ratio: 4 / 3; }
  .g-tile { aspect-ratio: 1; }
  .featured__gallery .paw-deco { display: none; }
  .games__pin { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .games__pin::-webkit-scrollbar { display: none; }
  .games__track { padding-left: var(--pad); gap: 16px; }
  .game { width: min(76vw, 340px); scroll-snap-align: center; }
  .story { grid-template-columns: 1fr; gap: 36px; }
  .story__intro { position: static; }
  .careers__banner { grid-template-columns: 1fr; }
  .careers__dog { margin: 20px auto -70px; width: min(80%, 360px); }
  .contact { grid-template-columns: 1fr; }
  .about__pin { height: auto; min-height: 100svh; }
  .about__frame { position: relative; min-height: 100svh; }
  [data-theme="dark"] { --about-shade: linear-gradient(180deg, rgba(6, 9, 24, .9) 0%, rgba(6, 9, 24, .5) 55%, rgba(6, 9, 24, .2) 100%); }
  [data-theme="light"] { --about-shade: linear-gradient(180deg, rgba(243, 245, 255, .94) 0%, rgba(243, 245, 255, .6) 55%, rgba(243, 245, 255, .1) 100%); }
  .about__content { justify-content: flex-start; padding: 90px 0 60px; min-height: 100svh; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .header__actions { gap: 10px; }
  .stats { gap: 22px; }
  .stats b { font-size: 24px; }
  .stats small { font-size: 12.5px; }
  .values { grid-template-columns: 1fr; }
  .value::before { display: none; }
  .value + .value { border-top: 1px solid var(--line); }
  .dog { width: 116px; height: 132px; border-radius: 20px; }
  .step { padding: 80px 26px 28px; }
  .step__n { left: 26px; top: 24px; }
  .footer__row { flex-direction: column; align-items: flex-start; }
  .footer__legal { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js [data-anim] { opacity: 1; }
}
