@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

:root {
  --bg-base: #0d1117;
  --bg-deep: #101623;
  --bg-elevated: #161d2e;
  --bg: var(--bg-deep);
  --bg-muted: rgba(255, 255, 255, 0.025);
  --text: #fafafa;
  --text-muted: #a1a1aa;
  --text-body: #d4d4d8;
  --brand-300: #93c5fd;
  --brand-400: #60a5fa;
  --brand-500: #2563eb;
  --brand-600: #1d4ed8;
  --accent-300: #fcd34d;
  --accent-400: #fbbf24;
  --accent-500: #f59e0b;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.12);
  --card: rgba(22, 29, 46, 0.55);
  --shadow-glow: 0 0 48px rgba(37, 99, 235, 0.22);
  --shadow-card: 0 16px 48px rgba(6, 9, 14, 0.45);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --max-width: 80rem;
  --header-height: 4.5rem;
  --focus-ring: 0 0 0 3px rgba(37, 99, 235, 0.35);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-base);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background: transparent;
  line-height: 1.6;
  isolation: isolate;
}

body.menu-open {
  overflow: hidden;
}

/* Ambient color mesh */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -3;
  background:
    radial-gradient(ellipse 90% 55% at 50% -8%, rgba(37, 99, 235, 0.2), transparent 58%),
    radial-gradient(ellipse 45% 35% at 100% 8%, rgba(251, 191, 36, 0.06), transparent 55%),
    radial-gradient(ellipse 40% 30% at 0% 92%, rgba(245, 158, 11, 0.05), transparent 50%),
    radial-gradient(ellipse 35% 25% at 82% 78%, rgba(96, 165, 250, 0.06), transparent 55%),
    linear-gradient(180deg, var(--bg-base) 0%, var(--bg-deep) 42%, #131a29 100%);
}

/* Dot grid + soft vignette */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  opacity: 0.55;
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    radial-gradient(ellipse at center, transparent 50%, rgba(6, 9, 14, 0.45) 100%);
  background-size: 28px 28px, 100% 100%;
  background-position: center center, center center;
  mask-image: radial-gradient(ellipse 85% 75% at 50% 35%, black 25%, transparent 100%);
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--brand-400);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.625rem 1rem;
  border-radius: 0.5rem;
  background: var(--brand-500);
  color: white;
  font-size: 0.875rem;
  font-weight: 600;
  transform: translateY(-150%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(100% - 3rem, var(--max-width));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}

.site-header.scrolled {
  border-color: var(--border);
  background: rgba(16, 22, 35, 0.78);
  backdrop-filter: blur(20px) saturate(1.2);
}

.site-header:has(.nav-mobile.open) {
  border-color: var(--border);
  background: rgba(16, 22, 35, 0.92);
  backdrop-filter: blur(20px) saturate(1.2);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-height);
  padding: 0.75rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  flex-shrink: 0;
}

.brand img {
  width: 2.75rem;
  height: 2.75rem;
  object-fit: contain;
  border-radius: 0.65rem;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.28);
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav-desktop a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
  padding: 0.25rem 0;
}

.nav-desktop a:hover,
.nav-desktop a.active {
  color: var(--text);
}

.header-cta-desktop {
  display: none;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.lang-switch a {
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.25rem 0.375rem;
  border-radius: 0.375rem;
  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-divider {
  color: var(--text-muted);
  opacity: 0.5;
  user-select: none;
}

.nav-mobile .lang-switch {
  justify-content: center;
  padding: 0.75rem 0 0.25rem;
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  cursor: pointer;
  flex-shrink: 0;
}

.menu-toggle svg {
  width: 1.25rem;
  height: 1.25rem;
}

.menu-toggle .icon-close {
  display: none;
}

.menu-toggle[aria-expanded="true"] .icon-open {
  display: none;
}

.menu-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

.nav-mobile-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  top: var(--header-height);
  z-index: 40;
  border: 0;
  background: rgba(9, 12, 20, 0.6);
  backdrop-filter: blur(4px);
  cursor: pointer;
}

.nav-mobile-backdrop.open {
  display: block;
}

.nav-mobile {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 45;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 0 1.5rem;
  border-top: 1px solid var(--border);
  background: rgba(16, 22, 35, 0.94);
  backdrop-filter: blur(20px) saturate(1.2);
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile a {
  color: var(--text-muted);
  font-weight: 500;
  padding: 0.75rem 0;
  font-size: 1rem;
}

.nav-mobile a:hover,
.nav-mobile a.active {
  color: var(--text);
}

.nav-mobile .btn {
  margin-top: 0.75rem;
  width: 100%;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background: var(--brand-500);
  color: white;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover:not(:disabled) {
  background: var(--brand-400);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: white;
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 7rem 0 8rem;
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 50% 18%, rgba(37, 99, 235, 0.14), transparent 68%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.025) 0%, transparent 38%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.45;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image:
    radial-gradient(ellipse 75% 62% at 50% 38%, black 15%, transparent 78%);
}

.hero-glow {
  position: absolute;
  border-radius: 9999px;
  filter: blur(100px);
  pointer-events: none;
}

.hero-glow-1 {
  width: 28rem;
  height: 28rem;
  left: 50%;
  top: -4rem;
  transform: translateX(-65%);
  background: rgba(37, 99, 235, 0.28);
}

.hero-glow-2 {
  width: 22rem;
  height: 22rem;
  right: 8%;
  top: 18%;
  background: rgba(251, 191, 36, 0.1);
}

.hero-glow-3 {
  width: 18rem;
  height: 18rem;
  left: 6%;
  bottom: 8%;
  background: rgba(29, 78, 216, 0.12);
}

.hero .container,
.page-hero .container {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-300);
}

.hero h1,
.page-hero h1 {
  margin: 0;
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero p,
.page-hero p {
  margin: 1.5rem auto 0;
  max-width: 48rem;
  font-size: 1.125rem;
  color: var(--text-body);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.5rem;
}

.section {
  padding: 5rem 0;
  position: relative;
}

.section-muted {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.015) 100%);
  border-block: 1px solid rgba(255, 255, 255, 0.045);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    inset 0 -1px 0 rgba(0, 0, 0, 0.15);
}

.section-muted::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(37, 99, 235, 0.05), transparent 70%);
}

.section > .container,
.section-muted > .container {
  position: relative;
  z-index: 1;
}

.section-header {
  max-width: 48rem;
  margin: 0 auto 3rem;
  text-align: center;
}

.section-header.left {
  margin-inline: 0;
  text-align: left;
}

.section-header h2 {
  margin: 0;
  font-size: clamp(1.875rem, 4vw, 2.25rem);
  line-height: 1.2;
}

.section-header p {
  margin: 1rem 0 0;
  color: var(--text-body);
  font-size: 1.125rem;
}

.grid-2 {
  display: grid;
  gap: 1.5rem;
}

.grid-3 {
  display: grid;
  gap: 1.5rem;
}

.grid-4 {
  display: grid;
  gap: 1.5rem;
}

.card {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--card);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-card);
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-4px);
}

.card.glow:hover {
  box-shadow: var(--shadow-glow), var(--shadow-card);
}

.card--interactive {
  position: relative;
}

.card--interactive:hover {
  border-color: rgba(96, 165, 250, 0.25);
}

.card-stretch {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}

.card-stretch:focus-visible {
  outline: 2px solid var(--brand-400);
  outline-offset: 2px;
}

.card--interactive > *:not(.card-stretch) {
  position: relative;
  z-index: 0;
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid rgba(251, 191, 36, 0.28);
  background: rgba(245, 158, 11, 0.08);
  color: var(--accent-300);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card h3,
.card h2 {
  margin: 1rem 0 0.75rem;
  font-size: 1.25rem;
}

.card p,
.card li {
  color: var(--text-body);
  font-size: 0.9375rem;
}

.card ul {
  margin: 0;
  padding-left: 1.25rem;
}

.link-arrow {
  display: inline-flex;
  margin-top: 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand-300);
}

.card--interactive .link-arrow {
  margin-top: 1.5rem;
}

.link-arrow:hover {
  color: var(--brand-400);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--brand-300);
}

.back-link:hover {
  color: var(--brand-400);
}

.hero-highlight {
  margin-top: 1rem;
  font-size: 1.25rem;
  color: var(--brand-300);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.chip {
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: rgba(22, 29, 46, 0.45);
  color: var(--text-body);
  font-size: 0.875rem;
}

.stat-grid .card {
  text-align: center;
}

.stat-value {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-300);
  line-height: 1.2;
}

.stat-label {
  margin: 0.5rem 0 0;
  color: var(--text-body);
}

.cta-banner {
  padding: 2.5rem;
  border-radius: 1.5rem;
  border: 1px solid rgba(96, 165, 250, 0.22);
  background:
    radial-gradient(ellipse 80% 80% at 50% 0%, rgba(37, 99, 235, 0.18), transparent 65%),
    radial-gradient(ellipse 45% 60% at 88% 100%, rgba(245, 158, 11, 0.07), transparent 70%),
    linear-gradient(135deg, rgba(29, 78, 216, 0.16), rgba(22, 29, 46, 0.4));
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-glow), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  text-align: center;
}

.cta-banner h2 {
  margin: 0;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
}

.cta-banner p {
  margin: 1rem auto 0;
  max-width: 40rem;
  color: var(--text-body);
}

.cta-banner .hero-actions,
.cta-banner .btn {
  margin-top: 2rem;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 6rem 0 4rem;
  text-align: center;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 75% 55% at 50% 0%, rgba(37, 99, 235, 0.14), transparent 72%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, transparent 45%);
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  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: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 20%, black 10%, transparent 75%);
}

.page-hero.left {
  text-align: left;
}

.page-hero.left p {
  margin-inline: 0;
}

.prose {
  max-width: 48rem;
  margin: 0 auto;
}

.prose h2 {
  margin: 2.5rem 0 1rem;
  color: white;
}

.prose p,
.prose li {
  color: var(--text-body);
}

.prose ul {
  padding-left: 1.5rem;
}

.prose a {
  color: var(--brand-300);
}

.form-grid {
  display: grid;
  gap: 1.25rem;
}

.form-grid-2 {
  grid-template-columns: 1fr;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #e4e4e7;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: rgba(22, 29, 46, 0.65);
  color: white;
  font: inherit;
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  padding-right: 2.5rem;
}

select option {
  background: #161d2e;
  color: white;
}

input::placeholder,
textarea::placeholder {
  color: var(--text-muted);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(96, 165, 250, 0.5);
  box-shadow: var(--focus-ring);
}

input:user-invalid:not(:focus):not(:placeholder-shown),
select:user-invalid:not(:focus),
textarea:user-invalid:not(:focus):not(:placeholder-shown) {
  border-color: rgba(248, 113, 113, 0.6);
}

textarea {
  min-height: 8rem;
  resize: vertical;
}

.form-status {
  margin-top: 1rem;
  font-size: 0.875rem;
}

.form-status.success {
  color: #34d399;
}

.form-status.error {
  color: #f87171;
}

.contact-sidebar .card + .card {
  margin-top: 1.5rem;
}

.contact-sidebar a {
  color: var(--brand-300);
}

.contact-sidebar a:hover {
  color: var(--brand-400);
}

.contact-sidebar ol {
  color: var(--text-body);
  padding-left: 1.25rem;
  margin: 0;
}

.site-footer {
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background:
    linear-gradient(180deg, rgba(13, 17, 23, 0.4) 0%, rgba(13, 17, 23, 0.92) 100%);
  padding: 4rem 0 0;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 50% 40% at 50% 0%, rgba(37, 99, 235, 0.06), transparent 70%);
}

.site-footer .container {
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
}

.footer-tagline,
.footer-address {
  margin-top: 1rem;
  color: var(--text-muted);
  max-width: 20rem;
  font-size: 0.875rem;
  line-height: 1.7;
}

.footer-address {
  margin-top: 0.75rem;
}

.footer-contact {
  display: block;
  margin-top: 0.75rem;
  color: var(--brand-300);
  font-size: 0.875rem;
}

.footer-contact + .footer-contact {
  margin-top: 0.35rem;
}

.footer-grid h2 {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-grid li + li {
  margin-top: 0.75rem;
}

.footer-grid a {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.footer-grid a:hover {
  color: white;
}

.footer-bottom {
  margin-top: 3rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
  }

  .header-cta-desktop {
    display: flex;
    align-items: center;
    gap: 1rem;
  }

  .menu-toggle,
  .nav-mobile,
  .nav-mobile-backdrop {
    display: none !important;
  }

  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }

  .form-grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1.4fr repeat(3, 1fr);
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .contact-layout {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }

  .fade-in {
    opacity: 1;
    transform: none;
  }

  .btn:hover,
  .card:hover {
    transform: none;
  }
}

.contact-layout {
  display: grid;
  gap: 2rem;
}
