/* ============================================
   StackVenture.ai — Brand Stylesheet
   Palette: Navy → Electric Blue → Cyan
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* --- Design Tokens --- */
:root {
  --color-bg: #050a14;
  --color-surface: #0A1628;
  --color-surface-elevated: #111d33;
  --color-surface-card: rgba(17, 29, 51, 0.6);
  --color-border: rgba(37, 99, 235, 0.12);
  --color-border-hover: rgba(6, 182, 212, 0.3);
  --color-primary: #2563EB;
  --color-primary-light: #06B6D4;
  --color-text: #E2E8F0;
  --color-text-muted: #64748B;
  --color-text-bright: #F8FAFC;
  --color-success: #10B981;
  --color-warning: #F59E0B;
  --gradient-primary: linear-gradient(135deg, #2563EB 0%, #06B6D4 100%);
  --gradient-bg: radial-gradient(ellipse at 20% 0%, rgba(37, 99, 235, 0.08) 0%, transparent 60%),
                 radial-gradient(ellipse at 80% 100%, rgba(6, 182, 212, 0.05) 0%, transparent 50%);
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --shadow-glow: 0 0 30px rgba(37, 99, 235, 0.15);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 1px 1px, rgba(37, 99, 235, 0.04) 1px, transparent 0);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: var(--gradient-bg);
  pointer-events: none;
  z-index: 0;
}

/* --- Typography --- */
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--color-text-bright); line-height: 1.2; }
h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { color: var(--color-text); max-width: 640px; }

a { color: var(--color-primary-light); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-text-bright); }

/* --- Layout --- */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

section {
  padding: 100px 0;
  position: relative;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-primary-light);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-label::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--gradient-primary);
}

.section-title { margin-bottom: 20px; }

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

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: all var(--transition);
  background: transparent;
}

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

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.nav-brand-text {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text-bright);
}

.nav-brand-text .dot-ai {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color var(--transition);
  position: relative;
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gradient-primary);
  transition: width var(--transition);
}

.nav-links a:hover::after { width: 100%; }

.btn-nav-cta {
  background: var(--color-primary) !important;
  color: #fff !important;
  padding: 8px 20px !important;
  font-size: 0.8rem !important;
  border-radius: var(--radius-sm);
}

.btn-nav-cta:hover {
  background: #3b82f6 !important;
  transform: translateY(-1px);
  box-shadow: 0 0 16px rgba(37, 99, 235, 0.35);
}

.btn-nav-cta::after { display: none !important; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 0 20px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(37, 99, 235, 0.4);
  color: #fff;
}

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

.btn-outline:hover {
  border-color: var(--color-border-hover);
  color: var(--color-text-bright);
  background: rgba(37, 99, 235, 0.05);
}

.btn svg { width: 16px; height: 16px; }

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  position: relative;
  overflow: hidden;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.4;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  animation: orbFloat 12s ease-in-out infinite;
}

.hero-orb-1 {
  width: 500px;
  height: 500px;
  background: rgba(37, 99, 235, 0.15);
  top: -10%;
  right: -5%;
  animation-delay: 0s;
}

.hero-orb-2 {
  width: 350px;
  height: 350px;
  background: rgba(6, 182, 212, 0.1);
  bottom: 10%;
  left: -8%;
  animation-delay: -4s;
}

.hero-orb-3 {
  width: 250px;
  height: 250px;
  background: rgba(37, 99, 235, 0.08);
  top: 40%;
  right: 30%;
  animation-delay: -8s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -20px) scale(1.05); }
  50% { transform: translate(-20px, 15px) scale(0.95); }
  75% { transform: translate(15px, 25px) scale(1.02); }
}

.hero-content {
  max-width: 680px;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: rgba(37, 99, 235, 0.06);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-primary-light);
  margin-bottom: 32px;
}

.hero-badge svg { width: 14px; height: 14px; }

.hero h1 {
  margin-bottom: 24px;
}

.hero h1 .gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  margin-bottom: 40px;
  line-height: 1.7;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-hook {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text-bright);
  margin-bottom: 16px;
  font-family: var(--font-display);
}

/* --- Section Split Layout --- */
.section-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 64px;
}

.section-split--img-left {
  direction: ltr;
}

.section-split-text { direction: ltr; }

.section-split-img {
  display: flex;
  justify-content: center;
  align-items: center;
}

.section-split-img img {
  width: 100%;
  max-width: 440px;
  height: auto;
  border-radius: var(--radius-lg);
  filter: drop-shadow(0 0 32px rgba(37, 99, 235, 0.15));
  transition: filter var(--transition);
}

.section-split-img img:hover {
  filter: drop-shadow(0 0 48px rgba(6, 182, 212, 0.2));
}

.section-split .section-desc { margin-bottom: 0; }

.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero-image {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  animation: heroFloat 6s ease-in-out infinite;
}

.hero-image img {
  width: 100%;
  max-width: 520px;
  height: auto;
  filter: drop-shadow(0 0 40px rgba(37, 99, 235, 0.2));
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

/* --- Section Dividers --- */
.section-glow-line {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(37,99,235,0.4) 30%, rgba(6,182,212,0.5) 50%, rgba(37,99,235,0.4) 70%, transparent 100%);
  margin: 0;
  border: none;
}

/* --- Stat Bar --- */
.stat-bar {
  padding: 48px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

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

.stat-item { text-align: center; }

.stat-value {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 4px;
}

/* --- Cards Grid --- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--color-surface-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--transition);
}

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

.card:hover::before { opacity: 1; }

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(37, 99, 235, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.card-icon svg {
  width: 24px;
  height: 24px;
  color: var(--color-primary-light);
}

.card h3 { margin-bottom: 10px; font-size: 1.1rem; }

.card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* --- Timeline / Journey --- */
.timeline {
  position: relative;
  padding-left: 60px;
  max-width: 700px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 23px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-primary-light) 50%, rgba(6, 182, 212, 0.1) 100%);
}

.timeline-step {
  position: relative;
  padding-bottom: 48px;
  display: flex;
  gap: 24px;
}

.timeline-step:last-child { padding-bottom: 0; }

.timeline-marker {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  left: -60px;
  top: 0;
  z-index: 2;
  transition: all var(--transition);
}

.timeline-step:hover .timeline-marker {
  border-color: var(--color-primary);
  box-shadow: 0 0 20px rgba(37, 99, 235, 0.3);
}

.timeline-marker svg {
  width: 20px;
  height: 20px;
  color: var(--color-primary-light);
}

.timeline-content {
  padding-top: 4px;
}

.timeline-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary-light);
  margin-bottom: 8px;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid rgba(6, 182, 212, 0.2);
  background: rgba(6, 182, 212, 0.06);
  display: inline-block;
}

.timeline-content h3 { margin-bottom: 8px; }

.timeline-content p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.timeline-step--highlight .timeline-content {
  padding: 20px 24px;
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: var(--radius-md);
  background: rgba(6, 182, 212, 0.05);
  box-shadow: 0 0 24px rgba(6, 182, 212, 0.08);
}

.timeline-step--highlight .timeline-tag {
  color: #06b6d4;
  border-color: rgba(6, 182, 212, 0.4);
  background: rgba(6, 182, 212, 0.1);
}

.timeline-step--highlight .timeline-marker {
  border-color: #06b6d4;
  box-shadow: 0 0 16px rgba(6, 182, 212, 0.3);
}

.timeline-step--highlight .timeline-marker svg {
  color: #06b6d4;
}

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

.tier {
  background: var(--color-surface-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 36px 32px;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.tier.featured {
  border-color: rgba(37, 99, 235, 0.3);
  background: rgba(37, 99, 235, 0.06);
}

.tier:hover {
  border-color: var(--color-border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.tier-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary-light);
  margin-bottom: 8px;
}

.tier-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text-bright);
  margin-bottom: 8px;
}

.tier-equity {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
}

.tier-desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 24px;
  flex: 1;
}

.tier-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tier-features li {
  font-size: 0.85rem;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: 10px;
}

.tier-features li svg {
  width: 16px;
  height: 16px;
  color: var(--color-success);
  flex-shrink: 0;
}

/* --- Case Study --- */
.case-study {
  background: var(--color-surface-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.case-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-success);
  margin-bottom: 16px;
}

.case-badge svg { width: 12px; height: 12px; }

.case-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 32px;
}

.case-stat-item {
  padding: 20px;
  border-radius: var(--radius-sm);
  background: rgba(37, 99, 235, 0.05);
  border: 1px solid var(--color-border);
}

.case-stat-value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text-bright);
}

.case-stat-label {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 4px;
}

/* --- CTA Section --- */
.cta-section {
  text-align: center;
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(37, 99, 235, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.cta-section h2 { margin-bottom: 16px; position: relative; }

.cta-section p {
  margin: 0 auto 40px;
  max-width: 480px;
  position: relative;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  position: relative;
}

/* --- Footer --- */
.footer {
  padding: 48px 0;
  border-top: 1px solid var(--color-border);
}

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

.footer-left {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-brand img { width: 24px; height: 24px; }

.footer-brand span {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.footer-sep {
  width: 1px;
  height: 20px;
  background: var(--color-border);
}

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

.footer-powered strong { color: var(--color-text); font-weight: 500; }

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

/* --- Animations --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .cards-grid,
  .tiers-grid { grid-template-columns: 1fr; gap: 16px; }

  .section-split { grid-template-columns: 1fr; gap: 32px; }
  .section-split--img-left .section-split-img { order: -1; }

  .timeline { padding-left: 48px; }
  .timeline-marker { left: -48px; width: 40px; height: 40px; min-width: 40px; }
  .timeline::before { left: 19px; }

  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }

  .case-study { grid-template-columns: 1fr; }

  .nav-links { display: none; }
  
  .hero-split { grid-template-columns: 1fr; }
  .hero-image { max-width: 400px; margin: 32px auto 0; }
}

@media (max-width: 600px) {
  section { padding: 64px 0; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .case-study { padding: 28px; }
  .hero-actions { flex-direction: column; }
  .cta-actions { flex-direction: column; align-items: center; }

  /* Nav brand — shorten on small screens */
  .nav-brand-text { font-size: 1rem; }

  /* H1 — slightly smaller for long text */
  h1 { font-size: clamp(1.8rem, 7vw, 3rem); }

  /* Footer — stack vertically */
  .footer-inner { flex-direction: column; gap: 20px; text-align: center; }
  .footer-left { flex-direction: column; gap: 12px; }
  .footer-sep { display: none; }

  /* Timeline highlight — prevent horizontal overflow */
  .timeline-step--highlight .timeline-content {
    padding: 16px;
  }
}
