:root {
  --bg: #f3f6ff;
  --surface: #ffffff;
  --surface-alt: #e9eeff;
  --text: #111827;
  --muted: #5b6478;
  --primary: #3558f5;
  --primary-2: #6d4eff;
  --border: #d7deef;
  --ok: #0f9d58;
  --warn: #ea8600;
  --radius: 16px;
  --shadow: 0 18px 44px rgba(21, 34, 77, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top, #f8faff, #edf2ff 50%, #e8eeff 100%);
  line-height: 1.55;
  overflow-x: hidden;
}

body.dark {
  --bg: #080c18;
  --surface: #10162a;
  --surface-alt: #131d37;
  --text: #e7ecff;
  --muted: #9da8cb;
  --primary: #78a5ff;
  --primary-2: #9f8dff;
  --border: #243052;
  --shadow: 0 22px 50px rgba(4, 7, 18, 0.6);
  background: radial-gradient(circle at top, #0f1730, #0b1020 58%, #090d19 100%);
}

.container {
  width: min(1160px, 92%);
  margin: 0 auto;
}

.bg-orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(24px);
  opacity: 0.35;
  z-index: -3;
  pointer-events: none;
}

.orb-a {
  width: 300px;
  height: 300px;
  left: -80px;
  top: 80px;
  background: radial-gradient(circle, #6d4eff, transparent 70%);
  animation: floatA 14s ease-in-out infinite;
}

.orb-b {
  width: 320px;
  height: 320px;
  right: -90px;
  top: 240px;
  background: radial-gradient(circle, #35c6f5, transparent 72%);
  animation: floatB 18s ease-in-out infinite;
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -4;
  background-image:
    linear-gradient(to right, color-mix(in srgb, var(--primary), transparent 92%) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--primary), transparent 92%) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at center, #000 0%, transparent 76%);
  pointer-events: none;
}

.cursor-glow {
  position: fixed;
  width: 260px;
  height: 260px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  pointer-events: none;
  z-index: -2;
  opacity: 0.2;
  background: radial-gradient(circle, color-mix(in srgb, var(--primary), #fff 18%), transparent 70%);
  transition: left 0.15s ease, top 0.15s ease, opacity 0.2s ease;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--surface), transparent 8%);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand {
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--primary), transparent 80%);
}

.brand-accent {
  margin-left: 3px;
  color: var(--primary);
}

.main-nav {
  display: flex;
  gap: 18px;
}

.main-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  position: relative;
}

.main-nav a:hover {
  color: var(--text);
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
  background: linear-gradient(120deg, var(--primary), var(--primary-2));
}

.main-nav a:hover::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  gap: 10px;
}

.btn {
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  padding: 10px 14px;
  font-family: inherit;
  transition: transform 0.18s ease, box-shadow 0.24s ease, border-color 0.18s ease;
}

.btn.primary {
  background: linear-gradient(120deg, var(--primary), var(--primary-2));
  color: #fff;
  box-shadow: 0 12px 26px color-mix(in srgb, var(--primary), transparent 72%);
}

.btn.secondary {
  background: var(--surface-alt);
  color: var(--text);
  border-color: var(--border);
}

.btn.ghost {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}

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

.btn.small {
  padding: 8px 11px;
  font-size: 0.86rem;
}

.hero {
  padding: 56px 0 44px;
  position: relative;
}

.hero-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1.2fr 0.8fr;
}

.hero-copy h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.08;
  margin: 8px 0 12px;
  letter-spacing: -0.02em;
}

.eyebrow {
  display: inline-flex;
  background: var(--surface-alt);
  color: var(--primary);
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
}

.subtext {
  color: var(--muted);
  max-width: 64ch;
}

.chip-row {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip-row span {
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface), var(--surface-alt) 28%);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.8rem;
  font-weight: 600;
}

.hero-cta {
  margin-top: 22px;
  display: flex;
  gap: 11px;
  flex-wrap: wrap;
}

.hero-metrics {
  margin-top: 26px;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, 1fr);
}

.hero-metrics article {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 14px;
  transition: transform 0.25s ease, box-shadow 0.3s ease;
}

.hero-metrics strong {
  display: block;
  font-size: 1.2rem;
}

.hero-metrics span {
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 24px;
  box-shadow: var(--shadow);
  animation: panelPulse 7s ease-in-out infinite;
}

.hero-panel h2 {
  margin-top: 0;
}

.hero-panel p {
  color: var(--muted);
}

.hero-panel ul {
  list-style: none;
  padding: 0;
  margin: 14px 0 20px;
}

.hero-panel li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 8px;
}

.hero-panel em {
  font-style: normal;
  color: var(--muted);
  font-size: 0.9rem;
}

section {
  padding: 56px 0;
}

.marquee {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 0;
  overflow: hidden;
  background: color-mix(in srgb, var(--surface), transparent 4%);
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 28px;
  white-space: nowrap;
  padding: 14px 0;
  animation: marqueeMove 28s linear infinite;
}

.marquee-track span {
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.section-head {
  margin-bottom: 22px;
}

.section-head p,
.platform p {
  color: var(--muted);
}

.feature-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, 1fr);
}

.feature-grid article,
.insight-grid article {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 18px;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.feature-grid article:hover,
.insight-grid article:hover,
.tool-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 54px color-mix(in srgb, var(--primary), transparent 86%);
  border-color: color-mix(in srgb, var(--primary), var(--border) 72%);
}

.controls {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 16px;
}

label {
  font-size: 0.86rem;
  color: var(--muted);
  display: grid;
  gap: 6px;
}

input,
select {
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  padding: 10px 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary), transparent 80%);
}

.tool-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tool-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  display: grid;
  gap: 10px;
  transform-style: preserve-3d;
  transition: transform 0.18s ease, box-shadow 0.25s ease, border-color 0.24s ease;
}

.tool-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

.tool-head h3 {
  margin: 0;
  font-size: 1.05rem;
}

.badge {
  font-size: 0.75rem;
  border-radius: 999px;
  padding: 4px 8px;
  font-weight: 700;
  background: var(--surface-alt);
  border: 1px solid var(--border);
}

.badge.free {
  color: var(--ok);
}

.badge.freemium {
  color: var(--warn);
}

.meta {
  color: var(--muted);
  font-size: 0.88rem;
  display: flex;
  justify-content: space-between;
}

.tool-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.compare-toggle {
  background: transparent;
  border: 1px dashed var(--border);
  color: var(--text);
  border-radius: 10px;
  padding: 6px 10px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

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

.compare-toggle.active {
  background: var(--surface-alt);
  border-style: solid;
  border-color: var(--primary);
}

.insight-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, 1fr);
}

.faq-list details {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  margin-bottom: 10px;
  padding: 12px 14px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.faq-list details:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--primary), var(--border) 65%);
}

.faq-list summary {
  font-weight: 700;
  cursor: pointer;
}

.faq-list p {
  color: var(--muted);
}

.compare-drawer {
  position: sticky;
  bottom: 0;
  border-top: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface), transparent 5%);
  backdrop-filter: blur(6px);
}

.compare-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
}

.compare-wrap h3 {
  margin: 0;
  min-width: 200px;
}

.compare-items {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  flex: 1;
}

.pill {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.83rem;
  animation: popIn 0.25s ease;
}

.reveal-up,
.reveal-scale {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal-scale {
  transform: translateY(24px) scale(0.96);
}

.reveal-up.in-view,
.reveal-scale.in-view {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.tilt {
  transform-style: preserve-3d;
}

.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 36px;
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 16px 0 26px;
}

.footer-wrap p,
.footer-wrap a {
  color: var(--muted);
  text-decoration: none;
  margin: 0;
}

@keyframes floatA {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(38px, -24px); }
}

@keyframes floatB {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-42px, 22px); }
}

@keyframes marqueeMove {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes panelPulse {
  0%, 100% { box-shadow: var(--shadow); }
  50% { box-shadow: 0 24px 52px color-mix(in srgb, var(--primary), transparent 80%); }
}

@keyframes popIn {
  from { opacity: 0; transform: translateY(6px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 1040px) {
  .tool-grid,
  .insight-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .cursor-glow {
    display: none;
  }
}

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

  .controls,
  .feature-grid,
  .tool-grid,
  .insight-grid,
  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .compare-wrap {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
