/* ==========================================================================
   Decimals — Design System & Hero Styles
   ========================================================================== */

@font-face {
  font-family: 'Martina Plantijn';
  src: url('../fonts/martina-plantijn-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-cream: #EDE8E1;
  --color-ink: #4D4638;
  --color-ink-muted: rgba(77, 70, 56, 0.78);
  --color-ink-faint: rgba(77, 70, 56, 0.55);
  --surface-paper: #FFFDF8;
  --line-color: rgba(77, 70, 56, 0.15);
  --font-serif: 'Martina Plantijn', Georgia, serif;
  --font-sans: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  min-height: 100%;
  background-color: var(--color-cream);
  color: var(--color-ink);
  font-family: var(--font-sans);
  font-size: 14px;
  letter-spacing: -0.01em;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

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

ul {
  list-style: none;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.nav-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px clamp(20px, 4vw, 48px);
  width: 100%;
}

/* Progressive blur apron */
.nav-header::before {
  content: "";
  position: absolute;
  inset: 0 0 -40px 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(237, 232, 225, 0.88) 0%, rgba(237, 232, 225, 0.55) 55%, rgba(237, 232, 225, 0) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 50%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 50%, transparent 100%);
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  position: relative;
  z-index: 2;
}

.brand-wordmark {
  display: inline-flex;
  align-items: center;
  height: 24px;
}

.brand-wordmark span {
  font-family: var(--font-serif);
  font-size: 24px;
  letter-spacing: 0.16em;
  color: var(--color-ink);
  text-transform: uppercase;
  font-weight: 400;
  transition: opacity 0.2s ease;
}

.nav-links {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 14px;
  font-weight: 400;
  color: var(--color-ink-faint);
}

.nav-links a {
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--color-ink);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 2;
}

/* ==========================================================================
   Buttons (Pill Primitives)
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.btn:hover {
  opacity: 0.9;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background-color: var(--color-ink);
  background-image: linear-gradient(rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.04));
  border: 1px solid var(--color-ink);
  box-shadow:
    0 0 0 1px rgba(18, 18, 18, 0.22),
    0 1px 2px rgba(18, 18, 18, 0.13),
    0 2px 8px rgba(18, 18, 18, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  color: var(--surface-paper);
}

.btn-ghost {
  border: 1px solid rgba(77, 70, 56, 0.25);
  color: var(--color-ink);
  background-color: rgba(255, 253, 248, 0.55);
  background-image: linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0));
  box-shadow:
    0 1px 2px rgba(18, 18, 18, 0.06),
    0 2px 6px rgba(18, 18, 18, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn-lg {
  height: 48px;
  padding: 0 24px;
  font-size: 14.5px;
}

/* Mobile Burger */
.burger-btn {
  display: none;
  position: relative;
  z-index: 60;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(77, 70, 56, 0.25);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.55);
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.burger-btn span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 1.5px;
  background: var(--color-ink);
  transition: transform 0.25s ease;
}

.burger-btn span:nth-child(1) {
  transform: translate(-50%, calc(-50% - 2.5px));
}

.burger-btn span:nth-child(2) {
  transform: translate(-50%, calc(-50% + 2.5px));
}

.burger-btn[aria-expanded="true"] span:nth-child(1) {
  transform: translate(-50%, -50%) rotate(45deg);
}

.burger-btn[aria-expanded="true"] span:nth-child(2) {
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
  background: rgba(237, 232, 225, 0.98);
  opacity: 0;
  visibility: hidden;
  clip-path: circle(20px at calc(100% - 34px) 36px);
  transition: clip-path 0.35s cubic-bezier(0.34, 1.25, 0.64, 1), opacity 0.2s ease, visibility 0.25s ease;
}

.mobile-menu-overlay.is-open {
  opacity: 1;
  visibility: visible;
  clip-path: circle(145% at calc(100% - 34px) 36px);
}

.mobile-menu-overlay nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.mobile-menu-overlay nav a {
  font-family: var(--font-serif);
  font-size: clamp(30px, 6.5vw, 38px);
  color: var(--color-ink);
}

.mobile-menu-overlay .mobile-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 240px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-section {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(68px, 7.5vw, 108px) clamp(16px, 3vw, 32px) 32px;
  text-align: center;
  min-height: calc(100vh - 80px);
}

/* 3D Rotating Globe Dome */
.hero-globe {
  position: absolute;
  left: 50%;
  top: clamp(220px, 20vw, 292px);
  width: min(160vw, 2200px);
  height: clamp(480px, 50vw, 720px);
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 0;
}

.hero-globe .v4gs-globe {
  position: absolute;
  inset: 0;
  pointer-events: auto; /* Allow mousemove to interact with particle ripple */
}

.hero-globe canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(34px, 4.2vw, 58px);
  font-weight: 400;
  line-height: 1.14;
  letter-spacing: -0.035em;
  color: var(--color-ink);
  text-wrap: balance;
}

.hero-sub {
  margin-top: 20px;
  max-width: 640px;
  font-size: clamp(17px, 1.3vw, 20px);
  line-height: 1.55;
  color: #342F24; /* Tom mais escuro com alto contraste sobre o fundo cream */
  font-weight: 450;
  text-wrap: balance;
  letter-spacing: -0.015em;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

/* Logo Ticker Stage (Faixinha de Logos) */
.hero-stage {
  position: relative;
  z-index: 10;
  width: min(100%, 1080px);
  margin-top: clamp(220px, 22vw, 340px);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ticker-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-ink-muted);
  text-align: center;
  margin-bottom: 16px;
}

.ticker-wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
}

.ticker-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: ticker-slide 46s linear infinite;
  padding: 10px 0;
}

.ticker-wrapper:hover .ticker-track {
  animation-play-state: paused;
}

@keyframes ticker-slide {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.ticker-name {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--color-ink);
  opacity: 0.72;
  letter-spacing: -0.01em;
  transition: opacity 0.2s ease, transform 0.2s ease;
  cursor: default;
}

.ticker-dot {
  display: inline-block;
  margin: 0 28px;
  font-size: 10px;
  color: var(--color-ink);
  opacity: 0.25;
  user-select: none;
}

/* Subtle focus effect on hover */
.ticker-track:hover .ticker-name {
  opacity: 0.45;
}

.ticker-item:hover .ticker-name {
  opacity: 1;
  transform: translateY(-1px);
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */

@media (max-width: 991px) {
  .nav-links {
    display: none;
  }
  .nav-actions .btn-ghost {
    display: none;
  }
  .burger-btn {
    display: block;
  }
  .hero-globe {
    top: 310px;
  }
}

@media (max-width: 640px) {
  .nav-header {
    padding: 14px 18px;
  }

  .brand-wordmark span {
    font-size: 20px;
    letter-spacing: 0.14em;
  }

  .hero-section {
    padding: 56px 16px 24px;
  }

  .hero-title br {
    display: none;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 320px;
  }

  .hero-ctas .btn {
    height: 44px;
    width: 100%;
  }

  .hero-globe {
    top: 330px;
    height: 420px;
    width: 200vw;
  }

  .hero-stage {
    margin-top: clamp(120px, 22vw, 180px);
  }

  .ticker-dot {
    margin: 0 18px;
  }

  .ticker-name {
    font-size: 13.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track {
    animation: none;
  }
  .ticker-logo {
    transition: none;
  }
}
