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

:root {
  --navy: #0a1628;
  --navy-light: #112240;
  --blue: #2563eb;
  --blue-light: #3b82f6;
  --gold: #f59e0b;
  --gold-light: #fbbf24;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-400: #94a3b8;
  --gray-600: #475569;
  --gray-800: #1e293b;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--gray-800);
  line-height: 1.6;
  background: var(--navy);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== Typography ===== */
h1, h2, h3 {
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
h3 { font-size: 1.25rem; }

p { max-width: 65ch; }

/* ===== Layout ===== */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  min-height: 100vh;
  padding: 5rem 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

/* ===== Scroll Reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

.step.reveal:nth-child(2) { transition-delay: 0.15s; }
.step.reveal:nth-child(3) { transition-delay: 0.3s; }

.feature.reveal:nth-child(2) { transition-delay: 0.1s; }
.feature.reveal:nth-child(3) { transition-delay: 0.2s; }
.feature.reveal:nth-child(4) { transition-delay: 0.3s; }

/* ===== Navigation ===== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 22, 40, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

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

.scroll-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, var(--gold), var(--blue-light));
  transform-origin: left;
  transform: scaleX(0);
  transition: none;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.03em;
}

.logo span {
  color: var(--gold);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--gray-400);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.3s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  height: 100vh;
  text-align: center;
  position: relative;
  overflow: hidden;
}

#hero-canvas {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  will-change: transform;
}

.hero-buttons-wrap {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  z-index: 1;
  justify-content: center;
  gap: 1rem;
}

.hero h1 {
  margin-bottom: 1.5rem;
}

.hero h1 span {
  color: var(--gold);
}

.hero p {
  font-size: 1.25rem;
  color: var(--gray-400);
  margin: 0 auto 2.5rem;
  max-width: 600px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  border: none;
  position: relative;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
  box-shadow: 0 0 0 rgba(245, 158, 11, 0);
}

.btn-primary:hover {
  background: var(--gold-light);
  box-shadow: 0 8px 32px rgba(245, 158, 11, 0.3);
}

.btn-secondary {
  background: rgba(255,255,255,0.06);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(4px);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.3);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

/* ===== Problem Section ===== */
.problem {
  background: var(--gray-50);
}

.problem .container {
  text-align: center;
}

.problem h2 {
  margin-bottom: 1rem;
}

.problem > .container > .reveal > p {
  color: var(--gray-600);
  margin: 0 auto 3rem;
}

.pain-points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.pain-point {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.pain-point::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 17px;
  padding: 1px;
  background: linear-gradient(135deg, transparent 40%, var(--gold) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s;
}

.pain-point:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.08);
}

.pain-point:hover::before {
  opacity: 1;
}

.pain-point .icon {
  margin-bottom: 1rem;
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pain-point .icon svg {
  width: 36px;
  height: 36px;
}

.pain-point h3 {
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.pain-point p {
  font-size: 0.875rem;
  color: var(--gray-600);
  margin: 0 auto;
}

/* ===== Solution Section ===== */
.solution {
  text-align: center;
  background: var(--navy);
  color: var(--white);
}

.solution h2 {
  margin-bottom: 1rem;
}

.solution > .container > .reveal > p {
  color: var(--gray-400);
  margin: 0 auto 3rem;
}

.solution-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 960px;
  margin: 0 auto;
}

.step {
  text-align: left;
  padding: 2rem;
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.step::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 17px;
  padding: 1px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--gold) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s;
}

.step:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,0.08);
  box-shadow: 0 16px 48px rgba(0,0,0,0.3);
}

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

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--navy);
  color: var(--gold);
  border-radius: 50%;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.step h3 {
  margin-bottom: 0.5rem;
  color: var(--white);
}

.step p {
  color: var(--gray-400);
  font-size: 0.95rem;
}

/* ===== Features Section ===== */
.features {
  background: var(--navy);
  color: var(--white);
  overflow: hidden;
}

#features-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  will-change: transform;
}

.features .container {
  position: relative;
  z-index: 1;
}

.features h2 {
  text-align: center;
  margin-bottom: 3rem;
}

.features h2 span {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.feature {
  padding: 2rem;
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.feature::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 17px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(245,158,11,0.4) 0%, rgba(37,99,235,0.4) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s;
}

.feature:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,0.08);
  box-shadow: 0 16px 48px rgba(0,0,0,0.3);
}

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

.feature .icon {
  margin-bottom: 1rem;
  color: var(--gold);
  display: flex;
  align-items: center;
}

.feature .icon svg {
  width: 36px;
  height: 36px;
}

.feature h3 {
  margin-bottom: 0.5rem;
  color: var(--gold-light);
}

.feature p {
  color: var(--gray-400);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ===== CTA Section ===== */
.cta {
  text-align: center;
  background: linear-gradient(135deg, var(--blue) 0%, #1d4ed8 50%, var(--navy) 100%);
  color: var(--white);
}

.cta h2 {
  margin-bottom: 1rem;
}

.cta p {
  margin: 0 auto 2.5rem;
  font-size: 1.15rem;
  color: rgba(255,255,255,0.8);
}

.cta .btn-primary {
  font-size: 1.1rem;
  padding: 1rem 2.5rem;
}

/* ===== Footer ===== */
footer {
  background: var(--navy);
  color: var(--gray-400);
  padding: 2rem 0;
  text-align: center;
  font-size: 0.875rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  section {
    padding: 3.5rem 0;
  }

  .nav-links {
    display: none;
  }

  .btn-secondary {
    margin-left: 0;
    margin-top: 0.75rem;
  }

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

  .hero .btn {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }

  .hero .btn-secondary {
    margin-top: 0;
  }

  .pain-points {
    grid-template-columns: 1fr 1fr;
  }

  .solution-steps {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 480px) {
  .pain-points {
    grid-template-columns: 1fr;
  }
}
