:root {
  /* ── Hetias · Cobalto (primario) ───────────────────────── */
  --h-primary-25:  #F4F7FF;
  --h-primary-50:  #E8EEFF;
  --h-primary-100: #CFDCFF;
  --h-primary-200: #A8BFFF;
  --h-primary-300: #7A9AFB;
  --h-primary-400: #5075F0;
  --h-primary-500: #2F55DE;
  --h-primary-600: #2143B4;
  --h-primary-700: #1A348C;
  --h-primary-800: #142769;
  --h-primary-900: #0F1D4D;
  --h-primary-950: #0A1433;

  --h-brass-50:  #FFF8EC;
  --h-brass-100: #FDECCE;
  --h-brass-200: #F8D79B;
  --h-brass-300: #EFBC63;
  --h-brass-400: #E0A33A;
  --h-brass-500: #C4831F;
  --h-brass-600: #9A6414;

  --h-n-0:   #FFFFFF;
  --h-n-25:  #FAFAFB;
  --h-n-50:  #F5F6F8;
  --h-n-100: #EDEEF2;
  --h-n-200: #DFE1E7;
  --h-n-300: #C3C7D1;
  --h-n-400: #9AA0AE;
  --h-n-500: #6E7585;
  --h-n-600: #545B6B;
  --h-n-700: #3E4452;
  --h-n-800: #2A2F3A;
  --h-n-900: #1A1E26;
  --h-n-950: #0E1116;

  --h-pending:      #E4674F;  --h-pending-bg:  #FDEDE9;  --h-pending-ink:  #A93A26;
  --h-progress:     #E0A33A;  --h-progress-bg: #FDF3E1;  --h-progress-ink: #8A5C0E;
  --h-inspect:      #7A6FE8;  --h-inspect-bg:  #EFEDFD;  --h-inspect-ink:  #4B3FBF;
  --h-ready:        #2FA37A;  --h-ready-bg:    #E6F6F0;  --h-ready-ink:    #1B7154;
  --h-oos:          #6E7585;  --h-oos-bg:      #EDEEF2;  --h-oos-ink:      #3E4452;

  --h-danger:  #D6303A;  --h-danger-bg:  #FDEBEC;
  --h-warning: #C4831F;  --h-warning-bg: #FDF3E1;
  --h-success: #1F8A66;  --h-success-bg: #E6F6F0;
  --h-info:    #2F55DE;  --h-info-bg:    #E8EEFF;

  --h-bg:            var(--h-n-25);
  --h-surface:       var(--h-n-0);
  --h-surface-sunk:  var(--h-n-50);
  --h-border:        var(--h-n-200);
  --h-border-strong: var(--h-n-300);
  --h-text:          var(--h-n-950);
  --h-text-muted:    var(--h-n-500);
  --h-text-subtle:   var(--h-n-400);
  --h-accent:        var(--h-primary-500);
  --h-accent-hover:  var(--h-primary-600);
  --h-accent-quiet:  var(--h-primary-50);
  --h-on-accent:     #FFFFFF;

  --h-font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --h-r-sm: 8px;
  --h-r-md: 12px;
  --h-r-lg: 18px;
  --h-r-xl: 26px;
  --h-shadow-sm: 0 1px 2px rgba(14, 17, 22, .05), 0 1px 3px rgba(14, 17, 22, .04);
  --h-shadow-md: 0 4px 12px rgba(14, 17, 22, .06), 0 1px 3px rgba(14, 17, 22, .05);
  --h-shadow-lg: 0 18px 44px rgba(14, 17, 22, .11), 0 2px 8px rgba(14, 17, 22, .05);
  --h-shadow-xl: 0 40px 90px rgba(10, 20, 51, .22);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--h-n-0); color: var(--h-n-950); font-family: var(--h-font); -webkit-font-smoothing: antialiased; }
a { color: var(--h-primary-500); text-decoration: none; }
a:hover { color: var(--h-primary-600); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--h-primary-500); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--h-primary-100); }
summary { list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
details[open] .caret { transform: rotate(180deg); }
input, select, button { font-family: var(--h-font); }
img { max-width: 100%; display: block; }

/* ── Interactive components (hover/focus need real CSS, not inline) ── */
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 22px;
  border-radius: var(--h-r-md);
  font-size: 16.5px;
  font-weight: 500;
  border: 0;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--h-primary-500);
  color: #fff;
}
.btn-primary:hover { background: var(--h-primary-600); color: #fff; }
.btn-secondary {
  background: var(--h-n-0);
  border: 1px solid var(--h-n-300);
  color: var(--h-n-900);
}
.btn-secondary:hover { background: var(--h-n-50); color: var(--h-n-900); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14.5px; }
.btn-block { width: 100%; }

.lang-btn {
  min-width: 40px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: 0.04em;
  background: transparent;
  color: var(--h-n-500);
}
.lang-btn.active {
  background: var(--h-n-0);
  color: var(--h-n-950);
  box-shadow: var(--h-shadow-sm);
}

.field {
  min-height: 48px;
  border: 1px solid var(--h-n-300);
  border-radius: var(--h-r-md);
  background: var(--h-n-0);
  color: var(--h-n-950);
  padding: 0 13px;
  font-size: 16px;
  font-weight: 400;
  width: 100%;
}
.field:focus {
  border-color: var(--h-primary-500);
  box-shadow: 0 0 0 3px var(--h-primary-50);
}
select.field:focus { box-shadow: none; }
.field.invalid {
  border-color: var(--h-danger);
}
.field.invalid:focus {
  box-shadow: 0 0 0 3px var(--h-danger-bg);
}
.field-error {
  display: none;
  font-size: 12.5px;
  font-weight: 400;
  color: var(--h-danger);
}
.field-error.visible {
  display: block;
}

/* ── Full-height animated hero ── */
.hero-full {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: radial-gradient(120% 100% at 50% 0%, var(--h-primary-800) 0%, var(--h-primary-950) 55%, #05070F 100%);
  color: #fff;
  padding: clamp(96px, 14vh, 160px) clamp(20px, 5vw, 48px) clamp(64px, 10vh, 96px);
  box-sizing: border-box;
}
.hero-full::before,
.hero-full::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .55;
  pointer-events: none;
  will-change: transform;
}
.hero-full::before {
  width: 52vw;
  height: 52vw;
  max-width: 620px;
  max-height: 620px;
  left: -12%;
  top: -10%;
  background: radial-gradient(circle at 35% 35%, var(--h-primary-400), transparent 70%);
  animation: heroDrift1 22s ease-in-out infinite alternate;
}
.hero-full::after {
  width: 40vw;
  height: 40vw;
  max-width: 480px;
  max-height: 480px;
  right: -8%;
  bottom: -12%;
  background: radial-gradient(circle at 60% 60%, var(--h-brass-400), transparent 70%);
  animation: heroDrift2 26s ease-in-out infinite alternate;
}
.hero-grain {
  position: absolute;
  inset: 0;
  opacity: .18;
  mix-blend-mode: overlay;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 60% 55% at 50% 45%, rgba(5,8,18,.6) 0%, rgba(5,8,18,.28) 45%, rgba(5,8,18,0) 75%);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  text-align: center;
}
.hero-content h1,
.hero-content p {
  text-shadow: 0 4px 24px rgba(0,0,0,.4);
}
.badge-dark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(6px);
  font-size: 13px;
  color: var(--h-primary-100);
}
.btn-secondary-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 50px;
  padding: 0 20px;
  border-radius: var(--h-r-md);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.28);
  color: #fff;
  font-size: 16.5px;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.btn-secondary-dark:hover { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.4); }
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: clamp(18px, 3vh, 34px);
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,.55);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  animation: scrollCueBob 2.2s ease-in-out infinite;
}

@keyframes heroDrift1 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(6vw, 8vh) scale(1.15); }
}
@keyframes heroDrift2 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-5vw, -6vh) scale(1.1); }
}
@keyframes scrollCueBob {
  0%, 100% { transform: translate(-50%, 0); }
  50%      { transform: translate(-50%, 8px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-full::before, .hero-full::after, .scroll-cue { animation: none; }
}
