:root {
  --color-background: #f9f7ff;
  --color-surface: #ffffff;
  --color-primary: #6a4ded;
  --color-primary-dark: #4f36c4;
  --color-accent-soft: #ebe4ff;
  --color-text: #1f1a35;
  --color-text-muted: #4d4764;
  --color-border: rgba(106, 77, 237, 0.1);
  --shadow-soft: 0 20px 45px rgba(26, 17, 52, 0.12);
  --radius-large: 28px;
  --radius-medium: 20px;
  --radius-small: 12px;
  --max-width: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

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

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

a:hover,
a:focus {
  color: var(--color-primary);
}

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

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

.site-header {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 999;
  border-bottom: 1px solid rgba(106, 77, 237, 0.08);
}

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

.brand {
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--color-primary);
  letter-spacing: -0.02em;
}

.nav {
  display: flex;
}

.nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.nav a {
  font-weight: 500;
  font-size: 0.95rem;
}

.nav .has-submenu { position: relative; }
.nav .submenu {
  display: none; /* hidden until hover/focus */
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  background: #fff;
  border: 1px solid rgba(106,77,237,0.12);
  box-shadow: 0 16px 32px rgba(26,17,52,0.14);
  border-radius: 12px;
  padding: 0.5rem 0;
  min-width: 280px;
  z-index: 1001; /* above header background */
  list-style: none;
  margin: 0;
}
.nav .submenu li { list-style: none; }
.nav .submenu a {
  display: block;
  padding: 0.6rem 1rem;
  font-size: 0.95rem;
  white-space: nowrap;
}
.nav .has-submenu:hover > .submenu,
.nav .has-submenu:focus-within > .submenu,
.nav .has-submenu.open > .submenu { display: block; }

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

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  padding: 0.35rem;
  cursor: pointer;
}

.nav-toggle-bar {
  width: 22px;
  height: 2px;
  background: var(--color-text);
  display: block;
  margin: 5px 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 600;
  padding: 0.75rem 1.6rem;
  font-size: 0.95rem;
  transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.btn.small { padding: 0.45rem 0.9rem; font-size: 0.9rem; }
.card-link { color: inherit; }

/* Feature illustrations */
.feature-illustration {
  margin: 1rem 0 1.25rem;
  border-radius: var(--radius-medium);
  border: 1px solid rgba(106,77,237,0.12);
  box-shadow: 0 16px 32px rgba(26,17,52,0.08);
}

/* Feature detail layout (image left, text right) */
.feature-detail {
  display: grid;
  gap: 2rem;
  align-items: start;
  margin-top: 1.25rem;
}

.feature-visual { align-self: start; }
.feature-copy { align-self: start; }

@media (min-width: 960px) {
  .feature-detail {
    grid-template-columns: 1.1fr 1fr;
  }
}

.btn.primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 16px 30px rgba(106, 77, 237, 0.3);
}

.btn.primary:hover,
.btn.primary:focus {
  background: var(--color-primary-dark);
}

.btn.secondary {
  background: rgba(106, 77, 237, 0.12);
  color: var(--color-primary);
}

.btn.secondary:hover,
.btn.secondary:focus {
  background: rgba(106, 77, 237, 0.2);
}

.btn.ghost {
  border: 1px solid rgba(106, 77, 237, 0.25);
  color: var(--color-primary);
  background: transparent;
}

.btn.ghost:hover,
.btn.ghost:focus {
  background: rgba(106, 77, 237, 0.08);
}

.eyebrow {
  display: inline-block;
  background: rgba(106, 77, 237, 0.12);
  color: var(--color-primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 1rem 0;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 3.4rem);
}

h2 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
}

h3 {
  font-size: 1.3rem;
}

p,
li,
dd {
  color: var(--color-text-muted);
  font-size: 1rem;
}

.hero {
  position: relative;
  padding: 6rem 0 5rem;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top right, rgba(106, 77, 237, 0.22), transparent 55%);
  pointer-events: none;
  z-index: -1;
}

.hero-content {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.hero-copy p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

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

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin: 0;
}

.hero-stats dt {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-primary);
}

.hero-stats dd {
  margin: 0.35rem 0 0;
  font-size: 0.95rem;
}

.hero-media {
  position: relative;
  display: grid;
  place-items: center;
}

.hero-media-card {
  background: var(--color-surface);
  border-radius: var(--radius-large);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(106, 77, 237, 0.12);
  max-width: 680px; /* increase hero image size */
}

.accent-grid {
  position: absolute;
  top: -60px;
  right: -20px;
  width: 200px;
  height: auto;
  filter: drop-shadow(0 20px 32px rgba(106, 77, 237, 0.35));
}

.overview {
  padding: 5rem 0;
}

.overview-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: start;
}

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

.card {
  background: var(--color-surface);
  padding: 2rem;
  border-radius: var(--radius-medium);
  box-shadow: 0 18px 32px rgba(26, 17, 52, 0.08);
  border: 1px solid var(--color-border);
}

.features {
  padding: 5rem 0;
  background: #fff;
}

.section-lead {
  max-width: 680px;
  margin-bottom: 3rem;
}

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

.feature-card {
  background: var(--color-surface);
  padding: 1.75rem;
  border-radius: var(--radius-medium);
  border: 1px solid rgba(106, 77, 237, 0.14);
  box-shadow: 0 10px 26px rgba(26, 17, 52, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.feature-list {
  margin: 0.25rem 0 0 0;
  padding-left: 1.1rem;
}

.feature-list li {
  margin-bottom: 0.5rem;
}

.feature-card:hover,
.feature-card:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(26, 17, 52, 0.12);
}

.ai-suite {
  padding: 5.5rem 0;
  background: linear-gradient(180deg, #f5f1ff 0%, #ffffff 100%);
}

.ai-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.ai-list {
  margin: 1.5rem 0 2rem 0;
  padding-left: 1.5rem;
}

.ai-list li {
  margin-bottom: 0.75rem;
}

.ai-media {
  position: relative;
  display: grid;
  gap: 1.5rem;
  justify-items: start;
}

.ai-card {
  background: var(--color-surface);
  padding: 1.75rem;
  border-radius: var(--radius-large);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(106, 77, 237, 0.12);
}

.ai-annotation {
  background: rgba(106, 77, 237, 0.08);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-small);
  max-width: 320px;
}

.badge {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 0.6rem;
}

.cta {
  padding: 5rem 0;
}

.cta-content {
  text-align: center;
  background: linear-gradient(135deg, rgba(106, 77, 237, 0.12), rgba(106, 77, 237, 0.04));
  border-radius: var(--radius-large);
  padding: 4rem 3rem;
  border: 1px solid rgba(106, 77, 237, 0.14);
  box-shadow: 0 28px 45px rgba(26, 17, 52, 0.1);
}

.cta-content p {
  max-width: 600px;
  margin: 1rem auto 2.5rem;
}

/* Small note below hero actions */
.pricing-note {
  margin-top: 0.25rem;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.cta-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-footer {
  background: #1f1937;
  color: #f5f1ff;
  padding: 3.5rem 0 2rem;
}

.site-footer .brand {
  color: #fff;
}

.site-footer p,
.site-footer a,
.site-footer h4,
.footer-meta {
  color: rgba(255, 255, 255, 0.75);
}

.site-footer h4 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-bottom: 2.5rem;
}

.footer-meta {
  text-align: center;
  font-size: 0.85rem;
  margin: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 960px) {
  .nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid rgba(106, 77, 237, 0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav.open {
    max-height: 320px;
  }

  .nav ul {
    flex-direction: column;
    gap: 0;
    padding: 1rem 1.5rem 1.5rem;
  }

  .nav ul li {
    border-top: 1px solid rgba(106, 77, 237, 0.08);
    padding: 0.9rem 0;
  }

  /* Mobile submenu just stacks inline */
  .nav .submenu {
    position: static;
    display: block;
    border: none;
    box-shadow: none;
    padding: 0;
    margin-left: 0.5rem;
  }

  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .hero-content {
    text-align: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    justify-items: center;
  }

  .hero-media-card {
    margin: 0 auto;
  }

  .accent-grid {
    position: static;
    margin-top: 2rem;
  }

  .ai-grid {
    text-align: center;
  }

  .ai-media {
    justify-items: center;
  }

  .cta-content {
    padding: 3.5rem 2.5rem;
  }
}

@media (min-width: 961px) {
  .hero-content {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
