:root {
  color-scheme: light;
  --ink: #15201d;
  --muted: #5d6c67;
  --paper: #f4f1e8;
  --card: #fffdf8;
  --line: #d9d4c7;
  --accent: #0d6b52;
  --accent-strong: #084c3b;
  --accent-soft: #dcefe7;
  --danger: #a23d35;
  --warning: #8a641c;
  --shadow: 0 20px 60px rgba(28, 43, 37, 0.09);
  font-family: Inter, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 88% 8%, rgba(13, 107, 82, 0.13), transparent 30rem),
    linear-gradient(180deg, #fbf8f0 0%, var(--paper) 100%);
  color: var(--ink);
  min-height: 100vh;
}

a {
  color: var(--accent);
}

button,
input,
select,
textarea {
  font: inherit;
}

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-decoration: none;
  font-size: 20px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  color: white;
  background: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 72px;
  align-items: center;
  padding: 72px 0 64px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid #bdd8cd;
  border-radius: 999px;
  background: rgba(220, 239, 231, 0.75);
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 700;
}

h1 {
  margin: 20px 0 20px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.065em;
}

.hero p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
}

.button:hover {
  border-color: #b9b1a0;
}

.button-primary {
  border-color: var(--accent);
  background: var(--accent);
  color: white;
}

.button-primary:hover {
  border-color: var(--accent-strong);
  background: var(--accent-strong);
}

.button-danger {
  color: var(--danger);
}

.button-small {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 9px;
  font-size: 13px;
}

.preview {
  position: relative;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255, 253, 248, 0.88);
  box-shadow: var(--shadow);
  transform: rotate(1.5deg);
}

.preview::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px dashed #c7c0b1;
  border-radius: 18px;
  pointer-events: none;
}

.preview-card {
  position: relative;
  padding: 18px;
  border-radius: 16px;
  background: white;
}

.preview-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #28a477;
  box-shadow: 0 0 0 5px rgba(40, 164, 119, 0.13);
}

.preview-diff {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 12px;
  background: #f5f7f3;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
  line-height: 1.55;
}

.diff-add {
  color: #116348;
  background: #e4f5ec;
}

.diff-remove {
  color: #8e3d34;
  background: #f8e9e6;
}

.section {
  padding: 52px 0;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 26px;
}

.section-heading h2 {
  margin: 0 0 10px;
  font-size: clamp(30px, 4vw, 48px);
  letter-spacing: -0.045em;
}

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

.grid {
  display: grid;
  gap: 18px;
}

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

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

.card {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
  padding: 24px;
  box-shadow: 0 8px 30px rgba(28, 43, 37, 0.04);
}

.card h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

.card p {
  color: var(--muted);
  line-height: 1.65;
}

.price {
  margin: 18px 0 6px;
  font-size: 44px;
  font-weight: 850;
  letter-spacing: -0.05em;
}

.price-note {
  color: var(--muted);
  font-size: 13px;
}

.feature-list {
  display: grid;
  gap: 9px;
  margin: 20px 0 24px;
  padding: 0;
  list-style: none;
}

.feature-list li::before {
  content: "✓";
  margin-right: 9px;
  color: var(--accent);
  font-weight: 800;
}

.preset-card {
  min-height: 190px;
}

.preset-label {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-page {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 100px);
  padding: 30px 0 80px;
}

.auth-card {
  width: min(460px, 100%);
}

.auth-card h1 {
  font-size: 42px;
}

.field {
  display: grid;
  gap: 7px;
  margin-bottom: 16px;
}

.field label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: white;
  color: var(--ink);
  padding: 12px 13px;
  outline: none;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(13, 107, 82, 0.12);
}

.field textarea {
  min-height: 90px;
  resize: vertical;
}

.field-note {
  color: var(--muted);
  font-size: 12px;
}

.notice {
  padding: 13px 14px;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  line-height: 1.55;
}

.notice-error {
  background: #f7e6e2;
  color: var(--danger);
}

.dashboard {
  padding: 24px 0 64px;
}

.dashboard-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 26px;
}

.dashboard-head h1 {
  margin: 0;
  font-size: 42px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.stat {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
}

.stat span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.stat strong {
  display: block;
  margin-top: 7px;
  font-size: 28px;
  letter-spacing: -0.035em;
}

.panel {
  margin-bottom: 20px;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
}

.panel-head h2 {
  margin: 0;
  font-size: 24px;
  letter-spacing: -0.03em;
}

.monitor-list {
  display: grid;
  gap: 10px;
}

.monitor-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
}

.monitor-row h3 {
  margin: 0 0 5px;
  font-size: 16px;
}

.monitor-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: var(--muted);
  font-size: 12px;
}

.monitor-url {
  display: block;
  overflow: hidden;
  margin-top: 5px;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: flex-end;
}

.badge {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 999px;
  background: #ece9df;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.badge-active {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.badge-error {
  background: #f7e6e2;
  color: var(--danger);
}

.empty {
  padding: 28px;
  border: 1px dashed #c7c0b1;
  border-radius: 14px;
  color: var(--muted);
  text-align: center;
}

.change-list {
  display: grid;
  gap: 12px;
  max-height: 58vh;
  overflow: auto;
}

.change-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  background: #fff;
}

.change-item pre,
.secret-box {
  overflow: auto;
  padding: 12px;
  border-radius: 10px;
  background: #f5f7f3;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(11, 22, 18, 0.55);
  z-index: 50;
}

.modal-open {
  display: grid;
}

.modal-card {
  width: min(780px, 100%);
  max-height: 86vh;
  border-radius: 20px;
  background: var(--card);
  padding: 24px;
  box-shadow: var(--shadow);
}

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

.hidden {
  display: none !important;
}

.footer {
  padding: 36px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 900px) {
  .hero,
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 34px;
    padding-top: 42px;
  }

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

@media (max-width: 620px) {
  .shell {
    width: min(100% - 22px, 1180px);
  }

  .nav-links a:not(.button) {
    display: none;
  }

  .dashboard-head,
  .panel-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .monitor-row {
    grid-template-columns: 1fr;
  }

  .row-actions {
    justify-content: flex-start;
  }
}
