/* ==========================================================================
   Lido Technologies Inc. — Main stylesheet
   ========================================================================== */

:root {
  --bg: #060811;
  --bg-2: #0a0e1c;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #e8ecf6;
  --text-muted: #9aa3b8;
  --text-dim: #6b7389;
  --blue: #4f8cff;
  --violet: #9b5cff;
  --cyan: #22d3ee;
  --grad: linear-gradient(120deg, var(--blue) 0%, var(--violet) 55%, var(--cyan) 100%);
  --grad-soft: linear-gradient(120deg, rgba(79, 140, 255, 0.16), rgba(155, 92, 255, 0.16));
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-glow: 0 0 0 1px rgba(79, 140, 255, 0.25), 0 10px 40px -10px rgba(79, 140, 255, 0.45);
  --container: 1200px;
  --header-h: 72px;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Ambient background glow */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 600px at 85% -10%, rgba(155, 92, 255, 0.16), transparent 60%),
    radial-gradient(800px 600px at -10% 10%, rgba(79, 140, 255, 0.14), transparent 60%),
    radial-gradient(700px 500px at 50% 110%, rgba(34, 211, 238, 0.08), transparent 60%);
  pointer-events: none;
}

/* Subtle grid overlay */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%);
  pointer-events: none;
}

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

a { color: var(--blue); text-decoration: none; transition: color .2s; }
a:hover { color: var(--cyan); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 .6em;
  color: #fff;
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.75rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }
p { margin: 0 0 1em; }

::selection { background: rgba(155, 92, 255, 0.4); color: #fff; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 1000;
  padding: 10px 16px;
  background: var(--blue);
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
}
.skip-link:focus { top: 12px; color: #fff; }

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

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

/* ==========================================================================
   Header / navigation
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(6, 8, 17, 0.65);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.site-header.scrolled {
  border-bottom-color: var(--border);
  background: rgba(6, 8, 17, 0.85);
}
.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}
.brand:hover { color: #fff; }
.brand svg { width: 34px; height: 34px; flex-shrink: 0; }
.brand span small {
  display: block;
  font-family: var(--font-sans);
  font-size: .62rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 1px;
}

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  color: var(--text-muted);
  font-size: .94rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  transition: color .2s, background .2s;
}
.nav a:hover { color: #fff; background: var(--surface-2); }
.nav a[aria-current="page"] { color: #fff; }
.nav a[aria-current="page"]::after {
  content: "";
  display: block;
  height: 2px;
  margin-top: 4px;
  border-radius: 2px;
  background: var(--grad);
}
.nav .btn { margin-left: 10px; }
.nav .btn::after { display: none !important; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-open .nav-toggle .icon-close { display: block; }
.nav-open .nav-toggle .icon-menu { display: none; }

@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px 20px 28px;
    background: rgba(6, 8, 17, 0.97);
    border-bottom: 1px solid var(--border);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s, transform .25s, visibility .25s;
  }
  .nav-open .nav { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 14px 12px; font-size: 1.05rem; }
  .nav a[aria-current="page"]::after { display: none; }
  .nav a[aria-current="page"] { background: var(--surface-2); }
  .nav .btn { margin: 10px 0 0; justify-content: center; }
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  line-height: 1.2;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s, border-color .2s, color .2s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  color: #fff !important;
  background: var(--grad);
  background-size: 160% 100%;
  box-shadow: 0 8px 30px -8px rgba(124, 108, 255, 0.7);
}
.btn-primary:hover {
  transform: translateY(-2px);
  background-position: 100% 0;
  box-shadow: 0 14px 40px -10px rgba(124, 108, 255, 0.9);
}
.btn-ghost {
  color: #fff !important;
  background: var(--surface);
  border-color: var(--border-strong);
}
.btn-ghost:hover { background: var(--surface-2); border-color: rgba(255, 255, 255, 0.3); transform: translateY(-2px); }
.btn-sm { padding: 9px 18px; font-size: .9rem; }
.btn-lg { padding: 15px 28px; font-size: 1.02rem; }

/* ==========================================================================
   Sections
   ========================================================================== */

section { position: relative; }
.section { padding: 110px 0; }
.section-sm { padding: 70px 0; }

.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.section-head p { color: var(--text-muted); font-size: 1.08rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  margin-bottom: 18px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-muted);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}

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

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: center;
  padding: 80px 0 100px;
  overflow: hidden;
}
#neural-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: .75;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(6, 8, 17, 0.2), rgba(6, 8, 17, 0.85) 75%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-content { max-width: 820px; }
.hero h1 { margin-bottom: 24px; }
.hero .lead {
  font-size: clamp(1.08rem, 1.6vw, 1.25rem);
  color: var(--text-muted);
  max-width: 640px;
  margin-bottom: 36px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: .9rem;
}
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta svg { width: 16px; height: 16px; color: var(--cyan); }

/* Page hero (inner pages) */
.page-hero {
  padding: 100px 0 70px;
  text-align: center;
  overflow: hidden;
}
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.page-hero p { max-width: 680px; margin: 0 auto; color: var(--text-muted); font-size: 1.12rem; }
.page-hero .orb {
  position: absolute;
  width: 520px;
  height: 520px;
  left: 50%;
  top: -260px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(155, 92, 255, 0.35), rgba(79, 140, 255, 0.12) 45%, transparent 70%);
  filter: blur(20px);
  z-index: -1;
  pointer-events: none;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  font-size: .85rem;
  color: var(--text-dim);
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--text-dim); }

/* ==========================================================================
   Cards & grids
   ========================================================================== */

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  position: relative;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  transition: transform .3s, border-color .3s, box-shadow .3s;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 20px 50px -20px rgba(79, 140, 255, 0.45); }
.card:hover::before { opacity: 1; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--text-muted); margin-bottom: 0; }
.card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-weight: 600;
  font-size: .92rem;
}
.card .card-link svg { width: 16px; height: 16px; transition: transform .2s; }
.card:hover .card-link svg { transform: translateX(4px); }

.icon-box {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 14px;
  background: var(--grad-soft);
  border: 1px solid rgba(155, 92, 255, 0.3);
  color: #c9b8ff;
}
.icon-box svg { width: 26px; height: 26px; }

.card-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
}
.card-list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 8px;
  color: var(--text-muted);
  font-size: .95rem;
}
.card-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 14px;
  height: 8px;
  border-left: 2px solid var(--cyan);
  border-bottom: 2px solid var(--cyan);
  transform: rotate(-45deg);
}

/* ==========================================================================
   Trust strip
   ========================================================================== */

.trust-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.015);
}
.trust-strip .grid { gap: 0; }
.trust-item {
  padding: 34px 24px;
  text-align: center;
  border-right: 1px solid var(--border);
}
.trust-item:last-child { border-right: 0; }
.trust-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: #fff;
  margin-bottom: 4px;
}
.trust-item span { color: var(--text-muted); font-size: .9rem; }
@media (max-width: 1000px) {
  .trust-item:nth-child(2) { border-right: 0; }
  .trust-item:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
}
@media (max-width: 640px) {
  .trust-item { border-right: 0; border-bottom: 1px solid var(--border); }
  .trust-item:last-child { border-bottom: 0; }
}

/* ==========================================================================
   Process / timeline
   ========================================================================== */

.process {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
  counter-reset: step;
}
@media (max-width: 1000px) { .process { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .process { grid-template-columns: 1fr; } }
.step {
  position: relative;
  padding: 28px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  counter-increment: step;
}
.step::before {
  content: "0" counter(step);
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 18px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.step h3 { font-size: 1.1rem; margin-bottom: 8px; }
.step p { color: var(--text-muted); font-size: .93rem; margin: 0; }

/* ==========================================================================
   Split / feature rows
   ========================================================================== */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 40px; } }
.split p { color: var(--text-muted); }

.feature-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 18px; }
.feature-list li { display: flex; gap: 16px; align-items: flex-start; }
.feature-list .icon-box { width: 44px; height: 44px; margin: 0; flex-shrink: 0; border-radius: 12px; }
.feature-list .icon-box svg { width: 22px; height: 22px; }
.feature-list h4 { margin: 2px 0 4px; }
.feature-list p { margin: 0; font-size: .95rem; }

/* Code-ish visual panel */
.panel {
  position: relative;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(14, 18, 34, 0.95), rgba(8, 10, 20, 0.95));
  box-shadow: var(--shadow-glow);
  overflow: hidden;
}
.panel-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  font-size: .8rem;
  color: var(--text-dim);
}
.panel-bar i { width: 11px; height: 11px; border-radius: 50%; background: #2a3045; display: inline-block; }
.panel-bar i:nth-child(1) { background: #ff5f57; }
.panel-bar i:nth-child(2) { background: #febc2e; }
.panel-bar i:nth-child(3) { background: #28c840; }
.panel-bar span { margin-left: 10px; }
.panel pre {
  margin: 0;
  padding: 24px;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .86rem;
  line-height: 1.75;
  color: #c3cbe0;
  overflow-x: auto;
}
.panel .k { color: #c792ea; }
.panel .s { color: #9ece6a; }
.panel .f { color: #7aa2f7; }
.panel .c { color: #565f89; font-style: italic; }
.panel .n { color: #ff9e64; }

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border);
}
.metric-row div { padding: 16px 20px; border-right: 1px solid var(--border); }
.metric-row div:last-child { border-right: 0; }
.metric-row small { display: block; color: var(--text-dim); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; }
.metric-row strong { font-family: var(--font-display); color: #fff; font-size: 1.1rem; }

/* ==========================================================================
   Tech chips
   ========================================================================== */

.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.chip {
  padding: 10px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-muted);
  font-size: .9rem;
  font-weight: 500;
  transition: border-color .2s, color .2s;
}
.chip:hover { border-color: rgba(34, 211, 238, 0.5); color: #fff; }

/* ==========================================================================
   CTA band
   ========================================================================== */

.cta-band {
  position: relative;
  padding: 72px 48px;
  border-radius: 24px;
  text-align: center;
  overflow: hidden;
  border: 1px solid rgba(155, 92, 255, 0.35);
  background:
    radial-gradient(600px 300px at 20% 0%, rgba(79, 140, 255, 0.35), transparent 70%),
    radial-gradient(600px 300px at 80% 100%, rgba(155, 92, 255, 0.35), transparent 70%),
    #0b0f1f;
}
.cta-band h2 { max-width: 720px; margin-left: auto; margin-right: auto; }
.cta-band p { max-width: 600px; margin: 0 auto 32px; color: var(--text-muted); font-size: 1.08rem; }
.cta-band .hero-actions { justify-content: center; }
@media (max-width: 640px) { .cta-band { padding: 52px 22px; } }

/* ==========================================================================
   Service detail blocks
   ========================================================================== */

.service-block {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 48px;
  padding: 56px 0;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: calc(var(--header-h) + 20px);
}
.service-block:last-child { border-bottom: 0; }
.service-block .icon-box { width: 64px; height: 64px; border-radius: 18px; }
.service-block .icon-box svg { width: 32px; height: 32px; }
.service-block h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.service-block .intro { color: var(--text-muted); font-size: 1.05rem; }
.service-block .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 10px; }
.service-block h4 { color: var(--cyan); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 4px; }
@media (max-width: 900px) {
  .service-block { grid-template-columns: 1fr; gap: 20px; }
  .service-block .cols { grid-template-columns: 1fr; }
}

.service-index { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

/* ==========================================================================
   FAQ (details/summary)
   ========================================================================== */

.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 14px; }
.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  transition: border-color .2s, background .2s;
}
.faq details[open] { border-color: rgba(155, 92, 255, 0.4); background: var(--surface-2); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 56px 20px 24px;
  position: relative;
  font-weight: 600;
  color: #fff;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 24px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .25s;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details > div { padding: 0 24px 22px; color: var(--text-muted); }
.faq details > div p:last-child { margin: 0; }

/* ==========================================================================
   Facts table (About)
   ========================================================================== */

.facts {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}
.facts th, .facts td {
  text-align: left;
  padding: 16px 22px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.facts tr:last-child th, .facts tr:last-child td { border-bottom: 0; }
.facts th { width: 42%; color: var(--text-muted); font-weight: 500; font-size: .92rem; }
.facts td { color: #fff; font-weight: 500; }

/* ==========================================================================
   Contact
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-cards { display: grid; gap: 16px; }
.contact-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.contact-card .icon-box { margin: 0; flex-shrink: 0; }
.contact-card h3 { font-size: 1rem; margin: 0 0 4px; color: var(--text-muted); font-weight: 500; font-family: var(--font-sans); letter-spacing: 0; }
.contact-card a, .contact-card address { color: #fff; font-style: normal; font-weight: 600; font-size: 1.05rem; word-break: break-word; }
.contact-card a:hover { color: var(--cyan); }
.contact-card p { margin: 6px 0 0; color: var(--text-muted); font-size: .9rem; }

.form-card {
  padding: 40px;
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
}
@media (max-width: 640px) { .form-card { padding: 26px 20px; } }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field label { font-size: .88rem; font-weight: 600; color: var(--text); }
.field label .req { color: var(--cyan); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 16px;
  font: inherit;
  font-size: .97rem;
  color: #fff;
  background: rgba(6, 8, 17, 0.6);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  transition: border-color .2s, box-shadow .2s;
}
.field select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-muted) 50%), linear-gradient(135deg, var(--text-muted) 50%, transparent 50%); background-position: calc(100% - 22px) 55%, calc(100% - 16px) 55%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px; }
.field select option { background: #0b0f1f; color: #fff; }
.field textarea { min-height: 150px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-dim); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(155, 92, 255, 0.25);
}
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: #ff6b81; }
.field .error { display: none; color: #ff8fa0; font-size: .82rem; }
.field.invalid .error { display: block; }

.checkbox { display: flex; gap: 12px; align-items: flex-start; margin: 4px 0 24px; font-size: .9rem; color: var(--text-muted); }
.checkbox input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--violet); flex-shrink: 0; }
.checkbox.invalid { color: #ff8fa0; }

.form-note { font-size: .82rem; color: var(--text-dim); margin: 16px 0 0; }
.form-status {
  display: none;
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: .92rem;
}
.form-status.show { display: block; }
.form-status.ok { background: rgba(34, 211, 238, 0.1); border: 1px solid rgba(34, 211, 238, 0.4); color: #a5f3fc; }
.form-status.err { background: rgba(255, 107, 129, 0.1); border: 1px solid rgba(255, 107, 129, 0.4); color: #ffb3c0; }

/* ==========================================================================
   Legal pages
   ========================================================================== */

.legal-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}
@media (max-width: 960px) { .legal-layout { grid-template-columns: 1fr; gap: 28px; } }

.toc {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: .88rem;
}
.toc strong { display: block; margin-bottom: 12px; color: #fff; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; }
.toc ol { margin: 0; padding-left: 20px; color: var(--text-dim); }
.toc li { margin-bottom: 7px; }
.toc a { color: var(--text-muted); }
.toc a:hover { color: #fff; }
@media (max-width: 960px) { .toc { position: static; } }

.legal {
  max-width: 820px;
  color: #c9cfdd;
}
.legal .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding: 16px 20px;
  margin-bottom: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: .88rem;
  color: var(--text-muted);
}
.legal .meta strong { color: #fff; }
.legal h2 {
  font-size: 1.45rem;
  margin: 48px 0 16px;
  padding-top: 8px;
  scroll-margin-top: calc(var(--header-h) + 20px);
}
.legal h2:first-of-type { margin-top: 0; }
.legal h3 { font-size: 1.1rem; margin: 28px 0 10px; }
.legal ul, .legal ol { padding-left: 22px; margin: 0 0 1em; }
.legal li { margin-bottom: 8px; }
.legal a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(79, 140, 255, 0.5); }
.legal .callout {
  padding: 20px 24px;
  margin: 24px 0;
  border-left: 3px solid var(--violet);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: rgba(155, 92, 255, 0.08);
}
.legal .callout p:last-child { margin: 0; }
.legal address { font-style: normal; line-height: 1.8; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(10, 14, 28, 0.6), rgba(6, 8, 17, 1));
}
.footer-main {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.4fr;
  gap: 48px;
  padding: 72px 0 56px;
}
@media (max-width: 1000px) { .footer-main { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-main { grid-template-columns: 1fr; gap: 36px; } }

.footer-brand p { color: var(--text-muted); font-size: .93rem; margin: 18px 0 0; max-width: 320px; }
.site-footer h3 {
  font-family: var(--font-sans);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #fff;
  margin: 6px 0 20px;
}
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-links a { color: var(--text-muted); font-size: .94rem; }
.footer-links a:hover { color: #fff; }

.footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-muted); font-size: .94rem; }
.footer-contact svg { width: 18px; height: 18px; color: var(--cyan); flex-shrink: 0; margin-top: 3px; }
.footer-contact a { color: var(--text); word-break: break-word; }
.footer-contact a:hover { color: var(--cyan); }
.footer-contact address { font-style: normal; color: var(--text); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 26px 0 32px;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: .85rem;
}
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-bottom a { color: var(--text-dim); }
.footer-bottom a:hover { color: #fff; }

/* Back to top */
.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  background: rgba(11, 15, 31, 0.9);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .3s, transform .3s, visibility .3s, border-color .2s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { border-color: var(--violet); }
.to-top svg { width: 20px; height: 20px; }

/* ==========================================================================
   404
   ========================================================================== */

.error-page { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.error-code {
  font-family: var(--font-display);
  font-size: clamp(6rem, 18vw, 11rem);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 10px;
}
.error-page p { color: var(--text-muted); max-width: 520px; margin: 0 auto 32px; }
.error-page .hero-actions { justify-content: center; }

/* ==========================================================================
   Reveal animations
   ========================================================================== */

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.no-js .reveal { opacity: 1; transform: none; }

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

/* Utility */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.text-center { text-align: center; }
.muted { color: var(--text-muted); }
