/* ========================================
   NovaClaw.ai Landing Page
   Design system matched to pitch deck
   ======================================== */

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

:root {
  --bg-dark: #0a0a0f;
  --bg-card: #13131a;
  --bg-accent: #1a1a2e;
  --purple: #7c3aed;
  --purple-light: #a78bfa;
  --blue: #3b82f6;
  --cyan: #06b6d4;
  --green: #10b981;
  --orange: #f59e0b;
  --red: #ef4444;
  --pink: #ec4899;
  --text: #f1f1f7;
  --text-dim: #9ca3af;
  --text-muted: #6b7280;
  --border: #2a2a3e;
  --radius: 14px;
  --container: 1200px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-dark);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
}

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

ul {
  list-style: none;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Gradient Text ---------- */
.gradient-text {
  background: linear-gradient(135deg, var(--purple) 0%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- Section Shared ---------- */
section {
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-dim);
  text-align: center;
  margin-bottom: 60px;
}

/* ---------- Scroll Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Stagger children */
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }
.reveal:nth-child(5) { transition-delay: 0.4s; }


/* ========================================
   NAVIGATION
   ======================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 24px;
  transition: background 0.3s ease, backdrop-filter 0.3s ease;
}

.nav.scrolled {
  background: rgba(10, 10, 15, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
}

.nav-logo img {
  border-radius: 6px;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  color: var(--text-dim);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

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

.nav-cta {
  background: var(--purple);
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.2s, transform 0.2s;
}

.nav-cta:hover {
  background: #6d28d9;
  transform: translateY(-1px);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-hamburger.active span:nth-child(2) {
  opacity: 0;
}
.nav-hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}


/* ========================================
   HERO
   ======================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 80px;
  position: relative;
}

.hero-glow {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(ellipse, rgba(124, 58, 237, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-logo {
  width: 120px;
  height: auto;
  margin: 0 auto 32px;
  border-radius: 20px;
}

.hero-title {
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--text-dim);
  margin-bottom: 12px;
  font-weight: 400;
}

.hero-description {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  color: var(--text-muted);
  margin-bottom: 32px;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
}

.pill {
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid;
}

.pill-green  { color: var(--green);  border-color: rgba(16, 185, 129, 0.3); background: rgba(16, 185, 129, 0.08); }
.pill-purple { color: var(--purple-light); border-color: rgba(124, 58, 237, 0.3); background: rgba(124, 58, 237, 0.08); }
.pill-pink   { color: var(--pink);   border-color: rgba(236, 72, 153, 0.3); background: rgba(236, 72, 153, 0.08); }
.pill-orange { color: var(--orange); border-color: rgba(245, 158, 11, 0.3); background: rgba(245, 158, 11, 0.08); }

.hero-ctas {
  display: flex;
  justify-content: center;
  gap: 16px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--purple) 0%, #6d28d9 100%);
  color: white;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(124, 58, 237, 0.5);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--purple);
  background: rgba(124, 58, 237, 0.08);
  transform: translateY(-2px);
}


/* ========================================
   SOCIAL PROOF
   ======================================== */
.proof {
  padding: 60px 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.proof-heading {
  text-align: center;
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-dim);
  margin-bottom: 32px;
  font-weight: 500;
}

.proof-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px 48px;
}

.proof-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-dim);
}

.proof-check {
  color: var(--green);
  flex-shrink: 0;
}


/* ========================================
   THE SHIFT
   ======================================== */
.shift {
  text-align: center;
}

.shift-narrative {
  margin-bottom: 60px;
}

.shift-line {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--text-dim);
  margin-bottom: 12px;
}

.shift-line strong {
  color: var(--text);
}

.shift-highlight {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  color: var(--text);
  font-weight: 600;
  margin-top: 20px;
}

.shift-comparison {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.shift-problem {
  text-align: left;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}

.shift-problem h3 {
  font-size: 1.1rem;
  margin-bottom: 16px;
  color: var(--text-dim);
}

.shift-problem li {
  color: var(--text-muted);
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
}

.shift-problem li::before {
  content: '✕';
  position: absolute;
  left: 0;
  color: var(--red);
  font-size: 0.8rem;
}

.shift-arrow {
  color: var(--purple);
}

.shift-solution h3 {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 700;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}


/* ========================================
   CORE PLATFORM (3 PILLARS)
   ======================================== */
.platform {
  background: var(--bg-accent);
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: border-color 0.3s, transform 0.3s;
}

.pillar-card:hover {
  transform: translateY(-4px);
}

.pillar-card[data-accent="green"]:hover  { border-color: var(--green); }
.pillar-card[data-accent="purple"]:hover { border-color: var(--purple); }
.pillar-card[data-accent="pink"]:hover   { border-color: var(--pink); }

.pillar-icon {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.pillar-icon-green  { background: rgba(16, 185, 129, 0.12); color: var(--green); }
.pillar-icon-purple { background: rgba(124, 58, 237, 0.12); color: var(--purple-light); }
.pillar-icon-pink   { background: rgba(236, 72, 153, 0.12); color: var(--pink); }

.pillar-icon img,
.pillar-icon svg {
  width: 36px;
  height: 36px;
}

.pillar-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.pillar-tagline {
  font-size: 0.9rem;
  color: var(--text-dim);
  margin-bottom: 16px;
}

.pillar-desc {
  font-weight: 500;
  margin-bottom: 16px;
}

.pillar-features li {
  color: var(--text-dim);
  font-size: 0.9rem;
  padding: 5px 0 5px 20px;
  position: relative;
}

.pillar-features li::before {
  content: '•';
  position: absolute;
  left: 4px;
  color: var(--text-muted);
}

.pillar-punch {
  margin-top: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--purple-light);
  font-style: italic;
}


/* ========================================
   BUILD + EARN
   ======================================== */
.economy {
  background: var(--bg-dark);
}

.economy-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.economy-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  transition: border-color 0.3s, transform 0.3s;
}

.economy-card:hover {
  border-color: var(--purple);
  transform: translateY(-4px);
}

.economy-icon {
  color: var(--purple-light);
  margin-bottom: 16px;
}

.economy-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.economy-card p {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.5;
}


/* ========================================
   ENTERPRISE READY
   ======================================== */
.enterprise {
  background: var(--bg-accent);
}

.enterprise-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 800px;
  margin: 0 auto 48px;
}

.enterprise-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: border-color 0.3s, transform 0.3s;
}

.enterprise-card:hover {
  border-color: var(--cyan);
  transform: translateY(-4px);
}

.enterprise-card svg {
  color: var(--cyan);
  margin-bottom: 16px;
}

.enterprise-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.enterprise-card p {
  font-size: 0.9rem;
  color: var(--text-dim);
}

.enterprise-closing {
  text-align: center;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--text-dim);
  line-height: 1.8;
}

.enterprise-closing strong {
  color: var(--text);
  font-size: clamp(1.3rem, 2.5vw, 1.6rem);
}


/* ========================================
   WHY NOVACLAW WINS
   ======================================== */
.why {
  background: var(--bg-dark);
}

.why-list {
  max-width: 700px;
  margin: 0 auto;
}

.why-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.why-item:last-child {
  border-bottom: none;
}

.why-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  width: 40px;
  text-align: center;
}

.why-item h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.why-item p {
  font-size: 0.9rem;
  color: var(--text-dim);
}


/* ========================================
   THE OPPORTUNITY
   ======================================== */
.opportunity {
  background: var(--bg-accent);
  text-align: center;
}

.opportunity-stats {
  margin-bottom: 48px;
}

.stat-card {
  display: inline-block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 60px;
}

.stat-number {
  display: block;
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 900;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 1rem;
  color: var(--text-dim);
}

.opportunity-shifts {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
}

.opp-shift {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-dim);
}

.opp-arrow {
  color: var(--purple);
  font-size: 1.4rem;
  font-weight: 700;
}

.opportunity-closing {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 700;
}


/* ========================================
   FINAL CTA
   ======================================== */
.final-cta {
  min-height: 80vh;
  display: flex;
  align-items: center;
  text-align: center;
  position: relative;
}

.final-cta-glow {
  position: absolute;
  bottom: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(124, 58, 237, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.final-cta .container {
  position: relative;
  z-index: 1;
  width: 100%;
}

.final-cta-sub {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--text-dim);
  margin-bottom: 48px;
}

/* ---------- CTA Form ---------- */
.cta-form-wrapper {
  max-width: 600px;
  margin: 0 auto;
}

.cta-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: flex;
  gap: 12px;
}

.cta-form input[type="text"],
.cta-form input[type="email"] {
  flex: 1;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s;
}

.cta-form input:focus {
  outline: none;
  border-color: var(--purple);
}

.cta-form input::placeholder {
  color: var(--text-muted);
}

.form-buttons {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.form-buttons .btn {
  padding: 14px 24px;
  font-size: 0.9rem;
  white-space: nowrap;
}

.form-success {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 40px;
  color: var(--green);
}

.form-success.visible {
  display: flex;
}

.form-success p {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
}


/* ========================================
   FOOTER
   ======================================== */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-dim);
}

.footer-brand img {
  border-radius: 4px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

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

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

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}


/* ========================================
   RESPONSIVE
   ======================================== */

/* Tablet */
@media (max-width: 768px) {
  section {
    padding: 80px 0;
  }

  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  /* Mobile menu */
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
  }

  .nav-cta.open {
    display: inline-flex;
    position: absolute;
    top: calc(100% + 140px);
    left: 24px;
    right: 24px;
    justify-content: center;
  }

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

  .economy-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .shift-comparison {
    flex-direction: column;
    gap: 24px;
  }

  .shift-arrow {
    transform: rotate(90deg);
  }

  .proof-items {
    flex-direction: column;
    align-items: center;
  }

  .form-row {
    flex-direction: column;
  }

  .form-buttons {
    flex-direction: column;
    width: 100%;
  }

  .form-buttons .btn {
    width: 100%;
  }

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

  .hero-ctas {
    flex-direction: column;
    align-items: center;
  }

  .stat-card {
    padding: 32px 40px;
  }
}

/* Phone */
@media (max-width: 480px) {
  section {
    padding: 60px 0;
  }

  .container {
    padding: 0 16px;
  }

  .hero-logo {
    width: 80px;
  }

  .hero-pills {
    gap: 8px;
  }

  .pill {
    font-size: 0.75rem;
    padding: 6px 14px;
  }

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

  .section-subtitle {
    margin-bottom: 40px;
  }
}
