@font-face {
  font-family: "Barlow Semi Condensed";
  src: url("../fonts/barlow-semicondensed-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Outfit";
  src: url("../fonts/outfit-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* Skill Expression — light theme, pink / orange / purple accent */

:root {
  --bg: #ffffff;
  --bg-elev: #faf7f9;
  --bg-card: #ffffff;
  --line: #f0e6ec;
  --line-strong: #e4d4dc;
  --text: #1a1220;
  --text-muted: #5c5563;
  --text-dim: #8a8490;
  --pink: #ff006b;
  --orange: #ff7200;
  --purple: #5401c5;
  --accent: #ff006b;
  --gradient: linear-gradient(90deg, #ff7200 0%, #ff006b 50%, #5401c5 100%);
  --focus: #ff006b;
  --max: 1120px;
  --font-body: "Outfit", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Barlow Semi Condensed", "Arial Narrow", "Outfit", sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem; /* keep anchors and focused fields clear of the sticky header */
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
  color: var(--text);
}

@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;
    scroll-behavior: auto !important;
  }
}

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

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

a {
  color: var(--pink);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  text-decoration-color: rgba(255, 0, 107, 0.45);
}
a:hover { text-decoration-color: var(--pink); color: var(--purple); }

a:focus-visible,
button:focus-visible,
.btn:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

h1, h2, h3, h4 {
  font-family: var(--font-body);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 0.8em;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.hp input { font-size: 16px; }
.visually-hidden, .hp {
  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 {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--pink);
  color: #fff;
  padding: 0.6rem 1rem;
  font-weight: 600;
  z-index: 100;
  text-decoration: none;
}
.skip:focus { top: 1rem; outline: 2px solid var(--text); outline-offset: 2px; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.7rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex: 0 1 auto;
  min-width: 0;
}
.logo-link:focus-visible { outline-offset: 6px; }
.logo-link img {
  height: 56px;
  width: auto;
  max-width: min(240px, 58vw);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.15rem 1.5rem;
  flex-shrink: 0;
}
.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 0;
  position: relative;
}
.nav a:hover,
.nav a[aria-current="page"] { color: var(--text); }
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s var(--ease);
}
.nav a:hover::after,
.nav a[aria-current="page"]::after { transform: scaleX(1); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.25rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease),
    filter 0.25s var(--ease),
    background-color 0.25s var(--ease),
    color 0.25s var(--ease),
    border-color 0.25s var(--ease);
}
.btn:active { transform: translateY(0) scale(0.98); transition-duration: 0.08s; }

/* Primary: gradient fill. The gradient is sized to the border box and the border
   is removed, so the gradient no longer repeats under the left border (that was
   the thin blue/purple line on the left edge). */
.btn-primary {
  border: 0;
  padding: calc(0.8rem + 1px) calc(1.25rem + 1px);
  background-image: linear-gradient(90deg, #ff7200 0%, #ff006b 33%, #5401c5 66%, #ff7200 100%);
  background-size: 300% 100%;
  background-position: 0% 50%;
  background-origin: border-box;
  background-repeat: no-repeat;
  color: #fff;
  box-shadow: 0 8px 24px -10px rgba(255, 0, 107, 0.45);
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease),
    filter 0.25s var(--ease),
    background-position 0.6s var(--ease);
}
.btn-primary.btn-lg { padding: calc(1rem + 1px) calc(1.6rem + 1px); }
/* Shine sweep on hover */
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease);
  pointer-events: none;
}
.btn-primary:hover,
.btn-primary:focus-visible {
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
  background-position: 60% 50%;
  box-shadow: 0 14px 32px -12px rgba(255, 0, 107, 0.6), 0 6px 18px -10px rgba(84, 1, 197, 0.45);
}
.btn-primary:hover::after,
.btn-primary:focus-visible::after { transform: translateX(120%); }

.btn-arrow {
  display: inline-block;
  transition: transform 0.25s var(--ease);
}
.btn:hover .btn-arrow,
.btn:focus-visible .btn-arrow { transform: translateX(4px); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.6);
  color: var(--text);
  border-color: var(--line-strong);
}
.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--pink);
  color: var(--pink);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -14px rgba(255, 0, 107, 0.5);
}

.btn[disabled],
.btn.is-loading { cursor: progress; transform: none; filter: saturate(0.8); }
.btn.is-loading .btn-label::after {
  content: "";
  display: inline-block;
  width: 0.9em;
  height: 0.9em;
  margin-left: 0.6em;
  vertical-align: -0.12em;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.btn-lg { padding: 1rem 1.6rem; font-size: 0.85rem; letter-spacing: 0.1em; }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 4rem 0 5rem;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 3.5rem; }
}

.kicker {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--pink);
  margin: 0 0 1.5rem;
}
.kicker::before {
  content: "";
  width: 1.35rem;
  height: 2px;
  background: var(--gradient);
  flex-shrink: 0;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(2.5rem, 6.2vw, 4.7rem);
  line-height: 0.98;
  letter-spacing: 0;
  max-width: none;
  margin: 0 0 1.4rem;
}
.hero h1 .game-name {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero h1 .dot {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  max-width: 36rem;
  color: var(--text-muted);
  font-size: 1.125rem;
  line-height: 1.6;
  margin: 0 0 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.1rem;
  align-items: center;
}

.fact-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.75rem 0 0;
  padding: 0;
}
.fact-chips li {
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
  background: rgba(255, 255, 255, 0.7);
}

/* Entrance animations */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@keyframes fade-in-scale {
  from { opacity: 0; transform: translateY(12px) scale(0.97); }
  to { opacity: 1; transform: none; }
}
@keyframes gradient-pan {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
/* Hero glows: each layer wanders on its own loop, so the pattern never repeats exactly */
@keyframes glow-drift-a {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  25%  { transform: translate3d(-6%, 5%, 0) scale(1.08); }
  50%  { transform: translate3d(-10%, -3%, 0) scale(0.96); }
  75%  { transform: translate3d(-3%, -6%, 0) scale(1.05); }
  100% { transform: translate3d(0, 0, 0) scale(1); }
}
@keyframes glow-drift-b {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  33%  { transform: translate3d(8%, -6%, 0) scale(1.1); }
  66%  { transform: translate3d(4%, 5%, 0) scale(0.95); }
  100% { transform: translate3d(0, 0, 0) scale(1); }
}
@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(255, 0, 107, 0.45), 0 10px 28px rgba(26, 18, 32, 0.4); }
  70% { box-shadow: 0 0 0 18px rgba(255, 0, 107, 0), 0 10px 28px rgba(26, 18, 32, 0.4); }
  100% { box-shadow: 0 0 0 0 rgba(255, 0, 107, 0), 0 10px 28px rgba(26, 18, 32, 0.4); }
}
@keyframes spin { to { transform: rotate(360deg); } }

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: -20%;
  z-index: 0;
  pointer-events: none;
  will-change: transform;
}
.hero::before {
  background:
    radial-gradient(ellipse 45% 50% at 78% 32%, rgba(255, 0, 107, 0.11), transparent 62%),
    radial-gradient(ellipse 30% 38% at 88% 85%, rgba(84, 1, 197, 0.09), transparent 62%);
  animation: glow-drift-a 18s ease-in-out infinite;
}
.hero::after {
  background:
    radial-gradient(ellipse 38% 44% at 14% 76%, rgba(255, 114, 0, 0.10), transparent 62%),
    radial-gradient(ellipse 28% 34% at 40% 15%, rgba(84, 1, 197, 0.05), transparent 62%);
  animation: glow-drift-b 22s ease-in-out infinite;
}
.hero > .wrap { position: relative; z-index: 1; }

.hero-copy > * { animation: fade-up 0.7s var(--ease) both; }
.hero-copy > :nth-child(1) { animation-delay: 0.05s; }
.hero-copy > :nth-child(2) { animation-delay: 0.12s; }
.hero-copy > :nth-child(3) { animation-delay: 0.2s; }
.hero-copy > :nth-child(4) { animation-delay: 0.28s; }
.hero-copy > :nth-child(5),
.hero-copy > :nth-child(6) { animation-delay: 0.36s; }
.video-slot { animation: fade-in-scale 0.9s var(--ease) 0.25s both; }

.hero h1 .game-name,
.hero h1 .dot {
  background-size: 200% 100%;
  animation: gradient-pan 6s ease-in-out infinite;
}

.fact-chips li { transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease); }
.fact-chips li:hover { transform: translateY(-2px); border-color: rgba(255, 0, 107, 0.4); color: var(--text); }

/* Scroll reveal (only when JS is running; content is visible without it) */
.js-reveal .reveal:not(.is-visible) { opacity: 0; transform: translateY(24px); }
.js-reveal .reveal { transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js-reveal .reveal-stagger:not(.is-visible) { transform: none; }
.js-reveal .reveal-stagger > * { transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.js-reveal .reveal-stagger:not(.is-visible) > * { opacity: 0; transform: translateY(20px); }
.js-reveal .reveal-stagger > :nth-child(2) { transition-delay: 0.07s; }
.js-reveal .reveal-stagger > :nth-child(3) { transition-delay: 0.14s; }
.js-reveal .reveal-stagger > :nth-child(4) { transition-delay: 0.21s; }
.js-reveal .reveal-stagger > :nth-child(5) { transition-delay: 0.28s; }
.js-reveal .reveal-stagger > :nth-child(6) { transition-delay: 0.35s; }

/* Video slot */
.video-slot { margin: 0; }
.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  overflow: hidden;
  background: #1a1220;
  box-shadow: 0 24px 60px -28px rgba(84, 1, 197, 0.28), 0 0 0 1px rgba(255, 0, 107, 0.06);
}
.video-frame img,
.video-frame video,
.video-frame iframe,
.video-frame picture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

.video-facade {
  position: absolute;
  inset: 0;
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.video-facade:focus-visible {
  outline: 3px solid #fff;
  outline-offset: -3px;
  z-index: 3;
}
.video-facade::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(26, 18, 32, 0.18);
  pointer-events: none;
  transition: background 0.18s var(--ease);
}
.video-facade:hover::before,
.video-facade:focus-visible::before {
  background: rgba(26, 18, 32, 0.28);
}

.video-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 4.5rem;
  height: 4.5rem;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--gradient);
  box-shadow: 0 10px 28px rgba(26, 18, 32, 0.4);
  transition: transform 0.18s var(--ease), filter 0.18s var(--ease);
}
.video-play::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0.7rem 0 0.7rem 1.15rem;
  border-color: transparent transparent transparent #fff;
  transform: translate(-40%, -50%);
}
.video-play { animation: pulse-ring 2.4s ease-out 1.2s infinite; }
.video-facade:hover .video-play,
.video-facade:focus-visible .video-play {
  animation: none;
  transform: translate(-50%, -50%) scale(1.12);
  filter: brightness(1.06);
}

@media (prefers-reduced-motion: reduce) {
  .video-play,
  .video-facade::before { transition: none; }
  .video-facade:hover .video-play,
  .video-facade:focus-visible .video-play { transform: translate(-50%, -50%); }
}

/* Sections */
.section {
  padding: 5rem 0;
  border-bottom: 1px solid var(--line);
}
.section-tint { background: var(--bg-elev); }

.section-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem 3rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 800px) {
  .section-head.split {
    grid-template-columns: minmax(14rem, 0.42fr) 1fr;
    align-items: end;
  }
}

.section-label {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--pink);
  margin: 0 0 0.85rem;
}

.section h2 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  font-size: clamp(2rem, 4vw, 2.9rem);
  line-height: 1.02;
  margin: 0;
  max-width: 20ch;
}

.section-intro {
  color: var(--text-muted);
  max-width: 38rem;
  margin: 0;
  font-size: 1.0625rem;
}

/* Features */
.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
@media (min-width: 640px) { .features { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .features { grid-template-columns: repeat(3, 1fr); } }

.feature {
  background: var(--bg-card);
  padding: 1.75rem 1.6rem 1.9rem;
  transition: background-color 0.3s var(--ease);
}
.feature:hover { background: #fffafc; }
.feature h3::before { transition: width 0.35s var(--ease); }
.feature:hover h3::before { width: 3.2rem; }
.feature h3 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 1.35rem;
  letter-spacing: 0.01em;
  margin: 0 0 0.55rem;
}
.feature h3::before {
  content: "";
  display: block;
  width: 1.6rem;
  height: 3px;
  background: var(--gradient);
  margin-bottom: 0.9rem;
  border-radius: 2px;
}
.feature p { color: var(--text-muted); font-size: 1rem; margin: 0; }

/* Contact form */
.section-contact {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 55% 70% at 100% 0%, rgba(255, 0, 107, 0.07), transparent 60%),
    radial-gradient(ellipse 45% 60% at 0% 100%, rgba(255, 114, 0, 0.06), transparent 60%),
    var(--bg-elev);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 800px) {
  .contact-grid { grid-template-columns: minmax(14rem, 0.42fr) 1fr; gap: 3.5rem; align-items: start; }
}

.contact-form {
  display: grid;
  gap: 1.1rem;
  max-width: 36rem;
}
.form-row {
  display: grid;
  gap: 1.1rem;
}
@media (min-width: 560px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
}
.field input,
.field textarea {
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 0.75rem 0.9rem;
  width: 100%;
}
.field textarea { min-height: 10rem; resize: vertical; }
.field input:focus,
.field textarea:focus {
  border-color: var(--pink);
  outline: 2px solid rgba(255, 0, 107, 0.2);
  outline-offset: 0;
}
.field input:hover,
.field textarea:hover { border-color: rgba(255, 0, 107, 0.45); }
.wrap-narrow { max-width: 40rem; }
.contact-grid .section-intro { margin-top: 1rem; }
.status-link { margin: 0.8em 0 0; }
.form-note { font-size: 0.85rem; color: var(--text-dim); margin: 0; }
.form-status {
  padding: 1rem 1.15rem;
  border-radius: 10px;
  margin: 0 0 1.25rem;
}
.form-status.ok {
  background: #f3fff6;
  border: 1px solid #b6e4c2;
  color: #14532d;
}
.form-status.err {
  background: #fff5f5;
  border: 1px solid #f3c0c0;
  color: #7f1d1d;
}

/* Footer */
.site-footer {
  padding: 1.5rem 0;
  background: var(--bg);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem 1.5rem;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text);
}
.footer-brand:hover { color: var(--text); text-decoration: none; }
.footer-brand img.mark {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}
.footer-brand span {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  font-size: 0.85rem;
  color: var(--text-dim);
}
.footer-meta a { color: var(--text-muted); text-decoration: none; }
.footer-meta a:hover { color: var(--pink); }

/* Inner pages */
.page-main { padding: 3.5rem 0 5rem; }
.page-main h1 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0 0 0.5em;
}
.lead { color: var(--text-muted); font-size: 1.1rem; margin: 0 0 1.5rem; }
.callout {
  background: linear-gradient(100deg, rgba(255, 114, 0, 0.08), rgba(255, 0, 107, 0.07), rgba(84, 1, 197, 0.07));
  border: 1px solid rgba(255, 0, 107, 0.22);
  border-radius: 12px;
  padding: 1.1rem 1.25rem;
  margin: 0 0 2rem;
}
.callout strong { color: var(--pink); font-weight: 600; }
.legal { max-width: 42rem; }
.legal h2 {
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: none;
  letter-spacing: -0.02em;
  font-size: 1.25rem;
  margin: 2rem 0 0.6rem;
  max-width: none;
}
.legal ul { padding-left: 1.2rem; }
.legal li { margin: 0.3em 0; }

.error-page { padding: 5rem 0 6rem; }
.error-page .code {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 4rem;
  line-height: 1;
  margin: 0 0 0.5rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.error-page h1 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(2rem, 4vw, 3rem);
}
.error-page p { color: var(--text-muted); max-width: 32rem; margin: 0 0 1.75rem; }

@media (max-width: 720px) {
  .hero { padding: 2.25rem 0 3.25rem; }
  .hero h1 { font-size: 2.5rem; }
  .hero-rest { display: block; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn, .btn-lg { width: 100%; text-align: center; }
  .header-inner {
    flex-wrap: wrap;
    padding: 0.7rem 1.1rem 0.8rem;
    gap: 0.5rem 1rem;
  }
  .logo-link { flex: 1 1 auto; }
  .logo-link img { height: 48px; max-width: 100%; }
  .nav { gap: 1.1rem; }
  .section { padding: 3.5rem 0; }
  .wrap { padding: 0 1.1rem; }
}

@media (max-width: 720px) {
  .btn-lg { letter-spacing: 0.05em; padding-left: 1rem; padding-right: 1rem; }
  .btn-primary.btn-lg { padding-left: calc(1rem + 1px); padding-right: calc(1rem + 1px); }
}
@media (max-width: 360px) {
  .btn-lg { font-size: 0.78rem; letter-spacing: 0.03em; }
}

/* Touch screens: no sticky hover lift after a tap */
@media (hover: none) {
  .btn-primary:hover, .btn-ghost:hover, .fact-chips li:hover { transform: none; }
  .btn-primary:hover::after { transform: translateX(-120%); }
  .btn:hover .btn-arrow { transform: none; }
  .feature:hover { background: var(--bg-card); }
  .feature:hover h3::before { width: 1.6rem; }
}

@media (max-width: 720px), (pointer: coarse) {
  .nav a { padding: 0.7rem 0.15rem; }
  .footer-meta { gap: 0.25rem 1.25rem; }
  .footer-meta a { display: inline-block; padding: 0.65rem 0; }
  .footer-brand { padding: 0.4rem 0; }
}

@media (max-width: 400px) {
  .nav a { letter-spacing: 0.08em; font-size: 0.75rem; }
}
