@font-face {
  font-family: "General Sans";
  src: url("/assets/GeneralSans-Variable.ttf") format("truetype");
  font-weight: 200 700;
  font-display: swap;
  font-style: normal;
}

:root {
  --bg: #080a16;
  --navy: #242a68;
  --ink: #f7f7f7;
  --muted: #99a1c2;
  --accent: #aebfe8;
  --line: rgba(255, 255, 255, 0.06);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }

body {
  font-family: "General Sans", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow: hidden;
}

.stage {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(22px, 4vh, 48px) clamp(22px, 5vw, 72px);
  overflow: hidden;
}

/* grid tech sutil, mascarado nas bordas */
.grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(120% 90% at 72% 50%, #000 0%, transparent 68%);
  mask-image: radial-gradient(120% 90% at 72% 50%, #000 0%, transparent 68%);
  opacity: 0.55;
  pointer-events: none;
}

/* split: texto esquerda, globo direita */
.content {
  position: relative;
  z-index: 2;
  flex: 1;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: clamp(28px, 4vw, 72px);
}

.intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: clamp(15px, 2.4vh, 26px);
}

.logo {
  width: clamp(148px, 15vw, 200px);
  height: auto;
  opacity: 0.96;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px 7px 12px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(36, 42, 104, 0.28);
  border: 1px solid rgba(174, 191, 232, 0.22);
  border-radius: 999px;
  backdrop-filter: blur(6px);
}

.pulse {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(174, 191, 232, 0.7);
  animation: pulse 2.4s ease-out infinite;
}

h1 {
  font-size: clamp(2rem, 3.4vw, 3.3rem);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.025em;
}

.sub {
  font-size: clamp(0.95rem, 2.2vw, 1.08rem);
  font-weight: 400;
  line-height: 1.6;
  color: var(--muted);
  max-width: 30rem;
}

/* globo */
.globe-wrap {
  position: relative;
  width: min(600px, 100%, 74vh);
  aspect-ratio: 1;
  justify-self: center;
}
.globe-wrap::before {
  content: "";
  position: absolute;
  inset: -22%;
  background: radial-gradient(circle, rgba(36, 42, 104, 0.6) 0%, rgba(36, 42, 104, 0.14) 42%, transparent 66%);
  filter: blur(10px);
  z-index: 0;
  pointer-events: none;
}
#globe {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: none;
}
#globe:active { cursor: grabbing; }

.globe-label { display: none; }
@supports (anchor-name: --a) {
  .globe-label {
    display: block;
    position: absolute;
    bottom: anchor(top);
    left: anchor(center);
    translate: -50% 0;
    margin-bottom: 9px;
    z-index: 3;
    padding: 3px 8px;
    background: rgba(18, 22, 46, 0.9);
    border: 1px solid rgba(174, 191, 232, 0.2);
    border-radius: 6px;
    color: var(--ink);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
    pointer-events: none;
    backdrop-filter: blur(4px);
    transition: opacity 0.8s ease, filter 0.8s ease;
  }
}

.foot {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  padding-top: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
}
.foot a { color: var(--muted); text-decoration: none; transition: color 0.2s ease; }
.foot a:hover { color: var(--ink); }
.foot .sep { opacity: 0.5; }

/* entrada */
.intro, .globe-wrap { animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both; }
.intro { animation-delay: 0.05s; }
.globe-wrap { animation-delay: 0.2s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(174, 191, 232, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(174, 191, 232, 0); }
  100% { box-shadow: 0 0 0 0 rgba(174, 191, 232, 0); }
}

/* mobile: empilha (texto em cima, globo embaixo) */
@media (max-width: 860px) {
  .stage { padding: clamp(20px, 4vh, 40px) 22px; }
  .content {
    grid-template-columns: 1fr;
    gap: clamp(20px, 4vh, 38px);
    max-width: 440px;
    align-content: center;
    justify-items: center;
  }
  .intro { align-items: center; text-align: center; }
  .sub { max-width: 34rem; }
  h1 { font-size: clamp(1.9rem, 8vw, 2.6rem); }
  .grid { -webkit-mask-image: radial-gradient(circle at 50% 60%, #000 0%, transparent 66%); mask-image: radial-gradient(circle at 50% 60%, #000 0%, transparent 66%); }
  .globe-wrap { width: min(380px, 82vw, 40vh); }
}

@media (prefers-reduced-motion: reduce) {
  .intro, .globe-wrap { animation: none; }
  .pulse { animation: none; }
}
