/* ============================================================
   HETZNER HOSTING — shared styles
   Live-operations console motif for an infra/hosting brand.
   Tailwind handles layout/utilities; this file owns the
   signature atmosphere: grid, glow, motion, console details.
   ============================================================ */

:root {
  --ink: #0a0e14;
  --surface: #111824;
  --elevate: #161f2c;
  --line: #1e2a38;
  --line-soft: #17202c;
  --fg: #e7eef5;
  --mut: #7d8da0;
  --signal: #2dd4a7;
  --wire: #38bdf8;
}

* { -webkit-font-smoothing: antialiased; }

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--fg);
  font-feature-settings: "ss01", "cv01";
  overflow-x: hidden;
}

::selection { background: rgba(45, 212, 167, 0.28); color: #fff; }

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: #1f2a38; border-radius: 0; }
::-webkit-scrollbar-thumb:hover { background: #2b3a4d; }

/* ============================================================
   Backgrounds: hairline grid + radial datacenter glow
   ============================================================ */
.bg-grid {
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 56px 56px;
}

.bg-grid-fade {
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
}

.glow-signal {
  background: radial-gradient(circle at 30% 20%, rgba(45,212,167,0.16), transparent 55%),
              radial-gradient(circle at 80% 0%, rgba(56,189,248,0.12), transparent 50%);
}

.hairline { border-color: var(--line); }

/* ============================================================
   Console / status details
   ============================================================ */
.dot {
  width: 8px; height: 8px; border-radius: 999px;
  background: var(--signal);
  box-shadow: 0 0 0 0 rgba(45,212,167,0.6);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(45,212,167,0.55); }
  70%  { box-shadow: 0 0 0 10px rgba(45,212,167,0); }
  100% { box-shadow: 0 0 0 0 rgba(45,212,167,0); }
}

.eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--signal);
}

/* gradient text accent */
.txt-grad {
  background: linear-gradient(100deg, var(--signal), var(--wire));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* card hover lift + border glow */
.card {
  background: linear-gradient(180deg, var(--surface), #0e151f);
  border: 1px solid var(--line);
  transition: transform .35s cubic-bezier(.2,.7,.2,1), border-color .35s, box-shadow .35s;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(45,212,167,0.45);
  box-shadow: 0 18px 50px -22px rgba(45,212,167,0.35);
}

/* sweeping top accent line on hover */
.card-sweep { position: relative; overflow: hidden; }
.card-sweep::before {
  content: ""; position: absolute; top: 0; left: -100%;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--signal), var(--wire), transparent);
  transition: left .6s ease;
}
.card-sweep:hover::before { left: 100%; }

/* ============================================================
   Buttons
   ============================================================ */
.btn { transition: all .25s ease; position: relative; }
.btn-primary {
  background: var(--signal); color: #04130d; font-weight: 600;
}
.btn-primary:hover {
  background: #4ee3bd;
  box-shadow: 0 0 0 1px rgba(45,212,167,.4), 0 14px 40px -14px rgba(45,212,167,.7);
  transform: translateY(-1px);
}
.btn-ghost {
  border: 1px solid var(--line); color: var(--fg);
}
.btn-ghost:hover { border-color: var(--signal); color: var(--signal); }

/* ============================================================
   Scroll reveal
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }
.reveal[data-delay="5"] { transition-delay: .40s; }

/* ============================================================
   Marquee (trust bar)
   ============================================================ */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; width: max-content; animation: scrollx 32s linear infinite; }
@keyframes scrollx { to { transform: translateX(-50%); } }

/* ============================================================
   Nav
   ============================================================ */
.nav-blur {
  background: rgba(10,14,20,0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.nav-link { position: relative; color: var(--mut); transition: color .2s; }
.nav-link:hover, .nav-link.active { color: var(--fg); }
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 1px; width: 0;
  background: var(--signal); transition: width .25s ease;
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

/* mobile menu */
#mobileMenu { transition: opacity .3s ease, visibility .3s ease; }
#mobileMenu.hidden-menu { opacity: 0; visibility: hidden; pointer-events: none; }

/* lang switch */
.lang-btn { transition: color .2s, background .2s; }
.lang-btn.active { background: var(--signal); color: #04130d; }

/* ============================================================
   Forms
   ============================================================ */
.field {
  background: #0c1019;
  border: 1px solid var(--line);
  color: var(--fg);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field::placeholder { color: #50627a; }
.field:focus {
  outline: none;
  border-color: var(--signal);
  background: #0d1420;
  box-shadow: 0 0 0 3px rgba(45,212,167,0.12);
}
.field:focus + .field-tag, .field:focus ~ .field-tag { color: var(--signal); }

/* spec table */
.spec-row { border-bottom: 1px solid var(--line-soft); transition: background .2s; }
.spec-row:hover { background: rgba(45,212,167,0.04); }

/* focus visibility for keyboard users */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--signal); outline-offset: 2px;
}

/* divider with node */
.node-line { position: relative; height: 1px; background: var(--line); }
.node-line::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 6px; height: 6px; background: var(--signal); border-radius: 999px;
}

/* status ticker blink */
.blink { animation: blink 1.4s steps(2, start) infinite; }
@keyframes blink { 50% { opacity: .25; } }

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   Cookie consent banner
   ============================================================ */
.cookie-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 70;
  padding: 0 1rem 1rem;
  transform: translateY(120%);
  opacity: 0;
  transition: transform .45s cubic-bezier(.2,.7,.2,1), opacity .45s ease;
}
.cookie-bar.show { transform: translateY(0); opacity: 1; }

.cookie-inner {
  max-width: 64rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  justify-content: space-between;
  background: linear-gradient(180deg, var(--surface), #0c121b);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem 1.25rem;
  box-shadow: 0 24px 60px -28px rgba(0,0,0,.8), 0 0 0 1px rgba(45,212,167,.06);
}

.cookie-text {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  flex: 1 1 320px;
  min-width: 0;
}
.cookie-ico {
  flex: none;
  height: 36px; width: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 9px;
  color: var(--signal);
  background: rgba(45,212,167,.1);
  border: 1px solid rgba(45,212,167,.3);
}
.cookie-text p {
  font-size: .875rem;
  line-height: 1.5;
  color: var(--mut);
}
.cookie-link { color: var(--signal); text-decoration: none; white-space: nowrap; }
.cookie-link:hover { text-decoration: underline; }

.cookie-actions {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex: none;
}
.cookie-decline, .cookie-accept {
  font-size: .85rem;
  font-weight: 600;
  padding: .6rem 1.25rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all .2s ease;
}
.cookie-decline {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--line);
}
.cookie-decline:hover { border-color: var(--mut); }
.cookie-accept {
  background: var(--signal);
  color: #04130d;
  border: 1px solid var(--signal);
}
.cookie-accept:hover {
  background: #4ee3bd;
  box-shadow: 0 10px 30px -12px rgba(45,212,167,.7);
}

@media (max-width: 560px) {
  .cookie-inner { gap: .9rem; }
  .cookie-actions { width: 100%; }
  .cookie-decline, .cookie-accept { flex: 1; }
}

/* ============================================================
   Preloader (homepage boot sequence)
   ============================================================ */
body.loading { overflow: hidden; }

#preloader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  transition: opacity .6s ease, visibility .6s ease;
}
#preloader.done { opacity: 0; visibility: hidden; }

.pre-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 0%, transparent 70%);
  mask-image: radial-gradient(circle at 50% 50%, #000 0%, transparent 70%);
  opacity: .6;
}

.pre-inner {
  position: relative;
  width: min(90vw, 360px);
  text-align: center;
}

.pre-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  margin-bottom: 1.75rem;
  opacity: 0;
  animation: preFade .6s ease forwards;
}
.pre-mark {
  position: relative;
  height: 30px; width: 30px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  background: rgba(45,212,167,.12);
  border: 1px solid rgba(45,212,167,.4);
}
.pre-dot {
  height: 9px; width: 9px;
  border-radius: 3px;
  background: var(--signal);
  animation: prePulse 1.1s ease-in-out infinite;
}
.pre-word {
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
  color: var(--fg);
}

.pre-bar {
  height: 3px;
  width: 100%;
  background: var(--line);
  border-radius: 99px;
  overflow: hidden;
}
.pre-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--signal), var(--wire));
  box-shadow: 0 0 12px rgba(45,212,167,.6);
  transition: width .12s linear;
}

.pre-status {
  margin-top: .9rem;
  font-family: "JetBrains Mono", monospace;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mut);
}
.pre-pct { color: var(--signal); margin-left: .15rem; }

@keyframes preFade { to { opacity: 1; } }
@keyframes prePulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(.6); opacity: .5; }
}

@media (prefers-reduced-motion: reduce) {
  .pre-dot { animation: none; }
  #preloader { transition: opacity .2s ease, visibility .2s ease; }
}

/* ============================================================
   Logo mark — server stack with a live status LED
   ============================================================ */
.logo-mark {
  display: block;
  flex: none;
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
  will-change: transform;
}
.logo-mark .logo-led {
  transform-box: fill-box;
  transform-origin: center;
  animation: logoLed 1.9s ease-in-out infinite;
  filter: drop-shadow(0 0 3px rgba(45,212,167,.85));
}
@keyframes logoLed {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .25; transform: scale(.6); }
}

/* preloader variant of the mark */
.pre-mark-svg .logo-led { animation-duration: 1.2s; }

@media (prefers-reduced-motion: reduce) {
  .logo-mark .logo-led { animation: none; }
}

/* ============================================================
   Verification dialog (modal)
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(5, 8, 12, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}
.modal-overlay.show { opacity: 1; visibility: visible; }

.modal-card {
  width: min(100%, 480px);
  background: linear-gradient(180deg, var(--surface), #0c121b);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.85);
  transform: translateY(16px) scale(.98);
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
.modal-overlay.show .modal-card { transform: none; }

.modal-ico {
  height: 48px; width: 48px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  color: var(--signal);
  background: rgba(45,212,167,.1);
  border: 1px solid rgba(45,212,167,.3);
  margin-bottom: 1.1rem;
}
.modal-law {
  margin-top: 1.1rem;
  display: flex;
  gap: .6rem;
  padding: .85rem 1rem;
  border-radius: 10px;
  background: #0c1019;
  border: 1px solid var(--line);
  border-left: 2px solid var(--signal);
}
.modal-actions {
  margin-top: 1.6rem;
  display: flex;
  gap: .6rem;
  justify-content: flex-end;
}
@media (max-width: 460px) {
  .modal-actions { flex-direction: column-reverse; }
  .modal-actions .btn { width: 100%; }
}

/* ============================================================
   KYC document dropzones
   ============================================================ */
.dropzone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: .35rem;
  padding: 1.4rem 1rem;
  min-height: 132px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: #0c1019;
  color: var(--mut);
  cursor: pointer;
  transition: border-color .2s, background .2s, color .2s;
}
.dropzone:hover { border-color: rgba(45,212,167,.5); color: var(--fg); }
.dropzone input[type="file"] {
  position: absolute; inset: 0; opacity: 0; cursor: pointer;
}
.dropzone .dz-ico { color: var(--signal); }
.dropzone .dz-label { font-size: .82rem; word-break: break-all; padding: 0 .25rem; }
.dropzone .dz-hint { font-family: "JetBrains Mono", monospace; font-size: .68rem; color: #50627a; }
.dropzone.has-file {
  border-style: solid;
  border-color: rgba(45,212,167,.6);
  background: rgba(45,212,167,.06);
  color: var(--fg);
}
.dropzone.has-file .dz-ico { filter: drop-shadow(0 0 4px rgba(45,212,167,.6)); }
