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

:root {
  color-scheme: light;
  --bg: #f5f6fb;
  --surface: #ffffff;
  --surface-alt: #eef2ff;
  --text: #111322;
  --text-muted: #5b6070;
  --accent: #4f46e5;
  --accent-dark: #4338ca;
  --accent-soft: #c7d2fe;
  --border: #e4e7f1;
  --shadow: 0 25px 60px rgba(15, 23, 42, 0.08);
  --radius-lg: 24px;
  --radius-md: 18px;
}

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: radial-gradient(circle at 20% 20%, rgba(79, 70, 229, 0.08), transparent 45%),
    radial-gradient(circle at 80% 0%, rgba(14, 165, 233, 0.08), transparent 35%),
    var(--bg);
  color: var(--text);
}

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

.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--text-muted);
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.ghost-link {
  text-decoration: none;
  color: var(--accent);
  font-weight: 600;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  border: 1px solid var(--accent-soft);
  background: rgba(79, 70, 229, 0.08);
  transition: background 0.2s ease, transform 0.2s ease;
}

.ghost-link:hover {
  background: rgba(79, 70, 229, 0.15);
  transform: translateY(-2px);
}

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

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

.tagline {
  text-transform: uppercase;
  letter-spacing: 0.35em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.4rem, 3vw + 1rem, 3.8rem);
  line-height: 1.1;
}

.highlight {
  color: var(--accent);
}

.hero-points {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn-primary,
.btn-secondary,
.download-btn,
.subscribe button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  padding: 0.9rem 1.4rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-dark));
  color: #fff;
  box-shadow: 0 15px 30px rgba(79, 70, 229, 0.25);
}

.btn-secondary {
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text);
}

.hero-visual {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

#hero-image {
  border-radius: 18px;
  width: 100%;
  transition: opacity 0.3s ease;
}

#hero-image.fade {
  opacity: 0;
}

.hero-caption {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  background: rgba(17, 19, 34, 0.9);
  color: #fff;
  padding: 0.9rem 1.1rem;
  border-radius: 16px;
  font-weight: 600;
  font-size: 0.95rem;
}

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

.metric-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 1.25rem;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.05);
}

.metric-value {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent);
}

.metric-card p {
  margin: 0.35rem 0 0;
  color: var(--text-muted);
}

.trust-bar {
  background: var(--surface-alt);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  border: 1px solid var(--border);
}

.trust-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-weight: 600;
  color: var(--text-muted);
}

.section-heading {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-width: 640px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.8rem, 2vw + 1rem, 2.5rem);
}

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

.how-it-works,
.benefits,
.social-proof {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

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

.step-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 1.5rem;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

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

.feature-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 1.5rem;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.05);
}

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

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

.product-video {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-highlights {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--text-muted);
  line-height: 1.6;
}

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

.testimonial-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 1.5rem;
  position: relative;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.testimonial-card::before {
  content: '“';
  position: absolute;
  top: 0.35rem;
  left: 1rem;
  font-size: 3rem;
  color: var(--accent-soft);
  line-height: 1;
}

.quote {
  margin: 0 0 1rem;
  color: var(--text);
  line-height: 1.6;
}

.author {
  display: flex;
  flex-direction: column;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.cta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 2.5rem;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.cta-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cta-points {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--text-muted);
}

.subscribe {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  align-items: center;
}

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

.subscribe input {
  padding: 0.95rem 1.15rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
  font-size: 1rem;
  color: var(--text);
}

.subscribe button {
  background: linear-gradient(120deg, var(--accent), var(--accent-dark));
  color: #fff;
  box-shadow: 0 15px 30px rgba(79, 70, 229, 0.25);
}

.form-message {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer {
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

/* Downloads page */
.downloads .page {
  gap: 2rem;
}

.download-hero {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
  align-items: center;
}

.download-meta {
  background: var(--surface-alt);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.download-meta div {
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
}

.download-grid,
.verify {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

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

.download-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.badge {
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  background: var(--surface-alt);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
}

.download-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.download-card code {
  background: var(--bg);
  padding: 0 0.35rem;
  border-radius: 6px;
}

.download-btn {
  background: linear-gradient(120deg, var(--accent), var(--accent-dark));
  color: #fff;
  margin-top: auto;
}

.verify pre {
  background: var(--bg);
  border-radius: var(--radius-md);
  padding: 1rem;
  overflow-x: auto;
  border: 1px solid var(--border);
}

.muted {
  color: var(--text-muted);
}

.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: 640px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .subscribe.extended {
    grid-template-columns: 1fr;
  }

  .ghost-link {
    align-self: flex-start;
  }
}
