:root {
  --primary: #CCFF00;
  /* Electric Lime */
  --primary-rgb: 204, 255, 0;
  --bg-dark: #080808;
  --bg-surface: #121212;
  --text-main: #FFFFFF;
  --text-muted: #888888;
  --nav-height: 80px;
  --font-display: 'Inter', sans-serif;
  --glass: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glow: 0 0 20px rgba(204, 255, 0, 0.3);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-display);
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.5;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ─── NOISE OVERLAY ─── */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("https://grainy-gradients.vercel.app/noise.svg");
  opacity: 0.05;
  pointer-events: none;
  z-index: 9999;
}

/* ─── NAVIGATION ─── */
.main-nav {
  position: fixed;
  top: 0;
  width: 100%;
  height: var(--nav-height);
  padding: 0 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  background: rgba(8, 8, 8, 0.8);
  backdrop-filter: blur(20px);
}

.nav-logo {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--primary);
}

.nav-links {
  display: flex;
  gap: 3rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: 0.3s;
}

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

/* ─── SCROLL CONTAINER ─── */
.scroll-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
  /* Firefox */
}

.scroll-container::-webkit-scrollbar {
  display: none;
  /* Chrome, Safari, Edge */
}

.snap-section {
  scroll-snap-align: start;
  width: 100%;
  height: 100vh;
  padding-top: var(--nav-height);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

/* ─── REVEAL ANIMATION ─── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ─── HERO ─── */
.hero-inner {
  padding: 0 4rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  width: 100%;
}

.hero-text {
  flex: 1;
  z-index: 2;
}

.hero-text h4 {
  font-size: 0.8rem;
  color: var(--primary);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 4px;
}

.hero-text h1 {
  font-size: clamp(4rem, 10vw, 8rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -2px;
  margin-left: -5px;
}

.hero-text h1 span {
  display: block;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.2);
  animation: pulseGlow 3s infinite ease-in-out;
}

@keyframes pulseGlow {
  0%, 100% {
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.2);
    text-shadow: none;
  }
  50% {
    -webkit-text-stroke: 1px var(--primary);
    text-shadow: var(--glow);
  }
}

.hero-img-container {
  position: absolute;
  right: 5%;
  bottom: 0%;
  width: 45%;
  height: 90%;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}

.phone-stack {
  position: relative;
  width: 100%;
  height: 100%;
}

.phone-wrapper {
  position: absolute;
  width: 70%;
  transition: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.phone-wrapper img {
  width: 100%;
  filter: grayscale(0.5) brightness(0.8);
  transition: 0.5s;
}

.p-left {
  bottom: 5%;
  right: 20%;
  z-index: 1;
  animation: float 6s ease-in-out infinite;
}

.p-right {
  bottom: 15%;
  right: 0%;
  z-index: 2;
  animation: float 6s ease-in-out infinite 1s;
}

.phone-wrapper:hover img {
  filter: grayscale(0) brightness(1);
  transform: scale(1.02);
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-20px);
  }
}

/* ─── SPLIT SECTIONS (Editorial Style) ─── */
.split-inner {
  display: flex;
  width: 100%;
  height: 100%;
}

.side-left,
.side-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 6rem;
}

.bg-number {
  position: absolute;
  font-size: 15rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.05);
  top: 0;
  left: 2rem;
  z-index: 0;
}

.section-label {
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 2rem;
  text-transform: uppercase;
}

.section-title-large {
  font-size: 4.5rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 2.5rem;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 450px;
}

/* ─── CARDS ─── */
.card-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.content-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  padding: 2.5rem;
  border-radius: 4px;
  transition: 0.4s;
  display: flex;
  gap: 2rem;
}

.content-card:hover {
  background: rgba(204, 255, 0, 0.05);
  border-color: var(--primary);
}

.card-num {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary);
}

/* ─── FEATURE GRID ─── */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.feature-card-small {
  background: var(--glass);
  padding: 2rem;
  border: 1px solid var(--glass-border);
  cursor: pointer;
  transition: 0.4s;
}

.feature-card-small:hover {
  background: white;
}

.feature-card-small:hover * {
  color: black !important;
}

.feature-icon-box {
  margin-bottom: 1.5rem;
}

/* ─── AI SECTION ─── */
.ai-section .side-left {
  background: #111;
  clip-path: polygon(0 0, 90% 0, 100% 100%, 0% 100%);
}

.chat-excerpt {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.excerpt-item {
  background: var(--glass);
  padding: 1.5rem;
  border: 1px solid var(--glass-border);
}

.chat-role {
  font-size: 0.65rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
  display: block;
}

/* ─── UTILIZATION TABLE ─── */
.util-table {
  width: 100%;
}

.util-row {
  display: flex;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--glass-border);
}

.col-step {
  flex: 1;
  font-weight: 800;
  color: var(--primary);
}

.col-purpose {
  flex: 3;
  color: var(--text-main);
}

.col-tools {
  flex: 1.5;
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ─── MODAL ─── */
.modal {
  display: none;
  position: fixed;
  z-index: 10000;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(20px);
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

.modal-content {
  max-width: 90%;
  max-height: 80vh;
  border: 1px solid var(--glass-border);
}

/* ─── PROGRESS BAR ─── */
.progress-container {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.05);
  z-index: 1001;
}

.progress-bar {
  height: 100%;
  background: var(--primary);
  width: 0%;
}

/* ─── MOBILE RESPONSIVE ─── */
@media (max-width: 768px) {
  :root {
    --nav-height: 60px;
  }

  .main-nav {
    padding: 0 1.5rem;
  }

  .nav-links {
    display: none;
  }

  .snap-section {
    flex-direction: column;
    height: auto;
    min-height: 100vh;
    padding-top: var(--nav-height);
    scroll-snap-align: none;
    display: block; /* Change from flex to block for normal flow */
  }

  .scroll-container {
    scroll-snap-type: none;
    overflow-y: auto;
  }

  .hero-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem 1.5rem;
  }

  .hero-text h1 {
    font-size: 3rem !important;
  }

  .hero-img-container {
    position: relative;
    width: 100%;
    right: 0;
    bottom: 0;
    margin-top: 2rem;
    height: 350px;
    padding-bottom: 2rem;
  }

  .phone-stack {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
  }

  .phone-wrapper {
    width: 80% !important;
    position: relative !important;
    right: auto !important;
    bottom: auto !important;
  }

  .side-left, .side-right {
    padding: 3rem 1.5rem !important;
    width: 100%;
    flex: none;
    min-height: auto;
  }

  .section-title-large {
    font-size: 2.5rem !important;
  }

  .bg-number {
    font-size: 8rem;
    left: 1rem;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .util-row {
    flex-direction: column;
    gap: 0.5rem;
  }

  .col-step {
    font-size: 0.8rem;
  }

  .modal-content {
    width: 95%;
  }

  footer h1 {
    font-size: 12vw !important;
  }

  /* Handle specific inline style overrides for mobile */
  .side-left > div[style*="padding: 1.5rem 6rem"] {
    padding: 2rem 1.5rem !important;
  }
}