/* ===== Fonts ===== */
@font-face {
  font-family: 'Harabara Mais';
  src: url('assets/Harabara Mais Demo.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Bitcount Grid';
  src: url('/assets/BitcountGridDoubleInk-VariableFont_CRSV,ELSH,ELXP,SZP1,SZP2,XPN1,XPN2,YPN1,YPN2,slnt,wght.ttf') format('truetype');
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: 'Roboto Mono';
  src: url('/assets/RobotoMono-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 700;
  font-display: swap;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #0a0a0a;
  --bg-card: #1e1e1e;
  --text: #f0f0f0;
  --text-muted: #888888;
  --accent: #ed217c;
  --accent-roliner: #4C73FF;
  --accent-venture: #3CBC92;
  --border: rgba(255, 255, 255, 0.14);
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.06);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Montserrat', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

/* ===== Header / Logo ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 2rem;
  display: flex;
  justify-content: center;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.header.hidden {
  opacity: 0;
  transform: translateY(-20px);
  pointer-events: none;
}

.logo {
  pointer-events: auto;
}

.logo-img {
  height: 60px;
  width: auto;
}

/* ===== Hero Section ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: clip;
}

.hero-hex-pattern {
  display: none;
}

#bubble-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem;
  max-width: 1100px;
  width: 100%;
}

.hero-eyebrow {
  font-family: 'Roboto Mono', sans-serif;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  margin-top: 1rem;
  opacity: 0;
  transform: translateY(30px);
}

.hero-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  line-height: 1.6;
  margin-bottom: 2.5rem;
  opacity: 0;
  transform: translateY(30px);
}

.hero-title .line {
  display: block;
  margin-bottom: 0.6em;
}

.hero-title .line:last-child {
  margin-bottom: 0;
}

@media (min-width: 900px) {
  .hero-title .line {
    white-space: nowrap;
  }
}

.hero-line-muted {
  color: var(--text-muted);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 300;
  margin-bottom: 0.1em;
}

.hero-title .highlight {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 400;
}

/* Static bold statement */
.body-morph {
  display: inline-block;
}

.hero-subtitle {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 300;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-top: -1.2rem;
  opacity: 0;
  transform: translateY(30px);
}

/* Scroll indicator */
.scroll-indicator {
  position: fixed;
  bottom: 40px;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  opacity: 0;
  pointer-events: none;
}

.scroll-indicator span {
  font-family: 'Roboto Mono', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--text-muted), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ===== Animation classes ===== */
[data-animate] {
  opacity: 0;
  transform: translateY(30px);
}

[data-animate].animated {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===== Division Selector ===== */
.divisions {
  padding: 6rem 2rem 4rem;
  position: relative;
  z-index: 2;
}

.divisions-header {
  text-align: center;
  margin-bottom: 4rem;
}

.divisions-eyebrow {
  font-family: 'Roboto Mono', sans-serif;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.divisions-heading {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

/* Side-by-side split panels */
.divisions-split {
  display: flex;
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

/* Each panel */
.division-panel {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 480px;
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  cursor: pointer;
  transition: flex 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.division-panel:hover {
  flex: 1.3;
}

/* Background layer */
.panel-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #111115;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  transition: border-color 0.5s ease, background 0.5s ease;
}

.division-panel:hover .panel-bg {
  border-color: rgba(255, 255, 255, 0.12);
  background: #141418;
}

/* Hex cluster - DOM-based SVG hexagons */
.panel-hexes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
  border-radius: 20px;
}

.panel-hex {
  position: absolute;
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.panel-hex svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* Corner brackets on panels */
.panel-corners {
  position: absolute;
  inset: 12px;
  pointer-events: none;
  z-index: 3;
}

.corner {
  position: absolute;
  width: 14px;
  height: 14px;
  opacity: 0.15;
  transition: opacity 0.4s ease;
}

.division-panel:hover .corner {
  opacity: 0.5;
}

.corner.tl { top: 0; left: 0; border-top: 1px solid var(--text); border-left: 1px solid var(--text); }
.corner.tr { top: 0; right: 0; border-top: 1px solid var(--text); border-right: 1px solid var(--text); }
.corner.bl { bottom: 0; left: 0; border-bottom: 1px solid var(--text); border-left: 1px solid var(--text); }
.corner.br { bottom: 0; right: 0; border-bottom: 1px solid var(--text); border-right: 1px solid var(--text); }

/* No glow - clean B&W */
.panel-glow {
  display: none;
}

/* Content */
.panel-content {
  position: relative;
  z-index: 2;
  padding: 2.5rem;
}

.panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
}

.panel-number {
  font-family: 'Roboto Mono', monospace;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--text-muted);
}

.panel-tag {
  font-family: 'Roboto Mono', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.3rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.04);
  opacity: 0.6;
  transition: opacity 0.4s ease, border-color 0.4s ease;
}

.division-panel:hover .panel-tag {
  opacity: 1;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.panel-title {
  font-family: 'Harabara Mais', 'Montserrat', sans-serif;
  font-size: clamp(1.8rem, 2.5vw, 2.4rem);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
  transition: color 0.4s ease;
}

.panel-line {
  width: 40px;
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
  margin-bottom: 1rem;
  transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1), background 0.4s ease;
}

.division-panel:hover .panel-line {
  width: 80px;
  background: rgba(255, 255, 255, 0.4);
}

.panel-desc {
  font-family: 'Roboto Mono', sans-serif;
  font-size: 0.68rem;
  line-height: 1.7;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 300;
  color: var(--text-muted);
  max-width: 340px;
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease 0.1s, transform 0.4s ease 0.1s;
}

.division-panel:hover .panel-desc {
  opacity: 1;
  transform: translateY(0);
}

.panel-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Roboto Mono', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease 0.2s, transform 0.4s ease 0.2s, color 0.3s ease;
}

.division-panel:hover .panel-cta {
  opacity: 1;
  transform: translateY(0);
}

.division-panel:hover .panel-cta {
  color: var(--text);
}

.panel-cta svg {
  transition: transform 0.3s ease;
}

.division-panel:hover .panel-cta svg {
  transform: translateX(4px);
}

/* Mobile stack */
@media (max-width: 768px) {
  .divisions-split {
    flex-direction: column;
  }

  .division-panel {
    min-height: 340px;
  }

  .division-panel:hover {
    flex: 1;
  }

  .panel-desc {
    opacity: 1;
    transform: none;
  }

  .panel-cta {
    opacity: 1;
    transform: none;
  }

  .panel-visual {
    opacity: 0.1;
    right: 5%;
    width: 150px;
    height: 150px;
  }

  .corner {
    opacity: 0.2 !important;
  }
}

/* ===== Marquee =====
   The section element is an <a> wrapping the whole scrolling band so
   the marquee is a single Instagram link. <a> is inline by default,
   which means overflow:hidden can't constrain its (max-content-wide)
   track and the whole section ends up wider than the viewport on
   mobile. Forcing display:block + reset link styles fixes that. */
.marquee-section {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  padding: 1.2rem 0;
  overflow: hidden;
  position: relative;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 40s linear infinite;
}

.marquee-content {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.marquee-text {
  font-family: 'Roboto Mono', sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  white-space: nowrap;
  padding: 0 1.5rem;
  transition: color 0.3s ease;
}

.marquee-section:hover .marquee-text {
  color: rgba(255, 255, 255, 0.5);
}

.marquee-spacer {
  display: inline-flex;
  position: relative;
  width: 40px;
  height: 20px;
  flex-shrink: 0;
  margin: 0 0.5rem;
}

.marquee-spacer .mhex {
  position: absolute;
  clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
  transition: opacity 0.3s ease;
}

.marquee-spacer .mhex:nth-child(1) {
  left: 2px;
  top: 4px;
}

.marquee-spacer .mhex:nth-child(2) {
  left: 22px;
  top: 10px;
}

.marquee-spacer .mhex:nth-child(3) {
  left: 28px;
  top: 2px;
}

.marquee-spacer .mhex.filled {
  background: rgba(255, 255, 255, 0.25);
}

.marquee-spacer .mhex.outline {
  background: transparent;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.marquee-section:hover .mhex.filled {
  background: rgba(255, 255, 255, 0.4);
}

.marquee-section:hover .mhex.outline {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== Footer ===== */
.footer {
  border-top: 1px solid var(--border);
  padding: 3rem 2rem 1.5rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-logo .logo-img {
  height: 48px;
  width: auto;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.footer-logo:hover .logo-img {
  opacity: 0.8;
}

.footer-address p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
  letter-spacing: 0.02em;
}

.footer-email {
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: color 0.3s ease;
  letter-spacing: 0.02em;
}

.footer-email:hover {
  color: var(--accent);
}

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-cols {
  display: flex;
  gap: 3.5rem;
  flex-wrap: wrap;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-width: 110px;
}

.footer-col-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.footer-col a {
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: color 0.3s ease;
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--text);
}

.footer-col .footer-socials {
  margin-top: 0.5rem;
}

.footer-socials {
  display: flex;
  gap: 1rem;
}

.footer-socials a {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  transition: color 0.3s ease, transform 0.3s ease;
}

.footer-socials a:hover {
  color: var(--text);
  transform: translateY(-2px);
}

.footer-bottom {
  max-width: 1000px;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-bottom p {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .explore-container {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: clamp(1.8rem, 7vw, 2.8rem);
  }

  .footer-inner {
    flex-direction: column;
    text-align: left;
  }

  .footer-right {
    align-items: flex-start;
  }

  .footer-cols {
    gap: 2rem;
  }
}
