/* Spatial hierarchy: separate sections, then lift cards above their surface. */
:root {
  --kv-canvas: #060b11;
  --kv-surface: #101c28;
  --kv-surface-raised: #182837;
  --kv-surface-border: #344c60;
  --kv-section-breath: 16px;
  --kv-seam-tone: #101923;
  --kv-card-gap: 24px;
}
:root body { background: var(--kv-canvas); }

/* Full-width sections retain the shared 1328px content frame. */
:root body main > :is(.section,.developer-section,.partners-section,.platforms,.related,.cta):where(:not(#crypto-checkout):not(#payment-method):not(.kv-support)),
:root body .affiliates-page > :is(.section,.af-bottom) {
  margin-top: 0;
  padding-top: calc(var(--kv-block-top,var(--kv-block-space,clamp(56px,5.6vw,80px))) + var(--kv-section-breath));
  padding-bottom: calc(var(--kv-block-bottom,var(--kv-block-space,clamp(56px,5.6vw,80px))) + var(--kv-section-breath));
  background: var(--kv-surface);
  border-block: 0;
}
:root body main > .catalog-vps {
  background: radial-gradient(ellipse at 12% 0,rgba(94,217,236,.075),transparent 58%),#0e1924;
  border-top-color: #315464;
}
:root body main > .catalog-dedicated {
  background: radial-gradient(ellipse at 12% 0,rgba(255,182,90,.085),transparent 58%),#19191e;
  border-top-color: #5d4b36;
}
:root body main > .catalog-rdp {
  background: radial-gradient(ellipse at 12% 0,rgba(183,154,255,.09),transparent 58%),#151829;
  border-top-color: #4d456b;
}
:root body main > :is(.network-section,.faq-section),
:root body .affiliates-page > :is(.af-rules,.af-materials,.af-faq) { background: #0b131e; }
:root body main > :is(.feature-section,.developer-section,.partners-section) {
  background: radial-gradient(ellipse at 85% 0,rgba(94,217,236,.045),transparent 60%),#13212d;
}
:root body main > .developer-section { --kv-block-space: 75px; }
:root body main > .related { --kv-block-space: 55px; }
:root body main > .platforms { background: #14232f; --kv-block-space: 38px; }
:root body main > .cta { background: #0b131d; --kv-block-top: 55px; --kv-block-bottom: 75px; }
:root body .affiliates-page > .af-bottom { --kv-block-space: 25px; }
:root body .footer { margin-top: 0; padding-top: 97px; border-top: 0; background: linear-gradient(180deg,var(--kv-seam-tone),transparent 40px),#080e14; }

/* Headings, controls and content form three distinct rows. */
:root body :is(.section-head,.af-section-heading,.partners-heading) { margin-bottom: 46px; }
:root body .billing-toolbar { margin-bottom: 36px; gap: 22px 32px; }
:root body :is(.plan-grid,.feature-grid,.guide-grid,.resource-grid,.related-grid,.af-benefit-grid) {
  gap: var(--kv-card-gap);
  row-gap: 32px;
}

/* Offer images keep their own service colour and animation. */
:root body .plan-card {
  background: linear-gradient(150deg,rgba(var(--service-rgb,94,217,236),.055),transparent 70%),#182633;
  border-color: rgba(var(--service-rgb,94,217,236),.4);
  box-shadow: 0 14px 32px #0004,inset 0 1px 0 #ffffff05;
}
:root body .plan-card.featured {
  background: linear-gradient(150deg,rgba(var(--service-rgb,94,217,236),.1),transparent 75%),#1b2b39;
  border-color: rgba(var(--service-rgb,94,217,236),.8);
}
:root body .plan-card:hover { border-color: var(--service-color,var(--cyan)); box-shadow: 0 20px 40px #0006; }
:root body .plan-content { padding-top: 25px; padding-bottom: 27px; }
:root body :is(.catalog-option-note,.plan-option-details) {
  margin-top: 32px;
  padding: 26px;
  background: #0a141f;
  border-color: #3a5060;
}
:root body .catalog-bottom { margin-top: 26px; padding-top: 23px; }

/* Repeated information cards remain distinct from the section behind them. */
:root body :is(.feature-card,.guide-card,.resource-card,.related-card,.af-benefit) {
  background: linear-gradient(145deg,#1b2c3b,#14222f);
  border-color: #3a5265;
  box-shadow: 0 12px 28px #0003;
}
:root body .feature-card.large { background: linear-gradient(145deg,#12333e,#0c202b); border-color: #355d6b; }
:root body :is(.feature-card,.resource-card,.related-card,.af-benefit):hover { border-color: #628295; }
:root body .how-grid { gap: 32px; }
:root body .how-step { background: #142330; border: 1px solid #344c5e; padding: 28px; }
:root body .how-step .step-number { position: static; margin-bottom: 24px; }

/* Configuration, checkout and support use the same panel depth. */
:root body .config-step { margin-bottom: 32px; background: #152432; border-color: #3a5265; }
:root body :is(.config-summary,.checkout-summary,.kv-support-panel,.kv-support-side-card) {
  background: #142330;
  border-color: #3a5265;
  box-shadow: 0 12px 30px #0003;
}
:root body .config-layout,:root body .checkout-layout,:root body .kv-support-grid { gap: 28px; }
:root body .kv-support-sidebar { gap: 24px; }
:root body .kv-support-messages { gap: 22px; }
:root body .kv-support-message { border-color: #3a5265; }

/* Long-form reading has clear chapter breaks without boxing every paragraph. */
:root body .article > section + section { border-top: 1px solid #344c5e; padding-top: 40px; margin-top: 48px; }
:root body .af-calculator { border-color: #435f73; box-shadow: 0 18px 44px #0004; }
:root body .af-results { background: #192d3a; border-color: #4a6c7e; }

/* Adjacent surfaces meet at one neutral tone, with no exposed canvas strip. */
:root body main > :is(.section,.developer-section,.partners-section,.platforms,.related,.cta):where(:not(#crypto-checkout):not(#payment-method):not(.kv-support)),
:root body .affiliates-page > :is(.section,.af-bottom) {
  position: relative;
  isolation: isolate;
}
:root body main > :is(.section,.developer-section,.partners-section,.platforms,.related,.cta):where(:not(#crypto-checkout):not(#payment-method):not(.kv-support))::before,
:root body main > :is(.section,.developer-section,.partners-section,.platforms,.related,.cta):where(:not(#crypto-checkout):not(#payment-method):not(.kv-support))::after,
:root body .affiliates-page > :is(.section,.af-bottom)::before,
:root body .affiliates-page > :is(.section,.af-bottom)::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 40px;
  pointer-events: none;
  z-index: -1;
}
:root body main > :is(.section,.developer-section,.partners-section,.platforms,.related,.cta):where(:not(#crypto-checkout):not(#payment-method):not(.kv-support))::before,
:root body .affiliates-page > :is(.section,.af-bottom)::before {
  top: 0;
  background: linear-gradient(180deg,var(--kv-seam-tone),transparent);
}
:root body main > :is(.section,.developer-section,.partners-section,.platforms,.related,.cta):where(:not(#crypto-checkout):not(#payment-method):not(.kv-support))::after,
:root body .affiliates-page > :is(.section,.af-bottom)::after {
  bottom: 0;
  background: linear-gradient(180deg,transparent,var(--kv-seam-tone));
}
:root body.motion-ready .reveal-pending {
  transition-duration: .55s;
  transition-timing-function: cubic-bezier(.22,1,.36,1);
}
:root body.motion-ready .reveal-pending:not(.plan-card):not(.is-visible) { transform: translateY(12px); }

@media(max-width:1100px) {
  :root { --kv-card-gap: 22px; }
  :root body :is(.config-layout,.checkout-layout,.kv-support-grid) { gap: 24px; }
}
@media(max-width:580px) {
  :root { --kv-section-breath: 12px; --kv-card-gap: 24px; }
  :root body main > .developer-section { --kv-block-space: 56px; }
  :root body main > .related { --kv-block-space: 40px; }
  :root body main > .platforms { --kv-block-space: 30px; }
  :root body main > .cta { --kv-block-top: 30px; --kv-block-bottom: 50px; }
  :root body .footer { padding-top: 74px; }
  :root body :is(.section-head,.af-section-heading,.partners-heading) { margin-bottom: 34px; }
  :root body .billing-toolbar { margin-bottom: 30px; gap: 18px; }
  :root body .plan-grid { row-gap: 32px; }
  :root body :is(.feature-grid,.guide-grid,.resource-grid,.related-grid,.af-benefit-grid) { row-gap: 24px; }
  :root body .plan-content { padding-top: 24px; padding-bottom: 26px; }
  :root body :is(.catalog-option-note,.plan-option-details) { margin-top: 28px; padding: 21px; }
  :root body .how-grid { gap: 24px; }
  :root body .how-step { padding: 24px; }
  :root body .how-step .step-number { margin-bottom: 20px; }
  :root body .config-step { margin-bottom: 24px; }
  :root body .article > section + section { padding-top: 30px; margin-top: 36px; }
}

/* Fit intermediate widths as carefully as the mobile and desktop endpoints. */
:root body :is(.how-grid,.guide-grid,.developer-grid)>* { min-width: 0; }
:root body .how-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
:root body .resource-search input { min-width: 0; }
:root body .article :is(h2,h3) { overflow-wrap: anywhere; hyphens: auto; }
:root body .code-window { min-width: 0; }
:root body .plan-card:not(.is-tilting),
:root body.motion-ready .plan-card.reveal-pending.is-visible:not(.is-tilting) { transform: none; }
:root body :is(.code-topbar,.code-footer) { flex-wrap: wrap; gap: 8px 16px; }
:root body .mobile-nav {
  max-height: calc(100vh - var(--kv-mobile-nav-top,82px));
  max-height: calc(100dvh - var(--kv-mobile-nav-top,82px));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-bottom: max(20px,env(safe-area-inset-bottom));
}
:root body .menu-button { min-width: 44px; min-height: 44px; padding: 6px; }
@media(max-width:1100px) {
  :root body :is(.desktop-nav,.header .login-link) { display: none; }
  :root body .menu-button { display: block; color: #bdd8e8; }
  :root body .nav { justify-content: space-between; }
}
@media(min-width:581px) and (max-width:900px) {
  :root body .guide-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media(max-width:800px) {
  :root body .how-grid { grid-template-columns: minmax(0,1fr); }
  :root body .developer-grid { grid-template-columns: minmax(0,1fr); }
}
@media(max-width:640px) {
  :root body :is(.form-field input,.form-field select,.resource-search input,.af-field input,.af-field select,.checkout-panel select) { font-size: 16px; }
}

/* Local cryptocurrency brand marks */
:root body .footer-payments>a{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:44px;line-height:1.5;color:#c0d2df;white-space:nowrap;transition:color .2s}
:root body .footer-payments>a:hover{color:#fff}
:root body .footer-payments .crypto-logo{width:24px;height:24px;flex:0 0 24px;object-fit:contain;filter:none;opacity:1}
@media(max-width:580px){:root body .footer-payments{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:16px;row-gap:12px}:root body .footer-payments>span{grid-column:1/-1}:root body .footer-payments .crypto-logo{width:22px;height:22px;flex-basis:22px}}

/* Homepage catalogue facts: compact cards inside the shared content frame. */
:root body .stat-strip { background:radial-gradient(ellipse at 15% 0,#173d4d38,transparent 62%),#0c151f;border-block:1px solid #2c4252; }
:root body .stat-grid { grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;padding-block:28px; }
:root body .stat-grid>.stat-card {
  position:relative;min-width:0;min-height:144px;display:grid;
  grid-template-columns:36px minmax(0,1fr);align-items:center;gap:16px;
  padding:24px 20px;border:1px solid #345064;border-radius:7px;
  background:linear-gradient(135deg,#182e3d,#111f2c 78%);
  box-shadow:0 9px 24px #0003,inset 0 1px 0 #ffffff06;
}
:root body .stat-card::before { content:'';position:absolute;inset-block:22px;inset-inline-start:-1px;width:2px;background:#5ed9ec;opacity:.75; }
:root body .stat-grid .stat-card-icon { display:grid;place-items:center;width:36px;height:36px;margin:0;border:1px solid #407083;border-radius:7px;color:#83e5f2;background:#5ed9ec0d; }
:root body .stat-card-icon .icon { width:19px;height:19px;stroke-width:1.5; }
:root body .stat-card-copy { min-width:0; }
:root body .stat-grid .stat-card strong { display:block;font-size:27px;font-weight:600;line-height:1.24;letter-spacing:-.035em;color:#eef6fb;overflow-wrap:anywhere; }
:root body .stat-grid .stat-card .stat-card-label { display:block;margin-top:11px;color:#a9c0d0;font:11px/1.65 var(--mono);letter-spacing:.025em;overflow-wrap:anywhere; }
:root body .stat-card[data-stat="uplink"]::before { background:#ffb65a; }
:root body .stat-card[data-stat="uplink"] .stat-card-icon { color:#ffc67e;border-color:#7e6242;background:#ffb65a0b; }
@media(hover:hover) and (pointer:fine) {
  :root body .stat-grid>.stat-card { transition:border-color .2s,background .2s; }
  :root body .stat-grid>.stat-card:hover { border-color:#6291a5;background:linear-gradient(135deg,#1a3545,#132635 78%); }
}
@media(max-width:1100px) {
  :root body .stat-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  :root body .stat-grid>.stat-card { min-height:126px; }
}
@media(max-width:580px) {
  :root body .stat-grid { gap:12px;padding-block:22px; }
  :root body .stat-grid>.stat-card { display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:15px;min-height:163px;padding:20px 17px; }
  :root body .stat-card::before { inset-block:20px; }
  :root body .stat-grid .stat-card strong { font-size:25px; }
  :root body .stat-grid .stat-card .stat-card-label { margin-top:8px;font-size:11px; }
}
@media(max-width:360px) {
  :root body .stat-grid { grid-template-columns:1fr; }
  :root body .stat-grid>.stat-card { display:grid;grid-template-columns:36px minmax(0,1fr);align-items:center;min-height:105px;padding:19px; }
}

/* A visible language choice in the shared header. */
:root body .header-language{display:inline-flex;align-items:center;justify-content:center;gap:8px;flex-shrink:0;min-width:62px;min-height:40px;padding:8px 10px;color:#c4d9e7;border:1px solid #334d60;border-radius:7px;background:#11202b;font:600 11px/1 var(--mono);letter-spacing:.045em;transition:color .2s,border-color .2s,background .2s}
:root body .header-language svg{width:18px;height:18px;flex:0 0 18px;color:#68d9ed}
:root body .header-language:hover{color:#f0fbff;border-color:#5a93a9;background:#18303e}
:root body .header-language:focus-visible{outline:2px solid #6eddf0;outline-offset:4px}
:root body .header .nav{gap:24px}
:root body .header .desktop-nav{gap:20px}
@media(max-width:1280px){:root body .header .desktop-nav,:root body .header .login-link{display:none}:root body .header .menu-button{display:block}:root body .header .nav{justify-content:space-between}}
@media(max-width:480px){:root body .header .nav-actions>.button{display:none}:root body .header .nav,:root body .header .nav-actions{gap:8px}:root body .header .brand{font-size:22px;gap:7px}:root body .header .brand img{width:30px;height:30px}:root body .header-language{min-width:56px;min-height:40px;gap:6px;padding:8px;font-size:10px}:root body .header-language svg{width:16px;height:16px;flex-basis:16px}}
/* A small invitation; page content and focus remain available. */
:root body .language-suggestion{position:fixed;z-index:45;inset-inline-end:24px;bottom:24px;width:min(360px,calc(100vw - 32px));padding:24px;border:1px solid #416476;border-radius:14px;background:linear-gradient(145deg,#172d3d,#0e1d29);box-shadow:0 18px 65px #0007;color:#dfedf5;text-align:start}
:root body .language-suggestion-tag{display:inline-block;margin-bottom:13px;padding:5px 9px;border:1px solid #3d6477;border-radius:5px;color:#87e4f1;background:#102531;font-size:11px;font-weight:600}
:root body .language-suggestion h2{margin:0 24px 10px 0;font-size:20px;line-height:1.3;letter-spacing:-.025em;color:#edf7fc}
:root body .language-suggestion p{margin:0;color:#abc3d3;font-size:12px;line-height:1.8}
:root body .language-suggestion-close{position:absolute;inset-block-start:9px;inset-inline-end:9px;display:grid;place-items:center;width:36px;height:36px;padding:0;color:#a9c1d0;font-size:23px;line-height:1;border-radius:6px}
:root body .language-suggestion-close:hover{background:#294454;color:#fff}
:root body .language-suggestion-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:19px}
:root body .language-suggestion-actions .button{min-height:42px;padding:10px 14px;font-size:12px;letter-spacing:0;flex:1 1 165px;text-align:center}
:root body .language-suggestion-actions>button{padding:10px 2px;color:#b8d0de;font-size:11px;line-height:1.5;min-height:42px;text-align:center;flex:1 1 120px}
:root body .language-suggestion :is(a,button):focus-visible{outline:2px solid #70deed;outline-offset:3px}
@media(max-width:580px){:root body .language-suggestion{inset-inline-end:16px;bottom:max(16px,env(safe-area-inset-bottom));padding:20px}:root body .language-suggestion h2{font-size:19px}}

/* Subtle national colour palettes behind each language choice. */
:root body .modal .language-option[data-select-language]{position:relative;isolation:isolate;overflow:hidden;background:#142534;border-color:color-mix(in srgb,var(--language-accent,#78adca) 32%,#34566b);transition:border-color .2s,color .2s,background .2s}
:root body .modal .language-option[data-select-language]::before{content:'';position:absolute;inset:0;z-index:-1;pointer-events:none;background:var(--language-flag,#4a829c);opacity:.16;transition:opacity .2s}
:root body .modal .language-option[data-select-language]:hover::before{opacity:.24}
:root body .modal .language-option[data-select-language][aria-current=true]{background:#173746;border-color:#6edbec;color:#edfcff;box-shadow:inset 0 0 0 1px #6edbec70}
:root body .modal .language-option[data-select-language][aria-current=true]::before{opacity:.2}
:root body .language-option[data-select-language=en]{--language-accent:#879bdc;--language-flag:linear-gradient(90deg,transparent 43%,#fff 43% 46%,#d72a45 46% 54%,#fff 54% 57%,transparent 57%),linear-gradient(transparent 33%,#fff 33% 39%,#d72a45 39% 61%,#fff 61% 67%,transparent 67%),linear-gradient(23deg,#21458e 43%,#fff 43% 47%,#d72a45 47% 53%,#fff 53% 57%,#21458e 57%)}
:root body .language-option[data-select-language=fr]{--language-accent:#8a9de5;--language-flag:linear-gradient(90deg,#2449a5 0 33.33%,#fff 33.33% 66.66%,#ed354d 66.66%)}
:root body .language-option[data-select-language=es]{--language-accent:#e4b44b;--language-flag:linear-gradient(#c72e40 0 25%,#ffd14c 25% 75%,#c72e40 75%)}
:root body .language-option[data-select-language=da]{--language-accent:#ed8394;--language-flag:linear-gradient(90deg,transparent 29%,#fff 29% 37%,transparent 37%),linear-gradient(#c52d48 40%,#fff 40% 60%,#c52d48 60%)}
:root body .language-option[data-select-language=de]{--language-accent:#e4b554;--language-flag:linear-gradient(#12151a 0 33.33%,#df3f49 33.33% 66.66%,#ffd45a 66.66%)}
:root body .language-option[data-select-language=arz]{--language-accent:#dfa461;--language-flag:linear-gradient(#de3e49 0 33.33%,#fff 33.33% 66.66%,#16181d 66.66%)}
:root body .language-option[data-select-language=fi]{--language-accent:#8eaae3;--language-flag:linear-gradient(90deg,transparent 28%,#2859aa 28% 37%,transparent 37%),linear-gradient(#fff 39%,#2859aa 39% 61%,#fff 61%)}
:root body .language-option[data-select-language=hi]{--language-accent:#efb569;--language-flag:linear-gradient(#ffae55 0 33.33%,#fff 33.33% 66.66%,#319e62 66.66%)}
:root body .language-option[data-select-language=id]{--language-accent:#e98691;--language-flag:linear-gradient(#e73a4d 0 50%,#fff 50%)}
:root body .language-option[data-select-language=it]{--language-accent:#78c397;--language-flag:linear-gradient(90deg,#259d69 0 33.33%,#fff 33.33% 66.66%,#e34252 66.66%)}
:root body .language-option[data-select-language=ja]{--language-accent:#eb8b9d;--language-flag:radial-gradient(circle at center,#df3155 0 19px,transparent 20px),#fff}
:root body .language-option[data-select-language=ko]{--language-accent:#9aa5dc;--language-flag:radial-gradient(ellipse at 50% 37%,#e44858 0 17px,transparent 18px),radial-gradient(ellipse at 50% 64%,#345caa 0 17px,transparent 18px),#fff}
:root body .language-option[data-select-language=nl]{--language-accent:#9aace2;--language-flag:linear-gradient(#da3e51 0 33.33%,#fff 33.33% 66.66%,#3158ad 66.66%)}
:root body .language-option[data-select-language=fil]{--language-accent:#e6c36b;--language-flag:linear-gradient(120deg,#fff 0 23%,transparent 23%),linear-gradient(#2c55ac 0 50%,#e54250 50%)}
:root body .language-option[data-select-language=pl]{--language-accent:#e99ab0;--language-flag:linear-gradient(#fff 0 50%,#df3a62 50%)}
:root body .language-option[data-select-language=pt]{--language-accent:#8ec294;--language-flag:linear-gradient(90deg,#259c63 0 40%,#dd374e 40%)}
:root body .language-option[data-select-language=ro]{--language-accent:#e6be64;--language-flag:linear-gradient(90deg,#3155a8 0 33.33%,#ffda57 33.33% 66.66%,#df3b4c 66.66%)}
:root body .language-option[data-select-language=ru]{--language-accent:#9daee6;--language-flag:linear-gradient(#fff 0 33.33%,#3a60b8 33.33% 66.66%,#de3f54 66.66%)}
:root body .language-option[data-select-language=sv]{--language-accent:#e3c76c;--language-flag:linear-gradient(90deg,transparent 28%,#ffda53 28% 37%,transparent 37%),linear-gradient(#2877b9 39%,#ffda53 39% 61%,#2877b9 61%)}
:root body .language-option[data-select-language=th]{--language-accent:#9fa8d8;--language-flag:linear-gradient(#d53b50 0 16.66%,#fff 16.66% 33.33%,#35437d 33.33% 66.66%,#fff 66.66% 83.33%,#d53b50 83.33%)}
:root body .language-option[data-select-language=tr]{--language-accent:#eb8e9b;--language-flag:radial-gradient(circle at 39% 50%,#fff 0 18px,transparent 19px),#dd334c}
:root body .language-option[data-select-language=uk]{--language-accent:#a3c5e6;--language-flag:linear-gradient(#3785d4 0 50%,#ffdb59 50%)}
:root body .language-option[data-select-language=vi]{--language-accent:#e8bd70;--language-flag:radial-gradient(circle at center,#ffe06b 0 12px,transparent 13px),#d93c4d}
:root body .language-option[data-select-language=zh]{--language-accent:#e9bb70;--language-flag:radial-gradient(circle at 18% 35%,#ffdf67 0 8px,transparent 9px),#da3a4b}

/* Service colours stay identifiable in every translated navigation. */
:root body :is(.desktop-nav,.mobile-nav) [data-service-link="vps"]{--nav-service-color:#5ed9ec}
:root body :is(.desktop-nav,.mobile-nav) [data-service-link="dedicated"]{--nav-service-color:#ffb65a}
:root body :is(.desktop-nav,.mobile-nav) [data-service-link="rdp"]{--nav-service-color:#b79aff}
:root body :is(.desktop-nav,.mobile-nav) [data-service-link]{color:var(--nav-service-color)}
:root body :is(.desktop-nav,.mobile-nav) [data-service-link]:is(:hover,:focus-visible){color:var(--nav-service-color);text-decoration:underline;text-decoration-color:currentColor;text-underline-offset:6px}
