/* ============================================================
   CASELYNSS AGENCY — Premium Digital Agency Landing
   Custom stylesheet (complements local /css/tailwind.css)
   ============================================================ */

:root,
html[data-theme="light"] {
  color-scheme: light;
  --bg-color: #f2f2ef;
  --text-color: #0a0a0a;
  --surface: #f2f2ef;
  --surface-elevated: #ffffff;
  --deep-black: #0a0a0a;
  --off-white: #f2f2ef;
  --accent: #0a0a0a;
  --border-subtle: rgba(10, 10, 10, 0.1);
  --text-muted: rgba(10, 10, 10, 0.7);
  --cursor-ring: rgba(10, 10, 10, 0.35);
  --ease-lux: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-expo: cubic-bezier(0.77, 0, 0.175, 1);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg-color: #121316;
  --text-color: #f0f1f3;
  --surface: #1a1b1f;
  --surface-elevated: #222428;
  --accent: #f0f1f3;
  --border-subtle: rgba(255, 255, 255, 0.12);
  --text-muted: rgba(240, 241, 243, 0.68);
  --cursor-ring: rgba(255, 255, 255, 0.38);
}

* {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  overflow-x: hidden;
  transition: background-color 0.45s var(--ease-lux), color 0.45s var(--ease-lux);
}

/* Hide native cursor only on precision-pointer (desktop) devices */
@media (hover: hover) and (pointer: fine) {
  body {
    cursor: none;
  }
  body a,
  body button {
    cursor: none;
  }

  /* Legal / requisites pages: keep the system cursor for reading & copying */
  body.req-page,
  body.req-page a,
  body.req-page button,
  body.req-page input,
  body.req-page textarea {
    cursor: auto;
  }
  body.req-page a,
  body.req-page button {
    cursor: pointer;
  }
  body.req-page .req-value,
  body.req-page .footer-req-plaque__value,
  body.req-page [class*="font-mono"] {
    cursor: text;
  }
}

::-webkit-scrollbar {
  width: 0;
  background: transparent;
}

::selection {
  background: var(--deep-black);
  color: var(--off-white);
}

/* ------------------------------------------------------------
   Custom Cursor
   ------------------------------------------------------------ */
.cursor-dot,
.cursor-outline {
  position: fixed;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  z-index: 9999;
  pointer-events: none;
  will-change: transform;
}

.cursor-dot {
  width: 7px;
  height: 7px;
  background-color: var(--text-color);
  transition: opacity 0.25s ease, background-color 0.25s ease;
}

.cursor-outline {
  width: 42px;
  height: 42px;
  border: 1px solid var(--cursor-ring);
  transition: width 0.28s var(--ease-lux), height 0.28s var(--ease-lux),
    background-color 0.28s ease, border-color 0.28s ease, opacity 0.25s ease;
}

/* Cursor "grow" state (links / interactive) */
.cursor-outline.is-grow {
  width: 64px;
  height: 64px;
  background-color: var(--text-color);
  mix-blend-mode: difference;
  border-color: transparent;
}
.cursor-dot.is-grow {
  opacity: 0;
}

/* Cursor "view" state (over case media) */
.cursor-outline.is-view {
  width: 96px;
  height: 96px;
  background-color: var(--deep-black);
  border-color: transparent;
  mix-blend-mode: normal;
}
.cursor-outline .cursor-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--off-white);
  text-transform: uppercase;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.25s ease, transform 0.25s var(--ease-lux);
}
.cursor-outline.is-view .cursor-label {
  opacity: 1;
  transform: scale(1);
}

.cursor-hidden {
  opacity: 0 !important;
}

/* ------------------------------------------------------------
   Preloader
   ------------------------------------------------------------ */
#preloader {
  position: fixed;
  inset: 0;
  background-color: var(--deep-black);
  color: var(--off-white);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1.5rem;
  transition: opacity 0.9s var(--ease-expo), transform 1s var(--ease-expo);
}
.preloader-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-100%);
}
.preloader-counter {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.preloader-bar {
  width: 180px;
  height: 1px;
  background: rgba(242, 242, 239, 0.2);
  position: relative;
  overflow: hidden;
}
.preloader-bar span {
  position: absolute;
  inset: 0;
  background: var(--off-white);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s linear;
}

/* ------------------------------------------------------------
   Scroll Reveal
   ------------------------------------------------------------ */
.reveal-up {
  opacity: 0;
  transform: translateY(48px);
  transition: opacity 1s var(--ease-lux), transform 1s var(--ease-lux);
}
.reveal-up.active {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal-up {
    opacity: 1;
    transform: none;
    transition: none;
  }
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* ------------------------------------------------------------
   Text treatments
   ------------------------------------------------------------ */
.text-outline {
  color: transparent;
  -webkit-text-stroke: 1px var(--text-color);
}
.text-outline-light {
  color: transparent;
  -webkit-text-stroke: 1px var(--off-white);
}
.mix-blend-diff {
  mix-blend-mode: difference;
  color: #fff;
}

/* ------------------------------------------------------------
   Liquid glass accents (iOS-inspired)
   ------------------------------------------------------------ */
.fluid-hero,
.fluid-h2,
.module-title,
.eco-title {
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.16), 0 10px 30px rgba(8, 9, 12, 0.28);
}

.btn-hero,
.btn-primary,
.btn-ghost,
.tg-btn {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  -webkit-backdrop-filter: blur(14px) saturate(145%);
  backdrop-filter: blur(14px) saturate(145%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 8px 24px rgba(5, 6, 10, 0.22);
}
.btn-hero::before,
.btn-primary::before,
.btn-ghost::before,
.tg-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.26) 0%, rgba(255, 255, 255, 0.06) 36%, rgba(255, 255, 255, 0.02) 100%);
}
.btn-hero::after,
.btn-primary::after,
.btn-ghost::after,
.tg-btn::after {
  content: "";
  position: absolute;
  width: 150%;
  height: 60%;
  top: -48%;
  left: -26%;
  transform: rotate(-12deg);
  background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.24) 48%, rgba(255, 255, 255, 0) 100%);
  opacity: 0.58;
  pointer-events: none;
}

/* ------------------------------------------------------------
   Hero — background & grain micro-interaction
   ------------------------------------------------------------ */

/* Liquid-glass tuning knobs (scoped to the hero so nothing else
   is affected). See the "tuning guide" in the chat summary. */
#hero {
  --glass-blur: 16px;        /* frost strength */
  --glass-fill: 0.1;         /* card translucency (0.06–0.16) */
  --glass-border: 0.2;       /* border brightness (alpha) */
  --glass-shadow: 0.34;      /* drop-shadow depth (alpha) */
  --glass-sheen: 0.14;       /* top-left inner highlight */
  --plate-offset-x: 32px;    /* back plate horizontal offset */
  --plate-offset-y: 24px;    /* back plate vertical offset */
  --plate-opacity: 0.55;     /* back plate presence */
  --glass-tint: 205, 212, 228; /* low-saturation cool tint (RGB) */
}

.hero-media {
  position: absolute;
  inset: -8%;
  z-index: 0;
  will-change: transform;
  background:
    radial-gradient(88% 70% at 50% 42%, rgba(198, 202, 210, 0.12) 0%, rgba(198, 202, 210, 0) 62%),
    linear-gradient(145deg, #212429 0%, #181b20 50%, #13161a 100%);
  opacity: 0.96;
}
.hero-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 34%),
    radial-gradient(68% 48% at 50% 44%, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0) 68%);
  pointer-events: none;
}

/* Grain overlay — animated via SVG fractal noise, cheap on GPU */
.grain-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.07;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  will-change: transform, opacity;
}

/* Cursor-follow spotlight glow in hero */
.hero-spotlight {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(
    600px circle at var(--mx, 50%) var(--my, 50%),
    rgba(255, 255, 255, 0.10),
    transparent 40%
  );
  will-change: background;
}

.hero-glass {
  position: relative;
  width: min(100%, 1080px);
  padding: clamp(1.9rem, 4.2vw, 3.35rem);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, var(--glass-border));
  background: linear-gradient(
    150deg,
    rgba(255, 255, 255, calc(var(--glass-fill) + 0.04)) 0%,
    rgba(255, 255, 255, var(--glass-fill)) 46%,
    rgba(255, 255, 255, calc(var(--glass-fill) - 0.04)) 100%
  );
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(118%);
  backdrop-filter: blur(var(--glass-blur)) saturate(118%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 28px 56px -20px rgba(0, 0, 0, var(--glass-shadow));
}
/* Top-left sheen — the "etched glass" light streak */
.hero-glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(
    120% 82% at 6% 2%,
    rgba(255, 255, 255, var(--glass-sheen)) 0%,
    rgba(255, 255, 255, 0) 52%
  );
  mix-blend-mode: screen;
}
/* Secondary, softer glass plate offset down-right for depth */
.hero-glass::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: -1;
  transform: translate(var(--plate-offset-x), var(--plate-offset-y));
  border: 1px solid rgba(255, 255, 255, calc(var(--glass-border) * 0.55));
  background: linear-gradient(
    150deg,
    rgba(var(--glass-tint), calc(var(--glass-fill) * 0.7)) 0%,
    rgba(255, 255, 255, calc(var(--glass-fill) * 0.3)) 100%
  );
  -webkit-backdrop-filter: blur(calc(var(--glass-blur) * 0.7)) saturate(110%);
  backdrop-filter: blur(calc(var(--glass-blur) * 0.7)) saturate(110%);
  box-shadow: 0 16px 32px -18px rgba(0, 0, 0, var(--glass-shadow));
  opacity: var(--plate-opacity);
}

/* Premium etched glow — hero headline only, kept readable */
.hero-glass .fluid-hero {
  font-size: clamp(2.35rem, 8.4vw, 6.1rem);
  line-height: 0.9;
  text-shadow: 0 1px 26px rgba(var(--glass-tint), 0.18);
  max-width: 15ch;
}

@keyframes subtleZoom {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.12);
  }
}
.animate-subtle-zoom {
  animation: subtleZoom 22s infinite alternate ease-in-out;
}

/* ------------------------------------------------------------
   Marquee
   ------------------------------------------------------------ */
@keyframes marquee {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}
.animate-marquee {
  animation: marquee 28s linear infinite;
}
.marquee-track:hover {
  animation-play-state: paused;
}

/* ------------------------------------------------------------
   Services — hover-reveal / accordion
   ------------------------------------------------------------ */
.service-item {
  position: relative;
  border-bottom: 1px solid rgba(10, 10, 10, 0.18);
  cursor: pointer;
}
.service-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2rem 0;
  transition: padding 0.5s var(--ease-lux);
}
.service-index {
  font-family: "Syne", sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  opacity: 0.4;
  transition: opacity 0.4s ease, transform 0.5s var(--ease-lux);
}
.service-title {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  transition: transform 0.5s var(--ease-lux), opacity 0.4s ease;
}
.service-marker {
  flex: none;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(10, 10, 10, 0.25);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: transform 0.5s var(--ease-lux), background-color 0.4s ease,
    border-color 0.4s ease;
}
.service-marker svg {
  width: 18px;
  height: 18px;
  stroke: var(--text-color);
  transition: stroke 0.4s ease, transform 0.6s var(--ease-lux);
}
.service-marker .plus-v {
  transition: transform 0.45s var(--ease-lux);
  transform-origin: center;
}

.service-body {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.6s var(--ease-lux), opacity 0.5s ease,
    padding 0.6s var(--ease-lux);
}
.service-body-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  padding-bottom: 2rem;
}
@media (min-width: 768px) {
  .service-body-inner {
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
  }
}
.service-desc {
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(10, 10, 10, 0.7);
  max-width: 46ch;
}
.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-content: flex-start;
}
.service-tag {
  font-family: "Syne", sans-serif;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border: 1px solid rgba(10, 10, 10, 0.2);
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
}

/* Animated outline graphic that draws in on open */
.service-graphic {
  width: 100%;
  aspect-ratio: 16 / 7;
  border: 1px solid rgba(10, 10, 10, 0.12);
  display: grid;
  place-items: center;
  background:
    linear-gradient(rgba(10, 10, 10, 0.02), rgba(10, 10, 10, 0.02));
}
.service-graphic svg path,
.service-graphic svg line,
.service-graphic svg circle,
.service-graphic svg rect {
  stroke: var(--text-color);
  stroke-width: 1;
  fill: none;
  stroke-dasharray: var(--len, 400);
  stroke-dashoffset: var(--len, 400);
}

/* Open state */
.service-item.is-open .service-body {
  max-height: 460px;
  opacity: 1;
}
.service-item.is-open .service-title {
  transform: translateX(8px);
}
.service-item.is-open .service-marker {
  background-color: var(--deep-black);
  border-color: var(--deep-black);
}
.service-item.is-open .service-marker svg {
  stroke: var(--off-white);
}
.service-item.is-open .service-marker .plus-v {
  transform: rotate(90deg) scaleY(0);
}
.service-item.is-open .service-graphic svg path,
.service-item.is-open .service-graphic svg line,
.service-item.is-open .service-graphic svg circle,
.service-item.is-open .service-graphic svg rect {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1.4s var(--ease-lux);
}

/* Hover hint on desktop (non-open) */
@media (hover: hover) and (pointer: fine) {
  .service-item:not(.is-open):hover .service-marker {
    transform: rotate(90deg);
    border-color: var(--deep-black);
  }
  .service-item:not(.is-open):hover .service-title {
    transform: translateX(8px);
  }
  .service-item:not(.is-open):hover .service-index {
    opacity: 0.9;
  }
}

/* ------------------------------------------------------------
   Pricing — modular architecture (5 modules)
   ------------------------------------------------------------ */
.pricing-module {
  border-top: 1px solid rgba(10, 10, 10, 0.14);
  padding: 3rem 0 2.5rem;
}
.pricing-module:last-of-type {
  border-bottom: 1px solid rgba(10, 10, 10, 0.14);
}
.module-num {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: rgba(10, 10, 10, 0.35);
  flex: none;
}
.module-title {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1;
  letter-spacing: -0.01em;
}
.module-sub {
  display: block;
  margin-top: 0.55rem;
  font-family: "Syne", sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(10, 10, 10, 0.45);
}
.module-desc {
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  line-height: 1.65;
  color: rgba(10, 10, 10, 0.6);
  margin-top: 1.5rem;
  max-width: 38ch;
}

.pricing-items {
  display: flex;
  flex-direction: column;
}
.price-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 1.4rem 1.2rem;
  border: 1px solid transparent;
  border-bottom-color: rgba(10, 10, 10, 0.12);
  transition: border-color 0.45s var(--ease-lux),
    background-color 0.45s var(--ease-lux), transform 0.45s var(--ease-lux),
    box-shadow 0.45s var(--ease-lux), border-radius 0.45s var(--ease-lux);
}
.pricing-items .price-item:last-child {
  border-bottom-color: transparent;
}
@media (hover: hover) and (pointer: fine) {
  .price-item:hover {
    border-color: rgba(10, 10, 10, 0.9);
    background: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 20px 44px rgba(10, 10, 10, 0.08);
    border-radius: 3px;
  }
  .price-item:hover .price-item-name {
    color: var(--accent);
  }
}
.price-item-name {
  font-family: "Syne", sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 0.55rem;
  transition: color 0.35s ease;
}
.price-item-what {
  font-family: "Inter", sans-serif;
  font-size: 0.82rem;
  line-height: 1.65;
  color: rgba(10, 10, 10, 0.62);
  max-width: none;
}
.price-stats {
  display: flex;
  gap: 2rem;
}
@media (min-width: 768px) {
  .price-stats {
    flex-direction: column;
    gap: 0.9rem;
    padding-left: 1.5rem;
    border-left: 1px solid rgba(10, 10, 10, 0.14);
  }
}
.stat-label {
  display: block;
  font-family: "Syne", sans-serif;
  font-size: 0.56rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(10, 10, 10, 0.4);
  margin-bottom: 0.28rem;
}
.stat-value {
  font-family: "Syne", sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.stat-value.price {
  color: var(--accent);
  font-weight: 700;
}

/* Ecosystem — dark premium highlight container */
.ecosystem {
  position: relative;
  overflow: hidden;
  margin-top: 4.5rem;
  background: var(--deep-black);
  color: var(--off-white);
  padding: clamp(2.5rem, 5vw, 4.5rem);
  border-radius: 4px;
}
.ecosystem .eco-content {
  position: relative;
  z-index: 1;
}
.eco-mark {
  position: absolute;
  right: -2%;
  bottom: -35%;
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: clamp(14rem, 34vw, 30rem);
  line-height: 1;
  color: rgba(242, 242, 239, 0.05);
  pointer-events: none;
  z-index: 0;
  user-select: none;
}
.eco-eyebrow {
  font-family: "Syne", sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(242, 242, 239, 0.55);
}
.eco-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.5rem, 3.6vw, 2.6rem);
  line-height: 1.22;
  margin: 1rem 0 1.25rem;
  max-width: 22ch;
}
.eco-desc {
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(242, 242, 239, 0.7);
  max-width: 62ch;
}
.eco-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 2rem;
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.eco-cta span {
  border-bottom: 1px solid var(--off-white);
  padding-bottom: 0.35rem;
  transition: border-color 0.3s ease;
}
.eco-cta:hover span {
  border-color: transparent;
}
.eco-cta svg {
  transition: transform 0.4s var(--ease-lux);
}
.eco-cta:hover svg {
  transform: translateX(6px);
}

/* ------------------------------------------------------------
   Cases — grid, filter transitions, hover-view
   ------------------------------------------------------------ */
.img-container {
  overflow: hidden;
  position: relative;
}
.img-container img {
  /* Shared editorial grade: unifies the case series into one muted,
     desaturated palette regardless of each photo's native temperature. */
  filter: grayscale(0.55) contrast(1.02) brightness(1.02);
  transition: transform 1.4s var(--ease-lux), filter 0.9s var(--ease-lux);
  will-change: transform;
}
.img-container:hover img {
  transform: scale(1.06);
  /* Subtle, premium colour lift on hover — still restrained. */
  filter: grayscale(0.25) contrast(1.02) brightness(1.02);
}

.case-card {
  transition: opacity 0.6s var(--ease-lux), transform 0.6s var(--ease-lux);
}
.case-card.is-hiding {
  opacity: 0;
  transform: translateY(24px) scale(0.98);
  pointer-events: none;
}
.case-card.is-hidden {
  display: none;
}
.case-card.is-showing {
  opacity: 0;
  transform: translateY(24px) scale(0.98);
}

.filter-btn {
  position: relative;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, opacity 0.3s ease;
}
.filter-btn:hover {
  opacity: 0.55;
}
.filter-btn.is-active {
  border-color: var(--deep-black);
}

/* ------------------------------------------------------------
   Quiz — multi-step state machine
   ------------------------------------------------------------ */
.quiz-shell {
  position: relative;
  overflow: hidden;
}
.quiz-progress-track {
  height: 2px;
  width: 100%;
  background: rgba(10, 10, 10, 0.12);
  position: relative;
  overflow: hidden;
}
.quiz-progress-fill {
  position: absolute;
  inset: 0;
  transform-origin: left;
  transform: scaleX(0);
  background: var(--deep-black);
  transition: transform 0.7s var(--ease-lux);
}

.quiz-step {
  display: none;
  animation: quizIn 0.6s var(--ease-lux);
}
.quiz-step.is-active {
  display: block;
}
@keyframes quizIn {
  from {
    opacity: 0;
    transform: translateX(28px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
.quiz-step.is-leaving {
  animation: quizOut 0.35s var(--ease-lux) forwards;
}
@keyframes quizOut {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(-28px);
  }
}

.quiz-option {
  position: relative;
  width: 100%;
  text-align: left;
  border: 1px solid rgba(10, 10, 10, 0.2);
  padding: 1rem 1.15rem;
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: background-color 0.35s var(--ease-lux),
    color 0.35s var(--ease-lux), border-color 0.35s ease, transform 0.35s ease;
}
.quiz-option:hover {
  transform: translateX(4px);
  border-color: var(--deep-black);
}
.quiz-option .opt-dot {
  flex: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid rgba(10, 10, 10, 0.35);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.quiz-option.is-selected {
  background: var(--deep-black);
  color: var(--off-white);
  border-color: var(--deep-black);
}
.quiz-option.is-selected .opt-dot {
  background: var(--off-white);
  border-color: var(--off-white);
}

.quiz-input {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(10, 10, 10, 0.25);
  padding: 0.75rem 0;
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  color: var(--deep-black);
  outline: none;
  transition: border-color 0.3s ease;
}
.quiz-input::placeholder {
  color: rgba(10, 10, 10, 0.35);
}
.quiz-input:focus {
  border-color: var(--deep-black);
}
.quiz-input.is-error {
  border-color: #c0392b;
}

/* «Другое» free-text field — matches the quiz-input underline language */
.quiz-other {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  animation: quizIn 0.4s var(--ease-lux);
}
.quiz-other[hidden] {
  display: none;
}
.quiz-other__label {
  font-family: "Syne", sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(10, 10, 10, 0.45);
}
.quiz-textarea {
  min-height: 3.25rem;
  line-height: 1.45;
  font-size: 0.95rem;
  resize: vertical;
}
.quiz-other__count {
  align-self: flex-end;
  font-family: "Inter", sans-serif;
  font-size: 0.62rem;
  color: rgba(10, 10, 10, 0.4);
}

.btn-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  background: rgba(13, 14, 16, 0.72);
  color: var(--off-white);
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 1.1rem 1.5rem;
  border: 1px solid rgba(242, 242, 239, 0.24);
  transition: opacity 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}
.btn-primary:hover {
  opacity: 1;
  background: rgba(15, 16, 18, 0.82);
}
.btn-primary:disabled {
  opacity: 0.55;
  pointer-events: none;
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.2);
  color: var(--deep-black);
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 1.1rem 0.5rem;
  border: 1px solid rgba(10, 10, 10, 0.24);
  transition: opacity 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}
.btn-ghost:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(10, 10, 10, 0.35);
}
.btn-ghost:disabled {
  opacity: 0.3;
  pointer-events: none;
}

/* Spinner */
.spinner {
  width: 15px;
  height: 15px;
  border: 2px solid rgba(242, 242, 239, 0.35);
  border-top-color: var(--off-white);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Telegram success result */
.quiz-result {
  text-align: center;
}
.tg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  background: rgba(0, 136, 204, 0.58);
  color: #fff;
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 1.15rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  transition: transform 0.35s var(--ease-lux), box-shadow 0.35s ease, background-color 0.3s ease;
}
.tg-btn:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 12px 30px rgba(0, 136, 204, 0.35);
  background: rgba(0, 136, 204, 0.7);
}

/* Post-submit "what happens next" reassurance list */
.quiz-next-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.quiz-next-steps li {
  position: relative;
  padding-left: 1.5rem;
  font-family: "Inter", sans-serif;
  font-size: 0.8rem;
  line-height: 1.4;
  color: rgba(10, 10, 10, 0.72);
}
.quiz-next-steps li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--deep-black);
}

/* ------------------------------------------------------------
   Toasts
   ------------------------------------------------------------ */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 10001;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: calc(100vw - 3rem);
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  min-width: 240px;
  max-width: 340px;
  background: var(--deep-black);
  color: var(--off-white);
  border-left: 3px solid var(--off-white);
  padding: 0.9rem 1.1rem;
  font-family: "Inter", sans-serif;
  font-size: 0.82rem;
  line-height: 1.4;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
  transform: translateX(120%);
  opacity: 0;
  transition: transform 0.5s var(--ease-lux), opacity 0.4s ease;
}
.toast.is-visible {
  transform: translateX(0);
  opacity: 1;
}
.toast.toast-error {
  border-left-color: #e74c3c;
}
.toast.toast-success {
  border-left-color: #2ecc71;
}
.toast-title {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.66rem;
  opacity: 0.7;
  margin-bottom: 0.25rem;
  display: block;
}

/* ------------------------------------------------------------
   Responsive fluid typography helpers (down to 320px)
   ------------------------------------------------------------ */
.fluid-hero {
  font-size: clamp(2.6rem, 11vw, 7rem);
  line-height: 0.92;
}
.fluid-h2 {
  font-size: clamp(1.75rem, 5vw, 3.75rem);
}
.fluid-quiz-title {
  font-size: clamp(1.25rem, 3.5vw, 1.75rem);
}

@media (max-width: 380px) {
  .toast-container {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
  }
  .toast {
    min-width: 0;
    width: 100%;
  }
}

/* ============================================================
   ACCESSIBILITY — keyboard focus
   Robust dual-ring (dark outline + light halo) stays visible on
   both the off-white and deep-black surfaces. Essential because
   the desktop cursor is hidden (cursor: none).
   ============================================================ */
:focus-visible {
  outline: 2px solid var(--deep-black);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(242, 242, 239, 0.55);
  border-radius: 1px;
}
/* Suppress the ring for pointer users; keep it for keyboard nav. */
:focus:not(:focus-visible) {
  outline: none;
}
.quiz-option:focus-visible,
.filter-btn:focus-visible,
.price-item:focus-visible,
.service-head:focus-visible {
  outline-offset: 2px;
}
.quiz-input:focus-visible {
  outline: 2px solid var(--deep-black);
  outline-offset: 3px;
  box-shadow: none;
}

/* ============================================================
   HERO — dual CTA + trust microcopy
   ============================================================ */
.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.9rem;
  margin-top: 2.5rem;
}
@media (min-width: 768px) {
  .hero-cta {
    margin-top: 0;
    align-items: flex-end;
    text-align: right;
  }
}
.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  /* Primary = bright light-glass for strong affordance + hierarchy */
  color: #14161a;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.74));
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 1rem 1.6rem;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 10px 26px -12px rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  backdrop-filter: blur(12px) saturate(120%);
  transition: transform 0.35s var(--ease-lux), background-color 0.3s ease,
    color 0.3s ease, opacity 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.btn-hero:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 16px 34px -14px rgba(0, 0, 0, 0.55),
    0 0 22px -8px rgba(205, 212, 228, 0.4);
}
.btn-hero svg {
  transition: transform 0.35s var(--ease-lux);
}
.btn-hero:hover svg {
  transform: translateX(4px);
}
.btn-hero--ghost {
  /* Secondary = restrained neutral glass, no color cast */
  color: var(--off-white);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 8px 20px -10px rgba(0, 0, 0, 0.4);
}
.btn-hero--ghost:hover {
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 14px 28px -12px rgba(0, 0, 0, 0.5);
}
/* Light focus ring for the dark hero surface (overrides the global
   dark ring, which is tuned for the off-white sections). */
.btn-hero:focus-visible,
.btn-hero--ghost:focus-visible,
.hero-tg-link:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(10, 10, 10, 0.45);
}
.hero-tg-link {
  font-family: "Inter", sans-serif;
  font-size: 0.8rem;
  color: rgba(242, 242, 239, 0.78);
  border-bottom: 1px solid transparent;
  transition: color 0.3s ease, border-color 0.3s ease;
}
.hero-tg-link:hover {
  color: var(--off-white);
  border-color: rgba(242, 242, 239, 0.6);
}
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.5rem;
  margin-top: 1.75rem;
  padding: 0;
  list-style: none;
}
.hero-trust li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-family: "Inter", sans-serif;
  font-size: 0.72rem;
  color: rgba(242, 242, 239, 0.82);
}
.hero-trust li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--off-white);
  opacity: 0.55;
}
.hero-trust strong {
  color: var(--off-white);
  font-weight: 600;
}

@media (max-width: 768px) {
  /* Lighter frost + tighter depth keeps mobile elegant and cheap on GPU */
  #hero {
    --glass-blur: 12px;
    --plate-offset-x: 16px;
    --plate-offset-y: 16px;
    --plate-opacity: 0.45;
  }
  .hero-glass {
    width: 100%;
    border-radius: 18px;
    padding: 1.5rem 1.25rem;
  }
}

/* Fallback: browsers without backdrop-filter get near-solid graphite
   surfaces so headline + CTAs stay fully readable (no washed-out glass). */
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .hero-glass {
    background: rgba(24, 27, 32, 0.9);
    border-color: rgba(255, 255, 255, 0.14);
  }
  .hero-glass::after {
    background: rgba(24, 27, 32, 0.55);
  }
  .btn-hero {
    background: #eef1f7;
  }
  .btn-hero--ghost {
    background: rgba(255, 255, 255, 0.1);
  }
}

/* ============================================================
   TRUST STRIP (below marquee)
   ============================================================ */
.trust-stat {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.trust-num {
  font-weight: 800;
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1;
  letter-spacing: -0.02em;
}
.trust-cap {
  font-size: 0.72rem;
  line-height: 1.3;
  color: rgba(10, 10, 10, 0.58);
}

/* ============================================================
   CASE PROOF CHIPS (before/after metric proof)
   ============================================================ */
.proof-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.85rem;
  padding: 0;
  list-style: none;
}
.proof-chip {
  font-family: "Syne", sans-serif;
  font-weight: 600;
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3rem 0.6rem;
  border: 1px solid rgba(10, 10, 10, 0.2);
  color: rgba(10, 10, 10, 0.72);
  white-space: nowrap;
}
.proof-chip--accent {
  background: var(--deep-black);
  color: var(--off-white);
  border-color: var(--deep-black);
}

.case-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  font-family: "Syne", sans-serif;
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(10, 10, 10, 0.45);
}
.case-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.75rem;
  padding: 0;
  list-style: none;
}
.case-stack__item {
  font-family: "Syne", sans-serif;
  font-size: 0.56rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.28rem 0.55rem;
  border: 1px solid rgba(10, 10, 10, 0.16);
  border-radius: 999px;
  color: rgba(10, 10, 10, 0.55);
}

.case-card__media {
  display: block;
  overflow: hidden;
  isolation: isolate;
}

.case-card__media img {
  transition: transform 0.8s var(--ease-lux), filter 0.5s ease;
}

.case-card__media:hover img,
.case-card__media:focus-visible img {
  transform: scale(1.035);
  filter: contrast(1.05);
}

.case-card__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 1.1rem;
  margin-top: 1rem;
}

.case-card__link,
.case-card__demo {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: "Syne", sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.2;
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.25rem;
  transition: opacity 0.25s ease, transform 0.25s var(--ease-lux);
}

.case-grid-error {
  border: 1px solid var(--border-subtle);
  padding: 2rem;
  background: var(--surface-elevated);
}

.case-card__demo {
  color: rgba(10, 10, 10, 0.56);
  border-bottom-color: rgba(10, 10, 10, 0.25);
}

.case-card__link:hover,
.case-card__demo:hover,
.case-card__link:focus-visible,
.case-card__demo:focus-visible {
  opacity: 0.6;
  transform: translateX(3px);
}

/* ============================================================
   REDUCED MOTION — explicit hardening for looping/parallax FX
   (the global rule zeroes durations; here we fully stop loops so
   they don't stutter, and neutralize decorative hover shifts)
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .animate-marquee,
  .animate-subtle-zoom {
    animation: none !important;
  }
  .marquee-track {
    transform: none !important;
  }
  .hero-media {
    transform: none !important;
  }
  .btn-hero:hover,
  .tg-btn:hover,
  .quiz-option:hover {
    transform: none;
  }
}

/* ============================================================
   THEME TOGGLE
   ============================================================ */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  backdrop-filter: blur(10px) saturate(120%);
  color: inherit;
  transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s var(--ease-lux);
}
.theme-toggle:hover {
  transform: scale(1.05);
  background: rgba(255, 255, 255, 0.18);
}
.theme-icon {
  display: none;
}
html[data-theme="light"] .theme-icon--moon,
html[data-theme="dark"] .theme-icon--sun {
  display: block;
}

/* ============================================================
   DARK THEME — Tailwind utility + component overrides
   ============================================================ */
html[data-theme="dark"] .bg-off-white {
  background-color: var(--surface) !important;
}
html[data-theme="dark"] .text-deep-black {
  color: var(--text-color) !important;
}
html[data-theme="dark"] .text-deep-black\/50 {
  color: rgba(240, 241, 243, 0.5) !important;
}
html[data-theme="dark"] .text-deep-black\/60 {
  color: rgba(240, 241, 243, 0.6) !important;
}
html[data-theme="dark"] .text-deep-black\/70 {
  color: rgba(240, 241, 243, 0.7) !important;
}
html[data-theme="dark"] .text-deep-black\/45 {
  color: rgba(240, 241, 243, 0.45) !important;
}
html[data-theme="dark"] .text-deep-black\/40 {
  color: rgba(240, 241, 243, 0.5) !important;
}
html[data-theme="dark"] .text-deep-black\/55 {
  color: rgba(240, 241, 243, 0.6) !important;
}
html[data-theme="dark"] .border-deep-black\/10 {
  border-color: var(--border-subtle) !important;
}
html[data-theme="dark"] .border-deep-black\/20 {
  border-color: rgba(255, 255, 255, 0.18) !important;
}
html[data-theme="dark"] .hover\:text-deep-black:hover {
  color: var(--text-color) !important;
}
html[data-theme="dark"] nav.site-nav {
  mix-blend-mode: normal !important;
  color: var(--text-color);
}
html[data-theme="dark"] .theme-toggle {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
}
html[data-theme="dark"] .trust-cap {
  color: var(--text-muted);
}
html[data-theme="dark"] .proof-chip {
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(240, 241, 243, 0.72);
}
html[data-theme="dark"] .proof-chip--accent {
  background: #f0f1f3;
  color: #121316;
  border-color: #f0f1f3;
}
html[data-theme="dark"] .case-meta {
  color: rgba(240, 241, 243, 0.45);
}
html[data-theme="dark"] .case-stack__item {
  border-color: rgba(255, 255, 255, 0.16);
  color: rgba(240, 241, 243, 0.55);
}
html[data-theme="dark"] .pricing-module {
  border-top-color: rgba(255, 255, 255, 0.12);
}
html[data-theme="dark"] .pricing-module:last-of-type {
  border-bottom-color: rgba(255, 255, 255, 0.12);
}
html[data-theme="dark"] .module-desc,
html[data-theme="dark"] .price-item-what {
  color: var(--text-muted);
}
html[data-theme="dark"] .module-num,
html[data-theme="dark"] .module-sub,
html[data-theme="dark"] .stat-label {
  color: rgba(240, 241, 243, 0.45);
}
html[data-theme="dark"] .price-item {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}
@media (hover: hover) and (pointer: fine) {
  html[data-theme="dark"] .price-item:hover {
    background: var(--surface-elevated);
    border-color: rgba(255, 255, 255, 0.28);
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.35);
  }
}
html[data-theme="dark"] .price-stats {
  border-left-color: rgba(255, 255, 255, 0.14);
}
html[data-theme="dark"] .filter-btn.is-active {
  border-color: var(--text-color);
}
html[data-theme="dark"] .quiz-shell {
  background: var(--surface-elevated) !important;
  color: var(--text-color) !important;
}
html[data-theme="dark"] .quiz-option {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-color);
}
html[data-theme="dark"] .quiz-option.is-selected {
  background: #f0f1f3;
  color: #121316;
  border-color: #f0f1f3;
}
html[data-theme="dark"] .quiz-input {
  color: var(--text-color);
  border-bottom-color: rgba(255, 255, 255, 0.25);
}
html[data-theme="dark"] .btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-color);
  border-color: rgba(255, 255, 255, 0.2);
}
html[data-theme="dark"] .btn-primary {
  background: rgba(240, 241, 243, 0.92);
  color: #121316;
  border-color: rgba(240, 241, 243, 0.92);
}

/* ============================================================
   Self-hosted JetBrains Mono (requisites / legal digits)
   ============================================================ */
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/jetbrains-mono/jetbrains-mono-400-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/jetbrains-mono/jetbrains-mono-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/jetbrains-mono/jetbrains-mono-500-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/jetbrains-mono/jetbrains-mono-500.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

.font-mono,
.req-value,
.req-table .font-mono {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}

/* ============================================================
   Footer layout + requisites plaque
   ============================================================ */
.site-footer {
  /* Never clip the giant brand wordmark — scale type instead. */
  overflow: visible;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem 2rem;
  margin-bottom: 1.75rem;
}

/* Giant CASELYNSS wordmark — SVG scales to full content width, never clips */
.footer-brand {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.footer-wordmark-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow: visible;
  color: var(--deep-black);
}

.footer-wordmark {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  /* Visual size tracks viewport, but viewBox always shows the full word */
  aspect-ratio: 1000 / 150;
  overflow: visible;
  user-select: none;
}

.footer-wordmark__text {
  fill: currentColor;
  font-family: "Syne", sans-serif;
  font-weight: 900;
  font-size: 128px;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

html[data-theme="dark"] .footer-wordmark-wrap {
  color: var(--off-white);
}

.site-footer__nav,
.site-footer__contacts {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .site-footer__grid {
    grid-template-columns: 1.4fr 0.8fr 1fr;
    align-items: start;
  }
}

.footer-req-plaque {
  position: relative;
  margin: 0 0 0.5rem;
  border-radius: 1.75rem;
  border: 1px solid rgba(10, 10, 10, 0.12);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.82) 0%, rgba(242, 242, 239, 0.62) 100%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  backdrop-filter: blur(18px) saturate(120%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 22px 48px -30px rgba(10, 10, 10, 0.4);
  overflow: hidden;
}

.footer-req-plaque::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.4;
  background-image:
    linear-gradient(rgba(10, 10, 10, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 10, 10, 0.05) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 80% 70% at 0% 0%, #000 10%, transparent 70%);
}

.footer-req-plaque__inner {
  position: relative;
  z-index: 1;
  padding: 1.5rem 1.35rem 1.4rem;
}

@media (min-width: 768px) {
  .footer-req-plaque__inner {
    padding: 1.85rem 2rem 1.7rem;
  }
}

.footer-req-plaque__head {
  margin-bottom: 1.35rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid rgba(10, 10, 10, 0.1);
}

.footer-req-plaque__eyebrow {
  display: block;
  margin-bottom: 0.45rem;
  font-family: Syne, sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(10, 10, 10, 0.42);
}

.footer-req-plaque__title {
  margin: 0 0 0.55rem;
  font-family: Syne, sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.footer-req-plaque__lead {
  margin: 0;
  max-width: 40rem;
  font-family: "Playfair Display", serif;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.footer-req-plaque__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

@media (min-width: 768px) {
  .footer-req-plaque__grid {
    grid-template-columns: 1fr 1fr;
    column-gap: 2.5rem;
  }
}

.footer-req-plaque__row {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 0.75rem;
  align-items: baseline;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(10, 10, 10, 0.08);
}

.footer-req-plaque__label {
  font-family: Syne, sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(10, 10, 10, 0.45);
}

.footer-req-plaque__value {
  font-family: Inter, sans-serif;
  font-size: 0.9rem;
  line-height: 1.45;
  color: #0a0a0a;
  word-break: break-word;
  user-select: text;
}

.footer-req-plaque__row.is-mono .footer-req-plaque__value,
.footer-req-plaque__value.font-mono {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-variant-numeric: tabular-nums;
  font-size: 0.84rem;
  letter-spacing: 0.02em;
  user-select: all;
}

.footer-req-plaque__foot {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.25rem;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(10, 10, 10, 0.1);
}

@media (min-width: 768px) {
  .footer-req-plaque__foot {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.footer-req-plaque__note {
  margin: 0;
  font-family: Inter, sans-serif;
  font-size: 0.75rem;
  line-height: 1.45;
  color: rgba(10, 10, 10, 0.5);
}

.footer-req-plaque__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  border: 1px solid #0a0a0a;
  background: #0a0a0a;
  color: #f2f2ef;
  font-family: Syne, sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.footer-req-plaque__cta:hover {
  opacity: 0.82;
}

html[data-theme="dark"] .footer-req-plaque {
  border-color: rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(160deg, rgba(34, 36, 40, 0.94) 0%, rgba(26, 27, 31, 0.88) 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 22px 48px -30px rgba(0, 0, 0, 0.6);
}

html[data-theme="dark"] .footer-req-plaque::before {
  background-image:
    linear-gradient(rgba(240, 241, 243, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(240, 241, 243, 0.07) 1px, transparent 1px);
}

html[data-theme="dark"] .footer-req-plaque__head,
html[data-theme="dark"] .footer-req-plaque__row,
html[data-theme="dark"] .footer-req-plaque__foot {
  border-color: rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] .footer-req-plaque__eyebrow,
html[data-theme="dark"] .footer-req-plaque__label,
html[data-theme="dark"] .footer-req-plaque__note {
  color: rgba(240, 241, 243, 0.45);
}

html[data-theme="dark"] .footer-req-plaque__title,
html[data-theme="dark"] .footer-req-plaque__lead,
html[data-theme="dark"] .footer-req-plaque__value {
  color: var(--text-color);
}

html[data-theme="dark"] .footer-req-plaque__cta {
  background: #f0f1f3;
  border-color: #f0f1f3;
  color: #121316;
}

.req-page {
  background: var(--bg-color, #f2f2ef);
  color: var(--text-color, #0a0a0a);
  min-height: 100vh;
}

.req-main {
  position: relative;
  padding: 7.5rem 1.5rem 4rem;
}

@media (min-width: 768px) {
  .req-main {
    padding: 9rem 3rem 5rem;
  }
}

.req-blueprint {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.45;
  background-image:
    linear-gradient(rgba(10, 10, 10, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 10, 10, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, #000 20%, transparent 75%);
}

.req-shell {
  position: relative;
  z-index: 1;
  max-width: 56rem;
  margin: 0 auto;
}

.req-header {
  margin-bottom: 2.5rem;
}

.req-card {
  border-radius: 1.75rem;
  border: 1px solid rgba(10, 10, 10, 0.1);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0.42) 100%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  backdrop-filter: blur(18px) saturate(120%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.55) inset,
    0 24px 48px -28px rgba(10, 10, 10, 0.28);
  padding: 1.25rem 1.25rem 1.5rem;
}

@media (min-width: 768px) {
  .req-card {
    padding: 1.75rem 2rem 2rem;
  }
}

.req-table {
  margin: 0;
}

.req-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.35rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(10, 10, 10, 0.08);
}

.req-row:last-of-type {
  border-bottom: none;
}

@media (min-width: 768px) {
  .req-row {
    grid-template-columns: minmax(10rem, 14rem) 1fr;
    gap: 1.25rem;
    align-items: baseline;
  }
}

.req-label {
  margin: 0;
  font-family: Syne, sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(10, 10, 10, 0.48);
}

.req-value {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: #0a0a0a;
  user-select: text;
  word-break: break-word;
}

.req-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(10, 10, 10, 0.08);
}

.req-copy-status {
  min-height: 1rem;
}

.req-footer a[aria-current="page"] {
  opacity: 0.45;
  pointer-events: none;
}

html[data-theme="dark"] .req-blueprint {
  background-image:
    linear-gradient(rgba(240, 241, 243, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(240, 241, 243, 0.06) 1px, transparent 1px);
}

html[data-theme="dark"] .req-card {
  border-color: rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(160deg, rgba(34, 36, 40, 0.92) 0%, rgba(26, 27, 31, 0.88) 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 24px 48px -28px rgba(0, 0, 0, 0.55);
}

html[data-theme="dark"] .req-row {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] .req-label {
  color: rgba(240, 241, 243, 0.45);
}

html[data-theme="dark"] .req-value {
  color: var(--text-color);
}

html[data-theme="dark"] .req-actions {
  border-top-color: rgba(255, 255, 255, 0.1);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
