@font-face {
  font-family: "Outfit";
  src: url("./assets/fonts/outfit-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Archivo Narrow";
  src: url("./assets/fonts/archivo-narrow-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --green-01: #21362d;
  --green-02: #146446;
  --green-03: #cbff2e;
  --orange-01: #ff8200;
  --orange-02: #ffaa00;
  --yellow-01: #ffe664;
  --surface: #f8faf8;
  --gradient-vena-action: linear-gradient(180deg, #ffaa00 0%, #ff8200 100%);
  --shadow-vena-sm: 0 10px 30px -14px rgba(33, 54, 45, 0.6);
  --shadow-vena-orange: 0 10px 24px -10px rgba(255, 130, 0, 0.55);
  --ease-vena: cubic-bezier(0.22, 1, 0.36, 1);
  --skew-edge: 20deg;
  font-family: "Qanelas Soft", "Outfit", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  background: var(--green-01);
  color: #fff;
  -webkit-font-smoothing: antialiased;
}

.hero {
  position: relative;
  display: grid;
  overflow: hidden;
  min-height: 100vh;
  min-height: 100svh;
  background: linear-gradient(160deg, var(--green-01) 55%, var(--green-02) 130%);
}

.brandbar {
  position: absolute;
  z-index: 2;
}

.brandbar {
  display: flex;
  align-items: center;
  gap: 12px;
  animation: rise 700ms var(--ease-vena) both;
}

.brandbar__symbol {
  height: 52px;
  width: auto;
}

/* wordmark conforme manual: Qanelas Soft (Outfit stand-in), Verde 03, caixa baixa */
.brandbar__wordmark {
  display: flex;
  flex-direction: column;
  color: var(--green-03);
  line-height: 1;
}

.brandbar__name {
  font-size: 1.85rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brandbar__tagline {
  margin-top: 3px;
  padding-left: 2px;
  font-size: 0.66rem;
  font-weight: 300;
  letter-spacing: 0.12em;
}

.hero__photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  margin: 0;
}

.hero__photo picture,
.hero__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

.hero__photo img {
  animation: photo-zoom 1.6s var(--ease-vena) both;
}

.hero__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    200deg,
    rgba(33, 54, 45, 0.5),
    rgba(33, 54, 45, 0.08) 45%,
    rgba(33, 54, 45, 0.28)
  );
}

/* card: mesma linguagem visual (aurora, reflexo, grão, faíscas) em todos os tamanhos */
.hero__panel {
  position: relative;
  z-index: 1;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  background: rgba(33, 54, 45, 0.36);
  -webkit-backdrop-filter: blur(22px) saturate(120%);
  backdrop-filter: blur(22px) saturate(120%);
  border: 1px solid rgba(203, 255, 46, 0.14);
  border-radius: 10px;
  box-shadow:
    0 40px 90px -40px rgba(33, 54, 45, 0.9),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
  transition:
    transform 500ms var(--ease-vena),
    border-color 500ms var(--ease-vena),
    box-shadow 500ms var(--ease-vena);
}

.hero__panel:hover {
  transform: translateY(-4px);
  border-color: rgba(203, 255, 46, 0.38);
  box-shadow:
    0 56px 110px -44px rgba(33, 54, 45, 0.95),
    0 0 0 1px rgba(203, 255, 46, 0.08),
    0 0 60px -20px rgba(203, 255, 46, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* reflexo de vidro: faixa de luz varrendo o card em diagonal */
.hero__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    115deg,
    transparent 0 38%,
    rgba(255, 255, 255, 0.05) 45%,
    rgba(203, 255, 46, 0.14) 50%,
    rgba(255, 255, 255, 0.05) 55%,
    transparent 62% 100%
  );
  transform: translateX(-100%);
  pointer-events: none;
  animation: sheen 7s var(--ease-vena) 1.4s infinite;
}

/* aurora: brilho Verde 02 / Verde 03 vagando atrás do conteúdo */
.hero__panel::after {
  content: "";
  position: absolute;
  inset: -40%;
  z-index: 0;
  background:
    radial-gradient(
      closest-side at 30% 30%,
      rgba(20, 100, 70, 0.55),
      transparent
    ),
    radial-gradient(
      closest-side at 70% 70%,
      rgba(203, 255, 46, 0.16),
      transparent
    );
  filter: blur(30px);
  pointer-events: none;
  animation: aurora 14s ease-in-out infinite alternate;
}

/* camada de efeitos do card: grão, faíscas */
.card-fx {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.card-fx__grain {
  position: absolute;
  inset: 0;
  opacity: 0.09;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 160px 160px;
}

/* faíscas de energia subindo: pontos Laranja 02 / Verde 03 */
.card-fx__sparks {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255, 170, 0, 0.9) 0 1.2px, transparent 2px),
    radial-gradient(circle, rgba(203, 255, 46, 0.8) 0 1px, transparent 1.8px),
    radial-gradient(circle, rgba(255, 255, 255, 0.55) 0 0.8px, transparent 1.6px);
  background-size:
    180px 220px,
    140px 260px,
    220px 300px;
  background-position:
    10px 40px,
    70px 120px,
    120px 20px;
  opacity: 0.55;
  animation: sparks 22s linear infinite;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 25%, #000 75%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 25%, #000 75%, transparent);
}

.hero__body,
.site-footer {
  position: relative;
  z-index: 1;
}

.hero__body {
  max-width: 620px;
}

.hero__eyebrow {
  margin: 0 0 18px;
  color: var(--green-03);
  font-size: 0.95rem;
  font-weight: 500;
  animation: rise 700ms var(--ease-vena) 80ms both;
}

h1 {
  position: relative;
  margin: 0;
  font-weight: 300;
  font-size: clamp(2.6rem, 5.5vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: #fff;
}

h1 .light {
  display: block;
  animation: rise 800ms var(--ease-vena) 160ms both;
}

h1 .strong {
  display: block;
  color: var(--green-03);
  font-weight: 600;
  animation: rise 800ms var(--ease-vena) 260ms both;
}

.hero__summary {
  max-width: 480px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.05rem;
  line-height: 1.6;
  animation: rise 700ms var(--ease-vena) 380ms both;
}

.status {
  --beam-angle: 0deg;
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 28px 0 0;
  padding: 10px 18px 10px 14px;
  border-radius: 999px;
  color: #fff;
  background: rgba(33, 54, 45, 0.55);
  box-shadow:
    0 12px 32px -14px rgba(33, 54, 45, 0.9),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  overflow: hidden;
  animation: rise 700ms var(--ease-vena) 480ms both;
}

/* border beam: feixe laranja -> verde 03 percorrendo a borda */
.status::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  padding: 1px;
  border-radius: inherit;
  background: conic-gradient(
    from var(--beam-angle),
    transparent 0 62%,
    var(--orange-01) 78%,
    var(--green-03) 92%,
    transparent 100%
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: beam 3.2s linear infinite;
}

/* shimmer: brilho suave varrendo o texto */
.status__label {
  background: linear-gradient(
    100deg,
    #fff 0 40%,
    var(--green-03) 50%,
    #fff 60% 100%
  );
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 3.2s ease-in-out infinite;
}

.status__dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange-01);
  box-shadow: 0 0 10px rgba(255, 130, 0, 0.7);
}

.status__dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--orange-02);
  animation: ping 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.lines {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.lines__l {
  position: absolute;
  height: 1px;
  width: 140%;
  left: -20%;
  background: var(--green-03);
  transform: rotate(calc(-1 * var(--skew-edge))) scaleX(0);
  transform-origin: left center;
  animation: draw 900ms var(--ease-vena) 200ms both;
}

.lines__l--1 {
  top: 12%;
  opacity: 0.35;
}

.lines__l--2 {
  top: 58%;
  opacity: 0.7;
  animation-delay: 320ms;
}

.lines__l--3 {
  top: 96%;
  opacity: 0.45;
  animation-delay: 440ms;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid rgba(203, 255, 46, 0.2);
  animation: rise 700ms var(--ease-vena) 560ms both;
}

.site-footer__handle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--green-03);
  font-weight: 500;
  font-size: 0.85rem;
  text-decoration: none;
}

.site-footer__icon {
  flex: none;
  transition: transform 300ms var(--ease-vena);
}

.site-footer__handle:hover .site-footer__icon,
.site-footer__handle:focus-visible .site-footer__icon {
  transform: rotate(-12deg) scale(1.1);
}

.site-footer__handle:hover,
.site-footer__handle:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
  outline: none;
}

.site-footer__url {
  font-family: "Archivo Narrow", "Outfit", sans-serif;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes draw {
  to {
    transform: rotate(calc(-1 * var(--skew-edge))) scaleX(1);
  }
}

@keyframes photo-zoom {
  from {
    transform: scale(1.06);
  }
  to {
    transform: scale(1);
  }
}

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

@keyframes beam {
  to {
    --beam-angle: 360deg;
  }
}

@keyframes shimmer {
  0%,
  35% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

@keyframes ping {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  80%,
  100% {
    transform: scale(2.8);
    opacity: 0;
  }
}

@keyframes sheen {
  0% {
    transform: translateX(-100%);
  }
  35%,
  100% {
    transform: translateX(100%);
  }
}

@keyframes sparks {
  to {
    background-position:
      10px -400px,
      70px -400px,
      120px -580px;
  }
}

@keyframes aurora {
  from {
    transform: translate(-6%, -4%) rotate(0deg);
  }
  to {
    transform: translate(6%, 5%) rotate(12deg);
  }
}

/* Mobile (≤760px): foto full-bleed, mesmo card translúcido do desktop, ancorado embaixo */
@media (max-width: 760px) {
  .hero {
    overflow: visible;
  }

  .hero__photo picture,
  .hero__photo img {
    object-position: 24% 58%;
  }

  .hero__photo::after {
    background: linear-gradient(
      180deg,
      rgba(33, 54, 45, 0.6),
      rgba(33, 54, 45, 0.15) 30%,
      rgba(33, 54, 45, 0.55) 100%
    );
  }

  .brandbar {
    top: 18px;
    left: 18px;
  }

  .brandbar__symbol {
    height: 44px;
  }

  .brandbar__name {
    font-size: 1.5rem;
  }

  .hero__panel {
    margin: auto 16px 20px;
    width: auto;
    padding: 24px 20px 20px;
  }

  .card-fx__sparks {
    opacity: 0.4;
  }

  .hero__eyebrow {
    font-size: 0.8rem;
  }

  h1 {
    font-size: clamp(1.75rem, 7.2vw, 2.1rem);
  }

  .hero__summary {
    font-size: 0.9rem;
    line-height: 1.55;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* Desktop (≥761px): full-bleed photo, floating card panel */
@media (min-width: 761px) {
  .hero {
    place-items: center start;
    background: var(--green-01);
  }

  .brandbar {
    top: 26px;
    left: clamp(24px, 5vw, 76px);
  }

  .hero__photo::after {
    background:
      radial-gradient(
        ellipse at 50% 55%,
        rgba(33, 54, 45, 0.38),
        rgba(33, 54, 45, 0.16) 55%,
        rgba(33, 54, 45, 0.5) 100%
      ),
      linear-gradient(180deg, rgba(33, 54, 45, 0.55), transparent 22%);
  }

  .hero__panel {
    align-self: center;
    justify-self: center;
    width: min(600px, calc(100% - 48px));
    padding: 32px clamp(28px, 3vw, 44px) 24px;
  }

  .hero__eyebrow {
    font-size: 0.85rem;
    margin-bottom: 14px;
  }

  h1 {
    font-size: clamp(1.9rem, 2.8vw, 2.5rem);
  }

  .hero__summary {
    font-size: 0.92rem;
    margin-top: 14px;
    max-width: 440px;
  }

  .status {
    margin-top: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .lines__l {
    transform: rotate(calc(-1 * var(--skew-edge))) scaleX(1);
  }

  .status::before {
    background: rgba(203, 255, 46, 0.35);
  }

  .hero__panel::before,
  .card-fx__sparks {
    display: none;
  }

  .status__label {
    background: none;
    color: #fff;
  }

  .status__dot::after {
    display: none;
  }
}
