/* ============================================================
   ZERONE VENTURES — Dark Sophisticated
   ============================================================ */

/* =============== DESIGN TOKENS =============== */
:root {
  /* Color */
  --bg:           #0a0a0a;
  --bg-elev-1:    #111111;
  --bg-elev-2:    #161616;
  --surface:      rgba(255, 255, 255, 0.02);
  --surface-hov:  rgba(255, 255, 255, 0.04);
  --border:       rgba(255, 255, 255, 0.08);
  --border-hov:   rgba(255, 255, 255, 0.16);

  --text:         #f5f1ea;
  --text-muted:   rgba(245, 241, 234, 0.62);
  --text-dim:     rgba(245, 241, 234, 0.42);

  --accent:       #d4a574;          /* warm amber — used sparingly */
  --accent-hov:   #e0b487;
  --accent-soft:  rgba(212, 165, 116, 0.12);

  /* Type */
  --font-sans:    'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-serif:   'Instrument Serif', 'Times New Roman', serif;

  /* Fluid type scale (clamp: min, fluid, max) */
  --fs-eyebrow:   0.75rem;
  --fs-body:      clamp(0.95rem, 0.9rem + 0.2vw, 1.0625rem);
  --fs-lead:      clamp(1.0625rem, 0.95rem + 0.5vw, 1.25rem);
  --fs-h3:        clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  --fs-h2:        clamp(2.25rem, 1.5rem + 3.5vw, 4.5rem);
  --fs-hero:      clamp(2.75rem, 1.8rem + 4.8vw, 6.25rem);

  /* Spacing */
  --space-xs:     0.5rem;
  --space-sm:     1rem;
  --space-md:     1.5rem;
  --space-lg:     2.5rem;
  --space-xl:     4rem;
  --space-2xl:    7rem;
  --space-3xl:    10rem;

  /* Layout */
  --container:    1280px;
  --gutter:       clamp(1.25rem, 0.75rem + 2.5vw, 2.5rem);

  /* Motion */
  --ease-out:     cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out:  cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast:     200ms;
  --dur-med:      450ms;
  --dur-slow:     900ms;

  /* Effects */
  --radius-sm:    8px;
  --radius-md:    14px;
  --radius-lg:    20px;
  --radius-full:  999px;
}

/* =============== RESET =============== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
button, a { font: inherit; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--accent); color: var(--bg); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* =============== LAYOUT PRIMITIVES =============== */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: var(--space-2xl) 0;
  position: relative;
  z-index: 2;
}

/* =============== TYPOGRAPHY =============== */
.eyebrow {
  display: inline-block;
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.section-num {
  display: inline-block;
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-md);
}

.section-head { margin-bottom: var(--space-lg); }

.section-title {
  font-size: var(--fs-h2);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--text);
  max-width: 22ch;
}

.serif-italic {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--text);
  display: block;
}

.section-description {
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 56ch;
  margin: var(--space-lg) 0 var(--space-2xl);
  font-weight: 300;
}

/* =============== CANVAS BG =============== */
#energy-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.35;
  mix-blend-mode: screen;
}

/* =============== NAVBAR =============== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(10, 10, 10, 0.6);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid var(--border);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity var(--dur-slow) var(--ease-out),
              transform var(--dur-slow) var(--ease-out);
}

.navbar.navbar-fade-in { opacity: 1; transform: translateY(0); }

.navbar.scrolled {
  background: rgba(10, 10, 10, 0.85);
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

.nav-inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: inline-flex;
  align-items: baseline;
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--text);
}

.logo-mark {
  color: var(--accent);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.5rem;
  margin-right: 1px;
  line-height: 1;
}

.menu {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.menu a {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-muted);
  position: relative;
  transition: color var(--dur-fast) var(--ease-out);
}

.menu a:not(.nav-contact)::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width var(--dur-med) var(--ease-out);
}

.menu a:hover { color: var(--text); }
.menu a:hover::after,
.menu a.active::after { width: 100%; }
.menu a.active { color: var(--text); }

.nav-contact {
  padding: 0.5rem 1.125rem;
  border: 1px solid var(--border-hov);
  border-radius: var(--radius-full);
  color: var(--text) !important;
  font-weight: 500;
  font-size: 0.8125rem;
  transition: background var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out);
}

.nav-contact:hover {
  background: var(--text);
  color: var(--bg) !important;
  border-color: var(--text);
}

.nav-contact::after { display: none !important; }

/* =============== BUTTONS =============== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.875rem 1.5rem;
  border-radius: var(--radius-full);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  cursor: pointer;
  border: none;
  transition: background var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
}

.btn svg { transition: transform var(--dur-med) var(--ease-out); }
.btn:hover svg { transform: translateX(4px); }

.btn-primary {
  background: var(--text);
  color: var(--bg);
}

.btn-primary:hover { background: var(--accent); }
.btn-primary:active { transform: scale(0.98); }

/* =============== HERO =============== */
.hero {
  position: relative;
  padding: clamp(8rem, 14vh, 12rem) 0 var(--space-3xl);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  height: 100%;
  background: radial-gradient(ellipse at center,
    rgba(212, 165, 116, 0.06) 0%,
    transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.hero-left { max-width: 36rem; }

.hero-title {
  font-size: var(--fs-hero);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.045em;
  margin: var(--space-md) 0 var(--space-lg);
  color: var(--text);
}

.hero-title-serif {
  display: block;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-top: 0.1em;
}

.hero-subtext {
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 38ch;
  margin-bottom: var(--space-lg);
  font-weight: 300;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-gif {
  width: 100%;
  max-width: 32rem;
  filter:
    drop-shadow(0 30px 80px rgba(212, 165, 116, 0.18))
    drop-shadow(0 0 120px rgba(212, 165, 116, 0.08));
  transition: transform var(--dur-slow) var(--ease-out);
}

/* =============== CARD GRID (Accelerate + Investment) =============== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
}

.card-grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  position: relative;
  padding: var(--space-xl) var(--space-lg) var(--space-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  min-height: 14rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: background var(--dur-med) var(--ease-out),
              border-color var(--dur-med) var(--ease-out),
              transform var(--dur-med) var(--ease-out);
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right,
    rgba(212, 165, 116, 0.08), transparent 50%);
  opacity: 0;
  transition: opacity var(--dur-med) var(--ease-out);
  pointer-events: none;
}

.card:hover {
  background: var(--surface-hov);
  border-color: var(--border-hov);
  transform: translateY(-2px);
}

.card:hover::before { opacity: 1; }

.card-index {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.card h3 {
  font-size: var(--fs-h3);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-top: var(--space-md);
}

/* =============== INVESTMENT SECTION =============== */
.investment-section {
  background: linear-gradient(180deg,
    var(--bg) 0%,
    var(--bg-elev-1) 50%,
    var(--bg) 100%);
}

/* =============== PORTFOLIO =============== */
.portfolio-section {
  padding-bottom: var(--space-3xl);
}

.portfolio-section .section-head {
  margin-bottom: var(--space-2xl);
}

.portfolio-marquee {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  mask-image: linear-gradient(90deg,
    transparent 0%, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg,
    transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.marquee {
  width: 100%;
  overflow: hidden;
}

.marquee-track {
  display: flex;
  gap: var(--space-md);
  width: max-content;
  will-change: transform;
}

.marquee[data-direction="left"] .marquee-track {
  animation: scrollLeft 60s linear infinite;
}

.marquee[data-direction="right"] .marquee-track {
  animation: scrollRight 60s linear infinite;
}

.marquee:hover .marquee-track { animation-play-state: paused; }

@keyframes scrollLeft {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

@keyframes scrollRight {
  from { transform: translate3d(-50%, 0, 0); }
  to   { transform: translate3d(0, 0, 0); }
}

.p-card {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.875rem 1.25rem 0.875rem 0.875rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  transition: background var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out);
}

.p-card:hover {
  background: var(--surface-hov);
  border-color: var(--border-hov);
}

.p-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-elev-2);
}

.p-text h3 {
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
  white-space: nowrap;
}

/* =============== INSIGHTS & NEWS =============== */
.insights-news {
  background: var(--bg-elev-1);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.insights-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: var(--space-2xl);
  gap: var(--space-lg);
}

.view-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
  transition: color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out);
}

.view-more:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.view-more svg { transition: transform var(--dur-med) var(--ease-out); }
.view-more:hover svg { transform: translateX(4px); }

.insights-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
}

.news-card a {
  display: block;
  color: var(--text);
}

.news-image {
  overflow: hidden;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
  aspect-ratio: 16 / 10;
  background: var(--bg-elev-2);
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}

.news-card:hover .news-image img { transform: scale(1.04); }

.news-tag {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.news-title {
  font-size: clamp(1.25rem, 1.05rem + 0.7vw, 1.625rem);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--text);
  transition: color var(--dur-fast) var(--ease-out);
}

.news-card:hover .news-title { color: var(--accent); }

/* =============== ECOSYSTEM =============== */
.ecosystem-section {
  padding-bottom: var(--space-3xl);
}

.eco-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.eco-left .section-num { margin-bottom: var(--space-md); }
.eco-left .section-title { margin-bottom: var(--space-lg); }

.eco-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: var(--space-lg) 0;
}

.eco-tags span {
  padding: 0.4rem 0.875rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.eco-subtext {
  font-size: var(--fs-body);
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

.eco-points {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin-bottom: var(--space-xl);
}

.eco-points li {
  position: relative;
  padding-left: 1.5rem;
  font-size: var(--fs-body);
  color: var(--text);
  line-height: 1.5;
}

.eco-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 1px;
  background: var(--accent);
}

.eco-right {
  display: flex;
  justify-content: center;
  align-items: center;
}

.eco-visual-wrap {
  position: relative;
  width: 100%;
  max-width: 24rem;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.eco-visual-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center,
    var(--accent-soft) 0%,
    transparent 60%);
  filter: blur(40px);
}

.eco-visual {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
  animation: ecoSpin 30s linear infinite;
  filter: drop-shadow(0 0 60px rgba(212, 165, 116, 0.25));
}

@keyframes ecoSpin {
  to { transform: rotate(360deg); }
}

/* =============== FOOTER =============== */
.site-footer {
  border-top: 1px solid var(--border);
  padding: var(--space-xl) 0;
  background: var(--bg);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--space-md);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.brand-text {
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--text);
}

.footer-copy {
  font-size: 0.8125rem;
  color: var(--text-dim);
  text-align: center;
}

.footer-social {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

.footer-social a {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  transition: border-color var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
}

.footer-social a:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-2px);
}

.footer-social img {
  width: 14px;
  height: 14px;
  object-fit: contain;
  opacity: 0.7;
  transition: opacity var(--dur-fast) var(--ease-out);
}

.footer-social a:hover img { opacity: 1; }

/* =============== REVEAL =============== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--dur-slow) var(--ease-out),
              transform var(--dur-slow) var(--ease-out);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* =============== RESPONSIVE =============== */

/* Tablet — 968px */
@media (max-width: 968px) {
  .hero-inner,
  .eco-grid { grid-template-columns: 1fr; }

  .card-grid,
  .card-grid-3 { grid-template-columns: repeat(2, 1fr); }

  .insights-grid { grid-template-columns: 1fr; gap: var(--space-lg); }

  .hero-visual { order: -1; }
  .hero-gif { max-width: 22rem; }

  .insights-top {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Mobile — 640px */
@media (max-width: 640px) {
  :root { --space-2xl: 5rem; --space-3xl: 7rem; }

  .menu { gap: var(--space-sm); }
  .menu a:not(.nav-contact) { display: none; }

  .nav-inner { height: 64px; }

  .card-grid,
  .card-grid-3 { grid-template-columns: 1fr; }

  .card { min-height: 10rem; padding: var(--space-lg); }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-md);
  }

  .footer-brand,
  .footer-social { justify-content: center; }

  .eco-tags { justify-content: flex-start; }

  .hero { padding-top: 7rem; padding-bottom: var(--space-2xl); }
}