:root {
  --bg: #02060c;
  --text: #f5f7fb;
  --muted: rgba(234, 242, 252, .78);
  --line: rgba(101, 183, 255, .26);
  --cyan: #13bffc;
  --cyan2: #56dfff;
  --red: #ff2838;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: #02060c url("assets/cesustec-hero-poster.jpg") center / cover no-repeat;
}

.hero__video {
  position: absolute;
  inset: 0;
  z-index: -4;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__veil {
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(90deg, rgba(1,5,10,.96) 0%, rgba(1,5,10,.79) 24%, rgba(1,5,10,.32) 47%, rgba(1,5,10,.04) 70%),
    linear-gradient(180deg, rgba(0,0,0,.28) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,.18) 100%);
  pointer-events: none;
}

.hero__vignette {
  position: absolute;
  inset: 0;
  z-index: -2;
  box-shadow: inset 0 0 120px rgba(0,0,0,.55);
  pointer-events: none;
}

.site-header {
  width: min(1480px, calc(100% - 64px));
  height: 74px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.brand {
  justify-self: start;
  display: inline-flex;
  align-items: baseline;
  gap: .34rem;
  font-weight: 800;
  letter-spacing: .035em;
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 0 0 26px rgba(255,255,255,.12);
}
.brand__cesus { font-size: clamp(1.28rem, 1.55vw, 1.72rem); }
.brand__media {
  color: var(--red);
  font-size: clamp(1.05rem, 1.25vw, 1.38rem);
  letter-spacing: .04em;
  text-shadow: 0 0 24px rgba(255,40,56,.22);
}

.nav { display: flex; align-items: center; gap: clamp(2rem, 4vw, 4.8rem); }
.nav a {
  position: relative;
  color: rgba(255,255,255,.92);
  font-size: .98rem;
  font-weight: 520;
  transition: color .2s ease;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: -.7rem;
  height: 1px;
  background: var(--cyan2);
  transition: right .25s ease;
}
.nav a:hover { color: white; }
.nav a:hover::after { right: 0; }

.lang { justify-self: end; display: flex; align-items: center; gap: .72rem; }
.lang span { width: 1px; height: 18px; background: rgba(255,255,255,.35); }
.lang button {
  border: 0;
  padding: 0;
  background: transparent;
  color: rgba(255,255,255,.68);
  cursor: pointer;
  letter-spacing: .04em;
}
.lang button.is-active { color: var(--cyan2); }

.hero__content {
  width: min(1480px, calc(100% - 64px));
  margin: 0 auto;
  padding-top: clamp(12vh, 17vh, 18rem);
  padding-bottom: 8rem;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  color: #65d5ff;
  font-size: clamp(.7rem, .8vw, .88rem);
  letter-spacing: .28em;
  font-weight: 650;
}
.eyebrow i { width: 34px; height: 2px; background: #3cd2ff; box-shadow: 0 0 16px rgba(60,210,255,.5); }

h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(3.5rem, 5.6vw, 6.25rem);
  line-height: .98;
  letter-spacing: -.045em;
  font-weight: 430;
  text-wrap: balance;
  text-shadow: 0 4px 34px rgba(0,0,0,.38);
}
h1 strong {
  color: var(--cyan);
  font-weight: 650;
  text-shadow: 0 0 28px rgba(19,191,252,.2);
}

.hero__copy {
  max-width: 640px;
  margin: 1.7rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.26vw, 1.3rem);
  line-height: 1.58;
  text-wrap: pretty;
}

.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }
.btn {
  min-width: 220px;
  height: 58px;
  padding: 0 1.6rem;
  border-radius: 999px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 1.4rem;
  border: 1px solid rgba(122,199,255,.78);
  font-weight: 600;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn b { font-size: 1.35rem; font-weight: 400; }
.btn:hover { transform: translateY(-2px); }
.btn--primary {
  background: linear-gradient(90deg, #1199fa, #18c6ff);
  border-color: #45d7ff;
  box-shadow: 0 0 30px rgba(0,177,255,.28);
}
.btn--primary:hover { box-shadow: 0 0 38px rgba(0,177,255,.42); }
.btn--ghost { background: rgba(3,12,23,.35); backdrop-filter: blur(8px); }
.btn--ghost:hover { background: rgba(9,29,49,.54); }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  width: 22px;
  height: 38px;
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 999px;
  opacity: .72;
}
.scroll-cue span {
  position: absolute;
  left: 50%; top: 8px;
  width: 3px; height: 7px;
  border-radius: 3px;
  background: var(--cyan2);
  transform: translateX(-50%);
  animation: cue 1.7s ease-in-out infinite;
}
@keyframes cue { 0%,100%{opacity:.2; transform:translate(-50%,0)} 45%{opacity:1} 70%{opacity:.35; transform:translate(-50%,11px)} }

@media (max-width: 960px) {
  .site-header { width: min(100% - 36px, 1480px); grid-template-columns: 1fr auto; }
  .nav { display: none; }
  .hero__content { width: min(100% - 36px, 1480px); padding-top: 18vh; }
  .hero__veil {
    background:
      linear-gradient(90deg, rgba(1,5,10,.92) 0%, rgba(1,5,10,.68) 65%, rgba(1,5,10,.28) 100%),
      linear-gradient(0deg, rgba(0,0,0,.28), transparent 45%);
  }
  h1 { max-width: 690px; }
  .hero__copy { max-width: 570px; }
}

@media (max-width: 620px) {
  .site-header { height: 66px; }
  .brand { gap: .26rem; }
  .brand__cesus { font-size: 1.08rem; }
  .brand__media { font-size: .9rem; }
  .hero__content { padding-top: 15vh; padding-bottom: 7rem; }
  .eyebrow { max-width: 320px; line-height: 1.5; letter-spacing: .18em; }
  .eyebrow i { width: 22px; flex: 0 0 22px; }
  h1 { font-size: clamp(3rem, 15vw, 4.4rem); }
  .hero__copy { font-size: 1rem; max-width: 90%; }
  .hero__actions { flex-direction: column; width: min(100%, 330px); }
  .btn { width: 100%; min-width: 0; }
  .hero__video { object-position: 61% center; }
  .hero__veil {
    background:
      linear-gradient(90deg, rgba(1,5,10,.93) 0%, rgba(1,5,10,.77) 58%, rgba(1,5,10,.42) 100%),
      linear-gradient(0deg, rgba(0,0,0,.34), transparent 52%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__video { display: none; }
  .scroll-cue span { animation: none; }
  * { scroll-behavior: auto !important; }
}
