:root {
  --ink: #02040a;
  --deep: #05070d;
  --panel: #071222;
  --line: rgb(168 205 238 / 0.14);
  --text: #f5f8fc;
  --muted: #aab6c9;
  --faint: #718094;
  --cyan: #28c7ff;
  --blue: #009dff;
  --gold: #d7b76a;
  --radius: 8px;
  --display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--deep);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  color: var(--text);
  background: var(--deep);
  font-family: var(--body);
  letter-spacing: 0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgb(168 205 238 / 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgb(168 205 238 / 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, black 0%, transparent 88%);
}

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

img {
  display: block;
  max-width: 100%;
}

.skip-link {
  position: fixed;
  top: -48px;
  left: 16px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: var(--radius);
  background: var(--cyan);
  color: #00111d;
  font-weight: 900;
}

.skip-link:focus {
  top: 16px;
}

/* ===== NAVBAR ===== */
.site-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  min-height: 78px;
  padding: 14px clamp(18px, 4vw, 48px);
  border-bottom: 1px solid rgb(168 205 238 / 0.08);
  background: rgb(2 4 10 / 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: background 0.2s ease, min-height 0.2s ease;
}

.site-nav.is-scrolled {
  min-height: 66px;
  background: rgb(2 4 10 / 0.94);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgb(40 199 255 / 0.72);
  border-radius: 50%;
  color: var(--cyan);
  font-family: var(--display);
  font-weight: 700;
  box-shadow: 0 0 22px rgb(40 199 255 / 0.18);
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong {
  font-size: 16px;
  line-height: 1;
}

.brand-os {
  color: var(--blue);
}

.brand-copy small {
  color: var(--muted);
  font-size: 11px;
}

.nav-cta {
  border: 1px solid rgb(40 199 255 / 0.5);
  border-radius: 999px;
  padding: 12px 18px;
  color: var(--cyan);
  background: rgb(40 199 255 / 0.035);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.18s ease, background 0.18s ease;
}

.nav-cta:hover {
  color: var(--text);
  background: rgb(40 199 255 / 0.15);
}

/* ===== HERO ===== */
.hero {
  min-height: 100dvh;
  padding: 96px clamp(18px, 4vw, 58px) 48px;
}

.home-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
  padding-right: clamp(18px, 4vw, 58px);
  background: var(--deep);
}

/* Multi-layer parallax: image moves slower than content */
.hero-art {
  position: absolute;
  inset: -15% 0;
  z-index: 0;
  will-change: transform, opacity;
  height: 130%;
}

.hero-art img,
.hero-art video {
  width: 100%;
  height: 100%;
  object-fit: cover;          /* preenche a pagina toda, igual a imagem */
  object-position: center;    /* << knob: 'left center' / '30% center' p/ escolher o que fica visivel */
  opacity: 0.65;
  filter: saturate(1.05) contrast(1.12) brightness(0.42);
  transform: scale(1.06);
  transition: transform 0.1s linear;
}

/* Vignette overlay for depth */
.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, #02040a 0%, rgb(2 4 10 / 0.96) 22%, rgb(2 4 10 / 0.68) 48%, rgb(2 4 10 / 0.18) 76%, rgb(2 4 10 / 0.5) 100%),
    linear-gradient(180deg, rgb(2 4 10 / 0.74) 0%, transparent 35%, rgb(2 4 10 / 0.8) 100%);
}

/* Radial glow accent */
.home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(circle at 78% 45%, rgb(40 199 255 / 0.18), transparent 34rem);
  mix-blend-mode: screen;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(760px, 100%);
  margin: 0 auto;
  padding-top: clamp(8px, 1.5vh, 24px);
  text-shadow: 0 18px 50px rgb(0 0 0 / 0.72);
  will-change: transform;
  transform-style: preserve-3d;
  perspective: 1000px;
}

[data-hero-title],
[data-hero-bottom] {
  will-change: transform, opacity;
}

.typewriter-prefix {
  display: block;
  color: var(--faint);
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 500;
  line-height: 1.4;
  text-transform: none;
  letter-spacing: 0.01em;
  margin-bottom: 8px;
}

.typewriter-text {
  display: inline;
  color: var(--cyan);
  white-space: nowrap;
}

.typewriter-cursor {
  display: inline;
  color: var(--cyan);
  animation: blink 1s step-end infinite;
  font-weight: 400;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.signal {
  margin: 0 0 28px;
  color: var(--cyan);
  font-size: clamp(14px, 1.8vw, 18px);
  font-weight: 700;
  letter-spacing: 0.2em;
  line-height: 1.4;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-family: var(--display);
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(52px, 7.2vw, 96px);
  line-height: 0.92;
  min-height: auto;
  letter-spacing: -0.02em;
}

.hero-typewriter {
  margin: 16px 0 0;
  color: var(--cyan);
  font-size: clamp(18px, 2.6vw, 28px);
  font-weight: 700;
  line-height: 1.35;
  font-family: var(--display);
  text-transform: uppercase;
  min-height: 1.4em;
}

.typewriter-cursor {
  display: inline;
  color: var(--cyan);
  animation: blink 1s step-end infinite;
  font-weight: 400;
  margin-left: 2px;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-bullets {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  gap: 18px;
  max-width: 680px;
}

.hero-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 0;
}

.hero-bullets .bullet {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  margin-top: 0.62em;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px rgb(40 199 255 / 0.55);
}

.hero-sub {
  color: var(--text);
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 700;
  line-height: 1.35;
}

.hero-sub .highlight {
  color: var(--cyan);
}

.hero-text {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.72;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 22px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.button.primary {
  color: #00111d;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 12px 34px rgb(40 199 255 / 0.18);
}

.button.secondary {
  border: 1px solid rgb(245 248 252 / 0.28);
  color: var(--text);
  background: rgb(245 248 252 / 0.035);
}

.button.secondary:hover,
.button.secondary:focus-visible {
  border-color: rgb(40 199 255 / 0.6);
  background: rgb(40 199 255 / 0.1);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

/* ===== SECOND FULLBLEED SECTION (Terrible CT style) ===== */
.section-fullbleed {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
  min-height: 100dvh;
  padding-right: clamp(18px, 4vw, 58px);
  background: var(--deep);
}

.section-fullbleed .hero-art img {
  opacity: 0.5;
  filter: saturate(1.05) contrast(1.12) brightness(0.34);
  transform: scale(1.08);
}

.section-vignette {
  background:
    linear-gradient(90deg, #02040a 0%, rgb(2 4 10 / 0.94) 28%, rgb(2 4 10 / 0.62) 55%, rgb(2 4 10 / 0.25) 80%, rgb(2 4 10 / 0.55) 100%),
    linear-gradient(180deg, rgb(2 4 10 / 0.9) 0%, transparent 40%, rgb(2 4 10 / 0.9) 100%);
}

.section-copy {
  padding-top: clamp(36px, 5vh, 72px);
}

.typewriter-static {
  color: var(--cyan);
}

/* ===== PARTICLES CANVAS ===== */
.particle-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
}

/* ===== FOOTER ===== */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  min-height: 64px;
  padding: 18px clamp(18px, 4vw, 58px);
  border-top: 1px solid rgb(168 205 238 / 0.08);
}

.site-footer a {
  color: var(--cyan);
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 5px 12px;
  border: 1px solid rgb(40 199 255 / 0.35);
  border-radius: 999px;
  color: var(--cyan);
  background: rgb(40 199 255 / 0.05);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.social-link svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.social-link:hover,
.social-link:focus-visible {
  color: var(--text);
  background: linear-gradient(135deg, rgb(40 199 255 / 0.18), rgb(0 157 255 / 0.18));
  border-color: rgb(40 199 255 / 0.72);
  box-shadow: 0 0 20px rgb(40 199 255 / 0.18);
}

/* ===== REVEAL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.72s ease, transform 0.72s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Slide-in from sides */
.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-left.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-right.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.72s ease, transform 0.72s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-scale.is-visible {
  opacity: 1;
  transform: scale(1);
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ===== TABLET ===== */
@media (max-width: 960px) {
  .home-hero {
    grid-template-columns: 1fr;
  }
}

/* ===== MOBILE ===== */
@media (max-width: 640px) {
  .site-nav {
    min-height: 68px;
    gap: 10px;
    padding: 12px 16px;
  }

  .brand-copy small {
    display: none;
  }

  .brand-copy strong {
    font-size: 15px;
  }

  .hero {
    min-height: auto;
    min-height: 100dvh;
    padding-top: 92px;
    padding-bottom: 36px;
  }

  .section-fullbleed {
    min-height: auto;
    min-height: 100dvh;
    padding-top: 92px;
  }

  .hero-copy {
    padding-top: 0;
  }

  h1 {
    max-width: none;
    font-size: clamp(38px, 10.5vw, 56px);
    line-height: 0.98;
    min-height: auto;
  }

  h2 {
    font-size: clamp(30px, 9vw, 46px);
    line-height: 1.02;
  }

  .hero-typewriter {
    font-size: clamp(14px, 4vw, 19px);
    min-height: 2.8em;
    line-height: 1.35;
  }

  .hero-bullets {
    gap: 14px;
    max-width: none;
  }

  .hero-bullets .bullet {
    width: 7px;
    height: 7px;
    margin-top: 0.55em;
  }

  .hero-sub {
    max-width: none;
    font-size: 17px;
    line-height: 1.42;
  }

  .hero-text {
    max-width: none;
    font-size: 15px;
    line-height: 1.65;
  }

  .signal {
    max-width: none;
    font-size: clamp(11px, 3vw, 14px);
    letter-spacing: 0.18em;
  }

  .button,
  .actions {
    width: 100%;
  }

  .site-footer {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    min-height: 58px;
    padding: 12px 16px;
  }

  .social-link {
    min-height: 30px;
    padding: 4px 10px;
    font-size: 10px;
  }

  .social-link svg {
    width: 14px;
    height: 14px;
  }

  /* Simplify entrance animations on mobile to avoid overlap/jank */
  .reveal-left,
  .reveal-right {
    opacity: 0;
    transform: translateX(-28px);
    transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .reveal-right {
    transform: translateX(28px);
  }

  .reveal-left.is-visible,
  .reveal-right.is-visible {
    opacity: 1;
    transform: translateX(0);
  }

  .reveal,
  .reveal-scale {
    transition-duration: 0.55s;
  }

  .hero-art {
    inset: -8% 0;
    height: 116%;
  }

  .hero-art img {
    transform: scale(1.04);
  }

  /* Mobile: tela estreita corta as laterais. Desloca o enquadramento p/ a DIREITA
     (= a imagem "vem mais pra esquerda") pra NAO cortar o urso (lado direito do logo). */
  .home-hero .hero-art video {
    object-position: 78% center;   /* << maior % = mostra mais a DIREITA (urso); menor = volta ao centro */
    transform: scale(1.04);
  }
}
