@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&display=swap");

*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --background: #ffffff;
  --foreground: #0f1419;
  --muted: #657786;
  --muted-foreground: #8899a6;
  --border: #e6ecf0;
  --secondary: #f7f9fb;
  --card: #ffffff;
  --radius: 0.5rem;
}

body {
  margin: 0;
  font-family: "DM Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--foreground);
  background: var(--background);
  line-height: 1.6;
}

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

.container {
  width: min(1200px, 92vw);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.8);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1rem;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.875rem;
  color: var(--muted);
  transition: color 0.2s;
}

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

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  transition: all 0.2s ease;
  font-weight: 500;
  font-size: 0.875rem;
  cursor: pointer;
}

.button.small {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.button.primary {
  background: var(--foreground);
  color: var(--background);
  border-color: var(--foreground);
}

.button.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(15, 20, 25, 0.15);
}

.button.ghost {
  border-color: var(--border);
  color: var(--foreground);
  background: var(--background);
}

.button.ghost:hover {
  background: var(--secondary);
}

.button .arrow {
  margin-left: 0.5rem;
  transition: transform 0.2s;
}

.button:hover .arrow {
  transform: translateX(4px);
}

/* Hero Section */
.hero {
  padding: 8rem 0 5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
}

.hero-copy {
  max-width: 540px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  background: var(--secondary);
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  color: var(--foreground);
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.eyebrow .pulse {
  width: 8px;
  height: 8px;
  background: var(--foreground);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  margin: 0 0 1.5rem;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero h1 .underline-wrap {
  position: relative;
  display: inline-block;
}

.hero h1 .underline-wrap svg {
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 8px;
}

.subhead {
  font-size: 1.125rem;
  color: var(--muted);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.cta-group .button {
  padding: 0.875rem 1.5rem;
}

.microcopy {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

/* Built For Section (integrated into hero) */
.built-for {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.built-for .label {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}

.built-for-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.built-for-row span {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
}

/* Hero Demo Section */
.hero-demo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.demo-card {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--card);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.06), 0 2px 4px -2px rgba(0, 0, 0, 0.06);
}

.demo-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  background: var(--secondary);
}

.demo-label svg {
  opacity: 0.7;
}

.demo-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 360px;
  object-fit: cover;
  object-position: top;
}

.demo-video {
  display: block;
  width: 100%;
  height: auto;
  max-height: 360px;
  object-fit: cover;
  object-position: top;
}

.demo-arrow {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}

/* Features Section */
.features {
  padding: 6rem 0;
  background: rgba(247, 249, 251, 0.5);
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 4rem;
}

.section-head h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin: 0 0 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  font-size: 1.125rem;
  color: var(--muted);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: var(--card);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid var(--border);
  transition: box-shadow 0.2s;
}

.feature-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
}

.feature-icon {
  width: 40px;
  height: 40px;
  background: var(--secondary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.feature-icon svg {
  width: 20px;
  height: 20px;
  color: var(--foreground);
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
}

.feature-card p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
}

/* How It Works Section */
.how {
  padding: 6rem 0;
  background: var(--background);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.step {
  text-align: center;
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--foreground);
  color: var(--background);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
}

.step h3 {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.step p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

/* Testimonials Section - Dark/Inverted */
.testimonials {
  padding: 6rem 0;
  background: var(--foreground);
  color: var(--background);
}

.testimonials .section-head h2,
.testimonials .section-head p {
  color: var(--background);
}

.testimonials .section-head p {
  opacity: 0.7;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.testimonial {
  padding: 1.5rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.testimonial p {
  margin: 0 0 1.5rem;
  line-height: 1.7;
  color: var(--background);
}

.testimonial span {
  display: block;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

/* FAQ Section */
.faq {
  padding: 6rem 0;
  background: var(--background);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.faq-grid h3 {
  font-size: 0.875rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
}

.faq-grid p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
}

/* CTA Section - Dark/Inverted */
.cta {
  padding: 4rem 0;
  background: var(--foreground);
  color: var(--background);
}

.cta-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
}

.cta h2 {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
  font-weight: 700;
}

.cta p {
  margin: 0;
  opacity: 0.7;
}

.cta .button.primary {
  background: var(--background);
  color: var(--foreground);
  border-color: var(--background);
}

.cta .button.primary:hover {
  background: rgba(255, 255, 255, 0.9);
}

/* Footer */
.site-footer {
  padding: 2rem 0;
  background: var(--background);
  border-top: 1px solid var(--border);
}

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

.footer-inner .brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-brand-text {
  display: flex;
  flex-direction: column;
}

.footer-brand-text span {
  font-weight: 600;
}

.footer-brand-text p {
  margin: 0;
  font-size: 0.75rem;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

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

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

.copyright {
  margin: 2rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .feature-grid,
  .testimonial-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .faq-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hero {
    padding-top: 6rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-copy {
    max-width: 100%;
  }

  .hero-demo {
    flex-direction: column;
  }

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

  .demo-image,
  .demo-video {
    max-height: 280px;
  }

  .feature-grid,
  .steps,
  .testimonial-grid {
    grid-template-columns: 1fr;
  }
  
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .step {
    text-align: left;
  }

  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
