/* BlueFalcon Tecnologia e Engenharia — premium landing */
:root {
  --bg: #050505;
  --text: rgba(255, 255, 255, 0.9);
  --text-muted: rgba(255, 255, 255, 0.6);
  --accent: #0050ff;
  --cyan: #00d6ff;
  --nav-h: 52px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ——— Nav ——— */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 clamp(16px, 4vw, 48px);
  transition: background-color 0.45s var(--ease-out), backdrop-filter 0.45s var(--ease-out),
    border-color 0.45s var(--ease-out);
  border-bottom: 1px solid transparent;
}

.nav--scrolled {
  background: rgba(5, 5, 5, 0.72);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

.nav__inner {
  width: 100%;
  max-width: 1200px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.nav__brand {
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  justify-self: start;
  line-height: 0;
  display: flex;
  align-items: center;
  background: none;
  background-color: transparent;
  border: none;
  box-shadow: none;
}

.nav__logo {
  height: clamp(20px, 2.42vw, 26px);
  width: auto;
  max-height: 26px;
  display: block;
  object-fit: contain;
  background: none;
  background-color: transparent;
  border: none;
  box-shadow: none;
  outline: none;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 36px);
  justify-self: center;
}

.nav__links a {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.25s var(--ease-out);
}

.nav__links a:hover {
  color: var(--text);
}

.nav__cta-wrap {
  justify-self: end;
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.15rem;
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #fff;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  background: linear-gradient(135deg, var(--accent) 0%, #0038b8 50%, var(--cyan) 140%);
  background-size: 200% 200%;
  background-position: 0% 50%;
  box-shadow: 0 0 0 1px rgba(0, 214, 255, 0.25), 0 8px 32px rgba(0, 80, 255, 0.35);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out),
    background-position 0.5s var(--ease-out);
}

.nav__cta:hover {
  transform: translateY(-1px) scale(1.02);
  background-position: 100% 50%;
  box-shadow: 0 0 0 1px rgba(0, 214, 255, 0.4), 0 12px 40px rgba(0, 80, 255, 0.45);
}

.nav__toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  padding: 8px;
  cursor: pointer;
}

@media (max-width: 900px) {
  .nav__links {
    display: none;
  }

  .nav__toggle {
    display: block;
    justify-self: end;
  }

  .nav__inner {
    grid-template-columns: 1fr auto;
  }

  .nav__cta-wrap {
    display: none;
  }

  .nav--open .nav__links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    padding: 24px;
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    justify-self: stretch;
    grid-column: 1 / -1;
  }
}

/* ——— Story section ——— */
.story {
  position: relative;
  height: 400vh;
  background: var(--bg);
}

.story__pin {
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 520px;
  overflow: hidden;
  background: var(--bg);
}

.story__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  background: #050505;
  border: none;
  outline: none;
  pointer-events: none;
}

.story__vignette {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 45%, transparent 0%, rgba(5, 5, 5, 0.4) 100%);
  z-index: 1;
}

.story__content {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.story__content a,
.story__content button {
  pointer-events: auto;
}

.story-block {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 32px) clamp(24px, 5vw, 80px) 48px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s var(--ease-in-out), visibility 0.6s;
}

.story-block--hero {
  opacity: 1;
  visibility: visible;
}

.story-block--hero,
.story-block--final {
  justify-content: center;
  text-align: center;
}

.story-block--hero .story-block__inner,
.story-block--final .story-block__inner {
  max-width: 720px;
  margin: 0 auto;
}

.story-block--left {
  justify-content: flex-start;
}

.story-block--left .story-block__inner {
  max-width: 420px;
  margin-top: 5vh;
}

.story-block--right {
  justify-content: flex-end;
}

.story-block--right .story-block__inner {
  max-width: 400px;
  text-align: right;
  margin-top: 5vh;
}

.story-block--camera .story-block__inner {
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  margin-top: 8vh;
}

@media (max-width: 768px) {
  .story-block--left,
  .story-block--right,
  .story-block--camera {
    justify-content: center;
    text-align: center;
  }

  .story-block--left .story-block__inner,
  .story-block--right .story-block__inner,
  .story-block--camera .story-block__inner {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    max-width: 100%;
  }
}

.story-eyebrow {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.75rem;
  opacity: 0.9;
}

.story-h1 {
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin: 0 0 1rem;
  color: var(--text);
}

.story-h1--logo {
  font-size: 0;
  line-height: 0;
  letter-spacing: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 0 0 0.75rem;
  background: none;
  background-color: transparent;
  border: none;
  box-shadow: none;
}

.story-hero-logo {
  height: clamp(80px, 12vw, 120px);
  width: auto;
  max-width: 100%;
  max-height: 120px;
  display: block;
  object-fit: contain;
  background: none;
  background-color: transparent;
  border: none;
  box-shadow: none;
  outline: none;
}

.story-h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 1.25rem;
  color: var(--text);
}

.story-lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-muted);
  margin: 0 0 0.625rem;
}

.story-copy {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0 0 1rem;
}

.story-list {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  text-align: inherit;
}

.story-block--right .story-list {
  margin-left: auto;
  max-width: 320px;
}

@media (max-width: 768px) {
  .story-block--right .story-list {
    margin-left: auto;
    margin-right: auto;
  }
}

.story-list li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.65rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.story-block--right .story-list li {
  padding-left: 0;
  padding-right: 1.25rem;
}

.story-block--right .story-list li::before {
  left: auto;
  right: 0;
}

.story-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--cyan));
  box-shadow: 0 0 12px rgba(0, 214, 255, 0.5);
}

.story-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 2rem;
}

.btn-primary {
  padding: 0.85rem 1.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out),
    background 0.3s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 80, 255, 0.45);
  background: #0040dd;
}

.btn-ghost {
  padding: 0.85rem 1.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s, transform 0.3s var(--ease-out);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.45;
  animation: float-hint 2.5s var(--ease-in-out) infinite;
}

.scroll-hint span {
  font-size: 0.625rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.scroll-hint__line {
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, var(--cyan), transparent);
}

@keyframes float-hint {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(6px);
  }
}

.story__pin--past .scroll-hint {
  opacity: 0;
  pointer-events: none;
}

.site-footer {
  padding: 48px 24px 64px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

.site-footer span {
  color: rgba(255, 255, 255, 0.35);
}
