:root {
  color-scheme: dark;
  --navy-950: #01050b;
  --navy-900: #020a13;
  --navy-850: #04131f;
  --navy-800: #082237;
  --mint: #5fe0ba;
  --mint-strong: #2ed9aa;
  --white: #f7fbff;
  --steel: #a8b7c8;
  --line: rgba(176, 207, 229, 0.2);
  --glass: rgba(10, 31, 50, 0.62);
}

@property --glow-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--navy-950);
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--navy-950);
  color: var(--white);
  font-family:
    "Avenir Next",
    "SF Pro Display",
    "SF Pro Text",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 16px;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
  letter-spacing: 0;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 6px;
  background: var(--white);
  color: var(--navy-950);
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

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

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

.story-nav {
  position: fixed;
  top: 18px;
  left: 50vw;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  width: min(1180px, calc(100vw - 36px));
  min-height: 60px;
  padding: 8px 10px 8px 14px;
  border: 1px solid rgba(218, 238, 250, 0.14);
  border-radius: 999px;
  background: rgba(1, 7, 14, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 18px 54px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(22px) saturate(135%);
  -webkit-backdrop-filter: blur(22px) saturate(135%);
  transform: translateX(-50%);
  transition:
    background-color 220ms ease,
    border-color 220ms ease;
}

.story-nav.is-scrolled {
  background: rgba(1, 7, 14, 0.9);
  border-color: rgba(218, 238, 250, 0.22);
}

.story-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  color: var(--white);
  font-size: 15px;
  font-weight: 650;
  text-decoration: none;
}

.story-brand img {
  display: block;
  width: 34px;
  height: 27px;
  object-fit: contain;
}

.glass-button {
  --glow-angle: 0deg;
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  background:
    linear-gradient(rgba(3, 14, 25, 0.96), rgba(7, 26, 39, 0.94)) padding-box,
    conic-gradient(
        from var(--glow-angle),
        rgba(95, 224, 186, 0.08) 0deg,
        rgba(95, 224, 186, 0.08) 205deg,
        rgba(95, 224, 186, 0.96) 242deg,
        rgba(151, 211, 255, 0.96) 270deg,
        rgba(95, 224, 186, 0.1) 312deg,
        rgba(95, 224, 186, 0.08) 360deg
      ) border-box;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -12px 28px rgba(20, 111, 97, 0.08),
    0 12px 32px rgba(0, 0, 0, 0.24);
  color: var(--white);
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  animation: galaxyOrbit 4.8s linear infinite paused;
  transition:
    transform 260ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 260ms ease,
    color 180ms ease;
}

.glass-button::before {
  position: absolute;
  inset: -80% -35%;
  z-index: 0;
  background: radial-gradient(circle, rgba(95, 224, 186, 0.2) 0%, rgba(95, 224, 186, 0.05) 28%, transparent 62%);
  content: "";
  pointer-events: none;
  transform: translate3d(-42%, 0, 0);
  animation: galaxySweep 3.6s cubic-bezier(0.45, 0, 0.55, 1) infinite paused;
}

.glass-button:hover {
  animation-play-state: running;
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -12px 30px rgba(24, 133, 112, 0.16),
    0 0 22px rgba(95, 224, 186, 0.12),
    0 16px 36px rgba(0, 0, 0, 0.28);
}

.glass-button:active {
  transform: scale(0.98);
}

.glass-button:disabled {
  opacity: 0.62;
  cursor: wait;
}

.glass-button--small {
  justify-self: end;
  min-height: 42px;
  padding: 0 18px;
  font-size: 14px;
}

.glass-button--primary {
  color: #fafffd;
}

.scroll-story {
  position: relative;
  height: 500svh;
  min-height: 3500px;
  background: var(--navy-950);
}

.story-stage {
  position: sticky;
  top: 0;
  width: 100vw;
  height: 100svh;
  height: 100dvh;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: var(--navy-950);
}

.story-media,
.story-frame,
.story-frame picture,
.story-frame video {
  position: absolute;
  inset: 0;
}

.story-media {
  z-index: -3;
  background: var(--navy-950);
}

.story-frame {
  margin: 0;
  opacity: 0;
  transform: scale(1.08);
  transform-origin: 70% 50%;
  will-change: opacity, transform;
  backface-visibility: hidden;
}

.story-frame::before {
  position: absolute;
  inset: -3%;
  z-index: -1;
  background: var(--navy-950);
  content: "";
  opacity: 1;
}

.story-frame.is-active {
  opacity: 1;
}

.story-frame picture,
.story-frame video {
  top: 0;
  right: 0;
  bottom: 0;
  left: auto;
  width: min(76vw, 96svh);
  height: 100%;
  transform: scale(1.1);
  transform-origin: right center;
  transition: opacity 180ms ease;
}

.story-frame video {
  z-index: 1;
  opacity: 0;
}

.story-frame picture {
  z-index: 0;
  opacity: 1;
}

.story-frame.is-video-ready:not(.is-video-failed) video {
  opacity: 1;
}

.story-frame.is-video-ready:not(.is-video-failed) picture {
  opacity: 0;
}

.story-frame img,
.story-frame video {
  display: block;
  height: 100%;
  object-fit: contain;
  object-position: right center;
  filter: brightness(1.08) saturate(1.04);
  user-select: none;
}

.story-frame img {
  width: 100%;
}


.story-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(1, 5, 11, 0.99) 0%, rgba(1, 5, 11, 0.9) 34%, rgba(1, 5, 11, 0.5) 52%, rgba(1, 5, 11, 0.18) 72%, rgba(1, 5, 11, 0.06) 100%),
    linear-gradient(0deg, rgba(1, 5, 11, 0.72) 0%, rgba(1, 5, 11, 0.12) 48%, rgba(1, 5, 11, 0.08) 100%);
}

.story-copy {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.story-copy__panel {
  --scene-shift: 34px;
  position: absolute;
  top: 50%;
  left: max(6vw, 42px);
  width: min(590px, 42vw);
  opacity: 0;
  transform: translate3d(0, calc(-50% + var(--scene-shift)), 0);
  will-change: opacity, transform;
  pointer-events: none;
}

.story-copy__panel.is-active {
  opacity: 1;
  pointer-events: auto;
}

.story-copy__panel:first-child { --scene-shift: 0px; }
.glass-button:hover::before,
.glass-button:focus-visible,
.glass-button:focus-visible::before { animation-play-state: running; }

.story-kicker {
  margin: 0 0 20px;
  color: var(--mint);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.story-copy h1,
.story-copy h2,
.access-section h2 {
  margin: 0;
  max-width: 12ch;
  color: var(--white);
  font-size: 68px;
  font-weight: 650;
  line-height: 1.02;
  letter-spacing: 0;
  text-wrap: balance;
}

.story-copy h2 {
  font-size: 58px;
}

.story-copy__panel > p:not(.story-kicker),
.access-section__intro > p:not(.story-kicker) {
  max-width: 55ch;
  margin: 24px 0 0;
  color: #bdc8d4;
  font-size: 18px;
  line-height: 1.62;
}

.story-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 32px;
  pointer-events: auto;
}

.text-button {
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid rgba(151, 211, 255, 0.26);
  border-radius: 999px;
  background: rgba(3, 14, 25, 0.76);
  color: var(--white);
  font-weight: 650;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition:
    transform 260ms cubic-bezier(0.16, 1, 0.3, 1),
    border-color 220ms ease,
    background-color 220ms ease;
}

.text-button::after {
  display: inline-block;
  margin-left: 10px;
  color: var(--mint);
  content: "›";
  transition: transform 180ms ease;
}

.text-button:hover::after {
  transform: translateX(4px);
}

.text-button:hover {
  border-color: rgba(95, 224, 186, 0.7);
  background: rgba(7, 30, 42, 0.92);
  transform: translateY(-1px);
}

.text-button:active {
  transform: scale(0.98);
}

.story-tags {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
  max-width: 470px;
  padding: 0;
  margin: 34px 0 0;
  list-style: none;
}

.story-tags li {
  padding: 13px 0;
  border-top: 1px solid var(--line);
  color: #d8e2ea;
  font-size: 14px;
  font-weight: 600;
}

.story-tags li::before {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 12px rgba(95, 224, 186, 0.7);
  content: "";
  vertical-align: 2px;
}

@keyframes galaxyOrbit {
  to {
    --glow-angle: 360deg;
  }
}

@keyframes galaxySweep {
  0%,
  100% {
    transform: translate3d(-42%, 0, 0);
  }
  50% {
    transform: translate3d(42%, 0, 0);
  }
}

.access-section {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 0.72fr);
  gap: 9vw;
  align-items: center;
  min-height: 100dvh;
  padding: 150px max(6vw, 42px) 110px;
  overflow: hidden;
  background:
    linear-gradient(115deg, rgba(3, 17, 29, 0.99), rgba(1, 5, 11, 1)),
    var(--navy-950);
}

.access-section::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: url("assets/mockups-2026/agente.webp");
  background-repeat: no-repeat;
  background-position: -18vw 55%;
  background-size: auto 130%;
  opacity: 0.1;
  content: "";
  pointer-events: none;
}

.access-section__intro {
  max-width: 680px;
}

.access-section h2 {
  max-width: 11ch;
  font-size: 62px;
}

.access-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
  max-width: 620px;
  padding: 34px;
  border: 1px solid rgba(211, 235, 248, 0.16);
  border-radius: 8px;
  background: rgba(12, 35, 56, 0.58);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    0 32px 80px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(24px) saturate(130%);
  -webkit-backdrop-filter: blur(24px) saturate(130%);
}

.access-form label:not(.legal-consent) {
  display: grid;
  gap: 8px;
  color: #d8e2ea;
  font-size: 13px;
  font-weight: 650;
}

.access-form__wide {
  grid-column: 1 / -1;
}

.access-form label > span {
  color: var(--steel);
  font-weight: 450;
}

.access-form input[type="text"],
.access-form input[type="email"],
.access-form input[type="tel"] {
  width: 100%;
  min-height: 52px;
  padding: 0 15px;
  border: 1px solid rgba(201, 229, 244, 0.18);
  border-radius: 8px;
  background: rgba(5, 20, 36, 0.62);
  color: var(--white);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.access-form input::placeholder {
  color: #72869a;
}

.access-form input:focus {
  border-color: rgba(95, 224, 186, 0.7);
}

.legal-consent,
.privacy-note,
.access-submit,
.sheet-status {
  grid-column: 1 / -1;
}

.legal-consent {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 11px;
  align-items: start;
  margin-top: 4px;
  color: #bdc8d4;
  font-size: 12px;
  line-height: 1.55;
}

.legal-consent input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--mint);
}

.legal-consent a,
.privacy-note a {
  color: var(--white);
  text-underline-offset: 3px;
}

.privacy-note {
  margin: -6px 0 0;
  color: #8fa0b1;
  font-size: 11px;
  line-height: 1.55;
}

.access-submit {
  width: 100%;
  border: 1px solid rgba(95, 224, 186, 0.55);
}

.sheet-status {
  margin: 0;
  padding: 12px 14px;
  border-left: 2px solid var(--mint);
  background: rgba(5, 20, 36, 0.54);
  color: #d8e2ea;
  font-size: 13px;
}

.sheet-status[data-status="error"] {
  border-color: #ff8b8b;
  color: #ffd1d1;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  min-height: 112px;
  padding: 28px max(6vw, 42px);
  border-top: 1px solid rgba(180, 209, 228, 0.12);
  background: var(--navy-950);
  color: var(--steel);
}

.site-footer .story-brand img {
  width: 41px;
  height: 32px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.site-footer nav a {
  color: var(--steel);
  font-size: 12px;
  text-decoration: none;
}

.site-footer nav a:hover {
  color: var(--white);
}

.site-footer > p {
  justify-self: end;
  margin: 0;
  font-size: 12px;
}

.cookie-banner {
  position: fixed;
  right: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 80;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  max-width: 920px;
  padding: 20px;
  margin: 0 auto;
  border: 1px solid rgba(218, 238, 250, 0.18);
  border-radius: 8px;
  background: rgba(5, 20, 36, 0.94);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 20px 54px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.cookie-banner strong {
  font-size: 14px;
}

.cookie-banner p {
  margin: 5px 0;
  color: var(--steel);
  font-size: 12px;
  line-height: 1.45;
}

.cookie-banner a {
  color: var(--white);
  font-size: 12px;
}

.cookie-actions {
  display: flex;
  gap: 10px;
}

.cookie-actions .button {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(151, 211, 255, 0.24);
  border-radius: 999px;
  background: rgba(3, 14, 25, 0.94);
  color: var(--white);
  font-weight: 650;
  cursor: pointer;
}

.cookie-actions .button.primary {
  border-color: rgba(95, 224, 186, 0.72);
  background: rgba(14, 68, 60, 0.58);
}

.noscript-note {
  position: fixed;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 90;
  margin: 0;
  padding: 14px;
  background: var(--white);
  color: var(--navy-950);
  text-align: center;
}

@media (max-width: 1050px) {
  .story-frame picture,
  .story-frame video {
    right: 0;
    width: min(70vw, 70svh);
  }

  .story-copy__panel {
    width: min(540px, 48vw);
  }

  .story-copy h1 {
    font-size: 58px;
  }

  .story-copy h2 {
    font-size: 50px;
  }

  .access-section {
    grid-template-columns: 1fr;
    gap: 64px;
  }

  .access-section__intro,
  .access-form {
    max-width: 760px;
  }
}

@media (max-width: 760px) {
  .story-nav {
    top: calc(10px + env(safe-area-inset-top));
    grid-template-columns: 1fr auto;
    width: calc(100% - 20px);
    min-height: 54px;
    padding: 6px 7px 6px 10px;
  }

  .story-brand {
    gap: 7px;
    font-size: 13px;
  }

  .story-brand img {
    width: 32px;
    height: 25px;
  }

  .glass-button--small {
    min-height: 40px;
    padding: 0 14px;
    font-size: 12px;
  }

  .scroll-story {
    height: 475svh;
    min-height: 3300px;
  }

  .story-stage {
    height: 100svh;
    height: 100dvh;
    min-height: 100svh;
  }

  .story-frame {
    transform-origin: 50% 45%;
  }

  .story-frame picture,
  .story-frame video {
    inset: 0;
    width: 100%;
    height: 100%;
    transform: scale(1.04);
  }

  .story-frame img,
  .story-frame video {
    object-fit: cover;
    object-position: 50% 50%;
    filter: brightness(1.14) saturate(1.08);
  }


  .story-shade {
    background:
      linear-gradient(0deg, rgba(1, 5, 11, 0.98) 0%, rgba(1, 5, 11, 0.92) 22%, rgba(1, 5, 11, 0.68) 38%, rgba(1, 5, 11, 0.28) 58%, rgba(1, 5, 11, 0.08) 78%, rgba(1, 5, 11, 0.04) 100%),
      linear-gradient(90deg, rgba(1, 5, 11, 0.24), rgba(1, 5, 11, 0.06));
  }

  .story-copy__panel {
    --scene-shift: 24px;
    top: auto;
    right: 24px;
    bottom: max(72px, calc(52px + env(safe-area-inset-bottom)));
    left: 24px;
    width: auto;
    transform: translate3d(0, var(--scene-shift), 0);
  }

  .story-kicker {
    margin-bottom: 12px;
    font-size: 12px;
  }

  .story-copy h1,
  .story-copy h2 {
    max-width: 13ch;
    font-size: 40px;
    line-height: 1.04;
  }

  .story-copy h2 {
    font-size: 36px;
  }

  .story-copy__panel > p:not(.story-kicker) {
    max-width: 40ch;
    margin-top: 14px;
    font-size: 15px;
    line-height: 1.48;
  }

  .story-actions {
    gap: 14px;
    margin-top: 20px;
  }

  .story-actions .glass-button {
    min-height: 44px;
    padding: 0 17px;
    font-size: 13px;
  }

  .text-button {
    min-height: 44px;
    font-size: 13px;
  }

  .story-tags {
    gap: 0 18px;
    margin-top: 18px;
  }

  .story-tags li {
    padding: 9px 0;
    font-size: 12px;
  }

  .access-section {
    min-height: auto;
    padding: 110px 20px 76px;
  }

  .access-section h2 {
    font-size: 44px;
  }

  .access-section__intro > p:not(.story-kicker) {
    margin-top: 18px;
    font-size: 16px;
    line-height: 1.55;
  }

  .access-form {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 22px;
  }

  .legal-consent,
  .privacy-note,
  .access-form__wide,
  .access-submit,
  .sheet-status {
    grid-column: auto;
  }

  .site-footer {
    grid-template-columns: 1fr;
    justify-items: start;
    padding: 34px 20px;
  }

  .site-footer nav {
    justify-content: flex-start;
  }

  .site-footer > p {
    justify-self: start;
  }

  .cookie-banner {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .cookie-actions {
    justify-content: flex-end;
  }
}

@media (min-width: 1600px) {
  .story-frame picture,
  .story-frame video {
    right: 4vw;
    width: min(64vw, 86svh);
  }

  .story-copy__panel {
    left: max(7vw, 72px);
  }
}

@media (max-width: 390px) {
  .story-brand span {
    display: none;
  }

  .story-copy h1 {
    font-size: 36px;
  }

  .story-copy h2 {
    font-size: 32px;
  }

  .story-copy__panel > p:not(.story-kicker) {
    font-size: 14px;
  }

  .story-tags li:nth-child(n + 3) {
    display: none;
  }

  .access-section h2 {
    font-size: 38px;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .scroll-story {
    height: auto;
    min-height: 100dvh;
  }

  .story-stage {
    position: relative;
    min-height: 100dvh;
  }

  .story-frame:not(:first-child) {
    display: none;
  }

  .story-frame video {
    display: none;
  }

  .story-frame picture {
    opacity: 1 !important;
  }

  .story-copy {
    position: relative;
    display: grid;
    gap: 0;
    padding: 120px max(6vw, 24px) 70px;
  }

  .story-copy__panel {
    position: relative;
    top: auto;
    left: auto;
    width: min(620px, 100%);
    min-height: 62dvh;
    padding: 52px 0;
    opacity: 1 !important;
    transform: none !important;
  }
}
