/* ============================================
   Parallax — Premium Landing Page Styles
   Inspired by rogo.ai & harvey.ai
   ============================================ */

/* CSS Custom Properties */
:root {
  --bg-primary: #0a0a0f;
  --bg-elevated: #111118;
  --bg-card: #16161f;
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);
  --text-primary: #f0f0f5;
  --text-secondary: #7a7a8a;
  --text-muted: #4a4a5a;
  --accent: #6366f1;
  --accent-glow: rgba(99, 102, 241, 0.12);
  --font-serif: 'Merriweather', 'Big Caslon', Georgia, serif;
  --font-sans: 'Helvetica Neue', 'Inter', 'Helvetica', 'Arial', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Noise Overlay */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../assets/noise.svg') repeat;
  opacity: 0.4;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: overlay;
}

/* Selection */
::selection {
  background: rgba(255, 255, 255, 0.9);
  color: #111;
}

.theme-light ::selection {
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
}

/* ============================================
   Typography
   ============================================ */

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -0.01em;
}

/* ============================================
   Navigation
   ============================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(10, 10, 15, 1);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}

/* Scrolling through hero — frosted glass */
.nav.nav-glass {
  background: rgba(10, 10, 15, 0.25);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Dark nav (over hero / dark sections) */
.nav .nav-logo {
  color: var(--text-primary);
  transition: color 0.3s ease;
}

.nav .nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1.5rem;
  background: #fff;
  border: none;
  border-radius: 6px;
  color: #111;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, opacity 0.2s ease;
}

.nav .nav-cta:hover {
  opacity: 0.85;
}

/* Light nav (over white sections) */
.nav.nav-light {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.nav.nav-light .nav-logo {
  color: #111;
}

.nav.nav-light .nav-cta {
  background: #111;
  color: #fff;
}

.nav.nav-light .nav-cta:hover {
  opacity: 0.85;
}

/* Dark nav scrolled (over dark footer/CTA) */
.nav.nav-dark-scrolled {
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}



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

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
  padding: 10rem 5rem 6rem;
  position: relative;
  overflow: hidden;
}

/* Background Image */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url('../assets/hero-bg.png') center center / cover no-repeat;
}

/* Dark overlay gradient */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(to bottom, 
      rgba(10, 10, 15, 0.3) 0%, 
      rgba(10, 10, 15, 0.15) 40%, 
      rgba(10, 10, 15, 0.15) 60%, 
      rgba(10, 10, 15, 0.6) 100%);
}

.hero-headline {
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 400;
  line-height: 1.2;
  max-width: 800px;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.hero-headline .char {
  display: inline-block;
}

.hero-sub {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  color: var(--text-primary);
  max-width: 620px;
  margin-bottom: 3rem;
  line-height: 1.7;
  font-weight: 400;
  position: relative;
  z-index: 1;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2.25rem;
  background: var(--text-primary);
  color: var(--bg-primary);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  z-index: 1;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn-cta:hover {
  transform: translateY(-1px);
  opacity: 0.9;
}

/* ============================================
   Theme: Light (middle sections)
   ============================================ */

.theme-light {
  background: #fafafa;
  color: #1a1a1a;
}

.theme-light h2,
.theme-light h3,
.theme-light h4 {
  color: #111;
}

.theme-light p {
  color: #1a1a1a;
  font-weight: 400;
}

.theme-light .proof-card {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.08);
}

.theme-light .proof-card:hover {
  border-color: rgba(0, 0, 0, 0.15);
}

.theme-light .proof-card h4 {
  color: #111;
}

.theme-light .proof-card p {
  color: #1a1a1a;
}

.theme-light .trust-card {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.08);
}

.theme-light .trust-card:hover {
  border-color: rgba(0, 0, 0, 0.15);
}

.theme-light .trust-card h4 {
  color: #111;
}

.theme-light .trust-card p {
  color: #1a1a1a;
}

.theme-light .btn-cta {
  background: #111;
  color: #fff;
}

.theme-light .btn-cta:hover {
  opacity: 0.85;
}

.theme-light .problem {
  border-top-color: rgba(0, 0, 0, 0.08);
}

.theme-light .positioning {
  border-top-color: rgba(0, 0, 0, 0.08);
}

.theme-light .capabilities-reel {
  border-top-color: rgba(0, 0, 0, 0.08);
}

.theme-light .trust {
  border-top-color: rgba(0, 0, 0, 0.08);
}

.theme-light .team {
  border-top-color: rgba(0, 0, 0, 0.08);
}



/* ============================================
   Section Base
   ============================================ */

.section {
  padding: 10rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.section--full {
  max-width: none;
}

.section-reveal {
  opacity: 1;
  transform: none;
}

/* ============================================
   Problem Statement
   ============================================ */

.problem {
  text-align: center;
  border-top: 1px solid var(--border);
  padding-bottom: 0;
}

.problem h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  max-width: 800px;
  margin: 0 auto 2rem;
  line-height: 1.3;
}

.problem p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.8;
  font-weight: 400;
}

/* ============================================
   Problem Proof Cards
   ============================================ */

.proof-cards {
  padding-top: 3rem;
}

.proof-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.proof-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2.5rem;
  transition: border-color 0.4s ease, transform 0.3s ease;
}

.proof-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.proof-card h4 {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.card-icon {
  font-size: 1.6rem;
  margin-bottom: 1.25rem;
  display: block;
  opacity: 0.7;
}

.theme-light .card-icon {
  color: #333;
  opacity: 0.6;
}

.proof-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  font-weight: 400;
}

/* ============================================
   Positioning
   ============================================ */

.positioning {
  text-align: center;
  border-top: 1px solid var(--border);
}

.positioning h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  max-width: 700px;
  margin: 0 auto 2rem;
  line-height: 1.3;
}

.positioning p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.8;
  font-weight: 400;
}


/* ============================================
   Capabilities Reel (Harvey-style ticker)
   ============================================ */

.capabilities-reel {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding: 6rem 5rem;
  overflow: hidden;
}

.reel-layout {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 3rem;
  max-width: 1400px;
  margin: 0 auto;
}

.reel-label p {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: #111;
  line-height: 1.5;
}

.reel-track-wrapper {
  position: relative;
  height: calc(var(--reel-item-h, 80px) * 5);
  overflow: hidden;
  mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
}

.reel-track {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.reel-item {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2.8vw, 4rem);
  font-weight: 400;
  color: rgba(0, 0, 0, 0.12);
  line-height: 1.2;
  padding: 0.15em 0;
  transition: color 0.5s ease;
  white-space: nowrap;
}

.reel-item.active {
  color: #111;
}

.reel-cta {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.trust {
  text-align: center;
  border-top: 1px solid var(--border);
}

.trust h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  margin-bottom: 4rem;
}

.trust-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  text-align: left;
  margin-bottom: 4rem;
}

.trust-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2.5rem;
  transition: border-color 0.4s ease;
}

.trust-card:hover {
  border-color: var(--border-hover);
}

.trust-card h4 {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.trust-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  font-weight: 400;
}

/* ============================================
   Team / Credibility
   ============================================ */

.team {
  text-align: center;
  border-top: 1px solid var(--border);
}

.team h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  margin-bottom: 2rem;
}

.team > p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 650px;
  margin: 0 auto 4rem;
  line-height: 1.8;
  font-weight: 400;
}

.logo-header {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: center;
  margin-bottom: 2rem;
}

.theme-light .logo-header {
  color: #888;
}

.logo-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 3.5rem;
  padding: 2rem 0;
}

.logo-img {
  height: 28px;
  width: auto;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.logo-img:hover {
  opacity: 1;
}

.theme-light .logo-img {
  opacity: 0.7;
}

.theme-light .logo-img:hover {
  opacity: 1;
}

/* ============================================
   Final CTA
   ============================================ */

.final-cta {
  text-align: center;
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  padding-bottom: 3rem;
}

.final-cta::before {
  content: '';
  position: absolute;
  bottom: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 500px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.06) 0%, transparent 65%);
  pointer-events: none;
}

.final-cta h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  max-width: 700px;
  margin: 0 auto 3rem;
  line-height: 1.35;
  position: relative;
  z-index: 1;
}

/* ============================================
   Footer text (inside final-cta)
   ============================================ */

.footer-text {
  margin-top: 4rem;
  padding-bottom: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ============================================
   Modal
   ============================================ */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 3rem;
  width: 90%;
  max-width: 440px;
  position: relative;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: none;
  border: none;
  color: #999;
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}

.modal-close:hover {
  color: #111;
}

.modal h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
  color: #111;
}

.modal .modal-sub {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 2rem;
  line-height: 1.5;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: #555;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-group input {
  width: 100%;
  padding: 0.85rem 1rem;
  background: #f7f7f7;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  color: #111;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.form-group input:focus {
  border-color: #111;
}

.form-group input::placeholder {
  color: #aaa;
}

.form-submit {
  width: 100%;
  padding: 1rem;
  background: #111;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: opacity 0.2s ease;
}

.form-submit:hover {
  opacity: 0.85;
}

.form-submit:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.form-success {
  text-align: center;
  padding: 2rem 0;
}

.form-success h4 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
  color: #111;
}

.form-success p {
  color: #555;
  font-size: 0.9rem;
}

.form-group--hp {
  position: absolute;
  left: -9999px;
  top: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.form-error {
  color: #dc2626;
  font-size: 0.8rem;
  margin-top: 0.5rem;
  display: none;
}

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

@media (max-width: 768px) {
  .nav {
    padding: 1rem 1.5rem;
  }

  .section {
    padding: 6rem 1.5rem;
  }

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

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

  .capabilities-reel {
    padding: 4rem 1.5rem;
  }

  .reel-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .reel-label p {
    text-align: center;
  }

  .reel-cta {
    justify-content: center;
  }
  .logo-bar {
    gap: 2rem;
  }

  .logo-img {
    height: 22px;
  }

  .modal {
    padding: 2rem;
    width: 95%;
  }

  .hero {
    padding: 8rem 1.5rem 4rem;
  }
}

@media (max-width: 480px) {
  .hero-headline {
    font-size: clamp(2.5rem, 10vw, 3.5rem);
  }

  .logo-bar {
    gap: 1.5rem;
  }
}
