/* ==========================================================================
   Scaleway Hosting – tyylit
   Tumma teema oletuksena, vaalea [data-theme="light"].
   Värit ja fontit muutetaan alla olevista muuttujista.
   ========================================================================== */

:root,
:root[data-theme="dark"] {
  --bg: #08090d;
  --bg-rgb: 8, 9, 13;
  --bg-2: #0b0d12;
  --bg-3: #06070a;
  --surface: #101219;
  --surface-rgb: 16, 18, 25;
  --surface-2: #151821;
  --surface-3: #1c202a;
  --border: rgba(255, 255, 255, 0.07);
  --border-2: rgba(255, 255, 255, 0.12);
  --text: #f1f3f7;
  --text-2: #b3bbc9;
  --muted: #7c8596;
  --accent: #4a7cf0;
  --accent-hover: #5a89f5;
  --accent-hi: #8eb0ff;
  --accent-soft: rgba(142, 176, 255, 0.08);
  --accent-line: rgba(142, 176, 255, 0.28);
  --good: #6ccf93;
  --good-soft: rgba(108, 207, 147, 0.1);
  --warn: #f2b84b;
  --bad: #f07167;
  --nav-bg: rgba(14, 16, 22, 0.72);
  --edge: inset 0 1px 0 rgba(255, 255, 255, 0.045);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 16px 40px -18px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.3), 0 30px 70px -24px rgba(0, 0, 0, 0.85);
  --panel-bg: #0a0c12;
  --code: #a9b8d4;
  --fd: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  --fb: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --r: 20px;
  --r-sm: 12px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #f5f6f8;
  --bg-rgb: 245, 246, 248;
  --bg-2: #ffffff;
  --bg-3: #eef0f4;
  --surface: #ffffff;
  --surface-rgb: 255, 255, 255;
  --surface-2: #f4f6f9;
  --surface-3: #e9ecf1;
  --border: #e3e6ec;
  --border-2: #d2d7e0;
  --text: #0d1220;
  --text-2: #3a4354;
  --muted: #677184;
  --accent: #2f62e6;
  --accent-hover: #2556d4;
  --accent-hi: #2557d6;
  --accent-soft: rgba(47, 98, 230, 0.07);
  --accent-line: rgba(47, 98, 230, 0.32);
  --good: #16a34a;
  --good-soft: rgba(22, 163, 74, 0.08);
  --warn: #b7791f;
  --bad: #dc2626;
  --nav-bg: rgba(255, 255, 255, 0.82);
  --edge: 0 1px 2px rgba(13, 18, 32, 0.04);
  --shadow: 0 1px 2px rgba(13, 18, 32, 0.05), 0 14px 34px -18px rgba(13, 18, 32, 0.18);
  --shadow-lg: 0 2px 4px rgba(13, 18, 32, 0.05), 0 28px 60px -26px rgba(13, 18, 32, 0.28);
  --panel-bg: #0c1019;
  color-scheme: light;
}

/* ---------- Perusta ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--fb);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3, h4 {
  font-family: var(--fd);
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 700;
  margin: 0 0 .5em;
}
p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }
::selection { background: rgba(74, 124, 240, .35); }
.ic { width: 1.15em; height: 1.15em; flex: none; }
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 28px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 2px; border-radius: 6px; }

/* Hento valo sivun yläreunassa */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background: radial-gradient(1000px 520px at 75% -14%, rgba(110, 145, 230, .08), transparent 65%);
}
[data-theme="light"] body::before { background: radial-gradient(1000px 520px at 75% -14%, rgba(47, 98, 230, .06), transparent 65%); }

/* ---------- Napit ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 46px; padding: 0 20px;
  border-radius: var(--r-sm); border: 1px solid transparent;
  font-family: var(--fd); font-weight: 600; font-size: 15px; letter-spacing: -.005em;
  white-space: nowrap; cursor: pointer; user-select: none;
  transition: transform .2s var(--ease), background-color .2s, border-color .2s, box-shadow .2s, color .2s;
}
.btn .ic { width: 17px; height: 17px; transition: transform .25s var(--ease); }
.btn:hover .ic:last-child:not(:first-child) { transform: translateX(2px); }
.btn:active { transform: scale(.97) !important; transition-duration: .08s; }
.btn-sm { height: 38px; padding: 0 14px; font-size: 14px; border-radius: 10px; gap: 7px; }
.btn-lg { height: 52px; padding: 0 24px; border-radius: 100px; font-size: 15.5px; }
.btn-block { width: 100%; }

.btn-primary {
  color: #fff;
  background: var(--accent);
  border-color: rgba(255, 255, 255, .1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 1px 2px rgba(0, 0, 0, .25), 0 8px 22px -10px rgba(74, 124, 240, .55);
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 1px 2px rgba(0, 0, 0, .25), 0 12px 26px -12px rgba(74, 124, 240, .7); }

.btn-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, .03);
  border-color: var(--border-2);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .07); transform: translateY(-1px); }
[data-theme="light"] .btn-ghost { background: #fff; box-shadow: var(--edge); }
[data-theme="light"] .btn-ghost:hover { background: var(--surface-2); }

/* Paketin tilausnappi: neutraali, muuttuu käänteiseksi hoverilla */
.btn-outline { color: var(--text); background: var(--surface-2); border-color: var(--border-2); }
.btn-outline:hover { background: var(--text); color: var(--bg); border-color: var(--text); transform: translateY(-1px); }

/* Pilleri + pyöreä nuoli */
.btn-pill { height: 52px; border-radius: 100px; padding: 0 6px 0 22px; gap: 14px; font-size: 15.5px; }
.btn-circle {
  width: 40px; height: 40px; border-radius: 50%; overflow: hidden;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .16); color: #fff;
  transition: transform .3s var(--ease), background-color .2s;
}
.btn-circle .ic { width: 17px; height: 17px; }
.btn-pill:hover .btn-circle { background: rgba(255, 255, 255, .24); }
.btn-pill:hover .btn-circle .ic { animation: arrowLoop .55s cubic-bezier(.4, 0, .2, 1); }
@keyframes arrowLoop { 45% { transform: translateX(14px); opacity: 0; } 50% { transform: translateX(-14px); opacity: 0; } 100% { transform: none; opacity: 1; } }
.btn.loading .ic { animation: spin .9s linear infinite; }

.icon-btn {
  height: 38px; min-width: 38px; padding: 0 10px;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border-radius: 10px; border: 1px solid var(--border-2);
  background: transparent; color: var(--text-2);
  transition: border-color .2s, color .2s, background-color .2s;
}
.icon-btn:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.icon-btn:active { transform: scale(.94); }
[data-theme="light"] .icon-btn { background: #fff; }
[data-theme="light"] .icon-btn:hover { background: var(--surface-2); }
.theme-btn .ic { transition: transform .5s cubic-bezier(.3, 1.4, .5, 1); }
.theme-btn:hover .ic { transform: rotate(25deg); }
.theme-btn .i-sun { display: none; }
[data-theme="light"] .theme-btn .i-sun { display: block; }
[data-theme="light"] .theme-btn .i-moon { display: none; }
.lang-btn { font-family: var(--fd); font-size: 12px; font-weight: 700; gap: 2px; padding: 0 4px; }
.lang-btn span { padding: 3px 7px; border-radius: 6px; color: var(--muted); transition: background-color .2s, color .2s; }
.lang-btn span.on { background: var(--surface-3); color: var(--text); }
[data-theme="light"] .lang-btn span.on { background: var(--text); color: #fff; }
.search-btn .search-txt, .search-btn kbd { display: none; }
.billing-btn { padding: 0 11px; }
.billing-btn .btn-lbl { display: none; }

/* ---------- Ilmoituspalkki ---------- */
.announce {
  position: relative; z-index: 51; overflow: hidden;
  background:
    linear-gradient(90deg, rgba(74, 124, 240, .16), rgba(74, 124, 240, .05) 45%, transparent 80%),
    var(--bg-3);
  border-bottom: 1px solid var(--border);
  animation: annIn .5s var(--ease) backwards;
  transition: height .3s var(--ease), opacity .25s ease;
}
[data-theme="light"] .announce { background: linear-gradient(90deg, rgba(47, 98, 230, .1), rgba(47, 98, 230, .03) 45%, transparent 80%), #fff; }
.announce.closing { height: 0 !important; opacity: 0; }
.announce-inner { display: flex; align-items: center; gap: 16px; min-height: 62px; padding-top: 10px; padding-bottom: 10px; }
.announce-ic {
  width: 36px; height: 36px; flex: none; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent-hi);
}
.announce-ic .ic { width: 17px; height: 17px; }
.announce-txt { flex: 1; min-width: 0; line-height: 1.4; }
.announce-txt b { display: block; font-family: var(--fd); font-size: 14.5px; font-weight: 700; color: var(--text); }
.announce-txt span { display: block; font-size: 13.5px; color: var(--text-2); }
.announce-btn { flex: none; color: var(--text); background: rgba(255, 255, 255, .06); border-color: var(--border-2); }
.announce-btn:hover { background: var(--text); color: var(--bg); border-color: var(--text); }
[data-theme="light"] .announce-btn { background: #fff; }
[data-theme="light"] .announce-btn:hover { background: var(--text); color: #fff; }
.announce-x {
  width: 32px; height: 32px; flex: none; border-radius: 8px; border: 0;
  display: grid; place-items: center; background: none; color: var(--muted);
  transition: background-color .2s, color .2s;
}
.announce-x:hover { background: rgba(255, 255, 255, .06); color: var(--text); }
[data-theme="light"] .announce-x:hover { background: var(--surface-3); }
.announce-x .ic { width: 16px; height: 16px; }
@keyframes annIn { from { opacity: 0; transform: translateY(-100%); } }

/* ---------- Yläpalkki ---------- */
.site-header { position: sticky; top: 0; z-index: 50; padding: 12px 0 0; margin-bottom: -76px; }
.nav {
  height: 64px;
  display: flex; align-items: center; gap: 14px;
  padding: 0 12px 0 20px;
  border-radius: 16px;
  background: var(--nav-bg);
  border: 1px solid var(--border);
  backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: var(--edge);
  transition: box-shadow .25s ease, border-color .25s;
}
.scrolled .nav { border-color: var(--border-2); box-shadow: var(--edge), 0 10px 30px -10px rgba(0, 0, 0, .5); }
[data-theme="light"] .scrolled .nav { box-shadow: 0 10px 30px -14px rgba(13, 18, 32, .18); }

.logo { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.logo-mark { display: grid; gap: 3px; width: 21px; }
.logo-mark i { display: block; height: 5px; border-radius: 2px; background: var(--accent-hi); transform: skewX(-18deg); }
.logo-mark i:nth-child(1) { width: 60%; margin-left: 40%; opacity: .5; }
.logo-mark i:nth-child(2) { width: 80%; margin-left: 20%; opacity: .78; }
.logo-mark i:nth-child(3) { width: 100%; }
.logo-text {
  font-family: var(--fd); font-weight: 800; font-style: italic;
  font-size: 18px; letter-spacing: -.01em; color: var(--text);
  display: inline-flex; gap: 6px; line-height: 1;
}
.logo-text span { color: var(--accent-hi); }

.nav-links { display: flex; gap: 2px; list-style: none; margin: 0 auto; padding: 0; }
.nav-link {
  position: relative;
  display: inline-flex; align-items: center; gap: 4px;
  height: 38px; padding: 0 12px;
  border-radius: 9px;
  font-family: var(--fd); font-size: 14.5px; font-weight: 600;
  color: var(--text-2); white-space: nowrap;
  transition: color .2s, background-color .2s;
}
.nav-link:hover, .has-drop:hover > .nav-link, .has-drop:focus-within > .nav-link { color: var(--text); background: rgba(255, 255, 255, .05); }
[data-theme="light"] .nav-link:hover, [data-theme="light"] .has-drop:hover > .nav-link { background: var(--surface-3); }
.nav-links > li.active > .nav-link { color: var(--text); }
.nav-links > li.active > .nav-link::after {
  content: ""; position: absolute; left: 50%; bottom: 3px; width: 4px; height: 4px; border-radius: 50%;
  background: var(--accent-hi); transform: translateX(-50%);
}
.nav-link .chev { width: 14px; height: 14px; opacity: .55; transition: transform .25s; }
.has-drop { position: relative; }
.has-drop:hover .chev, .has-drop:focus-within .chev { transform: rotate(180deg); }

.drop {
  position: absolute; top: calc(100% + 12px); left: 50%;
  transform: translate(-50%, 6px);
  min-width: 300px; padding: 8px;
  background: var(--surface); border: 1px solid var(--border-2);
  border-radius: 16px; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden;
  transition: opacity .16s ease, transform .2s var(--ease), visibility .16s;
}
.drop::before { content: ""; position: absolute; inset: -14px 0 auto; height: 14px; }
.has-drop:focus-within .drop { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
@media (hover: hover) and (min-width: 1201px) {
  .has-drop:hover .drop { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
}
.drop-right { left: auto; right: 0; transform: translate(0, 6px); }
.has-drop:hover .drop-right, .has-drop:focus-within .drop-right { transform: translate(0, 0); }
.drop-games { width: 540px; }
.drop-head { font-family: var(--fd); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 8px 10px 8px; }
.drop-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.drop-game {
  display: flex; align-items: center; gap: 11px;
  padding: 7px 9px; border-radius: 10px; font-size: 14px; font-weight: 500; color: var(--text-2);
  transition: background-color .15s, color .15s;
}
.drop-game img { width: 54px; height: 30px; border-radius: 6px; object-fit: cover; }
.drop-game:hover { background: var(--surface-2); color: var(--text); }
.drop-all {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 6px; padding: 12px; border-radius: 10px;
  background: var(--surface-2); color: var(--text); font-family: var(--fd); font-weight: 600; font-size: 14px;
  transition: background-color .15s;
}
.drop-all:hover { background: var(--surface-3); }
.drop-all .ic { width: 16px; height: 16px; }
.drop-list a { display: flex; gap: 12px; align-items: center; padding: 9px 10px; border-radius: 10px; color: var(--text-2); transition: background-color .15s; }
.drop-list a:hover { background: var(--surface-2); }
.drop-list a > .ic { width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); color: var(--accent-hi); }
.drop-list a:hover > .ic { background: var(--surface-3); }
.drop-list b { display: block; font-size: 14.5px; font-weight: 600; color: var(--text); }
.drop-list small { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.4; }

.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav-links + .nav-actions { margin-left: 0; }
.burger { display: none; }

.mobile-menu {
  position: fixed; inset: 88px 12px auto; z-index: 49;
  max-height: calc(100vh - 110px); overflow-y: auto;
  padding: 14px; border-radius: 18px;
  background: var(--surface); border: 1px solid var(--border-2);
  box-shadow: var(--shadow-lg);
}
.mm-group { padding: 4px 0 12px; border-bottom: 1px solid var(--border); margin-bottom: 8px; }
.mm-title { font-family: var(--fd); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 6px 8px 8px; }
.mobile-menu a:not(.btn) { display: flex; align-items: center; gap: 10px; padding: 10px 8px; border-radius: 10px; font-size: 15px; color: var(--text-2); }
.mobile-menu a:not(.btn):hover { background: var(--surface-2); color: var(--text); }
.mobile-menu img { width: 44px; height: 24px; object-fit: cover; border-radius: 5px; }
.mm-strong { color: var(--text) !important; font-weight: 600; }
.mm-games { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.mm-games a { font-size: 14px !important; }
.mm-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding-top: 6px; }
.mm-search { display: none !important; }
body.menu-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 168px 0 96px; overflow: hidden; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 30% 0%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 70% at 30% 0%, #000 20%, transparent 75%);
}
[data-theme="light"] .hero::before {
  background-image:
    linear-gradient(rgba(13, 18, 32, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 18, 32, .05) 1px, transparent 1px);
}
.hero-art {
  position: absolute; inset: 0 0 0 38%; z-index: -1;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 45%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 45%);
}
.hero-art::after { content: ""; position: absolute; inset: 0 0 -2px; background: linear-gradient(0deg, var(--bg) 0%, transparent 35%); }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: center right; }

/* Valokuvatausta: koko leveys, teksti luettavaksi liukuvärillä */
.hero-photo { inset: 0; -webkit-mask-image: none; mask-image: none; }
.hero-photo img { object-position: 62% center; }
.hero-photo::after {
  background:
    linear-gradient(90deg, rgb(var(--bg-rgb)) 0%, rgba(var(--bg-rgb), .9) 30%, rgba(var(--bg-rgb), .45) 58%, rgba(var(--bg-rgb), .08) 85%),
    linear-gradient(0deg, rgb(var(--bg-rgb)) 0%, rgba(var(--bg-rgb), 0) 38%),
    linear-gradient(180deg, rgba(var(--bg-rgb), .55) 0%, rgba(var(--bg-rgb), 0) 22%);
}

.hero-home { min-height: clamp(700px, 100vh, 900px); display: flex; align-items: center; padding: 150px 0 72px; }
.hero-content { max-width: 640px; }
.hero h1 { font-size: clamp(42px, 5.8vw, 74px); font-weight: 800; letter-spacing: -.04em; line-height: 1.02; margin-bottom: 22px; }
.hero h1 .accent { color: var(--accent-hi); display: block; }
.hero p.lead { font-size: 18px; color: var(--text-2); max-width: 540px; margin-bottom: 34px; line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-actions .btn-ghost { height: 52px; border-radius: 100px; padding: 0 24px; }

.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  max-width: 880px; margin-top: 64px;
  border: 1px solid var(--border-2); border-radius: 18px; overflow: hidden;
  background: rgba(var(--surface-rgb), .55);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--edge);
}
.hero-stats > div { display: flex; flex-direction: column; gap: 2px; padding: 20px 24px; }
.hero-stats > div + div { border-left: 1px solid var(--border); }
.hero-stats b { font-family: var(--fd); font-size: clamp(22px, 2.2vw, 28px); font-weight: 700; letter-spacing: -.03em; line-height: 1.2; white-space: nowrap; }
.hero-stats span { font-size: 13.5px; color: var(--muted); }

.hero-sm { padding: 160px 0 84px; }
.hero-sm h1 { font-size: clamp(38px, 4.8vw, 60px); }

.tag {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 6px 13px 6px 11px; margin-bottom: 22px;
  border-radius: 100px; border: 1px solid var(--border-2);
  background: rgba(var(--surface-rgb), .6);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-family: var(--fd); font-size: 12.5px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; color: var(--text-2);
}
.tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent-hi); box-shadow: 0 0 0 3px var(--accent-soft); }

.trust { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 40px; font-size: 14px; color: var(--text-2); }
.trust span { display: inline-flex; align-items: center; gap: 8px; }
.trust .ic { color: var(--accent-hi); }

/* Hiukkaset: hyvin hennot */
.particles { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.particles i { position: absolute; bottom: -10px; border-radius: 50%; background: rgba(220, 230, 255, .45); animation: rise var(--dur) linear var(--delay) infinite; }
[data-theme="light"] .particles i { background: rgba(47, 98, 230, .28); }
@keyframes rise {
  0% { transform: translate(0, 0); opacity: 0; }
  10% { opacity: .8; }
  90% { opacity: .5; }
  100% { transform: translate(var(--x), -760px); opacity: 0; }
}

/* Vaihtuva sana */
.rotator { display: block; position: relative; min-height: 1.05em; }
.rot-word { display: inline-block; }
.rot-word.rot-in { animation: rotIn .45s var(--ease); }
.rot-word.rot-out { animation: rotOut .3s ease forwards; }
@keyframes rotIn { from { opacity: 0; transform: translateY(.4em); filter: blur(6px); } }
@keyframes rotOut { to { opacity: 0; transform: translateY(-.35em); filter: blur(6px); } }

/* ---------- Osiot ja otsikot ---------- */
.section { position: relative; padding: clamp(76px, 9vw, 120px) 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-alt + .section-alt { border-top: 0; }
.section-tight { padding-top: 0; }
.sec-head { margin-bottom: 48px; max-width: 720px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head.center p { margin-left: auto; margin-right: auto; }
.sec-head p { color: var(--muted); max-width: 620px; font-size: 17px; line-height: 1.7; margin: 0; }
.sec-head h2 + p { margin-top: 14px; }
.sec-title { font-size: clamp(30px, 3.5vw, 46px); font-weight: 800; letter-spacing: -.035em; line-height: 1.06; margin: 0; }
.sec-title .sl { display: inline-block; color: var(--accent-hi); opacity: .55; font-weight: 600; margin-right: 12px; letter-spacing: -.08em; }
.sec-title .accent { color: var(--accent-hi); display: block; }
.sec-title.inline .accent { display: inline; }
.sec-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; max-width: none; }
.loc-lead { color: var(--muted); font-size: 17px; line-height: 1.7; margin: 16px 0 26px; }

@media (min-width: 1025px) {
  /* Otsikko vasemmalla, kuvaus oikealla */
  .sec-head:not(.center):not(.sec-row):has(> p) {
    max-width: none; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; align-items: end;
  }
  .sec-head:not(.center):not(.sec-row):has(> p) > p { margin: 0 0 6px; justify-self: end; max-width: 470px; }
  .picker-wrap .sec-head:has(> p) { display: block; }
  .picker-wrap .sec-head:has(> p) > p { margin-top: 14px; justify-self: auto; }
}

/* ---------- Pelikaruselli ---------- */
.marquee-sec { position: relative; padding: 4px 0 0; overflow: hidden; }
.marquee {
  overflow: hidden; padding: 6px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; gap: 12px; width: max-content; animation: marquee 80s linear infinite; }
.marquee.reverse .marquee-track { animation-direction: reverse; animation-duration: 90s; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - 6px)); } }
.mq-item {
  position: relative; flex: none; width: 220px; aspect-ratio: 460 / 215; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--border); background: var(--surface);
  transition: transform .3s var(--ease), border-color .2s, box-shadow .3s;
}
.mq-item img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.7) brightness(.7); transition: filter .35s, transform .5s var(--ease); }
[data-theme="light"] .mq-item img { filter: saturate(.85) brightness(.95); }
.mq-item span {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 10px 7px;
  font-size: 12.5px; font-weight: 600; color: #fff;
  background: linear-gradient(0deg, rgba(0, 0, 0, .85), transparent);
  transform: translateY(100%); transition: transform .3s var(--ease);
}
.mq-item:hover { transform: translateY(-3px); border-color: var(--border-2); box-shadow: var(--shadow); z-index: 1; }
.mq-item:hover img { filter: none; transform: scale(1.05); }
.mq-item:hover span { transform: none; }

/* ---------- Pelivalitsin ---------- */
.picker-wrap { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.picker-wrap .sec-head { margin: 0; }
.picker-bar { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.picker-label { font-family: var(--fd); font-size: 11px; font-weight: 700; letter-spacing: .14em; color: var(--muted); }
.picker { position: relative; }
.picker-btn {
  display: flex; align-items: center; gap: 12px;
  min-width: 320px; height: 54px; padding: 0 14px 0 8px;
  background: var(--surface); border: 1px solid var(--border-2); border-radius: 14px;
  font-family: var(--fd); font-weight: 700; font-size: 15px; color: var(--text);
  text-align: left; box-shadow: var(--edge);
  transition: border-color .2s, box-shadow .2s;
}
.picker-btn:hover, .picker-btn[aria-expanded="true"] { border-color: var(--accent-line); box-shadow: 0 0 0 4px var(--accent-soft); }
.picker-btn img { width: 64px; height: 36px; border-radius: 8px; object-fit: cover; }
.picker-btn span { flex: 1; }
.picker-btn .chev { opacity: .55; transition: transform .2s; }
.picker-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.picker-pop {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 20;
  width: 360px; padding: 8px;
  background: var(--surface); border: 1px solid var(--border-2);
  border-radius: 16px; box-shadow: var(--shadow-lg);
}
.picker-pop:not([hidden]) { animation: popDown .2s ease both; transform-origin: top right; }
.picker-search { display: flex; align-items: center; gap: 8px; padding: 0 12px; height: 42px; margin-bottom: 6px; border-radius: 10px; background: var(--surface-2); color: var(--muted); }
.picker-search input { flex: 1; border: 0; background: none; outline: none; color: var(--text); font: inherit; font-size: 14px; }
.picker-list { list-style: none; margin: 0; padding: 0; max-height: 340px; overflow-y: auto; }
.picker-list li { display: flex; align-items: center; gap: 11px; padding: 6px 8px; border-radius: 9px; font-size: 14px; cursor: pointer; color: var(--text-2); }
.picker-list li img { border-radius: 5px; width: 46px; height: 24px; object-fit: cover; }
.picker-list li:hover { background: var(--surface-2); color: var(--text); }
.picker-list li[aria-selected="true"] { background: var(--accent-soft); color: var(--text); font-weight: 600; }
.picker-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 2px; font-size: 13.5px; font-weight: 600; color: var(--accent-hi); }
.picker-more .ic { width: 15px; height: 15px; transition: transform .2s; }
.picker-more:hover .ic { transform: translateX(3px); }

/* ---------- Kortit: yhteinen pohja ---------- */
.plan, .why, .bx, .svc, .step, .feat-card, .game-card, .review, .loc-card, .faq-box, .faq-item,
.rs, .contact-card, .rec-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--edge);
}
/* Kursoria seuraava hento valo */
.plan::before, .why::before, .bx::before, .svc::before, .step::before, .feat-card::before,
.game-card::before, .review::before, .loc-card::before, .faq-box::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 2;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, .04), transparent 60%);
  opacity: 0; transition: opacity .35s ease;
}
[data-theme="light"] .plan::before, [data-theme="light"] .why::before, [data-theme="light"] .bx::before,
[data-theme="light"] .svc::before, [data-theme="light"] .step::before, [data-theme="light"] .feat-card::before,
[data-theme="light"] .game-card::before, [data-theme="light"] .review::before { background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(47, 98, 230, .04), transparent 60%); }
.plan:hover::before, .why:hover::before, .bx:hover::before, .svc:hover::before, .step:hover::before, .feat-card:hover::before,
.game-card:hover::before, .review:hover::before, .loc-card:hover::before, .faq-box:hover::before { opacity: 1; }

/* ---------- Pakettikortit ---------- */
.plans { display: grid; gap: 16px; align-items: stretch; }
.plans-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.plans-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 1180px; margin: 0 auto; }
.plans-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 980px; margin: 0 auto; }

.plan {
  display: flex; flex-direction: column;
  padding: 22px;
  border-radius: var(--r);
  transition: transform .3s var(--ease), border-color .2s, box-shadow .3s;
}
.plan:hover { transform: translateY(-4px); border-color: var(--border-2); box-shadow: var(--shadow); }
.plan.is-popular { border-color: var(--accent-line); box-shadow: var(--edge), 0 0 0 1px var(--accent-line), var(--shadow); }
.plan.is-popular:hover { box-shadow: var(--edge), 0 0 0 1px var(--accent-line), var(--shadow-lg); }

.plan-banner {
  position: relative; overflow: hidden;
  margin: -22px -22px 18px; height: 118px;
  border-radius: calc(var(--r) - 1px) calc(var(--r) - 1px) 0 0;
  background: var(--surface-2);
}
.plan-banner img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.03); filter: saturate(.85);
  transition: transform .8s var(--ease), filter .4s;
}
.plan:hover .plan-banner img { transform: scale(1.1); filter: saturate(1); }
.plan-banner::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6, 8, 12, .05) 0%, rgba(6, 8, 12, .3) 50%, var(--surface) 100%);
}
.plan-tier {
  position: absolute; left: 14px; bottom: 10px; z-index: 1;
  font-family: var(--fd); font-size: 12px; font-weight: 800; letter-spacing: .1em;
  padding: 4px 10px; border-radius: 7px;
  background: rgba(8, 9, 13, .72); color: #fff;
  border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.plan-level { position: absolute; right: 14px; bottom: 16px; z-index: 1; display: flex; gap: 3px; }
.plan-level i { width: 12px; height: 4px; border-radius: 3px; background: rgba(255, 255, 255, .22); }
.plan-level i.on { background: var(--accent-hi); }
[data-theme="light"] .plan-level i { background: rgba(13, 18, 32, .15); }
[data-theme="light"] .plan-level i.on { background: var(--accent); }

.plan-badge {
  position: absolute; top: 12px; right: 12px; z-index: 3;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 11px; border-radius: 100px;
  font-family: var(--fd); font-size: 11.5px; font-weight: 700; letter-spacing: .01em;
  color: #fff; white-space: nowrap;
  background: var(--accent); border: 1px solid rgba(255, 255, 255, .18);
  box-shadow: 0 4px 14px -4px rgba(0, 0, 0, .5);
}
.plan-badge.rec-badge { display: none; background: #1f7a4a; }
.rec-badge .ic { width: 13px; height: 13px; }
.plan.is-rec { border-color: rgba(108, 207, 147, .45); box-shadow: var(--edge), 0 0 0 1px rgba(108, 207, 147, .45), var(--shadow); }
.plan.is-rec .plan-badge.rec-badge { display: inline-flex; animation: badgeIn .45s cubic-bezier(.3, 1.4, .5, 1) both; }
.plan.is-rec .plan-badge:not(.rec-badge) { display: none; }
@keyframes badgeIn { from { opacity: 0; transform: translateY(-4px) scale(.85); } }

.plan-top { margin-bottom: 2px; }
.plan-ram { font-size: 30px; font-weight: 800; letter-spacing: -.035em; margin-bottom: 4px; }
.plan-ram small { font-size: 16px; color: var(--muted); font-weight: 600; letter-spacing: 0; }
.plan-desc { font-size: 14px; color: var(--muted); min-height: 42px; margin-bottom: 18px; line-height: 1.5; }

.plan-group {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--fd); font-size: 10.5px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  margin: 0 0 12px;
}
.plan-group::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.plan-feats { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 9px; align-content: start; flex: 1; }
.plan-feats li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.45; color: var(--text-2); }
.plan-feats .ic { width: 16px; height: 16px; margin-top: 2px; }
.plan-feats .tick { color: var(--good); }
.plan-feats .fic { color: var(--accent-hi); }
.plan-group + .plan-feats { flex: none; }
.feats-game { margin-bottom: 20px; }
.feats-game li { color: var(--text); font-weight: 500; }
.plan-game .plan-feats:last-of-type { flex: 1; }

.plan-bottom { border-top: 1px solid var(--border); padding-top: 18px; }
.plan-price { display: flex; align-items: baseline; gap: 3px; font-family: var(--fd); }
.plan-price b { font-size: 30px; font-weight: 800; color: var(--text); letter-spacing: -.035em; }
.plan-price span { color: var(--muted); font-size: 14.5px; font-weight: 500; }
.plan-billed { font-size: 12.5px; color: var(--muted); margin: 2px 0 16px; }

/* VPS, webhotelli ja botit */
.plan-box { padding-top: 0; }
.plan-box .plan-banner { margin: 0 -22px; height: 104px; }
.plan-box .plan-banner img { filter: saturate(.7); }
.plan-icon {
  position: relative; z-index: 2;
  width: 52px; height: 52px; margin-top: -30px; margin-bottom: 14px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--surface-2); color: var(--accent-hi);
  border: 1px solid var(--border-2);
  box-shadow: 0 0 0 5px var(--surface), 0 8px 18px -6px rgba(0, 0, 0, .5);
}
[data-theme="light"] .plan-icon { box-shadow: 0 0 0 5px #fff, 0 8px 18px -8px rgba(13, 18, 32, .2); }
.plan-icon .ic { width: 24px; height: 24px; }
.plan-name { font-size: 21px; font-weight: 800; margin-bottom: 2px; letter-spacing: -.01em; }
.plan-sub { font-size: 11.5px; font-weight: 600; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; }
.plan-price.big { margin: 14px 0 18px; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.plan-price.big b { font-size: 34px; }
.plan-box .plan-feats li { font-size: 14px; }

.tag-ddr { font-style: normal; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; padding: 1px 6px; border-radius: 4px; margin-left: 4px; background: var(--surface-3); color: var(--text-2); }
.tag-ddr.ddr4 { background: rgba(167, 139, 250, .14); color: #c4b5fd; }
[data-theme="light"] .tag-ddr.ddr4 { color: #6d28d9; background: #f1ecff; }

.plans-note { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 28px 0 0; font-size: 14px; color: var(--muted); text-align: center; }
.plans-note .ic { width: 16px; height: 16px; color: var(--good); }

/* Kytkin (Budget/Premium, Python/Node) */
.switch {
  position: relative;
  display: grid; grid-template-columns: 1fr 1fr; width: max-content; margin: 0 auto 14px;
  padding: 4px; border-radius: 100px; gap: 4px;
  background: var(--surface-2); border: 1px solid var(--border-2);
}
.switch-pill {
  position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 6px);
  border-radius: 100px; background: var(--surface-3);
  box-shadow: inset 0 0 0 1px var(--border-2), 0 4px 12px -4px rgba(0, 0, 0, .5);
  transition: transform .4s var(--ease);
}
[data-theme="light"] .switch-pill { background: #fff; box-shadow: 0 1px 3px rgba(13, 18, 32, .12), 0 0 0 1px var(--border); }
.switch[data-on="1"] .switch-pill { transform: translateX(calc(100% + 4px)); }
.switch button {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 22px; border: 0; border-radius: 100px;
  background: none; color: var(--muted);
  font-family: var(--fd); font-weight: 700; font-size: 15px;
  transition: color .3s;
}
.switch button small { font-size: 11px; font-weight: 700; opacity: .7; letter-spacing: .05em; }
.switch button.on { color: var(--text); }
.switch-note { text-align: center; color: var(--muted); font-size: 14.5px; margin: 0 0 40px; }
.rt-dot { width: 10px; height: 10px; border-radius: 50%; }
.rt-dot.py { background: linear-gradient(135deg, #3776ab 50%, #ffd43b 50%); }
.rt-dot.js { background: #5fa04e; }

/* ---------- Näin se toimii ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { padding: 26px; border-radius: var(--r); transition: transform .3s var(--ease), border-color .2s; }
.step:hover { transform: translateY(-3px); border-color: var(--border-2); }
.step-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.step-ic {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent-hi);
}
.step-ic .ic { width: 22px; height: 22px; }
.step-n { font-family: var(--fd); font-weight: 700; font-size: 13px; color: var(--muted); letter-spacing: .08em; padding: 4px 10px; border-radius: 100px; border: 1px solid var(--border-2); }
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; margin: 0; }

/* ---------- Palvelut (etusivu) ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.svc {
  display: flex; flex-direction: column; overflow: hidden; border-radius: var(--r);
  transition: transform .3s var(--ease), border-color .2s, box-shadow .3s;
}
.svc:hover { transform: translateY(-4px); border-color: var(--border-2); box-shadow: var(--shadow); }
.svc-img { position: relative; height: 150px; overflow: hidden; background: var(--surface-2); }
.svc-img img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.7); transition: transform .8s var(--ease), filter .4s; }
.svc:hover .svc-img img { transform: scale(1.06); filter: saturate(.95); }
.svc-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, var(--surface) 100%); }
.svc-body { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; padding: 0 24px 22px; margin-top: -26px; }
.svc-top { display: flex; align-items: flex-end; gap: 14px; margin-bottom: 14px; }
.svc-top .why-ic { box-shadow: 0 0 0 5px var(--surface); }
.svc h3 { font-size: 21px; margin: 0 0 4px; }
.svc p { color: var(--muted); font-size: 15px; flex: 1; }
.svc-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; border-top: 1px solid var(--border); }
.svc-price { font-size: 14px; color: var(--muted); }
.svc-price b { font-family: var(--fd); font-size: 21px; font-weight: 800; letter-spacing: -.03em; color: var(--text); }
.svc-go {
  width: 38px; height: 38px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--border-2); color: var(--text);
  transition: background-color .2s, color .2s, transform .3s var(--ease);
}
.svc-go .ic { width: 16px; height: 16px; }
.svc:hover .svc-go, .bx-fi:hover .svc-go { background: var(--text); color: var(--bg); border-color: var(--text); transform: translateX(2px); }

/* ---------- Ikonilaatikko ---------- */
.why-ic {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; flex: none;
  background: var(--surface-2); border: 1px solid var(--border-2); color: var(--accent-hi);
}
.why-ic .ic { width: 22px; height: 22px; }

/* Miksi me -kortit (webhotelli) */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.why { padding: 26px; border-radius: var(--r); transition: border-color .2s, transform .3s var(--ease); }
.why:hover { border-color: var(--border-2); transform: translateY(-3px); }
.why-top { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.why h3 { font-size: 18px; margin: 0; }
.why p { color: var(--muted); font-size: 15px; margin: 0; }

/* ---------- Miksi me: ruudukko (etusivu) ---------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(196px, auto); gap: 16px; }
.bx {
  display: flex; flex-direction: column; overflow: hidden;
  padding: 26px; border-radius: var(--r);
  transition: border-color .2s, transform .3s var(--ease);
}
.bx:hover { border-color: var(--border-2); }
.bx h3 { font-size: 17.5px; margin: 20px 0 6px; }
.bx p { color: var(--muted); font-size: 14.5px; margin: 0; line-height: 1.6; }
.bx-num { display: block; font-family: var(--fd); font-weight: 800; letter-spacing: -.045em; line-height: 1; color: var(--text); font-size: clamp(40px, 4.4vw, 60px); white-space: nowrap; }
.bx-text h3 { margin-top: 14px; font-size: 19px; }

.bx-ddos { grid-column: span 2; grid-row: span 2; justify-content: flex-end; min-height: 408px; }
.bx-ddos .bx-num { font-size: clamp(52px, 6vw, 84px); }
.bx-ddos .bx-text { max-width: 420px; }
.bx-ddos::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(70% 60% at 85% 10%, rgba(110, 145, 230, .1), transparent 70%);
}
.bx-rings { position: absolute; right: -90px; top: -90px; width: 400px; height: 400px; display: grid; place-items: center; pointer-events: none; }
.bx-rings i { position: absolute; border-radius: 50%; border: 1px solid var(--accent-line); animation: ringBreath 6s ease-in-out infinite; }
.bx-rings i:nth-child(1) { inset: 120px; opacity: .9; }
.bx-rings i:nth-child(2) { inset: 70px; opacity: .55; animation-delay: .6s; }
.bx-rings i:nth-child(3) { inset: 20px; opacity: .3; animation-delay: 1.2s; }
.bx-rings span {
  position: relative; width: 72px; height: 72px; border-radius: 20px; display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--accent-line); color: var(--accent-hi);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .6);
}
.bx-rings span .ic { width: 32px; height: 32px; }
@keyframes ringBreath { 50% { transform: scale(1.04); } }

.bx-net { grid-column: span 2; flex-direction: row; align-items: flex-end; gap: 28px; }
.bx-net .bx-text { flex: 1; min-width: 0; }
.bx-bars { display: flex; align-items: flex-end; gap: 6px; height: 120px; flex: none; }
.bx-bars i {
  width: 8px; border-radius: 4px; background: linear-gradient(180deg, var(--accent-hi), rgba(142, 176, 255, .15));
  height: 40%; transform-origin: bottom; opacity: .75;
  animation: barFlow 2.4s ease-in-out infinite;
}
.bx-bars i:nth-child(2n) { animation-duration: 2.9s; height: 62%; }
.bx-bars i:nth-child(3n) { animation-duration: 2.1s; height: 85%; }
.bx-bars i:nth-child(4n) { animation-duration: 3.3s; height: 52%; }
.bx-bars i:nth-child(5n) { height: 100%; }
.bx-bars i:nth-child(1) { animation-delay: -.2s; } .bx-bars i:nth-child(2) { animation-delay: -1.1s; }
.bx-bars i:nth-child(3) { animation-delay: -.6s; } .bx-bars i:nth-child(4) { animation-delay: -1.7s; }
.bx-bars i:nth-child(5) { animation-delay: -.9s; } .bx-bars i:nth-child(6) { animation-delay: -2.2s; }
.bx-bars i:nth-child(7) { animation-delay: -.4s; } .bx-bars i:nth-child(8) { animation-delay: -1.4s; }
.bx-bars i:nth-child(9) { animation-delay: -2s; } .bx-bars i:nth-child(10) { animation-delay: -.7s; }
.bx-bars i:nth-child(11) { animation-delay: -1.9s; } .bx-bars i:nth-child(12) { animation-delay: -1.2s; }
@keyframes barFlow { 50% { transform: scaleY(.45); } }
[data-theme="light"] .bx-bars i { background: linear-gradient(180deg, var(--accent), rgba(47, 98, 230, .12)); }

.bx-wide { grid-column: span 2; flex-direction: row; align-items: center; gap: 20px; }
.bx-wide h3 { margin-top: 0; }
.bx-fi .flag-fi { width: 54px; height: 36px; border-radius: 6px; }
.bx-fi > div { flex: 1; min-width: 0; }

/* ---------- Sijainti ---------- */
.loc { display: grid; grid-template-columns: 1fr 1.12fr; gap: 56px; align-items: center; }
.loc-card { padding: 24px; border-radius: var(--r); }
.loc-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.loc-head small { color: var(--muted); font-size: 13px; max-width: 260px; line-height: 1.45; }
.loc-row { display: flex; align-items: center; gap: 16px; padding: 16px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); }
.flag-fi {
  width: 42px; height: 28px; border-radius: 5px; flex: none;
  background:
    linear-gradient(90deg, transparent 32%, #003580 32%, #003580 46%, transparent 46%),
    linear-gradient(0deg, transparent 39%, #003580 39%, #003580 61%, transparent 61%),
    #fff;
  box-shadow: 0 0 0 1px var(--border-2);
}
.loc-row div { flex: 1; }
.loc-row b { display: block; font-family: var(--fd); font-size: 16.5px; }
.loc-row small { color: var(--muted); font-size: 13px; }
.ping-val { font-family: var(--fd); font-weight: 800; font-size: 20px; color: var(--muted); min-width: 64px; text-align: right; }
.ping-val.good { color: var(--good); }
.ping-val.ok { color: var(--warn); }
.ping-val.bad { color: var(--bad); }
.loc-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.loc-facts div { padding: 14px 16px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); }
.loc-facts b { display: block; font-family: var(--fd); font-size: 20px; font-weight: 800; letter-spacing: -.02em; color: var(--text); }
.loc-facts small { font-size: 12.5px; color: var(--muted); }
.loc-map { position: relative; width: 100%; }

/* Kartta (oma SVG) */
.map {
  position: relative; aspect-ratio: 800 / 662; border-radius: 24px; overflow: hidden;
  border: 1px solid var(--border-2); background: #0b0e16; box-shadow: var(--shadow-lg);
  --m-sea: #090c14; --m-dot: rgba(140, 160, 210, .08); --m-grid: rgba(140, 160, 210, .05);
  --m-land: #121725; --m-border: #26314a; --m-line: #8eb0ff;
  --m-label-bg: rgba(10, 12, 18, .9); --m-label-text: #dbe3f2; --m-label-border: rgba(255, 255, 255, .14);
}
[data-theme="light"] .map {
  background: #e8edf5;
  --m-sea: #e7ecf4; --m-dot: rgba(47, 98, 230, .08); --m-grid: rgba(47, 98, 230, .06);
  --m-land: #ffffff; --m-border: #c3cfe2; --m-line: #2f62e6;
  --m-label-bg: rgba(255, 255, 255, .96); --m-label-text: #1e293b; --m-label-border: #d3dbe8;
}
.map::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; box-shadow: inset 0 0 60px rgba(6, 8, 12, .6); }
[data-theme="light"] .map::after { box-shadow: inset 0 0 40px rgba(245, 246, 248, .7); }
.map.map-fallback { display: grid; place-items: center; color: var(--muted); }
.map svg { display: block; width: 100%; height: 100%; }
.m-sea { fill: var(--m-sea); }
.m-dot { fill: var(--m-dot); }
.m-grid { stroke: var(--m-grid); stroke-width: 1; fill: none; }
.m-land { fill: var(--m-land); stroke: var(--m-border); stroke-width: 1.2; stroke-linejoin: round; transition: fill .3s; }
.m-land:hover { fill: color-mix(in srgb, var(--m-land) 85%, #8eb0ff); }
.m-land.m-fi { fill: #1f2f52; stroke: #5d7fc4; stroke-width: 1.6; }
[data-theme="light"] .m-land.m-fi { fill: #cad8f4; stroke: #6b8fd6; }
.m-line { fill: none; stroke: var(--m-line); stroke-width: 1.6; stroke-linecap: round; opacity: .5; stroke-dasharray: 2 9; animation: dashFlow 1.2s linear infinite; }
@keyframes dashFlow { to { stroke-dashoffset: -22; } }
.m-pulse-dot { fill: #c6d5f7; }
[data-theme="light"] .m-pulse-dot { fill: #2f62e6; }
.m-city { fill: var(--m-sea); stroke: #8eb0ff; stroke-width: 2.5; }
[data-theme="light"] .m-city { stroke: #2f62e6; }
.m-label rect { fill: var(--m-label-bg); stroke: var(--m-label-border); stroke-width: 1; }
.m-label text { fill: var(--m-label-text); font-family: "Inter", sans-serif; font-size: 16.5px; font-weight: 600; }
.m-label-dc rect { fill: #eef2fb; stroke: none; }
.m-label-dc text { fill: #0d1220; font-family: var(--fd); font-weight: 700; }
[data-theme="light"] .m-label-dc rect { fill: #0d1220; }
[data-theme="light"] .m-label-dc text { fill: #fff; }
.m-dc-dot { fill: #8eb0ff; stroke: #fff; stroke-width: 3.5; }
[data-theme="light"] .m-dc-dot { fill: #2f62e6; }
.m-ring { fill: rgba(142, 176, 255, .22); transform-box: fill-box; transform-origin: center; animation: mapPing 2.4s ease-out infinite; }
.m-ring.r2 { animation-delay: 1.2s; }
@keyframes mapPing { from { transform: scale(1); opacity: .9; } to { transform: scale(4.2); opacity: 0; } }
.map .m-countries { transform-origin: 70% 50%; }
.loc-map.in .map .m-countries { animation: mapZoom 1.6s var(--ease) backwards; }
@keyframes mapZoom { from { transform: scale(1.08); opacity: 0; } }
.loc-map.in .map .m-arcs { animation: fadeUp .8s ease .6s backwards; }
.loc-map.in .map .m-cities, .loc-map.in .map .m-dc { animation: popIn .6s var(--ease) .9s backwards; }
.map-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 14px; font-size: 13px; color: var(--muted); }
.lg-dc { width: 12px; height: 12px; border-radius: 50%; background: var(--accent-hi); border: 2px solid #fff; }
.lg-line { width: 26px; height: 0; border-top: 2px dashed var(--accent-hi); margin-left: 8px; }

/* ---------- CTA ---------- */
.cta {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  padding: 60px 60px; border-radius: 28px;
  background:
    radial-gradient(55% 130% at 100% 0%, rgba(74, 124, 240, .28), transparent 60%),
    radial-gradient(40% 90% at 0% 100%, rgba(74, 124, 240, .1), transparent 60%),
    linear-gradient(135deg, #131828, #0b0e17);
  border: 1px solid rgba(255, 255, 255, .08);
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.cta::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(ellipse 60% 100% at 100% 50%, #000, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 100% at 100% 50%, #000, transparent 75%);
}
.cta h2 { font-size: clamp(28px, 3.4vw, 42px); font-weight: 800; letter-spacing: -.035em; margin-bottom: 12px; color: #fff; }
.cta p { color: rgba(225, 232, 245, .75); margin: 0; max-width: 560px; font-size: 17px; }
.cta .btn-pill { background: #fff; color: #0d1220; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .6); }
.cta .btn-pill:hover { transform: translateY(-2px); }
.cta .btn-pill .btn-circle { background: #0d1220; color: #fff; }

/* ---------- Arvostelut ---------- */
.reviews-wrap { display: grid; grid-template-columns: 340px 1fr; gap: 56px; align-items: start; }
.reviews-side p { color: var(--muted); margin-top: 16px; }
.reviews { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.review { margin: 0; padding: 26px; border-radius: var(--r); display: flex; flex-direction: column; }
.stars { display: flex; gap: 3px; color: #f2b84b; margin-bottom: 16px; }
.stars .ic { width: 16px; height: 16px; fill: currentColor; stroke: none; }
.review blockquote { margin: 0 0 22px; color: var(--text-2); font-size: 15.5px; line-height: 1.65; flex: 1; }
.review figcaption { display: flex; align-items: center; gap: 12px; padding-top: 18px; border-top: 1px solid var(--border); }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); color: var(--text); font-family: var(--fd); font-weight: 800; }
.review b { display: block; font-size: 14.5px; }
.review small { color: var(--muted); font-size: 13px; }
.review-hint { display: flex; gap: 10px; align-items: flex-start; margin-top: 20px; padding: 14px 16px; border-radius: 14px; border: 1px dashed var(--border-2); color: var(--muted); font-size: 13.5px; }
.review-hint .ic { margin-top: 2px; }

/* ---------- UKK ---------- */
.faq-wrap { display: grid; grid-template-columns: 380px 1fr; gap: 56px; align-items: start; }
.faq-side { position: sticky; top: 110px; }
.faq-box { margin-top: 28px; padding: 24px; border-radius: var(--r); }
.faq-box h3 { font-size: 19px; margin-bottom: 6px; }
.faq-box p { color: var(--muted); font-size: 15px; }
.faq-box .btn { margin-top: 2px; }
.faq { display: grid; gap: 10px; }
.faq-item { border-radius: 16px; transition: border-color .2s, background-color .2s; }
.faq-item[open] { border-color: var(--border-2); }
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 22px; font-family: var(--fd); font-weight: 700; font-size: 16.5px; letter-spacing: -.01em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-plus { position: relative; width: 28px; height: 28px; flex: none; border-radius: 50%; border: 1px solid var(--border-2); transition: background-color .2s, border-color .2s; }
.faq-plus::before, .faq-plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.5px; background: var(--text); transform: translate(-50%, -50%); transition: transform .25s var(--ease); }
.faq-plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-plus { background: var(--text); border-color: var(--text); }
.faq-item[open] .faq-plus::before, .faq-item[open] .faq-plus::after { background: var(--bg); }
.faq-item[open] .faq-plus::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-item.closing .faq-plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-body { overflow: hidden; }
.faq-body p { padding: 0 22px 20px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.7; max-width: 720px; }

/* ---------- Pelit-sivu ---------- */
.grid-tools { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  height: 38px; padding: 0 14px; border-radius: 100px;
  background: var(--surface); border: 1px solid var(--border-2); color: var(--text-2);
  font-size: 14px; font-weight: 500;
  transition: background-color .2s, color .2s, border-color .2s;
}
.chip:hover { color: var(--text); border-color: var(--muted); }
.chip.on { background: var(--text); border-color: var(--text); color: var(--bg); }
.chip-n { font-size: 11.5px; font-weight: 700; padding: 1px 7px; border-radius: 100px; background: var(--surface-3); color: var(--muted); }
.chip.on .chip-n { background: rgba(127, 127, 127, .2); color: var(--bg); }
.search {
  display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px; min-width: 260px;
  border-radius: 12px; background: var(--surface); border: 1px solid var(--border-2); color: var(--muted);
  transition: border-color .2s, box-shadow .2s;
}
.search:focus-within { border-color: var(--accent-line); box-shadow: 0 0 0 4px var(--accent-soft); }
.search input { flex: 1; border: 0; background: none; outline: none; color: var(--text); font: inherit; font-size: 14.5px; }

.game-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.game-card { overflow: hidden; border-radius: 16px; transition: transform .3s var(--ease), border-color .2s, box-shadow .3s; }
.game-card:hover { transform: translateY(-4px); border-color: var(--border-2); box-shadow: var(--shadow); }
.game-img { aspect-ratio: 460 / 215; overflow: hidden; background: var(--surface-2); }
.game-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.game-card:hover .game-img img { transform: scale(1.06); }
.game-info { padding: 14px 16px 16px; }
.game-info h3 { font-size: 15.5px; font-weight: 700; margin: 0 0 2px; padding-right: 38px; letter-spacing: -.01em; }
.game-info span { font-size: 13.5px; color: var(--muted); }
.game-info b { color: var(--text); font-weight: 600; }
.game-go {
  position: absolute; right: 14px; bottom: 18px; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--border-2); color: var(--text-2);
  transition: background-color .2s, color .2s, transform .3s var(--ease);
}
.game-go .ic { width: 14px; height: 14px; }
.game-card:hover .game-go { background: var(--text); color: var(--bg); border-color: var(--text); transform: translateX(2px); }
.empty { color: var(--muted); grid-column: 1 / -1; text-align: center; padding: 40px 0; }

/* ---------- Tuotesivujen ominaisuudet ---------- */
.feat-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.feat-strip > div {
  display: flex; align-items: center; gap: 12px; padding: 16px 18px;
  border-radius: 14px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--edge);
}
.feat-strip .ic { width: 20px; height: 20px; color: var(--accent-hi); }
.feat-strip b { display: block; font-size: 14px; font-family: var(--fd); font-weight: 700; line-height: 1.3; }

.feat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feat-card { padding: 24px; border-radius: var(--r); transition: border-color .2s, transform .3s var(--ease); }
.feat-card:hover { border-color: var(--border-2); transform: translateY(-3px); }
.feat-card .why-ic { margin-bottom: 18px; }
.feat-card h3 { font-size: 16.5px; margin: 0; line-height: 1.35; }

.table-wrap { overflow-x: auto; max-width: 920px; margin: 0 auto; border-radius: var(--r); }
.compare {
  width: 100%; border-collapse: separate; border-spacing: 0;
  border-radius: var(--r); overflow: hidden; border: 1px solid var(--border);
  background: var(--surface); font-size: 15px;
}
.compare th, .compare td { padding: 15px 20px; text-align: left; border-bottom: 1px solid var(--border); }
.compare thead th { background: var(--surface-2); font-family: var(--fd); font-weight: 700; }
.compare tr:last-child td { border-bottom: 0; }
.compare td:first-child { color: var(--muted); }
.compare .yes { color: var(--good); font-weight: 600; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-2); }
.check-list .ic { color: var(--good); margin-top: 4px; width: 17px; height: 17px; }
.code-card { border-radius: var(--r); overflow: hidden; background: var(--panel-bg); border: 1px solid rgba(255, 255, 255, .1); box-shadow: var(--shadow-lg); }
.code-card pre { margin: 0; padding: 22px 24px; overflow-x: auto; font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 13px; line-height: 1.8; color: var(--code); }
.code-card .k { color: #c4a7f5; }
.code-card .s { color: #a7d68f; }
.code-card .f { color: #8eb0ff; }
.code-card .c { color: #566580; }
.mock-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: #0f121b; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #3a4152; }
.mock-url { margin-left: 12px; padding: 3px 12px; border-radius: 6px; background: rgba(255, 255, 255, .05); font-size: 12px; color: #8b95a8; font-family: ui-monospace, Consolas, monospace; }

/* ---------- Pelin oma sivu ---------- */
.hero-game { padding: 168px 0 100px; }
.hero-game h1 { font-size: clamp(38px, 5vw, 64px); }
.hero-game h1 .accent { display: inline; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); margin-bottom: 22px; }
.crumbs a:hover { color: var(--text); }
.crumbs b { color: var(--text-2); font-weight: 500; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--border-2); font-size: 14px; color: var(--text-2); }
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta b { font-family: var(--fd); font-size: 18px; font-weight: 800; color: var(--text); }
.hero-meta .ic { color: var(--accent-hi); width: 16px; height: 16px; }

/* Paketinvalitsin */
.rec-wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: start; }
.rec-sliders { display: grid; gap: 14px; margin-top: 8px; }
.rs { padding: 18px 20px 14px; border-radius: 16px; transition: border-color .2s; }
.rs:hover, .rs:focus-within { border-color: var(--border-2); }
.rs-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.rs-top label { display: inline-flex; align-items: center; gap: 9px; font-family: var(--fd); font-weight: 700; font-size: 15.5px; }
.rs-top label .ic { color: var(--accent-hi); }
.rs-out { font-family: var(--fd); font-weight: 700; font-size: 14.5px; color: var(--text); padding: 5px 12px; border-radius: 9px; background: var(--surface-2); border: 1px solid var(--border-2); min-width: 64px; text-align: center; white-space: nowrap; }
.rs-out.bump { animation: bump .25s ease; }
@keyframes bump { 50% { transform: scale(1.06); } }
.rs-track { position: relative; padding: 8px 0; }
.rs input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 6px; margin: 0;
  border-radius: 6px; outline: none; cursor: pointer; background: transparent;
  background-image: linear-gradient(var(--accent-hi), var(--accent-hi)), linear-gradient(var(--surface-3), var(--surface-3));
  background-size: var(--p, 50%) 100%, 100% 100%;
  background-repeat: no-repeat;
}
[data-theme="light"] .rs input[type="range"] { background-image: linear-gradient(var(--accent), var(--accent)), linear-gradient(var(--surface-3), var(--surface-3)); }
.rs input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%;
  background: #fff; border: 4px solid var(--accent-hi);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .45);
  transition: transform .15s, box-shadow .2s;
}
[data-theme="light"] .rs input[type="range"]::-webkit-slider-thumb { border-color: var(--accent); box-shadow: 0 2px 6px rgba(13, 18, 32, .2); }
.rs input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 4px solid var(--accent-hi); box-shadow: 0 2px 8px rgba(0, 0, 0, .45); }
.rs input[type="range"]:hover::-webkit-slider-thumb { transform: scale(1.1); box-shadow: 0 0 0 6px var(--accent-soft), 0 2px 8px rgba(0, 0, 0, .45); }
.rs input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.18); }
.rs input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px var(--bg), 0 0 0 6px var(--accent-hi); }
.rs-scale { display: flex; justify-content: space-between; margin-top: 10px; font-size: 12px; color: var(--muted); }

.rec-result { position: sticky; top: 110px; }
.rec-card { padding: 28px; border-radius: 22px; border-color: rgba(108, 207, 147, .3); box-shadow: var(--edge), var(--shadow-lg); }
.rec-card::after { content: ""; position: absolute; left: 28px; right: 28px; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, rgba(108, 207, 147, .7), transparent); }
.rec-card.rec-swap { animation: recSwap .5s var(--ease); }
.rec-kicker { display: inline-flex; align-items: center; gap: 6px; font-family: var(--fd); font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--good); }
.rec-kicker .ic { width: 15px; height: 15px; }
.rec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 10px 0 14px; flex-wrap: wrap; }
.rec-head h3 { font-size: 32px; font-weight: 800; letter-spacing: -.035em; margin: 0; }
.rec-meter { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; margin-bottom: 18px; }
.rec-meter i { height: 6px; border-radius: 4px; background: var(--surface-3); transition: background-color .3s; }
.rec-meter i.on { background: var(--good); }
.rec-need { margin: 2px 0 18px; padding: 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); }
.rec-need-top { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.rec-need-top b { font-family: var(--fd); color: var(--text); font-size: 14px; }
.rec-need-bar { height: 6px; border-radius: 6px; background: var(--surface-3); overflow: hidden; }
.rec-need-bar i { display: block; height: 100%; border-radius: 6px; background: var(--good); transition: width .45s var(--ease); }
.rec-need-bar i.over { background: linear-gradient(90deg, var(--warn), var(--bad)); }
.rec-card .plan-feats { flex: none; margin-bottom: 16px; }
.rec-why { font-size: 13.5px; color: var(--muted); margin-bottom: 20px; }
.rec-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.rec-actions .btn { flex: 1; }

/* Vertailutaulukko */
.cmp-wrap { max-width: 1100px; }
.cmp { min-width: 760px; }
.cmp th, .cmp td { text-align: center; vertical-align: middle; }
.cmp td:first-child, .cmp th:first-child { text-align: left; white-space: nowrap; }
.cmp td:first-child { color: var(--text-2); }
.cmp td:first-child .ic { color: var(--accent-hi); width: 17px; height: 17px; vertical-align: -3px; margin-right: 6px; }
.cmp thead th { position: relative; padding-top: 28px; }
.cmp-name { display: block; font-family: var(--fd); font-size: 12.5px; font-weight: 800; letter-spacing: .12em; color: var(--muted); }
.cmp-price { display: block; font-family: var(--fd); font-size: 22px; font-weight: 800; letter-spacing: -.03em; color: var(--text); margin-top: 2px; }
.cmp-price small { font-size: 13px; color: var(--muted); font-weight: 500; }
.cmp .pop { background: var(--accent-soft); }
.cmp-badge { position: absolute; top: 6px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 10.5px; font-weight: 700; padding: 2px 9px; border-radius: 100px; color: #fff; background: var(--accent); }
.cmp .yes .ic { color: var(--good); width: 19px; height: 19px; }
.cmp tbody tr { transition: background-color .2s; }
.cmp tbody tr:hover { background: rgba(127, 127, 127, .04); }
.cmp-cta td { padding-top: 18px; padding-bottom: 18px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-3); border-top: 1px solid var(--border); }
.footer-main { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 48px; padding-top: 72px; padding-bottom: 48px; }
.footer-brand p { color: var(--muted); font-size: 14.5px; margin: 18px 0 22px; max-width: 380px; line-height: 1.7; }
.pay { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.pay span { padding: 5px 9px; border-radius: 7px; font-size: 11.5px; font-weight: 600; background: var(--surface); border: 1px solid var(--border); color: var(--text-2); }
.footer-mail { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); font-size: 14.5px; }
.footer-mail:hover { color: var(--text); }
.footer-col h4 { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.footer-col a { display: block; color: var(--text-2); font-size: 14.5px; padding: 5px 0; transition: color .15s, transform .2s var(--ease); }
.footer-col a:hover { color: var(--text); transform: translateX(2px); }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 26px; border-top: 1px solid var(--border); color: var(--muted); font-size: 13.5px; }
.footer-bottom a { color: var(--muted); margin-left: 14px; }
.footer-bottom a:hover { color: var(--text); }
.footer-loc { display: inline-flex; align-items: center; gap: 6px; }

.discord-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 40;
  width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center;
  background: #5865f2; color: #fff; box-shadow: 0 10px 26px -8px rgba(0, 0, 0, .7);
  transition: transform .25s var(--ease);
  animation: floatIn .6s cubic-bezier(.3, 1.4, .5, 1) .8s backwards;
}
.discord-float:hover { transform: translateY(-3px); }
.discord-float .ic { width: 27px; height: 27px; }
.discord-float .dot { position: absolute; top: -3px; right: -3px; width: 14px; height: 14px; border-radius: 50%; background: #3ecf7a; border: 3px solid var(--bg); }

.to-top {
  position: fixed; right: 29px; bottom: 90px; z-index: 40; width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center; color: var(--text);
  background: var(--surface-2); border: 1px solid var(--border-2); box-shadow: var(--shadow);
  opacity: 0; transform: translateY(12px) scale(.9); pointer-events: none;
  transition: opacity .25s, transform .3s cubic-bezier(.3, 1.4, .5, 1), border-color .2s;
}
.to-top .ic { transform: rotate(180deg); }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { border-color: var(--muted); }

.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 100; pointer-events: none; background: var(--accent-hi); opacity: .8; transform-origin: left; transform: scaleX(0); }

/* ---------- Pikahaku ---------- */
.cmdk { position: fixed; inset: 0; z-index: 200; display: grid; justify-items: center; align-items: start; padding: 12vh 16px 16px; }
.cmdk-backdrop { position: absolute; inset: 0; background: rgba(3, 5, 9, .6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fadeIn .2s ease; }
[data-theme="light"] .cmdk-backdrop { background: rgba(13, 18, 32, .28); }
.cmdk-box {
  position: relative; width: 100%; max-width: 620px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border-2); border-radius: 18px;
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, .8);
  animation: popDown .22s var(--ease);
}
.cmdk-input { display: flex; align-items: center; gap: 12px; padding: 0 18px; height: 60px; border-bottom: 1px solid var(--border); color: var(--muted); }
.cmdk-input .ic { width: 20px; height: 20px; }
.cmdk-input input { flex: 1; border: 0; outline: none; background: none; color: var(--text); font: inherit; font-size: 16.5px; }
.cmdk kbd, .cmdk-foot kbd { font-family: var(--fb); font-size: 11px; font-weight: 600; line-height: 1; padding: 4px 6px; border-radius: 6px; color: var(--muted); background: var(--surface-3); border: 1px solid var(--border-2); }
.cmdk-list { max-height: min(56vh, 440px); overflow-y: auto; padding: 8px; }
.cmdk-group { font-family: var(--fd); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 10px 10px 6px; }
.cmdk-item { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 11px; color: var(--text-2); }
.cmdk-item img { width: 64px; height: 30px; object-fit: cover; border-radius: 6px; flex: none; }
.cmdk-ic { width: 64px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 6px; background: var(--surface-2); color: var(--accent-hi); }
.cmdk-txt { flex: 1; min-width: 0; }
.cmdk-txt b { display: block; font-size: 14.5px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmdk-txt small { font-size: 12.5px; color: var(--muted); }
.cmdk-go { width: 16px; height: 16px; opacity: 0; transform: translateX(-6px); transition: opacity .15s, transform .2s; }
.cmdk-item.on { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border-2); }
.cmdk-item.on .cmdk-go { opacity: 1; transform: none; }
.cmdk-empty { text-align: center; padding: 36px 16px; color: var(--muted); }
.cmdk-empty .ic { width: 32px; height: 32px; margin-bottom: 8px; opacity: .6; }
.cmdk-empty a { color: var(--accent-hi); font-weight: 600; }
.cmdk-foot { display: flex; align-items: center; gap: 6px; padding: 10px 16px; border-top: 1px solid var(--border); font-size: 12px; color: var(--muted); background: var(--surface-2); }
.cmdk-foot kbd { margin-left: 6px; }
.cmdk-foot kbd + kbd { margin-left: 2px; }
body.cmdk-open { overflow: hidden; }

/* ---------- Alasivut: yhteystiedot, ehdot, tietosuoja ---------- */
.doc { display: grid; grid-template-columns: 250px 1fr; gap: 56px; align-items: start; }
.doc-toc { position: sticky; top: 110px; padding: 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); }
.doc-toc b { display: block; font-family: var(--fd); font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 4px 10px 10px; }
.doc-toc a { display: block; padding: 6px 10px; border-radius: 8px; font-size: 14px; color: var(--text-2); }
.doc-toc a:hover { background: var(--surface-2); color: var(--text); }
.prose { max-width: 760px; color: var(--text-2); font-size: 16px; line-height: 1.75; }
.prose h2 { font-size: 23px; color: var(--text); margin: 40px 0 12px; scroll-margin-top: 110px; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 20px; margin: 0 0 1em; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--accent-hi); text-decoration: underline; text-underline-offset: 3px; }
.prose .fill { color: var(--warn); font-weight: 600; }
.doc-note { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; margin-bottom: 30px; border-radius: 14px; background: rgba(242, 184, 75, .07); border: 1px solid rgba(242, 184, 75, .3); color: var(--text-2); font-size: 14.5px; line-height: 1.6; }
.doc-note .ic { color: var(--warn); margin-top: 3px; }
.doc-updated { font-size: 13.5px; color: var(--muted); margin-top: 40px; }
.en-only-fi { display: none; }
html[lang="en"] .en-only-fi { display: flex; }

.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.contact-card { display: flex; flex-direction: column; padding: 28px; border-radius: var(--r); transition: transform .3s var(--ease), border-color .2s, box-shadow .3s; }
.contact-card:hover { transform: translateY(-4px); border-color: var(--border-2); box-shadow: var(--shadow); }
.contact-card.featured { border-color: rgba(88, 101, 242, .4); }
.contact-ic { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 20px; background: var(--surface-2); border: 1px solid var(--border-2); color: var(--accent-hi); }
.contact-card.featured .contact-ic { background: #5865f2; border-color: transparent; color: #fff; }
.contact-ic .ic { width: 24px; height: 24px; }
.contact-card h3 { font-size: 20px; margin-bottom: 6px; }
.contact-card p { color: var(--muted); font-size: 15px; flex: 1; }
.contact-card .meta { font-size: 12.5px; color: var(--good); font-weight: 600; margin-bottom: 14px; display: flex; align-items: center; gap: 7px; }
.contact-card .meta::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 3px var(--good-soft); }
.company-card { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.company-card div { padding: 16px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
.company-card small { display: block; font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 4px; }
.company-card b { font-family: var(--fd); font-weight: 700; }
.company-card b.fill-in { color: var(--warn); }

/* ---------- 404 ---------- */
.nf { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 140px 16px 80px; position: relative; overflow: hidden; isolation: isolate; }
.nf-code {
  position: relative; font-family: var(--fd); font-weight: 800; font-style: italic;
  font-size: clamp(110px, 22vw, 230px); line-height: .9; letter-spacing: -.05em;
  background: linear-gradient(180deg, #ffffff, #8ea9e6); -webkit-background-clip: text; background-clip: text; color: transparent;
}
[data-theme="light"] .nf-code { background: linear-gradient(180deg, #0d1220, #2f62e6); -webkit-background-clip: text; background-clip: text; }
.nf-code::before, .nf-code::after { content: attr(data-text); position: absolute; inset: 0; background: inherit; -webkit-background-clip: text; background-clip: text; }
.nf-code::before { animation: glitch 2.6s infinite steps(1); -webkit-text-fill-color: rgba(142, 176, 255, .6); }
.nf-code::after { animation: glitch 2.6s infinite steps(1) reverse; -webkit-text-fill-color: rgba(196, 167, 245, .5); }
@keyframes glitch {
  0%, 88%, 100% { clip-path: inset(0 0 100% 0); transform: none; }
  90% { clip-path: inset(20% 0 55% 0); transform: translate(-6px, 2px); }
  93% { clip-path: inset(60% 0 15% 0); transform: translate(6px, -2px); }
  96% { clip-path: inset(40% 0 35% 0); transform: translate(-3px, 1px); }
}
.nf h1 { font-size: clamp(26px, 3.4vw, 38px); margin: 16px 0 10px; }
.nf p { color: var(--muted); max-width: 520px; margin: 0 auto 28px; font-size: 17px; }
.nf .hero-actions { justify-content: center; }
.nf-console { max-width: 520px; margin: 34px auto 0; text-align: left; padding: 16px 18px; border-radius: 14px; background: var(--panel-bg); border: 1px solid rgba(255, 255, 255, .1); color: var(--code); font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 13px; line-height: 1.8; }
.nf-console .c-warn { color: #f2b84b; }
.nf-console .c-info { color: #8eb0ff; }

/* ---------- Animaatiot ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes heroIn { from { opacity: 0; scale: 1.08; } }
@keyframes popIn { from { opacity: 0; transform: translateY(14px) scale(.98); } }
@keyframes popDown { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
@keyframes recSwap { 0% { opacity: .3; transform: translateY(8px) scale(.985); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes floatIn { from { opacity: 0; transform: translateY(30px) scale(.8); } }

/* Paljastus vieritettäessä (animaatio vain alkuun, jotta hover toimii sen jälkeen) */
.reveal { opacity: 0; }
.reveal.in { opacity: 1; animation: fadeUp .8s var(--ease) var(--d, 0ms) backwards; }

/* Hero: porrastettu sisääntulo */
.hero-content > *, .hero-stats { animation: fadeUp .85s var(--ease) backwards; }
.hero-content > :nth-child(1) { animation-delay: .05s; }
.hero-content > :nth-child(2) { animation-delay: .12s; }
.hero-content > :nth-child(3) { animation-delay: .2s; }
.hero-content > :nth-child(4) { animation-delay: .28s; }
.hero-content > :nth-child(5) { animation-delay: .36s; }
.hero-content > :nth-child(6) { animation-delay: .44s; }
.hero-stats { animation-delay: .5s; }
.hero-art img { animation: heroIn 1.8s var(--ease) backwards; will-change: transform; }

.pop-in { animation: popIn .55s var(--ease) calc(var(--i, 0) * 55ms) backwards; }
.mobile-menu:not([hidden]) { animation: popDown .25s ease both; }

body { animation: pageIn .45s ease both; }
@keyframes pageIn { from { opacity: 0; } }
html.leaving body { opacity: 0; transform: translateY(-6px); transition: opacity .18s ease, transform .18s ease; }

.theme-anim *, .theme-anim *::before, .theme-anim *::after {
  transition: background-color .35s ease, color .35s ease, border-color .35s ease, fill .35s ease !important;
}

/* ---------- Responsiivisuus ---------- */
@media (max-width: 1280px) {
  .hide-lg { display: none; }
}
@media (max-width: 1200px) {
  .nav-links { display: none; }
  .burger { display: inline-flex; }
  .nav-actions { margin-left: auto; }

  /* Paketit vierekkäin vieritettävänä rivinä */
  .plans-5 {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(270px, 300px);
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
    margin: -8px -28px 0; padding: 8px 28px 18px; scroll-padding: 0 28px;
    scrollbar-width: thin; scrollbar-color: var(--border-2) transparent;
  }
  .plans-5 > .plan { scroll-snap-align: start; }
  .plans-5 .plan:hover { transform: none; }
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .game-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-stats > div { padding: 18px 20px; }
}
@media (max-width: 1100px) {
  .plans-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 760px; }
}
@media (max-width: 1024px) {
  .hide-md { display: none; }
  .why-grid, .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .svc-grid .svc:last-child { grid-column: span 2; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bx-ddos { grid-row: auto; min-height: 340px; }
  .loc, .split { grid-template-columns: 1fr; gap: 40px; }
  .reviews-wrap, .faq-wrap, .rec-wrap, .doc { grid-template-columns: 1fr; gap: 32px; }
  .doc-toc, .rec-result, .faq-side { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
  .company-card { grid-template-columns: 1fr 1fr; }
  .footer-main { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .hero-art { inset: 0 0 0 30%; }
  .hero-photo { inset: 0; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-stats > div:nth-child(3) { border-left: 0; }
  .hero-stats > div:nth-child(n+3) { border-top: 1px solid var(--border); }
}
@media (max-width: 760px) {
  .container { padding: 0 16px; }
  .section { padding: 68px 0; }
  .section-tight { padding-top: 0; }
  .sec-head { margin-bottom: 32px; }
  .hero { padding: 128px 0 56px; }
  .hero-home { min-height: 0; display: block; padding: 128px 0 48px; }
  .hero-game { padding: 128px 0 60px; }
  .hero-sm { padding-bottom: 48px; }
  .hero p.lead { font-size: 16.5px; }
  .hero-art:not(.hero-photo) { display: none; }
  .hero-photo img { object-position: 70% center; }
  .hero-photo::after {
    background:
      linear-gradient(180deg, rgba(var(--bg-rgb), .7) 0%, rgba(var(--bg-rgb), .82) 45%, rgb(var(--bg-rgb)) 100%);
  }
  .hero-stats { margin-top: 40px; }
  .hero-stats > div { padding: 14px 16px; }
  .hero-stats span { font-size: 12.5px; }
  .plans-5 { margin: -8px -16px 0; padding: 8px 16px 16px; scroll-padding: 0 16px; grid-auto-columns: min(84vw, 320px); }
  .plans-4, .plans-3 {
    max-width: none; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(84vw, 320px);
    overflow-x: auto; scroll-snap-type: x mandatory; margin: -8px -16px 0; padding: 8px 16px 16px; scroll-padding: 0 16px;
    scrollbar-width: none;
  }
  .plans-4 > .plan, .plans-3 > .plan { scroll-snap-align: start; }
  .plans-5 { scrollbar-width: none; }
  .steps, .svc-grid, .why-grid, .reviews { grid-template-columns: 1fr; }
  .svc-grid .svc:last-child { grid-column: auto; }
  .bento { grid-template-columns: 1fr; }
  .bx, .bx-ddos, .bx-net, .bx-wide { grid-column: auto; grid-row: auto; }
  .bx-ddos { min-height: 320px; }
  .bx-rings { right: -130px; top: -130px; }
  .bx-net { flex-direction: column; align-items: stretch; }
  .bx-bars { height: 64px; justify-content: space-between; }
  .bx-wide { flex-wrap: wrap; }
  .game-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .feat-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .feat-card { padding: 18px; }
  .feat-card h3 { font-size: 15px; }
  .feat-strip { grid-template-columns: 1fr 1fr; }
  .mq-item { width: 160px; border-radius: 10px; }
  .marquee-track { gap: 10px; }
  .cta { padding: 38px 24px; border-radius: 22px; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 32px; padding-top: 56px; }
  .footer-bottom a { margin: 0 12px 0 0; }
  .footer-bottom > span:first-child { display: flex; flex-wrap: wrap; gap: 4px 12px; }
  .picker-btn { min-width: 0; width: 100%; }
  .picker, .picker-bar { width: 100%; }
  .picker-pop { width: 100%; }
  .search { min-width: 0; width: 100%; }
  .switch button { padding: 0 14px; font-size: 14px; }
  .rs { padding: 14px 14px 10px; }
  .rec-head h3 { font-size: 26px; }
  .loc-head small { max-width: none; }
  .hide-sm { display: none; }
  .nav { padding: 0 10px 0 14px; gap: 10px; }
  .logo-text { font-size: 16px; }
  .to-top { right: 18px; bottom: 76px; }
  .discord-float { width: 50px; height: 50px; right: 14px; bottom: 14px; }

  .announce-inner { flex-wrap: wrap; gap: 10px 12px; padding-top: 12px; padding-bottom: 12px; }
  .announce-ic { display: none; }
  .announce-txt { flex: 1 1 calc(100% - 48px); }
  .announce-x { order: 2; align-self: flex-start; margin: -4px -6px 0 0; }
  .announce-btn { order: 3; }
}
@media (max-width: 520px) {
  .search-btn { display: none; }
  .mm-search {
    display: flex !important; align-items: center; gap: 10px; width: 100%; margin-bottom: 10px; padding: 12px 14px;
    border-radius: 12px; border: 1px solid var(--border-2); background: var(--surface-2); color: var(--muted); font: inherit; text-align: left;
  }
  .hero h1 { font-size: clamp(36px, 10.5vw, 44px); }
  .hero-actions .btn { flex: 1 1 auto; }
  .loc-facts { grid-template-columns: 1fr 1fr; }
  .loc-card { padding: 18px; }
}
@media (max-width: 420px) {
  .game-grid, .feat-grid, .feat-strip { grid-template-columns: 1fr; }
  .logo-text span { display: none; }
  .footer-main { grid-template-columns: 1fr; }
  .company-card { grid-template-columns: 1fr; }
}
@media (max-width: 360px) {
  .site-header .container { padding: 0 6px; }
  .nav { gap: 6px; padding: 0 8px 0 10px; }
  .nav-actions { gap: 5px; }
  .icon-btn { min-width: 34px; height: 34px; padding: 0 7px; }
  .lang-btn span { padding: 3px 5px; }
  .logo { gap: 7px; }
  .logo-text { font-size: 14px; }
  .logo-mark { width: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; animation: none !important; }
}
