:root {
  --bg: #f3f5f9;
  --surface: #ffffff;
  --ink: #111827;
  --muted: #4b5563;
  --line: #d5dbe5;
  --brand: #1f4f96;
  --brand-deep: #123568;
  --brand-soft: #dce7f8;
  --good: #0f9d74;
  --radius: 18px;
  --shadow: 0 20px 50px rgba(16, 38, 73, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 5% 5%, rgba(31, 79, 150, 0.09), transparent 26%),
    radial-gradient(circle at 95% 0%, rgba(15, 157, 116, 0.09), transparent 24%),
    var(--bg);
  font-family: "Segoe UI", "Inter", system-ui, -apple-system, sans-serif;
}

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

.topbar {
  width: min(1180px, calc(100% - 2rem));
  margin: 1rem auto 0;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.brand img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.topnav {
  display: inline-flex;
  align-items: center;
  gap: 1.2rem;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
}

.topcta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  padding: 0.66rem 1rem;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 0.92rem;
  transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease;
}

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

.btn-solid {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
  color: #fff;
  box-shadow: 0 8px 20px rgba(18, 53, 104, 0.26);
}

.btn-ghost {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}

main {
  width: min(1180px, calc(100% - 2rem));
  margin: 1.2rem auto 2rem;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 1.2rem;
  align-items: stretch;
}

.hero-copy,
.hero-visual {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: clamp(1.2rem, 2vw, 2.2rem);
}

.eyebrow {
  margin: 0;
  color: #466080;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 800;
  font-size: 0.73rem;
}

.hero-copy h1 {
  margin: 0.7rem 0 0.8rem;
  line-height: 1.07;
  font-size: clamp(2rem, 3.8vw, 3rem);
}

.hero-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.3rem;
}

.microcopy {
  margin-top: 0.8rem !important;
  font-size: 0.9rem !important;
}

.hero-visual {
  padding: 1rem;
  background:
    linear-gradient(155deg, #f6fbff 0%, #edf3fd 45%, #f8fcff 100%);
}

.visual-card {
  height: 100%;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #d3dbe8;
  padding: 1rem;
  display: grid;
  gap: 1rem;
}

.visual-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
}

.badge {
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  font-size: 0.72rem;
  font-weight: 800;
}

.badge.running {
  color: #065f46;
  background: #d1fae5;
}

.visual-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

.chip {
  border-radius: 9px;
  border: 1px solid #d5dce7;
  padding: 0.42rem 0.6rem;
  font-size: 0.84rem;
  font-weight: 700;
}

.chip.on {
  border-color: #b9d3ff;
  background: #edf4ff;
}

.chip.idle {
  color: #6b7280;
}

.meter {
  border: 1px solid #dde3ee;
  border-radius: 10px;
  padding: 0.6rem;
}

.meter-label {
  display: flex;
  justify-content: space-between;
  color: #425066;
  font-weight: 700;
  font-size: 0.82rem;
}

.meter-bar {
  margin-top: 0.4rem;
  height: 10px;
  border-radius: 99px;
  background: #e8edf6;
  overflow: hidden;
}

.meter-bar span {
  display: block;
  width: 82%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #1f4f96 0%, #2f74d8 70%, #5ab0ff 100%);
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
}

.metric-row article {
  border: 1px solid #d8dfeb;
  border-radius: 10px;
  padding: 0.6rem;
  background: #f9fbff;
}

.metric-row p {
  margin: 0;
  color: #526078;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.metric-row strong {
  display: block;
  margin-top: 0.35rem;
  font-size: 1rem;
}

.section {
  margin-top: 1rem;
  padding: 1.1rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.section-alt {
  background: linear-gradient(175deg, #ffffff 0%, #f5f8ff 100%);
}

.section-head h2 {
  margin: 0.5rem 0 0;
  font-size: clamp(1.4rem, 2.8vw, 2rem);
}

.feature-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.feature-grid article {
  border: 1px solid #d7deea;
  border-radius: 12px;
  padding: 0.9rem;
  background: #f9fbff;
}

.feature-grid h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.feature-grid p {
  margin: 0;
  color: #4a576f;
  line-height: 1.5;
  font-size: 0.93rem;
}

.flow {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.flow article {
  border: 1px solid #d6deeb;
  border-radius: 12px;
  padding: 0.95rem;
  background: #fff;
}

.flow span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: #163d72;
  font-weight: 900;
  font-size: 0.82rem;
}

.flow h3 {
  margin: 0.65rem 0 0.35rem;
}

.flow p {
  margin: 0;
  color: #4b5a72;
  line-height: 1.52;
}

.plan-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.plan {
  border: 1px solid #d5dce8;
  border-radius: 12px;
  padding: 1rem;
  background: #fff;
}

.plan-pro {
  background: linear-gradient(160deg, #f8fbff 0%, #edf3ff 100%);
  border-color: #bbcff5;
}

.plan-trial {
  background: linear-gradient(165deg, #ffffff 0%, #f4f8ff 100%);
  border-color: #c8d8f4;
}

.plan h3 {
  margin: 0;
}

.price {
  margin: 0.5rem 0 0.75rem;
  font-size: 1.35rem;
  font-weight: 900;
}

.plan ul {
  margin: 0;
  padding-left: 1.1rem;
  color: #475772;
  line-height: 1.6;
}

.plan-btn {
  width: 100%;
  margin-top: 0.9rem;
}

.footer {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto 2rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #44546c;
}

.footer p {
  margin: 0;
  font-weight: 700;
}

.footer-actions {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  font-weight: 700;
}

.footer-actions a {
  color: var(--brand);
}

@media (max-width: 980px) {
  .topbar {
    flex-wrap: wrap;
  }

  .topnav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
  }

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

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

@media (max-width: 700px) {
  body {
    font-size: 15px;
  }

  .topnav {
    gap: 0.75rem;
    font-size: 0.86rem;
  }

  .topcta {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .btn {
    width: 100%;
  }

  .feature-grid,
  .flow,
  .plan-grid,
  .metric-row,
  .visual-grid {
    grid-template-columns: 1fr;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}
