:root {
  --purple: #754AD9;
  --blue: #3467FE;
  --light-blue: #9EC4E7;
  --bg: #060608;
  --bg-alt: #0C0C11;
  --card-bg: #101016;
  --card-border: rgba(255, 255, 255, 0.08);
  --text: #F5F5F7;
  --muted: #9A9AA5;
  --gradient: linear-gradient(135deg, var(--purple), var(--blue));
  --burgundy: #801540;
  --font-display: "Space Grotesk", "Inter", sans-serif;
  --font-body: "Inter", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.01em;
}

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

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--light-blue);
  margin: 0 0 14px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 8px 24px rgba(117, 74, 217, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(117, 74, 217, 0.5); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: rgba(255,255,255,0.18);
}
.btn-ghost:hover { border-color: var(--light-blue); color: var(--light-blue); }
.btn-small { padding: 10px 20px; font-size: 0.85rem; }

/* Header */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background 0.3s ease, padding 0.3s ease, backdrop-filter 0.3s ease;
}
.site-header.scrolled {
  background: rgba(6, 6, 8, 0.8);
  backdrop-filter: blur(14px);
  padding: 8px 0;
  border-bottom: 1px solid var(--card-border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
}
.brand-logo { height: 56px; width: auto; transition: height 0.3s ease; }
.site-header.scrolled .brand-logo { height: 40px; }
.nav {
  display: flex;
  gap: 32px;
}
.nav a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
}
.nav a:hover { color: var(--text); }
.header-cta { flex-shrink: 0; }

.lang-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  margin-right: 4px;
}
.lang-switch a {
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--muted);
  transition: color 0.2s ease, background 0.2s ease;
}
.lang-switch a:hover { color: var(--text); }
.lang-switch a.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}
.lang-switch span { color: rgba(255, 255, 255, 0.25); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 130px;
  padding-bottom: 90px;
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.45;
  pointer-events: none;
  animation: drift 16s ease-in-out infinite alternate;
}
.glow-1 { width: 480px; height: 480px; background: var(--purple); top: -120px; left: -100px; }
.glow-2 { width: 420px; height: 420px; background: var(--blue); bottom: -140px; right: -80px; animation-delay: -4s; }
.glow-3 { width: 320px; height: 320px; background: var(--light-blue); top: 40%; left: 55%; opacity: 0.25; animation-delay: -8s; }

@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(30px, -20px) scale(1.08); }
}

.hero-grid {
  position: relative;
  z-index: 1;
}
.hero-inner { max-width: 760px; }
.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 1.08;
  margin-bottom: 24px;
}
.hero-subtitle {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 620px;
  margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.scroll-cue {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255,255,255,0.25);
  border-radius: 14px;
}
.scroll-cue span {
  display: block;
  width: 4px;
  height: 8px;
  background: var(--light-blue);
  border-radius: 2px;
  margin: 7px auto 0;
  animation: scrollcue 1.8s ease infinite;
}
@keyframes scrollcue {
  0% { opacity: 1; transform: translateY(0); }
  70% { opacity: 0; transform: translateY(14px); }
  100% { opacity: 0; transform: translateY(14px); }
}

/* Sections */
.section { padding: 60px 0; scroll-margin-top: 90px; }
#top { scroll-margin-top: 0; }
.section-alt { background: var(--bg-alt); }
.section-title {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  margin-bottom: 16px;
  max-width: 640px;
}
.section-subtitle {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 560px;
  margin-bottom: 56px;
}

#contact .section-title {
  max-width: none;
  white-space: nowrap;
}

.grid { display: grid; gap: 24px; }
.services-grid { grid-template-columns: repeat(4, 1fr); }
.reviews-grid { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 32px 26px;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(154, 200, 235, 0.35);
  background: #131319;
}

.card-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.card-icon svg { width: 24px; height: 24px; }
.icon-purple { background: rgba(123, 79, 224, 0.15); color: var(--purple); }
.icon-blue { background: rgba(59, 111, 240, 0.15); color: var(--blue); }
.icon-lightblue { background: rgba(154, 200, 235, 0.15); color: var(--light-blue); }

.service-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.service-card p { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* Partner card */
.partner-card {
  display: flex;
  align-items: center;
  gap: 40px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 44px;
}
.partner-visual {
  flex-shrink: 0;
  width: 220px; height: 140px;
  border-radius: 18px;
  background: linear-gradient(160deg, var(--burgundy), #4A0E26);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.partner-visual img { width: 100%; height: auto; }
.partner-body h3 { font-size: 1.4rem; margin-bottom: 6px; }
.partner-tag { color: var(--light-blue); font-weight: 600; font-size: 0.9rem; margin: 0 0 14px; }
.partner-body p { color: var(--muted); margin: 0 0 22px; max-width: 520px; }

/* Reviews */
.stars { color: var(--light-blue); letter-spacing: 3px; margin-bottom: 18px; }
.review-quote { font-size: 1rem; margin: 0 0 20px; }
.review-author { color: var(--muted); font-size: 0.9rem; margin: 0; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.contact-label {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--light-blue);
  margin-bottom: 10px;
}
.contact-item p { margin: 0; color: var(--muted); }
.contact-item a:hover { color: var(--text); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--card-border);
  padding: 20px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--muted); font-size: 0.9rem; }
.footer-links a:hover { color: var(--text); }
.footer-copy { color: var(--muted); font-size: 0.85rem; margin: 0; width: 100%; text-align: center; order: 3; }

/* Legal pages */
.legal-main {
  max-width: 760px;
  margin: 0 auto;
  padding: 140px 24px 100px;
}
.legal-main h1 { font-size: 2.2rem; margin-bottom: 8px; }
.legal-updated { color: var(--muted); font-size: 0.9rem; margin-bottom: 48px; }
.legal-main h2 { font-size: 1.3rem; margin: 40px 0 14px; }
.legal-main h3 { font-size: 1.02rem; color: var(--text); margin: 22px 0 10px; }
.legal-main p, .legal-main li { color: var(--muted); }
.legal-main ol { padding-left: 22px; margin: 0 0 16px; }
.legal-main ol ol { margin: 8px 0; }
.legal-main li { margin-bottom: 8px; }
.legal-main a { color: var(--light-blue); }
.back-link { display: inline-block; margin-bottom: 40px; color: var(--light-blue); font-weight: 600; }

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 32px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  overflow: hidden;
}
.legal-table tr { border-bottom: 1px solid var(--card-border); }
.legal-table tr:last-child { border-bottom: none; }
.legal-table th, .legal-table td {
  text-align: left;
  padding: 12px 20px;
  font-size: 0.92rem;
  font-weight: 400;
}
.legal-table th {
  color: var(--light-blue);
  width: 40%;
  font-weight: 600;
}
.legal-table td { color: var(--muted); }

.legal-note {
  background: rgba(154, 200, 235, 0.08);
  border: 1px solid rgba(154, 200, 235, 0.2);
  border-radius: 12px;
  padding: 16px 20px;
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 40px;
}
.legal-annex-field {
  margin: 18px 0;
}
.legal-annex-field .field-line {
  border-bottom: 1px solid var(--card-border);
  height: 28px;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 900px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .partner-card { flex-direction: column; text-align: center; padding: 36px; }
  .partner-body p { max-width: none; }
  .brand-logo { height: 46px; }
  .hero-inner { max-width: 640px; }
  #contact .section-title { white-space: normal; max-width: 640px; }
}

@media (max-width: 720px) {
  .nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .brand-logo { height: 34px; }
  .site-header.scrolled .brand-logo { height: 30px; }
  .hero { padding-top: 100px; padding-bottom: 70px; }
  .section { scroll-margin-top: 80px; }
  .legal-main { padding-top: 110px; }
  .nav.nav-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: rgba(6,6,8,0.97);
    backdrop-filter: blur(14px);
    padding: 24px;
    gap: 18px;
    border-bottom: 1px solid var(--card-border);
  }
  .services-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .section { padding: 40px 0; }
}

@media (max-width: 560px) {
  .legal-table, .legal-table tbody, .legal-table tr, .legal-table th, .legal-table td {
    display: block;
    width: auto;
  }
  .legal-table th { padding-bottom: 2px; }
  .legal-table td { padding-top: 2px; padding-bottom: 16px; }
}
