/* ============================================================
   Matcha Cartel / Brutalist Editorial Style
   ============================================================ */

:root {
  --bg: #0e0e0e;
  --text: #e6e6e6;
  --text-muted: #888;
  --border: rgba(255, 255, 255, 0.15);
  --cyan: #00C8FF;
  --purple: #7B2FFF;
  --grad: linear-gradient(135deg, #00C8FF, #7B2FFF);
  
  --f-anton: 'Anton', sans-serif;
  --f-mono: 'Space Mono', monospace;
  --f-inter: 'Inter', sans-serif;
}

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

html {
  font-size: 16px;
  background-color: var(--bg);
  /* Lenis handles smooth scrolling, but prevent default jumpy scroll */
  scroll-behavior: auto;
}

body {
  font-family: var(--f-inter);
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.5;
  overflow-x: hidden;
  cursor: none; /* Custom cursor */
  -webkit-font-smoothing: antialiased;
}

/* Typography Classes */
.anton { font-family: var(--f-anton); text-transform: uppercase; }
.mono { font-family: var(--f-mono); text-transform: uppercase; font-size: 0.85rem; letter-spacing: 0.05em; }
.inter { font-family: var(--f-inter); }
.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.outline {
  -webkit-text-stroke: 1px var(--text);
  -webkit-text-fill-color: transparent;
}

/* Custom Cursor */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 12px;
  height: 12px;
  background-color: var(--cyan);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, background-color 0.3s;
  will-change: transform;
}
.cursor.active {
  width: 60px;
  height: 60px;
  background-color: var(--text);
  mix-blend-mode: difference;
}

/* Loader */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--bg);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--text);
  font-family: var(--f-anton);
  font-size: 4rem;
}
.loader-progress {
  font-family: var(--f-mono);
  font-size: 1rem;
  margin-top: 1rem;
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  mix-blend-mode: difference;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background-color 0.3s;
}
.nav.scrolled {
  background-color: rgba(14, 14, 14, 0.8);
  backdrop-filter: blur(10px);
  mix-blend-mode: normal;
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: var(--f-anton);
  font-size: 2rem;
  line-height: 1;
}
.nav-links {
  display: flex;
  gap: 2rem;
}
.nav-links a, .nav-cta {
  font-family: var(--f-mono);
  text-decoration: none;
  color: var(--text);
  position: relative;
  overflow: hidden;
  display: inline-block;
}
/* Hover effect like matcha cartel */
.nav-links a::after, .nav-cta::after {
  content: attr(data-hover);
  position: absolute;
  top: 100%;
  left: 0;
  color: var(--cyan);
  transition: transform 0.3s cubic-bezier(0.76, 0, 0.24, 1);
}
.nav-links a:hover::after, .nav-cta:hover::after {
  transform: translateY(-100%);
}
.nav-links a span, .nav-cta span {
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.76, 0, 0.24, 1);
}
.nav-links a:hover span, .nav-cta:hover span {
  transform: translateY(-100%);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  padding: 8rem 2rem 0;
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--border);
}
.hero-top {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
  margin-bottom: 2rem;
}
.hero-title-container {
  display: flex;
  flex-direction: column;
  margin-bottom: 3rem;
}
.hero-title {
  font-family: var(--f-anton);
  font-size: clamp(4rem, 12vw, 12rem);
  line-height: 0.85;
  text-transform: uppercase;
  margin: 0;
  /* Clip path setup for GSAP reveal */
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
}

.hero-bottom-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  flex-grow: 1;
  border-top: 1px solid var(--border);
}
.hero-desc {
  padding: 2rem 0;
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 400px;
}
.hero-image-container {
  position: relative;
  overflow: hidden;
  border-left: 1px solid var(--border);
  height: 100%;
  min-height: 400px;
}
.hero-image-container img {
  width: 100%;
  height: 130%; /* Taller for parallax */
  object-fit: cover;
  position: absolute;
  top: -15%;
  left: 0;
  /* Filter for moody look */
  filter: contrast(1.1) brightness(0.9);
}

/* Marquee */
.marquee-container {
  overflow: hidden;
  white-space: nowrap;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background-color: var(--text);
  color: var(--bg);
  margin-left: -2rem;
  margin-right: -2rem;
}
.marquee-track {
  display: inline-block;
  font-size: 2rem;
}
.marquee-track span {
  display: inline-block;
  padding-right: 2rem;
}

/* Grid Layout standard for sections */
.grid-layout {
  display: grid;
  grid-template-columns: 1fr 3fr;
  min-height: 100vh;
}
.col-left {
  border-right: 1px solid var(--border);
  padding: 2rem;
  position: relative;
}
.col-right {
  padding: 6rem 4rem;
}
.sticky-label {
  position: sticky;
  top: 6rem;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

/* Manifesto */
.manifesto {
  border-bottom: 1px solid var(--border);
}
.huge-text {
  font-family: var(--f-anton);
  font-size: clamp(3rem, 8vw, 8rem);
  line-height: 0.9;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.pain-points {
  margin-top: 6rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--border);
}
.pain-item {
  padding: 3rem 0;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 80px 1fr 2fr;
  gap: 2rem;
  align-items: start;
}
.pain-item h3 {
  font-family: var(--f-anton);
  font-size: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.pain-item p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* Image Break */
.image-break {
  position: relative;
  height: 80vh;
  overflow: hidden;
}
.parallax-wrap {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}
.parallax-wrap img {
  width: 100%;
  height: 140%;
  object-fit: cover;
  position: absolute;
  top: -20%;
}
.stats-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: rgba(14, 14, 14, 0.85);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
}
.stat-box {
  padding: 2rem;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}
.stat-box:last-child {
  border-right: none;
}
.stat-num {
  font-size: 4rem;
  color: var(--cyan);
  line-height: 1;
}

/* Systems (Horizontal Scroll) */
.systems {
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.systems-header {
  padding: 4rem 2rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.systems-header .title {
  font-size: clamp(2rem, 5vw, 5rem);
  line-height: 0.9;
}
.horizontal-scroll-wrapper {
  /* Height will be set by GSAP to create scroll space */
}
.horizontal-scroll-container {
  display: flex;
  width: 300vw; /* 3 panels */
  height: 100vh;
}
.panel {
  width: 100vw;
  height: 100vh;
  padding: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--border);
}
.card-inner {
  width: 100%;
  max-width: 600px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  padding: 4rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
}
.icon-circle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
}
.icon-circle.cyan { background: var(--cyan); }
.icon-circle.purple { background: var(--purple); }
.icon-circle.grad { background: var(--grad); }

.card-inner h3 {
  font-size: 3rem;
}
.card-inner p {
  font-size: 1.25rem;
  color: var(--text-muted);
}
.tags {
  display: flex;
  gap: 1rem;
}
.tags span {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: 20px;
}

/* Process */
.process {
  border-bottom: 1px solid var(--border);
}
.process-list {
  margin-top: 4rem;
}
.process-step {
  display: flex;
  gap: 4rem;
  padding: 4rem 0;
  border-top: 1px solid var(--border);
}
.step-num {
  font-size: 8rem;
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1px var(--border);
}
.step-content h3 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 500;
}
.step-content p {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 500px;
}

/* Quote */
.quote-section {
  padding: 10rem 2rem;
  border-bottom: 1px solid var(--border);
  text-align: center;
  display: flex;
  justify-content: center;
}
.quote-container {
  max-width: 1000px;
  position: relative;
}
.quote-mark {
  font-size: 10rem;
  position: absolute;
  top: -6rem;
  left: -4rem;
  opacity: 0.1;
  line-height: 1;
}
.quote-text {
  font-size: clamp(1.5rem, 4vw, 3rem);
  font-weight: 300;
  line-height: 1.3;
  margin-bottom: 2rem;
}
.quote-author {
  color: var(--cyan);
}

/* Footer */
.footer {
  padding: 6rem 2rem 2rem;
}
.footer-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 8rem;
}
.footer-title {
  font-size: clamp(3rem, 10vw, 10rem);
  line-height: 0.9;
  margin-bottom: 4rem;
}
.big-btn {
  display: inline-block;
  padding: 2rem 4rem;
  background: var(--text);
  color: var(--bg);
  font-size: 1.5rem;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s;
}
.big-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--grad);
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.76, 0, 0.24, 1);
  z-index: 1;
}
.big-btn:hover::before {
  transform: translateY(0);
}
.big-btn span {
  position: relative;
  z-index: 2;
  mix-blend-mode: difference;
  color: var(--text);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  color: var(--text-muted);
}
.f-col.right {
  text-align: right;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-bottom-grid {
    grid-template-columns: 1fr;
  }
  .grid-layout {
    grid-template-columns: 1fr;
  }
  .col-left {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 1rem 2rem;
  }
  .sticky-label {
    position: static;
    writing-mode: horizontal-tb;
    transform: none;
  }
  .col-right {
    padding: 4rem 2rem;
  }
  .pain-item {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .stats-overlay {
    grid-template-columns: 1fr;
  }
  .stat-box {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .nav-links {
    display: none;
  }
  .process-step {
    flex-direction: column;
    gap: 1rem;
  }
}
