:root {
  --background: hsl(0 0% 100%);
  --foreground: hsl(222 47% 11%);
  --card: hsl(0 0% 100%);
  --card-foreground: hsl(222 47% 11%);
  --primary: hsl(217 91% 60%);
  --primary-foreground: hsl(0 0% 100%);
  --secondary: hsl(210 40% 96%);
  --muted: hsl(214 32% 95%);
  --muted-foreground: hsl(215 16% 47%);
  --accent: hsl(142 76% 36%);
  --accent-foreground: hsl(0 0% 100%);
  --border: hsl(214 32% 91%);
  --input: hsl(214 32% 91%);
  --ring: hsl(217 91% 60%);
  --shadow-lg: 0 30px 80px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 15px 40px rgba(15, 23, 42, 0.06);
  --radius: 1.25rem;
  --font-display: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  --font-sans: "Inter", "Space Grotesk", system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

body {
  margin: 0;
  font-family: var(--font-sans);
  background: radial-gradient(
      circle at top left,
      rgba(99, 102, 241, 0.12),
      transparent 45%
    ),
    radial-gradient(circle at 20% 20%, rgba(16, 185, 129, 0.1), transparent 35%),
    var(--background);
  color: var(--foreground);
  min-height: 100vh;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

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

.wrapper {
  width: min(1200px, 92vw);
  margin: 0 auto;
}

.sticky-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 0;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
}

.brand-logo {
  width: 40px; /* Smaller in sticky header */
  height: auto;
  object-fit: contain;
  border-radius: 0.5rem;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  margin: 0;
}

.brand-tagline {
  margin: 0;
  font-size: 0.75rem;
  color: var(--muted-foreground);
  display: none; /* Hide tagline in sticky header to save space */
}

@media (min-width: 768px) {
    .brand-tagline {
        display: block;
    }
    .brand-logo {
        width: 50px;
    }
}

.nav-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.95rem;
}

.nav-links a {
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  color: var(--muted-foreground);
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-links a:hover {
  color: var(--foreground);
  background-color: rgba(99, 102, 241, 0.08);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.65rem 1.5rem;
  font-weight: 600;
  font-family: var(--font-display);
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn.primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--primary-foreground);
  box-shadow: var(--shadow-md);
}

.btn.primary.full {
  width: 100%;
}

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

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

.btn.outline {
  border-color: var(--border);
  color: var(--foreground);
  background: transparent;
}

.btn.outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn.ghost {
  background: rgba(99, 102, 241, 0.08);
  color: var(--foreground);
  border: none;
}

.btn.ghost:hover {
  background: rgba(16, 185, 129, 0.15);
}

.hero {
  padding: 15rem 0 10rem;
  background: radial-gradient(
      circle at 20% -10%,
      rgba(99, 102, 241, 0.25),
      transparent 40%
    ),
    radial-gradient(circle at 80% 0%, rgba(16, 185, 129, 0.2), transparent 45%),
    linear-gradient(180deg, #f8fbff 0%, #f0f4ff 60%, #ffffff 100%);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 10% 15%;
  background: radial-gradient(
    circle,
    rgba(99, 102, 241, 0.08),
    transparent 65%
  );
  pointer-events: none;
}

.hero-content {
  position: relative;
  padding-bottom: 1rem;
}

.eyebrow {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  margin-top: 0;
}

h1 {
  font-size: clamp(2.6rem, 4vw, 3.6rem);
  margin-bottom: 1rem;
  line-height: 1.1;
}

.lead {
  font-size: 1.15rem;
  color: var(--muted-foreground);
  max-width: 48rem;
  margin-bottom: 1.5rem;
}

.mission {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.slogan {
  color: var(--muted-foreground);
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

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

.metric-card {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(226, 232, 240, 0.6);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.metric-card h4 {
  margin-bottom: 0.35rem;
}

.section {
  padding: 6.5rem 0;
}

.section.accent {
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.04), transparent);
}

.section-header {
  text-align: left;
  margin-bottom: 4.5rem;
}

.section-lead {
  color: var(--muted-foreground);
  max-width: 52rem;
}

.cards-grid {
  display: grid;
  gap: 1.5rem;
}

.cards-grid.two {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.cards-grid.three {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.cards-grid.four {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.04);
}

.card ul {
  padding-left: 1.1rem;
  margin: 0.75rem 0 0;
  line-height: 1.5;
}

.card ul li {
  margin-bottom: 0.35rem;
}

.card.elevated {
  border: 1px solid rgba(99, 102, 241, 0.2);
  box-shadow: var(--shadow-md);
}

.analysis-card {
  margin-top: 1.25rem;
  padding: 1.25rem;
  border-radius: calc(var(--radius) - 0.25rem);
  background: rgba(79, 70, 229, 0.06);
  border: 1px dashed rgba(79, 70, 229, 0.4);
}

.analysis-cta {
  font-weight: 600;
  color: var(--foreground);
}

.step {
  font-weight: 600;
  color: var(--muted-foreground);
  letter-spacing: 0.05em;
}

.card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(16, 185, 129, 0.1));
  border-radius: 12px;
  margin-bottom: 1rem;
  color: var(--primary);
}

.slideshow-wrapper {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
}

.slideshow-container {
  position: relative;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #f8f9fa;
}

/* Use first image to set container height */
.slideshow-container::before {
  content: "";
  display: block;
  padding-top: var(--aspect-ratio, 60%); /* Will be set by JS based on first image */
}

.slideshow-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  z-index: 1;
}

.slideshow-image.active {
  opacity: 1;
  z-index: 2;
}

.slideshow-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.slideshow-indicators {
  display: flex;
  gap: 0.5rem;
  background: rgba(0, 0, 0, 0.5);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

.indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.indicator.active {
  background: var(--primary);
  width: 24px;
  border-radius: 5px;
}

.slideshow-control {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: white;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
}

.slideshow-control:hover {
  background: rgba(0, 0, 0, 0.7);
  transform: scale(1.1);
}

.slideshow-control:active {
  transform: scale(0.95);
}

.slideshow-control svg {
  display: block;
}

.slideshow-control.paused .pause-icon {
  display: none;
}

.slideshow-control.paused .play-icon {
  display: block;
}

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

.pricing-card {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 2rem 1.75rem;
  background: #fff;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.07);
}

.pricing-card.highlighted {
  border-color: transparent;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(16, 185, 129, 0.08));
  box-shadow: var(--shadow-lg);
}

.tier-label {
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  color: var(--primary);
}

.price {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.tier-note {
  margin-top: 1rem;
  font-weight: 600;
}

.table-wrapper {
  overflow-x: auto;
}

.feature-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.feature-table th,
.feature-table td {
  border: 1px solid var(--border);
  padding: 1rem;
  text-align: left;
  vertical-align: top;
  background: rgba(255, 255, 255, 0.9);
}

.feature-table th {
  background: rgba(99, 102, 241, 0.08);
  font-size: 0.95rem;
}

.feature-table td:first-child {
  font-weight: 600;
  width: 25%;
  background: rgba(15, 23, 42, 0.02);
}

.section-footer {
  margin-top: 2rem;
  text-align: center;
  font-weight: 600;
  color: var(--muted-foreground);
}

.contact-form-wrapper {
  max-width: 600px;
  margin: 0 auto;
}

.contact-form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

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

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--foreground);
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) - 0.5rem);
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--foreground);
  background: var(--background);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-actions {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.form-message {
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: calc(var(--radius) - 0.5rem);
  text-align: center;
  font-weight: 500;
  display: none;
}

.form-message.success {
  display: block;
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.form-message.error {
  display: block;
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .contact-form {
    padding: 1.5rem;
  }
}

.site-footer {
  background: #050b1a;
  color: rgba(255, 255, 255, 0.85);
  padding: 2rem 0;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: center;
  font-size: 0.95rem;
}

@media (max-width: 900px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
  }
  .nav-links {
    width: 100%;
    justify-content: flex-start;
  }
  .nav-actions {
    width: 100%;
    justify-content: flex-start;
  }
  .hero {
    padding-top: 1rem;
  }
}

@media (max-width: 600px) {
  .cards-grid.four {
    grid-template-columns: 1fr;
  }
  .nav-links a {
    padding-inline: 0.25rem;
  }
}
