/* ==========================================================================
   NT-Hosting — jaettu tyylitiedosto
   ========================================================================== */

:root {
  --bg: #05070c;
  --bg-soft: #080b14;
  --surface: #0d1424;
  --surface-2: #111a30;
  --surface-border: rgba(148, 163, 184, 0.12);
  --surface-border-strong: rgba(94, 158, 255, 0.4);
  --text: #eef2f9;
  --text-muted: #97a3bd;
  --text-faint: #667089;
  --blue: #2f6feb;
  --blue-light: #5b9bff;
  --blue-bright: #6ea8ff;
  --navy: #0b1533;
  --success: #34d399;
  --danger: #f87171;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 26px;
  --radius-pill: 999px;
  --container: 1200px;
  --container-wide: 1400px;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  --gradient-brand: linear-gradient(135deg, #8fc0ff 0%, #3b7dff 45%, #14224a 100%);
  --gradient-cta: linear-gradient(135deg, #4a8dff 0%, #2457d6 100%);
  --gradient-hero: radial-gradient(60% 60% at 80% 10%, rgba(47, 111, 235, 0.28) 0%, rgba(5, 7, 12, 0) 60%),
    radial-gradient(50% 50% at 10% 0%, rgba(59, 130, 246, 0.16) 0%, rgba(5, 7, 12, 0) 60%);
  --shadow-glow: 0 20px 60px -24px rgba(47, 111, 235, 0.55);
  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 12px 40px -20px rgba(0, 0, 0, 0.6);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---- Reset & base ---------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
}

[id] {
  scroll-margin-top: 96px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  position: relative;
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Subtle film-grain layer for surface depth. Fixed + pointer-events:none so it
   never affects layout, hit-testing, or scroll performance. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.container-wide {
  width: 100%;
  max-width: var(--container-wide);
  margin-inline: auto;
  padding-inline: 24px;
}

main {
  display: block;
}

.section {
  padding-block: clamp(56px, 8vw, 104px);
}

.section-tight {
  padding-block: clamp(40px, 6vw, 72px);
}

.section-head {
  max-width: 640px;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.section-head.no-gap {
  margin-bottom: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue-light);
  box-shadow: 0 0 12px 2px rgba(91, 155, 255, 0.7);
}

.section-head h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}

.section-head h2.tight {
  margin-bottom: 28px;
}

.section-head p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ---- Section divider (visual rhythm between sections) -------------------- */

.section-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.section-divider .line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--surface-border-strong), transparent);
}

.section-divider .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue-light);
  box-shadow: 0 0 12px 3px rgba(91, 155, 255, 0.55);
  flex-shrink: 0;
}

/* ---- Buttons ------------------------------------------------------------ */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 28px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.98rem;
  white-space: nowrap;
  overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
}

.btn-sm {
  padding: 11px 20px;
  font-size: 0.9rem;
}

.btn-primary {
  background: var(--gradient-cta);
  color: #fff;
  box-shadow: var(--shadow-glow);
}

.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 25%, rgba(255, 255, 255, 0.35) 48%, transparent 72%);
  transform: translateX(-120%);
  transition: transform 0.6s var(--ease);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 26px 70px -22px rgba(47, 111, 235, 0.75);
}

.btn-primary:hover::before {
  transform: translateX(120%);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  border: 1px solid var(--surface-border);
}

.btn-secondary:hover {
  border-color: var(--surface-border-strong);
  background: rgba(94, 158, 255, 0.06);
  transform: translateY(-2px);
}

.btn-primary:active,
.btn-secondary:active {
  transform: scale(0.97);
}

.btn-ghost {
  color: var(--blue-light);
  padding: 8px 0;
  gap: 6px;
  overflow: visible;
}

.btn-ghost svg {
  transition: transform 0.25s var(--ease);
}

.btn-ghost:hover svg {
  transform: translateX(4px);
}

.btn-block {
  width: 100%;
}

/* ---- Header -------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  background: rgba(5, 7, 12, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--surface-border);
  background: rgba(5, 7, 12, 0.92);
}

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

.brand {
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.main-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s var(--ease);
}

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

.nav-link.active {
  color: var(--text);
}

.nav-links .nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background: var(--gradient-cta);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--surface-border);
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.header-actions .btn-primary.btn-sm span.short {
  display: none;
}

@media (max-width: 880px) {
  .main-nav {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .header-actions .btn-primary.btn-sm {
    padding: 9px 16px;
    font-size: 0.85rem;
  }

  .gaming-link {
    display: none;
  }
}

@media (max-width: 460px) {
  .header-actions .btn-primary.btn-sm span.full {
    display: none;
  }

  .header-actions .btn-primary.btn-sm span.short {
    display: inline;
  }
}

/* ---- Mobile navigation overlay --------------------------------------------
   Deliberately a body-level sibling of <header>, not a descendant of it.
   .site-header uses backdrop-filter, which establishes a new containing
   block for position:fixed descendants — nesting the overlay inside the
   header would resolve its "fixed, full-viewport" box against the 76px
   header instead of the viewport. Keeping it outside sidesteps that. ---- */

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 300;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  background:
    radial-gradient(130% 90% at 100% 0%, rgba(47, 111, 235, 0.18), transparent 55%),
    linear-gradient(180deg, #080b14 0%, #05070c 55%, #04050a 100%);
  transition: opacity 0.3s var(--ease), visibility 0.3s;
}

.mobile-nav.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

@media (min-width: 881px) {
  .mobile-nav {
    display: none;
  }
}

.mobile-nav-inner {
  height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  padding: 0 24px calc(28px + env(safe-area-inset-bottom));
  transform: translateY(-14px);
  transition: transform 0.35s var(--ease);
}

.mobile-nav.is-open .mobile-nav-inner {
  transform: translateY(0);
}

.mobile-nav-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  flex-shrink: 0;
  border-bottom: 1px solid var(--surface-border);
}

.mobile-nav-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--surface-border);
  color: var(--text-muted);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.mobile-nav-close:hover {
  color: var(--text);
  border-color: var(--surface-border-strong);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  padding-top: 10px;
  flex: 1;
}

.mobile-nav-links li {
  border-bottom: 1px solid var(--surface-border);
}

.mobile-nav-links .nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 2px;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), color 0.2s var(--ease);
}

.mobile-nav.is-open .mobile-nav-links .nav-link {
  opacity: 1;
  transform: translateX(0);
}

.mobile-nav-links li:nth-child(1) .nav-link {
  transition-delay: 0.05s;
}
.mobile-nav-links li:nth-child(2) .nav-link {
  transition-delay: 0.1s;
}
.mobile-nav-links li:nth-child(3) .nav-link {
  transition-delay: 0.15s;
}
.mobile-nav-links li:nth-child(4) .nav-link {
  transition-delay: 0.2s;
}
.mobile-nav-links li:nth-child(5) .nav-link {
  transition-delay: 0.25s;
}

.mobile-nav-links .nav-link::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue-light);
  box-shadow: 0 0 10px 2px rgba(91, 155, 255, 0.6);
  opacity: 0;
  flex-shrink: 0;
  transition: opacity 0.2s var(--ease);
}

.mobile-nav-links .nav-link.active {
  color: var(--blue-light);
}

.mobile-nav-links .nav-link.active::after {
  opacity: 1;
}

.mobile-nav-footer {
  flex-shrink: 0;
  padding: 24px 0 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ---- Hero ---------------------------------------------------------------- */

.hero {
  position: relative;
  padding-block: clamp(64px, 10vw, 120px) clamp(56px, 8vw, 96px);
  background-image: var(--gradient-hero);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--surface-border);
  background: rgba(94, 158, 255, 0.06);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue-light);
  margin-bottom: 24px;
}

.hero-badge svg {
  flex-shrink: 0;
}

.hero h1 {
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin-bottom: 22px;
}

.hero h1 em {
  font-style: normal;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lead {
  font-size: 1.14rem;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 36px;
}

.hero p.lead strong {
  color: var(--text);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
}

.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-faint);
}

.hero-meta-item svg {
  color: var(--success);
  flex-shrink: 0;
}

/* Hero visual: stylised "server status" panel with HUD-style corner marks */

.hero-visual {
  position: relative;
}

.status-card {
  position: relative;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
}

.status-card::before,
.status-card::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid var(--blue-light);
  opacity: 0.45;
  pointer-events: none;
}

.status-card::before {
  top: -1px;
  left: -1px;
  border-right: none;
  border-bottom: none;
  border-radius: 8px 0 0 0;
}

.status-card::after {
  bottom: -1px;
  right: -1px;
  border-left: none;
  border-top: none;
  border-radius: 0 0 8px 0;
}

.status-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--surface-border);
}

.status-card-top .dot-row {
  display: flex;
  gap: 6px;
}

.status-card-top .dot-row span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--surface-border-strong);
}

.status-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--success);
}

.status-live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 10px 2px rgba(52, 211, 153, 0.7);
  animation: ntc-pulse 2.4s ease-in-out infinite;
}

@keyframes ntc-pulse {
  0%,
  100% {
    box-shadow: 0 0 10px 2px rgba(52, 211, 153, 0.7);
  }
  50% {
    box-shadow: 0 0 16px 5px rgba(52, 211, 153, 0.35);
  }
}

.status-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
}

.status-stat {
  min-width: 0;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: 16px;
}

.status-stat .label {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  margin-bottom: 8px;
}

.status-stat .value {
  font-size: 1.32rem;
  font-weight: 700;
  color: var(--text);
  overflow-wrap: break-word;
}

.status-stat .value span {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}

.status-footnote {
  margin-top: 18px;
  font-size: 0.82rem;
  color: var(--text-faint);
  text-align: center;
}

/* ---- Generic page hero (sub-pages) ---------------------------------------- */

.page-hero {
  padding-block: clamp(56px, 9vw, 96px) clamp(28px, 5vw, 48px);
  background-image: var(--gradient-hero);
  text-align: center;
}

.page-hero .eyebrow {
  justify-content: center;
}

.page-hero h1 {
  font-size: clamp(2rem, 4.4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.page-hero p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 620px;
  margin-inline: auto;
}

.pricing-subnav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.pricing-subnav-link {
  padding: 9px 22px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--surface-border);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background 0.2s var(--ease);
}

.pricing-subnav-link:hover {
  color: var(--text);
  border-color: var(--surface-border-strong);
  background: rgba(94, 158, 255, 0.06);
}

/* ---- Feature / highlight cards ------------------------------------------- */

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 640px) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1000px) {
  .feature-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.feature-card {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}

.feature-card::before,
.service-card::before,
.contact-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 16px;
  right: 16px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--surface-border-strong), transparent);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.feature-card:hover,
.service-card:hover,
.contact-card:hover {
  transform: translateY(-6px);
  border-color: var(--surface-border-strong);
}

.feature-card:hover::before,
.service-card:hover::before,
.contact-card:hover::before {
  opacity: 1;
}

.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(94, 158, 255, 0.22), rgba(47, 111, 235, 0.06));
  color: var(--blue-light);
  margin-bottom: 18px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.feature-card:hover .icon-badge,
.service-card:hover .icon-badge,
.contact-card:hover .icon-badge {
  transform: scale(1.08);
  box-shadow: 0 0 0 1px rgba(94, 158, 255, 0.3), 0 8px 20px -8px rgba(47, 111, 235, 0.6);
}

.feature-card h3 {
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ---- Service cards -------------------------------------------------------- */

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 24px;
}

.service-card {
  position: relative;
  background: linear-gradient(160deg, var(--surface-2) 0%, var(--surface) 55%);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
  overflow: hidden;
}

.service-card-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.service-card-head .icon-badge {
  margin-bottom: 0;
  width: 54px;
  height: 54px;
}

.service-card-head h3 {
  font-size: 1.34rem;
  font-weight: 700;
}

.service-card-head span {
  display: block;
  font-size: 0.85rem;
  color: var(--text-faint);
  margin-top: 2px;
}

.service-card p.desc {
  color: var(--text-muted);
  margin-bottom: 22px;
}

.service-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 26px;
}

.service-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text);
}

.service-list li svg {
  color: var(--blue-light);
  flex-shrink: 0;
}

/* ---- Why-choose / two-col text ------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.split-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 28px;
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.check-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.check-list .icon-badge {
  margin-bottom: 0;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

.check-list h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.check-list p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* ---- CTA band -------------------------------------------------------------- */

.cta-band {
  position: relative;
  border-radius: var(--radius-lg);
  padding-block: clamp(20px, 3.5vw, 38px) clamp(40px, 7vw, 76px);
  padding-inline: clamp(40px, 7vw, 76px);
  text-align: center;
  background: linear-gradient(135deg, rgba(47, 111, 235, 0.18), rgba(11, 21, 51, 0.6)), var(--surface);
  border: 1px solid var(--surface-border-strong);
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto auto;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(94, 158, 255, 0.35), transparent 70%);
  pointer-events: none;
}

.cta-band::after {
  content: "";
  position: absolute;
  inset: auto auto -30% -8%;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.18), transparent 70%);
  pointer-events: none;
}

.cta-band h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 14px;
  position: relative;
}

.cta-band p {
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 30px;
  position: relative;
}

.cta-band .hero-actions {
  justify-content: center;
  margin-bottom: 0;
  position: relative;
}

/* ---- Pricing --------------------------------------------------------------- */

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 640px) {
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .pricing-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
  }
}

@media (min-width: 1200px) {
  .pricing-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
  }
}

@media (min-width: 1400px) {
  .pricing-grid {
    gap: 22px;
  }
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

@media (min-width: 1200px) {
  .price-card {
    padding: 28px 20px;
  }
}

@media (min-width: 1400px) {
  .price-card {
    padding: 32px 26px;
  }
}

.price-card:hover {
  transform: translateY(-6px);
  border-color: var(--surface-border-strong);
}

.price-card.featured {
  border-color: var(--surface-border-strong);
  background: linear-gradient(180deg, rgba(47, 111, 235, 0.16), var(--surface) 45%);
  animation: ntc-featured-glow 3.6s ease-in-out infinite;
}

@keyframes ntc-featured-glow {
  0%,
  100% {
    box-shadow: var(--shadow-card), 0 0 0 1px rgba(94, 158, 255, 0.22), 0 30px 60px -32px rgba(47, 111, 235, 0.55);
  }
  50% {
    box-shadow: var(--shadow-card), 0 0 0 1px rgba(94, 158, 255, 0.4), 0 30px 68px -28px rgba(47, 111, 235, 0.72);
  }
}

@media (min-width: 640px) {
  .price-card.featured {
    transform: translateY(-6px);
  }

  .price-card.featured:hover {
    transform: translateY(-11px);
  }
}

.price-tier {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 18px;
  margin-bottom: 16px;
}

.price-tier .bar {
  width: 5px;
  border-radius: 2px;
  background: var(--surface-border);
}

.price-tier .bar.filled {
  background: var(--gradient-cta);
}

.price-tier .bar:nth-child(1) {
  height: 35%;
}
.price-tier .bar:nth-child(2) {
  height: 50%;
}
.price-tier .bar:nth-child(3) {
  height: 65%;
}
.price-tier .bar:nth-child(4) {
  height: 80%;
}
.price-tier .bar:nth-child(5) {
  height: 100%;
}

.price-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  background: var(--gradient-cta);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  box-shadow: 0 10px 24px -8px rgba(47, 111, 235, 0.85), 0 0 0 4px var(--bg);
}

.price-name {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.price-desc {
  color: var(--text-muted);
  font-size: 0.86rem;
  margin-bottom: 18px;
  min-height: 40px;
}

.price-amount {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-bottom: 18px;
  font-family: var(--font-mono);
}

.price-amount .num {
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

@media (min-width: 1400px) {
  .price-amount .num {
    font-size: 2.2rem;
  }
}

.price-amount .per {
  color: var(--text-faint);
  font-size: 0.85rem;
}

.price-divider {
  height: 1px;
  background: linear-gradient(90deg, var(--surface-border), transparent);
  margin-bottom: 20px;
}

.price-specs {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 24px;
  flex: 1;
}

.price-specs li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.88rem;
  color: var(--text);
}

.price-specs li svg {
  color: var(--blue-light);
  flex-shrink: 0;
}

.price-card .btn {
  white-space: normal;
  line-height: 1.25;
  padding: 12px 14px;
  font-size: 0.86rem;
}

/* Edition toggle (Java / Bedrock) — sliding indicator */

.edition-toggle {
  position: relative;
  display: flex;
  width: min(320px, 100%);
  padding: 5px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-pill);
}

.edition-toggle-thumb {
  position: absolute;
  top: 5px;
  left: 5px;
  height: calc(100% - 10px);
  width: calc(50% - 5px);
  border-radius: var(--radius-pill);
  background: var(--gradient-cta);
  box-shadow: 0 8px 20px -8px rgba(47, 111, 235, 0.7);
  transition: transform 0.35s var(--ease);
}

.edition-toggle.is-bedrock .edition-toggle-thumb {
  transform: translateX(100%);
}

.edition-btn {
  position: relative;
  z-index: 1;
  flex: 1 1 0;
  padding: 10px 8px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  color: var(--text-muted);
  transition: color 0.25s var(--ease), transform 0.15s var(--ease);
}

@media (max-width: 360px) {
  .edition-btn {
    font-size: 0.82rem;
    padding: 10px 4px;
  }
}

.edition-btn:active {
  transform: scale(0.97);
}

.edition-btn[aria-pressed="true"] {
  color: #fff;
}

.edition-toggle-wrap {
  display: flex;
  justify-content: center;
}

.edition-note {
  font-size: 0.85rem;
  color: var(--text-faint);
  margin-bottom: 30px;
  text-align: center;
}

.pricing-group-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}

.pricing-note {
  margin-top: 28px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.pricing-note a {
  color: var(--blue-light);
  font-weight: 600;
}

/* ---- Minecraft pricing slider ------------------------------------------------ */

.mc-slider {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
}

.mc-slider-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 10px 4px 30px;
  margin: -10px -4px -30px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.mc-slider-track::-webkit-scrollbar {
  display: none;
}

.mc-slide {
  flex: 0 0 auto;
  width: 78%;
  max-width: 300px;
  scroll-snap-align: start;
  min-width: 0;
}

.mc-slide .price-card {
  height: 100%;
}

@media (min-width: 560px) {
  .mc-slide {
    width: 62%;
  }
}

@media (min-width: 780px) {
  .mc-slide {
    width: 44%;
  }
}

@media (min-width: 1024px) {
  .mc-slide {
    width: 32%;
  }
}

@media (min-width: 1280px) {
  .mc-slide {
    width: 23%;
  }
}

.mc-slider-arrow {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--surface-border);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-card);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease), background 0.2s var(--ease);
}

.mc-slider-arrow:hover {
  border-color: var(--surface-border-strong);
  background: rgba(94, 158, 255, 0.08);
  transform: translateY(-2px);
}

.mc-slider-arrow:disabled {
  opacity: 0.35;
  cursor: default;
  transform: none;
}

.mc-slider-arrow:disabled:hover {
  border-color: var(--surface-border);
  background: var(--surface);
}

@media (max-width: 640px) {
  .mc-slider-arrow {
    display: none;
  }
}

/* Draggable "ball" scrubber — a styled native range input. Native range
   inputs give correct mouse-drag AND touch-drag behaviour for free, which
   is far more robust on mobile than hand-rolled pointer-event dragging. */

.mc-scrubber {
  max-width: 640px;
  margin: 34px auto 0;
}

.mc-scrubber-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 16px;
}

.mc-scrubber-name {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.mc-scrubber-price {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.mc-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--blue) 0%,
    var(--blue-light) var(--mc-progress, 0%),
    var(--surface-border) var(--mc-progress, 0%),
    var(--surface-border) 100%
  );
  outline: none;
  cursor: pointer;
  margin: 0;
  touch-action: pan-y;
}

.mc-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--gradient-cta);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 1px var(--surface-border-strong), 0 8px 20px -6px rgba(47, 111, 235, 0.85), 0 0 16px 2px rgba(94, 158, 255, 0.5);
  cursor: grab;
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease);
  margin-top: -10px;
}

.mc-range::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: transparent;
}

.mc-range:active::-webkit-slider-thumb {
  cursor: grabbing;
  transform: scale(1.15);
}

.mc-range::-moz-range-thumb {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--gradient-cta);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 1px var(--surface-border-strong), 0 8px 20px -6px rgba(47, 111, 235, 0.85), 0 0 16px 2px rgba(94, 158, 255, 0.5);
  cursor: grab;
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease);
}

.mc-range:active::-moz-range-thumb {
  cursor: grabbing;
  transform: scale(1.15);
}

.mc-range::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: var(--surface-border);
}

.mc-range::-moz-range-progress {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--blue-light));
}

.mc-range:focus-visible::-webkit-slider-thumb {
  box-shadow: 0 0 0 1px var(--surface-border-strong), 0 0 0 5px rgba(94, 158, 255, 0.35), 0 8px 20px -6px rgba(47, 111, 235, 0.85);
}

.mc-scrubber-ticks {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.mc-scrubber-ticks span {
  flex: 1;
  text-align: center;
}

.mc-scrubber-ticks span:first-child {
  text-align: left;
}

.mc-scrubber-ticks span:last-child {
  text-align: right;
}

/* ---- Minecraft desktop configurator (product showcase) -------------------
   Mobile keeps the slider/scrubber above. From 900px up we swap to a
   tab-style package selector with one large detail panel underneath. */

.mc-desktop {
  display: none;
}

@media (min-width: 900px) {
  .mc-mobile {
    display: none;
  }

  .mc-desktop {
    display: block;
  }
}

.mc-tabs {
  display: flex;
  gap: 8px;
  padding: 8px;
  margin-bottom: 28px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
}

.mc-tab {
  position: relative;
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 16px 8px;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

.mc-tab:hover {
  color: var(--text);
  background: rgba(94, 158, 255, 0.08);
}

.mc-tab.is-active {
  color: #fff;
  background: var(--gradient-cta);
  box-shadow: 0 10px 26px -12px rgba(47, 111, 235, 0.85);
}

.mc-tab-name {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.mc-tab-price {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  opacity: 0.85;
}

.mc-tab-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  background: var(--gradient-cta);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  box-shadow: 0 8px 18px -8px rgba(47, 111, 235, 0.85), 0 0 0 4px var(--bg-soft);
}

.mc-showcase {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--surface-2) 0%, var(--surface) 55%);
  border: 1px solid var(--surface-border-strong);
  border-radius: var(--radius-lg);
  padding: clamp(32px, 4vw, 48px);
  box-shadow: var(--shadow-card);
}

.mc-showcase.is-featured {
  background: linear-gradient(180deg, rgba(47, 111, 235, 0.16), var(--surface) 45%);
  animation: ntc-featured-glow 3.6s ease-in-out infinite;
}

.mc-showcase-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.mc-showcase-heading .price-tier {
  margin-bottom: 14px;
}

.mc-showcase-badge {
  display: inline-flex;
  margin-bottom: 12px;
  background: var(--gradient-cta);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
}

.mc-showcase-badge[hidden] {
  display: none;
}

.mc-showcase-heading h3 {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  margin-bottom: 8px;
}

.mc-showcase-heading p {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 440px;
}

.mc-showcase-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--font-mono);
  flex-shrink: 0;
}

.mc-showcase-price .num {
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.mc-showcase-price .per {
  color: var(--text-faint);
  font-size: 1rem;
}

.mc-showcase-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--surface-border-strong), transparent);
  margin: 32px 0;
}

.mc-showcase-specs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.mc-showcase-spec {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mc-showcase-spec-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(94, 158, 255, 0.22), rgba(47, 111, 235, 0.06));
  color: var(--blue-light);
}

.mc-showcase-spec-label {
  font-size: 0.78rem;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.mc-showcase-spec-value {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

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

.mc-showcase-footer p {
  color: var(--text-faint);
  font-size: 0.88rem;
  margin: 0;
}

/* ---- Palvelut-sivun spacing ------------------------------------------------
   Skoopattu .page-palvelut-luokkaan (body class palvelut.html:ssä), joten
   nämä eivät vaikuta muihin sivuihin vaikka .page-hero/.section/.section-tight
   ovat jaettuja luokkia. Clamp() skaalautuu myös mobiilissa, joten samat
   säännöt kaventavat välit sekä desktopilla että mobiilissa. */

.page-palvelut .page-hero {
  padding-bottom: clamp(16px, 3vw, 28px);
}

.page-palvelut #fivem.section-tight {
  padding-block: clamp(26px, 4.5vw, 44px);
}

.page-palvelut #minecraft.section-tight {
  padding-top: clamp(26px, 4.5vw, 44px);
}

.page-palvelut .section {
  padding-top: clamp(24px, 4vw, 40px);
}

@media (max-width: 640px) {
  .pricing-group-head {
    margin-bottom: 20px;
  }

  .edition-note {
    margin-bottom: 22px;
  }

  .mc-scrubber {
    margin-top: 22px;
  }

  .pricing-note {
    margin-top: 20px;
  }

  .price-card {
    padding: 24px 22px;
  }

  .pricing-grid {
    gap: 16px;
  }
}

/* ---- Contact cards --------------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.contact-card {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 34px 28px;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}

.contact-card .icon-badge {
  margin-inline: auto;
  width: 56px;
  height: 56px;
  margin-bottom: 20px;
}

.contact-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.contact-card p.value {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 22px;
  word-break: break-word;
}

/* ---- Contact form ------------------------------------------------------------ */

.contact-form-card {
  max-width: 720px;
  margin-inline: auto;
  background: linear-gradient(160deg, var(--surface-2) 0%, var(--surface) 55%);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 44px);
  box-shadow: var(--shadow-card);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field.full {
  grid-column: 1 / -1;
}

.form-field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.form-field label .optional {
  font-weight: 400;
  color: var(--text-faint);
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--surface-border);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--text-faint);
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--surface-border-strong);
  background: rgba(94, 158, 255, 0.05);
  box-shadow: 0 0 0 3px rgba(94, 158, 255, 0.12);
}

.form-field textarea {
  resize: vertical;
  min-height: 140px;
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.form-note {
  font-size: 0.82rem;
  color: var(--text-faint);
}

.form-success {
  display: none;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(52, 211, 153, 0.35);
  background: rgba(52, 211, 153, 0.08);
  color: var(--text);
  font-size: 0.9rem;
}

.form-success.is-visible {
  display: flex;
}

.form-success svg {
  color: var(--success);
  flex-shrink: 0;
}

.form-success.is-error {
  border-color: rgba(248, 113, 113, 0.35);
  background: rgba(248, 113, 113, 0.08);
}

.form-success.is-error svg {
  color: var(--danger);
}

.form-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  left: -9999px;
  opacity: 0;
}

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

  .form-actions {
    flex-direction: column;
    align-items: stretch;
  }

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

/* ---- Legal pages ------------------------------------------------------------ */

.legal-hero {
  padding-block: clamp(56px, 8vw, 88px) clamp(24px, 4vw, 40px);
  background-image: var(--gradient-hero);
}

.legal-hero-inner {
  display: flex;
  align-items: center;
  gap: 22px;
}

.legal-hero-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(94, 158, 255, 0.22), rgba(47, 111, 235, 0.06));
  border: 1px solid var(--surface-border-strong);
  color: var(--blue-light);
}

.legal-hero h1 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 8px;
}

.legal-meta {
  color: var(--text-faint);
  font-size: 0.9rem;
  font-family: var(--font-mono);
}

@media (max-width: 560px) {
  .legal-hero-inner {
    flex-direction: column;
    text-align: center;
  }
}

.legal-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

@media (max-width: 900px) {
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-toc {
    display: none;
  }
}

.legal-toc {
  position: sticky;
  top: 108px;
}

.legal-toc-label {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  margin-bottom: 16px;
}

.legal-toc-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.toc-link {
  display: block;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 0.87rem;
  color: var(--text-muted);
  border-left: 2px solid transparent;
  transition: color 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.toc-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.toc-link.active {
  color: var(--blue-light);
  background: rgba(94, 158, 255, 0.08);
  border-left-color: var(--blue-light);
}

.legal-content {
  min-width: 0;
  max-width: 760px;
}

.legal-block {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 20px;
  padding-block: 30px;
  border-bottom: 1px solid var(--surface-border);
}

.legal-block:first-of-type {
  padding-top: 0;
}

.legal-block:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

.legal-num {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--blue-light);
  opacity: 0.55;
  line-height: 1.1;
}

@media (max-width: 640px) {
  .legal-block {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 14px;
  }

  .legal-num {
    font-size: 1.05rem;
  }
}

.legal-content h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.legal-content p {
  color: var(--text-muted);
  margin-bottom: 14px;
}

.legal-content p:last-child {
  margin-bottom: 0;
}

.legal-content ul {
  margin-bottom: 14px;
  padding-left: 4px;
}

.legal-content ul:last-child {
  margin-bottom: 0;
}

.legal-content ul li {
  position: relative;
  padding-left: 22px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.legal-content ul li:last-child {
  margin-bottom: 0;
}

.legal-content ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue-light);
}

.legal-content a {
  color: var(--blue-light);
  font-weight: 600;
}

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

.legal-contact-box {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 8px;
  padding: 28px 30px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--surface-border-strong);
  background: linear-gradient(135deg, rgba(47, 111, 235, 0.14), rgba(11, 21, 51, 0.5)), var(--surface);
}

.legal-contact-box .icon-badge {
  margin-bottom: 0;
  flex-shrink: 0;
}

.legal-contact-box-body {
  flex: 1;
  min-width: 200px;
}

.legal-contact-box h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.legal-contact-box p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin: 0;
}

@media (max-width: 560px) {
  .legal-contact-box {
    flex-direction: column;
    text-align: center;
  }

  .legal-contact-box-body {
    min-width: 0;
  }
}

/* ---- Footer ------------------------------------------------------------------ */

.site-footer {
  border-top: 1px solid var(--surface-border);
  padding-block: clamp(48px, 7vw, 72px) 28px;
  background: var(--bg-soft);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin: 16px 0 22px;
  max-width: 320px;
}

.footer-col h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  margin-bottom: 18px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a {
  color: var(--text-muted);
  font-size: 0.94rem;
  transition: color 0.2s var(--ease);
}

.footer-col a:hover {
  color: var(--blue-light);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 24px;
  border-top: 1px solid var(--surface-border);
  color: var(--text-faint);
  font-size: 0.85rem;
}

/* ---- Reveal-on-scroll utility -------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Responsive ------------------------------------------------------------ */

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

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

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

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

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

@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

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