:root {
  --bg: #020617;
  --bg-soft: #041024;
  --panel: rgba(2, 6, 23, 0.68);
  --text: #e5e7eb;
  --muted: #8b98a8;
  --blue: #2563eb;
  --blue-soft: #3b82f6;
  --teal: #00e0d5;
  --border: rgba(148, 163, 184, 0.14);
  --border-blue: rgba(59, 130, 246, 0.16);
  --header-height: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 20px;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 78% 38%, rgba(0, 224, 213, 0.13) 0%, rgba(37, 99, 235, 0.08) 26%, transparent 48%),
    linear-gradient(135deg, #020617 0%, #041024 46%, #020617 100%);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(59, 130, 246, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 58% 32%, black 0%, transparent 76%);
  -webkit-mask-image: radial-gradient(circle at 58% 32%, black 0%, transparent 76%);
}

.site-header,
.hero,
.section,
.footer {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  position: relative;
}

/* Header como marco/chip, no barra pegada */
.site-header {
  position: sticky;
  top: 14px;
  z-index: 100;

  min-height: var(--header-height);

  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 0 28px;

  border-radius: 18px;
  border: 1px solid var(--border-blue);

  background:
    radial-gradient(circle at 82% 50%, rgba(37, 99, 235, 0.10), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.030), rgba(255, 255, 255, 0.010)),
    rgba(2, 6, 23, 0.86);

  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.38),
    0 0 0 1px rgba(255, 255, 255, 0.018),
    inset 0 1px 0 rgba(255, 255, 255, 0.030);

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.site-header::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 13px;
  pointer-events: none;
  border: 1px solid rgba(59, 130, 246, 0.055);
}

.brand {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.brand span {
  color: var(--teal);
}

.nav {
  display: flex;
  gap: 28px;
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  position: relative;
  margin-left: 24px;
}

.lang-switcher::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--blue-soft);
  border-bottom: 2px solid var(--blue-soft);
  transform: translateY(-60%) rotate(45deg);
  pointer-events: none;
}

.lang-switcher select {
  min-width: 84px;
  padding: 10px 34px 10px 12px;
  border: 1px solid var(--border-blue);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)), rgba(2, 6, 23, 0.78);
  color: var(--text);
  font: inherit;
  line-height: 1;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.lang-switcher select:hover,
.lang-switcher select:focus {
  border-color: var(--blue-soft);
  outline: none;
  box-shadow:
    0 0 0 3px rgba(59, 130, 246, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.nav a,
.footer a {
  color: var(--muted);
  text-decoration: none;
}

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

.nav a {
  position: relative;
}

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

.nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  background: var(--blue-soft);
}

.hero {
  min-height: calc(100vh - var(--header-height) - 14px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 64px;
  align-items: center;
  border-bottom: 1px solid var(--border);
}

.hero-copy {
  max-width: 900px;
}

.eyebrow,
.section-title {
  color: var(--blue-soft);
  font-size: 13px;
  margin: 0 0 32px;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(36px, 5.2vw, 72px);
  line-height: 0.94;
  letter-spacing: -0.05em;
}

.statement {
  max-width: 680px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 1.8vw, 21px);
  line-height: 1.65;
}

.domains {
  margin-top: 44px;
  display: grid;
  gap: 12px;
}

.domains a {
  display: inline-flex;
  align-items: center;
  gap: 12px;

  width: fit-content;

  color: var(--text);
  text-decoration: none;

  transition:
    transform .2s ease,
    color .2s ease;
}

.domains a span {
  color: var(--blue-soft);
  min-width: 28px;
}

.domains a:hover {
  color: white;
  transform: translateX(4px);
}

/* Raven panel original, con marco integrado */
.hero-brand-panel {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: 32px;
  background:
    radial-gradient(circle at 50% 36%, rgba(37, 99, 235, 0.14), transparent 46%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)),
    rgba(2, 6, 23, 0.72);
  border: 1px solid var(--border-blue);
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(255, 255, 255, 0.025),
    inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.hero-brand-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(59, 130, 246, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.04) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at 50% 42%, black, transparent 76%);
  -webkit-mask-image: radial-gradient(circle at 50% 42%, black, transparent 76%);
}

.hero-brand-panel::after {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 22px;
  pointer-events: none;
  border: 1px solid rgba(59, 130, 246, 0.08);
}

.hero-brand-panel img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.section {
  padding: 96px 0;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 20px;
}

.origin-copy {
  max-width: 980px;
  font-size: clamp(20px, 2vw, 34px);
  line-height: 1.35;
  letter-spacing: -0.03em;
}

.origin-copy p:first-child {
  color: var(--text);
  font-weight: 500;
}

.origin-copy p {
  margin: 0 0 32px;
  color: var(--muted);
}

.origin-copy .strong {
  color: var(--text);
}

.principles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 56px 72px;
}

.principles article {
  border-top: 1px solid var(--border);
  padding-top: 24px;
}

.principles span {
  color: var(--blue-soft);
  font-size: 13px;
}

.principles h2 {
  margin: 20px 0 0;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.principles p,
.nx-copy p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 17px;
}

.nx4id {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: end;
}

.nx4id h2 {
  margin: 0;
  font-size: clamp(34px, 4.8vw, 62px);
  line-height: 0.9;
  letter-spacing: -0.08em;
}

.nx4id h2 span {
  color: var(--teal);
}

.nx-tagline {
  color: var(--text) !important;
  font-weight: 700;
}

.contact form {
  max-width: 680px;
  display: grid;
  gap: 20px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
}

input,
textarea {
  width: 100%;
  background: rgba(2, 6, 23, 0.42);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  font: inherit;
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: rgba(96, 165, 250, 0.7);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
  background: rgba(2, 6, 23, 0.56);
}

textarea {
  min-height: 150px;
  resize: vertical;
}

button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-width: 180px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-soft) 100%);
  color: white;
  border: 1px solid rgba(59, 130, 246, 0.45);
  border-radius: 12px;
  padding: 14px 20px;
  font: inherit;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow:
    0 10px 24px rgba(37, 99, 235, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition:
    transform .18s ease,
    box-shadow .18s ease,
    border-color .18s ease,
    filter .18s ease;
}

button:hover {
  transform: translateY(-1px);
  border-color: rgba(96, 165, 250, 0.72);
  box-shadow:
    0 14px 28px rgba(37, 99, 235, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  filter: brightness(1.04);
}

button:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(59, 130, 246, 0.18),
    0 14px 28px rgba(37, 99, 235, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

button:active {
  transform: translateY(0);
}

.toast {
  color: var(--muted);
}

.footer {
  padding: 36px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
}

.footer nav {
  display: flex;
  gap: 10px;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 900px) {
  :root {
    --header-height: 72px;
  }

  .site-header {
    top: 10px;
    padding: 0 20px;
  }

  .nav {
    display: none;
  }

  .site-header {
    gap: 16px;
  }

  .lang-switcher {
    margin-left: auto;
    padding-left: 12px;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 64px 0;
    gap: 40px;
  }

  .hero-brand-panel {
    max-width: 380px;
    padding: 22px;
    margin: 0 auto;
  }

  .nx4id,
  .principles {
    grid-template-columns: 1fr;
  }

  .contact form button {
    width: 100%;
    min-width: 0;
    justify-content: center;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .legal-page {
    max-width: 920px;
  }

  .legal-copy {
    margin-top: 56px;
    max-width: 760px;
  }

  .legal-copy h2 {
    margin: 36px 0 12px;
    font-size: 22px;
    letter-spacing: -0.03em;
  }

  .legal-copy p {
    color: var(--muted);
    line-height: 1.7;
    font-size: 17px;
  }
}
