:root {
  --bg: #f4f7fb;
  --panel: #ffffff;
  --panel-alt: #eef4ff;
  --text: #132238;
  --muted: #59708c;
  --line: #d7e2ef;
  --brand: #0f6fff;
  --brand-deep: #094db0;
  --accent: #16a085;
  --warning: #b7791f;
  --danger: #c0392b;
  --urgent: #8e2a17;
  --shadow: 0 24px 60px rgba(15, 43, 77, 0.12);
  --radius: 20px;
  --radius-sm: 12px;
  --max: 1160px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(15, 111, 255, 0.14), transparent 28%),
    radial-gradient(circle at right 20%, rgba(22, 160, 133, 0.12), transparent 25%),
    linear-gradient(180deg, #fbfdff 0%, var(--bg) 100%);
  min-height: 100vh;
}

a {
  color: var(--brand-deep);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
}

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(251, 253, 255, 0.85);
  border-bottom: 1px solid rgba(215, 226, 239, 0.85);
}

.site-header-inner,
.site-footer-inner {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.brand-lockup {
  display: flex;
  gap: 0.9rem;
  align-items: center;
  color: var(--text);
  font-weight: 700;
}

.brand-badge {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(135deg, var(--brand), #53a0ff);
  color: #fff;
  box-shadow: var(--shadow);
  font-weight: 800;
  overflow: hidden;
}

.brand-badge img {
  width: 100%;
  height: 100%;
  display: block;
}

.brand-title {
  font-size: 1.05rem;
}

.brand-subtitle {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 500;
}

.nav {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.nav a,
.nav button.linklike {
  color: var(--text);
  font-weight: 600;
}

.nav form {
  margin: 0;
}

.linklike {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.hero {
  padding: 4rem 0 2.2rem;
}

.hero-grid,
.account-grid,
.result-grid,
.pricing-grid,
.split-grid,
.stats-grid,
.history-grid {
  display: grid;
  gap: 1.25rem;
}

.hero-grid {
  grid-template-columns: 1.4fr 0.9fr;
  align-items: start;
}

.eyebrow {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(15, 111, 255, 0.08);
  color: var(--brand-deep);
  font-weight: 700;
  font-size: 0.88rem;
}

h1,
h2,
h3 {
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 0.9rem;
}

h1 {
  font-size: clamp(2.2rem, 7vw, 4.4rem);
  max-width: 10ch;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.5rem);
}

h3 {
  font-size: 1.15rem;
}

p {
  color: var(--muted);
  line-height: 1.65;
  margin: 0 0 1rem;
}

.hero-copy p {
  max-width: 60ch;
  font-size: 1.02rem;
}

.hero-points,
.inline-pills,
.list-clean,
.step-list,
.command-list,
.plain-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hero-points {
  display: grid;
  gap: 0.7rem;
  margin-top: 1.2rem;
}

.hero-points li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.9rem 1rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(215, 226, 239, 0.9);
  border-radius: 16px;
}

.panel,
.result-card,
.plan-card,
.metric-card,
.banner,
.alert {
  background: var(--panel);
  border: 1px solid rgba(215, 226, 239, 0.95);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.panel {
  padding: 1.35rem;
}

.panel.narrow {
  max-width: 720px;
  margin: 2rem auto;
}

.checker-card {
  position: relative;
  overflow: hidden;
}

.checker-card::after {
  content: "";
  position: absolute;
  inset: auto -20% -40% auto;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(15, 111, 255, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.form-row,
.form-grid {
  display: grid;
  gap: 1rem;
}

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

label {
  display: grid;
  gap: 0.45rem;
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  padding: 0.92rem 1rem;
  font: inherit;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

textarea {
  min-height: 240px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(15, 111, 255, 0.6);
  box-shadow: 0 0 0 4px rgba(15, 111, 255, 0.12);
}

.help-text,
.microcopy {
  color: var(--muted);
  font-size: 0.92rem;
}

.button,
button.button {
  display: inline-flex;
  gap: 0.65rem;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 0.95rem 1.25rem;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #fff;
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(9, 77, 176, 0.22);
  cursor: pointer;
  text-decoration: none;
}

.button:disabled,
button.button:disabled {
  opacity: 0.72;
  cursor: wait;
}

.button.secondary {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow: none;
}

.button.ghost {
  background: rgba(15, 111, 255, 0.08);
  color: var(--brand-deep);
  box-shadow: none;
}

.button.warning {
  background: linear-gradient(135deg, #f39c12, #d35400);
}

.usage-pill,
.severity-pill,
.plan-pill,
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
}

.usage-pill,
.tag {
  background: rgba(15, 111, 255, 0.09);
  color: var(--brand-deep);
}

.severity-low {
  background: rgba(22, 160, 133, 0.12);
  color: #0e6e5d;
}

.severity-medium {
  background: rgba(243, 156, 18, 0.14);
  color: #8c5a11;
}

.severity-high {
  background: rgba(192, 57, 43, 0.14);
  color: #8f261a;
}

.severity-urgent {
  background: rgba(142, 42, 23, 0.16);
  color: var(--urgent);
}

.inline-pills {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.marketing-grid,
.stats-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pricing-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.pricing-grid {
  align-items: stretch;
}

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

.plan-card,
.metric-card,
.result-card {
  padding: 1.25rem;
}

.plan-card.featured {
  border-color: rgba(15, 111, 255, 0.45);
  transform: translateY(-4px);
}

.price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
}

.price span {
  font-size: 1rem;
  color: var(--muted);
  font-weight: 600;
}

.list-clean {
  display: grid;
  gap: 0.65rem;
}

.list-clean li::before {
  content: "•";
  color: var(--brand);
  margin-right: 0.5rem;
}

.section {
  padding: 1.3rem 0 2.2rem;
}

.result-grid {
  grid-template-columns: minmax(0, 1.7fr) minmax(300px, 0.9fr);
  align-items: start;
}

.result-stack,
.sidebar-stack {
  display: grid;
  gap: 1rem;
}

.step-list {
  display: grid;
  gap: 0.9rem;
  counter-reset: step;
}

.step-list li {
  padding: 1rem;
  border-radius: 16px;
  background: var(--panel-alt);
  border: 1px solid rgba(15, 111, 255, 0.08);
}

.step-list li::before {
  counter-increment: step;
  content: "Step " counter(step);
  display: inline-block;
  margin-bottom: 0.4rem;
  font-weight: 800;
  color: var(--brand-deep);
}

.command-list {
  display: grid;
  gap: 0.85rem;
}

.command-item {
  padding: 0.95rem;
  background: #091420;
  color: #eaf3ff;
  border-radius: 16px;
  position: relative;
}

.command-item pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.95rem;
}

.command-meta {
  display: flex;
  gap: 0.7rem;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.8rem;
  flex-wrap: wrap;
}

.copy-button {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  cursor: pointer;
}

.locked {
  position: relative;
  overflow: hidden;
}

.locked .locked-content {
  filter: blur(9px);
  user-select: none;
  pointer-events: none;
}

.locked-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.94));
}

.banner {
  padding: 1rem 1.2rem;
  margin: 1rem 0;
}

.alert {
  padding: 0.9rem 1rem;
  margin-bottom: 1rem;
}

.alert.error {
  border-color: rgba(192, 57, 43, 0.25);
  background: rgba(192, 57, 43, 0.05);
}

.alert.success {
  border-color: rgba(22, 160, 133, 0.25);
  background: rgba(22, 160, 133, 0.06);
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  padding: 0.9rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer {
  margin-top: auto;
  padding-top: 2rem;
}

.is-loading {
  overflow: hidden;
}

.loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: rgba(8, 18, 33, 0.42);
  backdrop-filter: blur(8px);
}

.loading-dialog {
  width: min(100%, 420px);
  padding: 1.4rem 1.25rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(215, 226, 239, 0.95);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.loading-dialog strong {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 1.08rem;
}

.loading-dialog p {
  margin: 0;
}

.loading-spinner {
  width: 52px;
  height: 52px;
  margin: 0 auto 1rem;
  border: 4px solid rgba(15, 111, 255, 0.16);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.footer-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

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

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

.button:hover,
button.button:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.button:active,
button.button:active {
  transform: translateY(0);
  filter: brightness(0.96);
}

.button.secondary:hover {
  border-color: var(--brand);
  color: var(--brand-deep);
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--text);
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
  display: block;
}

.plan-card.featured::before {
  content: "Most popular";
  display: block;
  margin-bottom: 0.6rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--brand-deep);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

@media (max-width: 960px) {
  .hero-grid,
  .result-grid,
  .account-grid,
  .split-grid,
  .marketing-grid,
  .stats-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .site-header-inner,
  .site-footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  h1 {
    max-width: none;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
  }

  .site-header-inner {
    position: relative;
  }

  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
    padding-top: 0.5rem;
  }

  .nav.nav-open {
    display: flex;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(calc(100% - 1rem), var(--max));
  }

  .hero {
    padding-top: 2.25rem;
  }

  .panel,
  .plan-card,
  .metric-card,
  .result-card {
    padding: 1rem;
  }

  textarea {
    min-height: 210px;
  }

  .loading-dialog {
    padding: 1.2rem 1rem;
    border-radius: 20px;
  }
}
