/* ==========================================================================
   Meliora Interactive — site styles
   ========================================================================== */

/* ---------- Fonts (self-hosted, SIL Open Font License) ---------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/inter-latin-var.woff2") format("woff2");
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("../fonts/space-grotesk-latin-var.woff2") format("woff2");
}

/* ---------- Design tokens ---------- */
:root {
  --bg: #0a0a14;
  --bg-2: #0f0f1e;
  --surface: #15152a;
  --surface-2: #1c1c36;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f2f1fa;
  --muted: #a6a6c4;
  --ink: #0b0a14;

  --violet: #7c5cff;
  --pink: #ff5c8a;
  --amber: #ffb347;
  --gradient: linear-gradient(120deg, var(--violet) 0%, var(--pink) 55%, var(--amber) 100%);

  --radius: 24px;
  --radius-sm: 14px;
  --container: 1160px;
  --gutter: 24px;
  --header-h: 72px;

  --font-display: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  color-scheme: dark;
}

@media (max-width: 600px) {
  :root {
    --gutter: 16px;
    --header-h: 64px;
  }
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  overflow-x: clip;
}

[hidden] {
  display: none !important;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

p {
  margin: 0;
}

::selection {
  background: rgba(255, 92, 138, 0.35);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

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

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--text);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.25s var(--ease-out),
    box-shadow 0.25s var(--ease-out),
    background-color 0.2s,
    border-color 0.2s;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.btn-primary {
  background: var(--gradient);
  color: var(--ink);
  font-weight: 700;
  box-shadow: 0 10px 30px -12px rgba(255, 92, 138, 0.7);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -14px rgba(255, 92, 138, 0.85);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-strong);
  color: var(--text);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.09);
  transform: translateY(-2px);
}

.btn-sm {
  min-height: 40px;
  padding: 8px 18px;
  font-size: 0.925rem;
}

.btn-lg {
  min-height: 56px;
  padding: 16px 28px;
  font-size: 1.0625rem;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition:
    background-color 0.3s,
    border-color 0.3s;
}

.site-header.is-scrolled,
.site-header.nav-open {
  background: rgba(10, 10, 20, 0.78);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand img {
  width: 36px;
  height: 36px;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1;
  white-space: nowrap;
}

.brand-name span {
  color: var(--muted);
  font-weight: 500;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a:not(.btn) {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition:
    color 0.2s,
    background-color 0.2s;
}

.site-nav a:not(.btn):hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.site-nav .nav-cta {
  margin-left: 8px;
}

.nav-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
}

.nav-toggle span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition:
    transform 0.3s var(--ease-out),
    opacity 0.2s;
}

.nav-toggle span:nth-child(1) {
  top: 15px;
}

.nav-toggle span:nth-child(2) {
  top: 21px;
}

.nav-toggle span:nth-child(3) {
  top: 27px;
}

.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 820px) {
  .js .nav-toggle {
    display: block;
  }

  .js .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    padding: 12px var(--gutter) 24px;
    border-bottom: 1px solid var(--border);
    background: rgba(10, 10, 20, 0.97);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition:
      opacity 0.25s,
      transform 0.3s var(--ease-out),
      visibility 0s 0.3s;
  }

  .js .nav-open .site-nav {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition:
      opacity 0.25s,
      transform 0.3s var(--ease-out),
      visibility 0s;
  }

  .js .site-nav ul {
    flex-direction: column;
    align-items: stretch;
  }

  .js .site-nav a:not(.btn) {
    display: block;
    padding: 14px 16px;
    font-size: 1.05rem;
  }

  .js .site-nav .nav-cta {
    width: 100%;
    margin: 12px 0 0;
  }

  /* Without JavaScript the links simply stay inline. */
  html:not(.js) .site-nav .nav-cta,
  html:not(.js) .brand-name span {
    display: none;
  }

  html:not(.js) .site-nav a:not(.btn) {
    padding: 8px 8px;
    font-size: 0.875rem;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--header-h) + 56px) 0 96px;
  overflow: hidden;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 45%, #000 35%, transparent 100%);
  mask-image: radial-gradient(ellipse 75% 70% at 50% 45%, #000 35%, transparent 100%);
}

.hero-glow {
  position: absolute;
  z-index: -2;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  pointer-events: none;
}

.hero-glow--violet {
  top: -10%;
  left: -10%;
  width: 55vw;
  height: 55vw;
  max-width: 720px;
  max-height: 720px;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.55), transparent 65%);
}

.hero-glow--pink {
  right: -15%;
  bottom: -20%;
  width: 50vw;
  height: 50vw;
  max-width: 680px;
  max-height: 680px;
  background: radial-gradient(circle, rgba(255, 92, 138, 0.4), transparent 65%);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: 48px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 10px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
}

.eyebrow-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 12px var(--pink);
}

.eyebrow-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--pink);
  animation: ping 2.4s var(--ease-out) infinite;
}

.hero h1 {
  margin: 24px 0;
  font-size: clamp(2.5rem, 6.2vw, 4.75rem);
}

.hero-lead {
  max-width: 54ch;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 40px;
}

/* Orbiting brand visual */
.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  justify-self: center;
  width: 100%;
  max-width: 440px;
  aspect-ratio: 1;
}

.orbit {
  position: absolute;
  inset: 0;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  animation: spin 60s linear infinite;
}

.orbit--inner {
  inset: 19%;
  border-style: solid;
  border-color: rgba(255, 255, 255, 0.08);
  animation-duration: 40s;
  animation-direction: reverse;
}

.orbit-item {
  position: absolute;
  transform: translate(-50%, -50%);
}

.orbit-item > span {
  display: block;
}

.orbit-item--n { top: 0; left: 50%; }
.orbit-item--e { top: 50%; left: 100%; }
.orbit-item--s { top: 100%; left: 50%; }
.orbit-item--w { top: 50%; left: 0; }
.orbit-item--ne { top: 14.64%; left: 85.36%; }
.orbit-item--sw { top: 85.36%; left: 14.64%; }

.shape-tile {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--gradient);
  box-shadow: 0 8px 24px -6px rgba(255, 92, 138, 0.6);
  rotate: 14deg;
}

.shape-ring {
  width: 32px;
  height: 32px;
  border: 4px solid var(--pink);
  border-radius: 50%;
}

.shape-plus {
  width: 30px;
  height: 30px;
  background: var(--amber);
  clip-path: polygon(35% 0, 65% 0, 65% 35%, 100% 35%, 100% 65%, 65% 65%, 65% 100%, 35% 100%, 35% 65%, 0 65%, 0 35%, 35% 35%);
}

.shape-tri {
  width: 30px;
  height: 27px;
  background: var(--violet);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.shape-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.8);
}

.shape-pill {
  width: 44px;
  height: 16px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--violet), var(--pink));
}

.hero-mark {
  position: relative;
  width: 38%;
  aspect-ratio: 1;
  animation: float 6s ease-in-out infinite;
}

.hero-mark::before {
  content: "";
  position: absolute;
  inset: -45%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 92, 138, 0.38), rgba(124, 92, 255, 0.18) 45%, transparent 70%);
}

.hero-mark img {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 30px 50px rgba(124, 92, 255, 0.45));
}

.hud-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: rgba(21, 21, 42, 0.75);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.6);
  animation: float 7s ease-in-out infinite;
}

.hud-chip--start {
  bottom: 8%;
  left: -4%;
  animation-delay: -2s;
}

.hud-chip--level {
  top: 6%;
  right: -2%;
  animation-delay: -4.5s;
}

.hud-chip svg {
  width: 12px;
  height: 12px;
}

.hud-chip .blink {
  animation: blink 1.2s steps(2, start) infinite;
}

.hud-chip--level b {
  color: var(--amber);
}

/* ---------- Sections ---------- */
.section {
  position: relative;
  padding: clamp(88px, 12vw, 144px) 0;
}

.section--alt {
  background: linear-gradient(180deg, transparent, var(--bg-2) 18%, var(--bg-2) 82%, transparent);
}

.section-head {
  max-width: 740px;
  margin-bottom: clamp(40px, 6vw, 64px);
}

.section-kicker {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--pink);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-title {
  font-size: clamp(2rem, 4.4vw, 3.25rem);
}

.section-lead {
  max-width: 60ch;
  margin-top: 20px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.5vw, 1.175rem);
}

/* Cursor-following spotlight shared by cards */
.card-glow {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.card-glow::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, -20%), rgba(255, 92, 138, 0.13), transparent 45%);
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}

.card-glow:hover::before {
  opacity: 1;
}

/* ---------- What we make ---------- */
.offer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.offer-card {
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  transition:
    transform 0.35s var(--ease-out),
    border-color 0.3s;
}

.offer-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
}

.icon-badge {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin-bottom: 28px;
  border: 1px solid transparent;
  border-radius: 18px;
  background:
    linear-gradient(var(--surface-2), var(--surface-2)) padding-box,
    var(--gradient) border-box;
  color: #fff;
}

.icon-badge svg {
  width: 28px;
  height: 28px;
}

.offer-card h3 {
  font-size: clamp(1.6rem, 2.6vw, 2rem);
}

.offer-card p {
  margin: 14px 0 28px;
  color: var(--muted);
}

.feature-list {
  display: grid;
  gap: 12px;
  margin: auto 0 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--border);
  list-style: none;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
}

.feature-list li::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--gradient);
  rotate: 45deg;
}

/* ---------- Work / products ---------- */
.workshop {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    radial-gradient(600px circle at 100% 0%, rgba(124, 92, 255, 0.14), transparent 60%),
    var(--surface);
}

.workshop h3 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
}

.workshop p {
  margin-top: 16px;
  color: var(--muted);
}

.workshop .btn {
  margin-top: 32px;
}

.loader {
  padding: clamp(24px, 3.5vw, 36px);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.02) 0 1px, transparent 1px 4px),
    #0c0c19;
  font-family: var(--font-display);
}

.loader-label {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

@property --pct {
  syntax: "<integer>";
  initial-value: 0;
  inherits: false;
}

.loader-pct {
  color: var(--amber);
  font-variant-numeric: tabular-nums;
  animation: load-pct 7s var(--ease-out) infinite both;
  counter-reset: pct var(--pct);
}

.loader-pct::after {
  content: counter(pct) "%";
}

.loader-bar {
  height: 14px;
  padding: 3px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
}

.loader-bar span {
  display: block;
  width: 87%;
  height: 100%;
  border-radius: 999px;
  background: var(--gradient);
  box-shadow: 0 0 18px rgba(255, 92, 138, 0.55);
  transform-origin: left center;
  animation: load-bar 7s var(--ease-out) infinite both;
}

.loader-tip {
  margin-top: 18px;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.9rem;
}

.loader-tip b {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
}

/* Product cards: used once titles are announced (see README.md). */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 24px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition:
    transform 0.35s var(--ease-out),
    border-color 0.3s;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
}

.product-media {
  aspect-ratio: 16 / 10;
  background: var(--surface-2);
  overflow: hidden;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px 28px 28px;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.tag {
  padding: 4px 10px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
}

.tag--status {
  border-color: rgba(255, 179, 71, 0.4);
  color: var(--amber);
}

.tag--live {
  border-color: rgba(74, 222, 128, 0.4);
  color: #4ade80;
}

.product-body h3 {
  font-size: 1.5rem;
}

.product-body p {
  margin-top: 10px;
  color: var(--muted);
}

.product-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 24px;
}

/* ---------- Approach ---------- */
.approach-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: end;
  gap: 32px 64px;
  margin-bottom: clamp(40px, 6vw, 64px);
}

.approach-head .section-lead {
  margin-top: 0;
}

.latin {
  font-style: italic;
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.principle {
  height: 100%;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
}

.principle-num {
  display: inline-block;
  margin-bottom: 40px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.principle h3 {
  font-size: 1.4rem;
}

.principle p {
  margin-top: 12px;
  color: var(--muted);
}

/* ---------- Contact ---------- */
.contact-card {
  position: relative;
  padding: clamp(36px, 7vw, 88px) clamp(20px, 6vw, 80px);
  border: 1px solid transparent;
  border-radius: calc(var(--radius) + 8px);
  background:
    radial-gradient(700px circle at 50% 0%, rgba(255, 92, 138, 0.14), transparent 60%) padding-box,
    linear-gradient(var(--surface), var(--surface)) padding-box,
    var(--gradient) border-box;
  text-align: center;
}

.contact-card .section-kicker {
  margin-bottom: 20px;
}

.contact-card h2 {
  font-size: clamp(2.1rem, 5.2vw, 3.75rem);
}

.contact-card > p {
  max-width: 56ch;
  margin: 20px auto 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.5vw, 1.175rem);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 40px;
}

.btn-email {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.contact-topics {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}

.copy-status {
  min-height: 1.5em;
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 56px 0 40px;
  border-top: 1px solid var(--border);
  background: var(--bg-2);
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 40px;
}

.footer-tagline {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-nav a {
  color: var(--muted);
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.875rem;
}

.footer-bottom a {
  text-decoration: none;
}

.footer-bottom a:hover {
  color: var(--text);
}

/* ---------- Legal pages ---------- */
.page-hero {
  padding: calc(var(--header-h) + clamp(56px, 9vw, 112px)) 0 clamp(32px, 5vw, 56px);
  background:
    radial-gradient(800px circle at 15% 0%, rgba(124, 92, 255, 0.22), transparent 60%),
    radial-gradient(600px circle at 90% 20%, rgba(255, 92, 138, 0.12), transparent 60%);
}

.page-hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
}

.page-hero p {
  margin-top: 16px;
  color: var(--muted);
}

.prose {
  padding-bottom: clamp(72px, 10vw, 120px);
}

/* Keep a readable line length while staying aligned with the page title. */
.prose > * {
  max-width: 760px;
}

.prose h2 {
  margin: 48px 0 16px;
  font-size: clamp(1.4rem, 2.6vw, 1.75rem);
}

.prose h3 {
  margin: 28px 0 10px;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.prose p,
.prose ul {
  margin: 0 0 16px;
  color: #c9c8de;
}

.prose ul {
  padding-left: 1.25em;
}

.prose li {
  margin-bottom: 8px;
}

.prose li::marker {
  color: var(--pink);
}

.prose a {
  color: var(--text);
  text-decoration-color: var(--pink);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.prose a:hover {
  text-decoration-thickness: 2px;
}

.prose strong {
  color: var(--text);
}

/* ---------- 404 ---------- */
.error-page {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--header-h) + 40px) 0 64px;
  overflow: hidden;
  text-align: center;
}

.error-code {
  font-family: var(--font-display);
  font-size: clamp(6rem, 22vw, 12rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
}

.error-page h1 {
  margin-top: 8px;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.error-page p {
  max-width: 46ch;
  margin: 16px auto 0;
  color: var(--muted);
}

.error-page .hero-actions {
  justify-content: center;
}

/* ---------- Scroll reveal (only when JS is available) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.8s var(--ease-out),
    transform 0.8s var(--ease-out);
  transition-delay: var(--delay, 0s);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Animations ---------- */
@keyframes spin {
  to {
    rotate: 360deg;
  }
}

@keyframes float {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -12px;
  }
}

@keyframes ping {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  80%,
  100% {
    transform: scale(2.8);
    opacity: 0;
  }
}

@keyframes blink {
  to {
    visibility: hidden;
  }
}

@keyframes load-bar {
  0% {
    transform: scaleX(0);
  }
  75%,
  100% {
    transform: scaleX(1);
  }
}

@keyframes load-pct {
  0% {
    --pct: 0;
  }
  75%,
  100% {
    --pct: 87;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .hero-visual {
    order: -1;
    max-width: 300px;
  }

  .hud-chip--start {
    left: -10%;
  }

  .hud-chip--level {
    right: -10%;
  }

  .workshop,
  .approach-head {
    grid-template-columns: 1fr;
  }

  .principles {
    grid-template-columns: 1fr;
  }

  .principle-num {
    margin-bottom: 20px;
  }
}

@media (max-width: 720px) {
  .offer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: calc(var(--header-h) + 32px);
  }

  .hero-visual {
    max-width: 240px;
  }

  .hud-chip {
    padding: 6px 10px;
    font-size: 0.7rem;
  }

  .hud-chip--start {
    left: -18%;
  }

  .hud-chip--level {
    right: -18%;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
  }

  .contact-actions .btn {
    width: 100%;
  }

  .btn-email {
    padding-inline: 16px;
    font-size: 0.9375rem;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
}
