:root {
  --bg-main: #f5f9ff;
  --bg-secondary: #eef5ff;
  --surface: rgba(255, 255, 255, 0.52);
  --surface-strong: rgba(255, 255, 255, 0.78);
  --surface-border: rgba(255, 255, 255, 0.58);
  --text-main: #142033;
  --text-soft: #5f6f86;
  --text-faint: #7b8ca4;
  --blue: #5a8cff;
  --blue-deep: #3b6ff2;
  --blue-soft: rgba(90, 140, 255, 0.12);
  --blue-tint: rgba(90, 140, 255, 0.18);
  --shadow-soft: 0 24px 60px rgba(58, 96, 170, 0.14);
  --shadow-card: 0 16px 40px rgba(84, 112, 168, 0.12);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --header-height: 78px;
  --max-width: 1280px;
  --copy-width: 66ch;
  --blur: blur(18px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(circle at top left, rgba(118, 170, 255, 0.20), transparent 35%),
    radial-gradient(circle at 85% 15%, rgba(151, 194, 255, 0.18), transparent 28%),
    linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

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

.page-shell {
  position: relative;
  width: 100%;
  min-height: 100vh;
  padding: 24px;
  overflow: hidden;
}

.bg-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(60px);
  opacity: 0.75;
  pointer-events: none;
}

.orb-1 {
  width: 320px;
  height: 320px;
  top: -80px;
  left: -60px;
  background: rgba(116, 177, 255, 0.25);
}

.orb-2 {
  width: 360px;
  height: 360px;
  right: -100px;
  top: 180px;
  background: rgba(102, 146, 255, 0.16);
}

.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(110, 140, 200, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(110, 140, 200, 0.06) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(circle at center, black 50%, transparent 100%);
  pointer-events: none;
}

.glass {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.72) 0%,
    rgba(255, 255, 255, 0.48) 100%
  );
  border: 1px solid var(--surface-border);
  box-shadow: var(--shadow-soft);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
}

.glass-card {
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.glass-subcard {
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.62);
  box-shadow: 0 12px 28px rgba(86, 109, 160, 0.10);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.glass-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--blue-deep);
  font-weight: 700;
}

.site-header {
  position: sticky;
  top: 18px;
  z-index: 20;
  height: var(--header-height);
  max-width: var(--max-width);
  margin: 0 auto 36px auto;
  padding: 0 20px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-left,
.header-actions {
  display: flex;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: linear-gradient(135deg, #ffffff 0%, #dceaff 100%);
  border: 1px solid rgba(255, 255, 255, 0.85);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--blue-deep);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-name {
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.brand-sub {
  font-size: 0.75rem;
  color: var(--text-faint);
  font-weight: 600;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.header-nav a {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-soft);
  transition: color 0.2s ease, transform 0.2s ease;
}

.header-nav a:hover {
  color: var(--blue-deep);
  transform: translateY(-1px);
}

.header-actions {
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

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

.btn-primary {
  color: white;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%);
  box-shadow: 0 16px 30px rgba(61, 111, 242, 0.28);
}

.btn-primary:hover {
  box-shadow: 0 20px 38px rgba(61, 111, 242, 0.34);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.58);
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 8px 24px rgba(96, 127, 183, 0.10);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn-lg {
  padding: 14px 24px;
  font-size: 1rem;
}

.hero-section,
.features-section,
.workflow-section,
.models-section,
.home-pricing-section,
.bottom-cta-section {
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero-section {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: center;
  gap: 36px;
  padding: 24px 0 44px;
}

.hero-left h1 {
  margin: 18px 0 18px;
  max-width: 12ch;
  font-size: clamp(3rem, 6vw, 5.15rem);
  line-height: 0.96;
  letter-spacing: -0.055em;
}

.hero-left h1 span {
  display: block;
  margin-top: 8px;
  background: linear-gradient(135deg, #2f67ea 0%, #80a9ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy {
  max-width: var(--copy-width);
  font-size: 1.06rem;
  line-height: 1.78;
  color: var(--text-soft);
  margin-bottom: 24px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 760px;
}

.stat {
  padding: 20px;
  border-radius: 20px;
}

.stat strong {
  display: block;
  font-size: 0.98rem;
  margin-bottom: 8px;
}

.stat span {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--text-soft);
}

.dashboard-card {
  border-radius: 30px;
  padding: 22px;
}

.dashboard-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(110, 146, 224, 0.12);
}

.topbar-dots {
  display: flex;
  gap: 8px;
}

.topbar-dots span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #d8e6ff, #8cb3ff);
}

.topbar-title {
  font-size: 0.9rem;
  color: var(--text-faint);
  font-weight: 700;
}

.dashboard-body {
  display: grid;
  gap: 18px;
}

.score-panel {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 18px;
}

.score-ring {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  padding: 14px;
  background: conic-gradient(from 180deg, #5a8cff 0 78%, #dbe8ff 78% 100%);
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 25px rgba(255, 255, 255, 0.45);
}

.score-ring-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(248, 251, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.9);
  display: grid;
  place-items: center;
  text-align: center;
  box-shadow: inset 0 10px 30px rgba(105, 140, 210, 0.10);
}

.score-number {
  display: block;
  font-size: 3rem;
  line-height: 1;
  font-weight: 800;
  color: var(--blue-deep);
}

.score-label {
  display: block;
  margin-top: 6px;
  font-size: 0.9rem;
  color: var(--text-soft);
  font-weight: 700;
}

.score-breakdown {
  border-radius: 22px;
  padding: 18px;
  display: grid;
  gap: 14px;
  align-content: center;
}

.metric {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.54);
  border: 1px solid rgba(255, 255, 255, 0.58);
}

.metric span {
  color: var(--text-soft);
  font-weight: 700;
}

.metric strong {
  font-size: 1.05rem;
  color: var(--text-main);
}

.insights-panel {
  display: grid;
  gap: 16px;
}

.panel {
  border-radius: 20px;
  padding: 18px 18px 16px;
}

.panel h3 {
  margin: 0 0 12px;
  font-size: 1rem;
}

.panel ul {
  margin: 0;
  padding-left: 18px;
  color: var(--text-soft);
  line-height: 1.78;
}

.heatmap-panel p {
  margin: 12px 0 0;
  color: var(--text-soft);
  line-height: 1.62;
  font-size: 0.94rem;
}

.heatmap {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 10px;
}

.heatmap span {
  display: block;
  height: 48px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.5);
}

.heatmap .hot {
  background: linear-gradient(180deg, #6d9bff 0%, #4477f4 100%);
}

.heatmap .warm {
  background: linear-gradient(180deg, #cfe0ff 0%, #9fbeff 100%);
}

.heatmap .cool {
  background: linear-gradient(180deg, #edf4ff 0%, #d9e7ff 100%);
}

.features-section,
.workflow-section,
.models-section,
.home-pricing-section,
.bottom-cta-section {
  padding: 34px 0 14px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 24px;
}

.section-label {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--blue-deep);
  font-weight: 800;
}

.section-heading h2 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.section-heading p {
  margin: 0;
  max-width: var(--copy-width);
  color: var(--text-soft);
  line-height: 1.72;
  font-size: 1rem;
}

.feature-grid,
.workflow-grid,
.models-grid,
.home-pricing-grid {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.feature-grid {
  grid-template-columns: repeat(4, 1fr);
}

.workflow-grid {
  grid-template-columns: repeat(3, 1fr);
}

.models-grid,
.home-pricing-grid {
  grid-template-columns: repeat(4, 1fr);
}

.feature-card,
.workflow-card,
.model-card,
.home-plan-card {
  border-radius: 24px;
  padding: 24px;
}

.feature-kicker,
.mini-label,
.home-plan-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(90, 140, 255, 0.10);
  color: var(--blue-deep);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.feature-card h3,
.workflow-card h3,
.model-card h3 {
  margin: 14px 0 10px;
  font-size: 1.08rem;
  line-height: 1.28;
}

.feature-card p,
.workflow-card p,
.model-card p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.72;
}

.workflow-card {
  position: relative;
  padding-top: 68px;
}

.workflow-step {
  position: absolute;
  top: 22px;
  left: 22px;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: var(--blue-deep);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(90, 140, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.pill-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 22px;
}

.finding-pill {
  font-size: 0.92rem;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.58);
}

.model-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0.5) 100%);
}

.home-plan-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  gap: 14px;
}

.home-plan-card.is-featured {
  border-color: rgba(78, 121, 236, 0.28);
  box-shadow: 0 24px 60px rgba(61, 111, 242, 0.16);
}

.home-plan-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.home-plan-highlight {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  color: white;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%);
}

.home-plan-card h3 {
  margin: 0;
  font-size: 1.4rem;
  letter-spacing: -0.03em;
}

.home-plan-price {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.home-plan-summary {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.68;
}

.home-plan-meta {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.54);
  border: 1px solid rgba(255, 255, 255, 0.62);
}

.home-plan-meta-item {
  display: grid;
  gap: 4px;
}

.home-plan-meta-item span {
  color: var(--text-faint);
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.home-plan-meta-item strong {
  font-size: 0.95rem;
  line-height: 1.48;
}

.pricing-preview-footer {
  margin-top: 22px;
  border-radius: 24px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.pricing-preview-footer strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1rem;
}

.pricing-preview-footer span {
  color: var(--text-soft);
  line-height: 1.6;
}

.bottom-cta {
  border-radius: 30px;
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 12px;
}

.bottom-cta-text {
  max-width: 760px;
}

.bottom-cta-text h2 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.bottom-cta-text p {
  margin: 0;
  max-width: var(--copy-width);
  color: var(--text-soft);
  line-height: 1.72;
}

.bottom-cta-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

@media (max-width: 1180px) {
  .feature-grid,
  .home-pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 1120px) {
  .hero-section {
    grid-template-columns: 1fr;
  }

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

  .hero-right {
    max-width: 860px;
  }
}

@media (max-width: 860px) {
  .site-header {
    height: auto;
    padding: 16px;
    flex-wrap: wrap;
    gap: 14px;
  }

  .header-nav {
    order: 3;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
  }

  .hero-left h1 {
    max-width: none;
    font-size: clamp(2.4rem, 10vw, 4rem);
  }

  .hero-stats,
  .feature-grid,
  .models-grid,
  .home-pricing-grid,
  .score-panel {
    grid-template-columns: 1fr;
  }

  .score-ring {
    margin: 0 auto;
  }

  .pricing-preview-footer,
  .bottom-cta {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .page-shell {
    padding: 16px;
  }

  .header-actions {
    width: 100%;
    justify-content: stretch;
  }

  .header-actions .btn,
  .pricing-preview-footer .btn {
    flex: 1;
  }

  .hero-actions,
  .bottom-cta-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-stats,
  .feature-grid,
  .models-grid,
  .home-pricing-grid {
    grid-template-columns: 1fr;
  }

  .heatmap {
    grid-template-columns: repeat(4, 1fr);
  }
}
