/* ==============================================
   S1D3 — Hero Section Stylesheet
   Para hospedagem compartilhada (HostGator, etc.)
   Sem dependências de build. Puro CSS.
   ============================================== */

/* ── Tokens ── */
:root {
  --bg-base:        #050816;
  --bg-surface:     #0B1020;
  --text-primary:   #F5F8FC;
  --text-secondary: #A6B0C3;
  --text-muted:     rgba(166, 176, 195, 0.50);
  --accent:         #C6FF00;
  --accent-hover:   #d4ff1a;
  --border-faint:   rgba(255, 255, 255, 0.07);
  --border-accent:  rgba(198, 255, 0, 0.25);
  --ease-expo:      cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Reset mínimo ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img, canvas, svg { display: block; }
a { text-decoration: none; }

body {
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ==============================================
   NAV (placeholder minimalista)
   ============================================== */
.s1d3-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.25rem 5.5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.s1d3-nav.scrolled {
  background: rgba(5, 8, 22, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border-faint);
}

.nav__logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-primary);
}

.nav__logo span { color: var(--accent); }

.nav__links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav__links a {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}

.nav__links a:hover { color: var(--text-primary); }

.nav__cta {
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--border-accent);
  border-radius: 6px;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav__cta:hover {
  background: rgba(198, 255, 0, 0.08);
  color: var(--accent);
}

@media (max-width: 768px) {
  .nav__links { display: none; }
}

/* ==============================================
   HERO
   ============================================== */
.s1d3-hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

/* ── Fundo ── */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero__bg-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 70% at 68% 50%, rgba(198,255,0,0.028) 0%, transparent 55%),
    radial-gradient(ellipse 55% 90% at 15% 20%, rgba(30,50,120,0.12)  0%, transparent 65%),
    radial-gradient(ellipse 40% 40% at 80% 80%, rgba(10,20,60,0.40)   0%, transparent 70%),
    linear-gradient(155deg, #060a1c 0%, #050816 45%, #080d1e 100%);
}

.hero__bg-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(198,255,0,0.14) 1px, transparent 1px);
  background-size: 38px 38px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 72% 50%,
    rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.08) 50%, transparent 80%);
  mask-image: radial-gradient(ellipse 70% 80% at 72% 50%,
    rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.08) 50%, transparent 80%);
}

.hero__bg-line {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-faint) 30%, var(--border-faint) 70%, transparent);
}

/* ── Layout interno ── */
.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1380px;
  margin: 0 auto;
  padding: 9rem 5.5vw 6rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

/* ==============================================
   COLUNA ESQUERDA — Conteúdo
   ============================================== */
.hero__content {
  display: flex;
  flex-direction: column;
  gap: 1.875rem;
}

/* Brand tag */
.hero__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease-expo) 0.1s forwards;
}

.hero__brand-line {
  width: 28px;
  height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}

.hero__brand-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

/* Título */
.hero__headline {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.4rem, 3.8vw, 4rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--text-primary);
  opacity: 0;
  animation: fadeUp 0.9s var(--ease-expo) 0.22s forwards;
}

.hero__headline em {
  font-style: normal;
  color: var(--accent);
}

/* Positioning */
.hero__positioning {
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.55;
  color: var(--text-secondary);
  padding-left: 1.125rem;
  border-left: 2px solid var(--border-accent);
  opacity: 0;
  animation: fadeUp 0.9s var(--ease-expo) 0.34s forwards;
}

/* Copy */
.hero__copy {
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.75;
  color: var(--text-secondary);
  max-width: 480px;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease-expo) 0.46s forwards;
}

/* CTAs */
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  align-items: center;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease-expo) 0.58s forwards;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.625rem;
  background: var(--accent);
  color: #050816;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.18), transparent 60%);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 36px rgba(198,255,0,0.35), 0 2px 10px rgba(198,255,0,0.18);
}

.btn-primary:hover::after { opacity: 1; }
.btn-primary:active { transform: translateY(0); }

.btn-primary .btn-icon {
  transition: transform 0.22s ease;
  flex-shrink: 0;
}

.btn-primary:hover .btn-icon { transform: translateX(3px); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.625rem;
  background: transparent;
  color: var(--text-primary);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  border: 1px solid var(--border-faint);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.22s ease, color 0.22s ease,
              background 0.22s ease, transform 0.22s ease;
}

.btn-secondary:hover {
  border-color: var(--border-accent);
  color: var(--accent);
  background: rgba(198,255,0,0.04);
  transform: translateY(-2px);
}

.btn-secondary:active { transform: translateY(0); }

/* Microcopy */
.hero__microcopy {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0;
  animation: fadeUp 0.9s var(--ease-expo) 0.72s forwards;
}

.hero__microcopy-dot {
  width: 3.5px;
  height: 3.5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.55;
  flex-shrink: 0;
}

/* ==============================================
   COLUNA DIREITA — Canvas 3D
   ============================================== */
.hero__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  animation: fadeIn 1.4s ease 0.4s forwards;
}

/* Brilho atmosférico atrás do cubo */
.hero__glow {
  position: absolute;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle at center,
    rgba(198,255,0,0.055) 0%,
    rgba(198,255,0,0.020) 35%,
    transparent 65%);
  animation: glowBreathe 4s ease-in-out infinite alternate;
}

/* Wrapper do canvas — controla o tamanho */
.hero__canvas-wrap {
  position: relative;
  z-index: 1;
  width: 520px;
  height: 520px;
  max-width: 100%;
}

#s1d3-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Fallback sem WebGL */
.hero__canvas-wrap.no-webgl #s1d3-canvas {
  display: none;
}

.hero__canvas-wrap.no-webgl::after {
  content: 'S1D3';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 5rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-shadow: 0 0 60px rgba(198,255,0,0.4);
}

/* ==============================================
   SCROLL CUE
   ============================================== */
.scroll-cue {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  pointer-events: none;
  opacity: 0;
  animation: fadeIn 1s ease 1.5s forwards;
}

.scroll-cue__text {
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.scroll-cue__bar {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, rgba(198,255,0,0.5), transparent);
  animation: scrollDrop 2.2s ease-in-out infinite;
}

/* ==============================================
   ANIMAÇÕES KEYFRAME
   ============================================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0);    }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes glowBreathe {
  from { transform: scale(1);    opacity: 0.7; }
  to   { transform: scale(1.09); opacity: 1;   }
}

@keyframes scrollDrop {
  0%   { transform: scaleY(0); transform-origin: top;    opacity: 1; }
  50%  { transform: scaleY(1); transform-origin: top;    opacity: 1; }
  51%  { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* ==============================================
   RESPONSIVO
   ============================================== */
@media (max-width: 1100px) {
  .hero__inner { gap: 2.5rem; padding: 8rem 5vw 5rem; }
  .hero__canvas-wrap { width: 400px; height: 400px; }
  .hero__glow { width: 360px; height: 360px; }
}

@media (max-width: 840px) {
  .hero__inner {
    grid-template-columns: 1fr;
    padding: 6rem 6vw 5rem;
    text-align: center;
    gap: 3rem;
  }
  .hero__content { align-items: center; }
  .hero__brand   { justify-content: center; }
  .hero__copy    { max-width: 440px; }
  .hero__ctas    { justify-content: center; }
  .hero__microcopy { justify-content: center; }
  .hero__positioning { text-align: left; max-width: 440px; }
  .hero__visual  { order: -1; }
  .hero__canvas-wrap { width: 320px; height: 320px; }
  .hero__glow    { width: 300px; height: 300px; }
}

@media (max-width: 520px) {
  .hero__headline { font-size: 2.2rem; }
  .hero__ctas { flex-direction: column; width: 100%; }
  .btn-primary, .btn-secondary { justify-content: center; width: 100%; }
  .hero__canvas-wrap { width: 280px; height: 280px; }
}
