:root {
  --bg-1: #0d1b2a;
  --bg-2: #16324f;
  --bg-3: #f2f5f7;
  --text-dark: #16212c;
  --text-light: #f5fbff;
  --muted: #d3deea;
  --card: #ffffff;
  --accent: #0ea5a7;
  --accent-2: #f59e0b;
  --line: #d9e3ee;
  --shadow: 0 18px 40px rgba(8, 30, 54, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Manrope", "Noto Sans", "Segoe UI", sans-serif;
  color: var(--text-dark);
  background: linear-gradient(145deg, var(--bg-3) 0%, #ffffff 55%, #eef5f9 100%);
  line-height: 1.55;
}

a {
  color: inherit;
}

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

.hero-wrap {
  position: relative;
  overflow: hidden;
  color: var(--text-light);
  background:
    radial-gradient(circle at 85% -10%, rgba(245, 158, 11, 0.25), transparent 45%),
    radial-gradient(circle at 0% 100%, rgba(14, 165, 167, 0.35), transparent 40%),
    linear-gradient(145deg, var(--bg-1) 0%, var(--bg-2) 80%);
}

.hero-wrap::after {
  content: "";
  position: absolute;
  inset: auto -140px -160px auto;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transform: rotate(-12deg);
}

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

.topbar {
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
  z-index: 2;
}

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

.nav-links {
  display: flex;
  gap: 10px;
}

.nav-pill {
  text-decoration: none;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  font-size: 0.9rem;
  font-weight: 700;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.nav-pill:hover {
  transform: translateY(-1px);
  background-color: rgba(255, 255, 255, 0.16);
}

.hero {
  position: relative;
  z-index: 2;
  padding: 34px 0 58px;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 26px;
  align-items: end;
}

.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 4.7vw, 3.3rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.hero p {
  margin: 0;
  color: var(--muted);
  max-width: 66ch;
}

.hero-badge {
  justify-self: end;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 16px;
  padding: 14px 16px;
  font-size: 0.92rem;
  min-width: 220px;
}

.hero-badge strong {
  display: block;
  margin-bottom: 8px;
}

.main {
  padding: 42px 0 28px;
  flex: 1;
}

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

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  box-shadow: var(--shadow);
  animation: rise 0.5s ease both;
}

.card h2,
.card h3 {
  margin: 0 0 10px;
  font-size: 1.08rem;
}

.card p,
.card li {
  color: #425669;
}

.card ul {
  margin: 0;
  padding-left: 18px;
}

.card.accent {
  border-top: 4px solid var(--accent);
}

.card.warn {
  border-top: 4px solid var(--accent-2);
}

.section {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  margin-bottom: 18px;
  box-shadow: var(--shadow);
}

.section h2 {
  margin: 0 0 12px;
  font-size: 1.2rem;
}

.section h3 {
  margin: 16px 0 8px;
  font-size: 1rem;
}

.kicker {
  color: #4f6174;
  font-size: 0.95rem;
}

.footer {
  padding: 24px 0 40px;
  font-size: 0.92rem;
  color: #5f7388;
}

.footer .links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.footer a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.status-chip {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.status-success {
  background: rgba(15, 155, 114, 0.14);
  color: #0f7d5d;
  border: 1px solid rgba(15, 155, 114, 0.32);
}

.status-error {
  background: rgba(204, 46, 75, 0.12);
  color: #b61e42;
  border: 1px solid rgba(204, 46, 75, 0.3);
}

.status-neutral {
  background: rgba(37, 99, 235, 0.12);
  color: #1f4cb8;
  border: 1px solid rgba(37, 99, 235, 0.3);
}

.value-box {
  margin: 12px 0 0;
  padding: 12px;
  border: 1px dashed #b7c8d8;
  border-radius: 10px;
  background: #f7fbff;
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.9rem;
  word-break: break-all;
}

.action-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.btn {
  appearance: none;
  border: 1px solid #1d4ed8;
  background: #1d4ed8;
  color: #fff;
  border-radius: 10px;
  padding: 9px 13px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

.btn.ghost {
  background: #fff;
  color: #1d4ed8;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.kv-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.kv-table th,
.kv-table td {
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #e4edf6;
  padding: 10px 8px;
  font-size: 0.93rem;
}

.kv-table th {
  width: 180px;
  color: #355066;
}

.kv-table code {
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.88rem;
  color: #22384d;
}

.notice {
  background: #f7fbff;
  border: 1px solid #d6e6f5;
  border-radius: 12px;
  padding: 14px;
  margin-top: 14px;
}

.notice p {
  margin: 0;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 10px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 0.88rem;
  font-weight: 700;
  color: #2f4a60;
}

.field input,
.field select {
  border: 1px solid #c5d6e6;
  border-radius: 10px;
  padding: 10px 11px;
  font-size: 0.92rem;
  font-family: "Manrope", "Noto Sans", "Segoe UI", sans-serif;
  color: #1c3347;
  background: #ffffff;
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.tiny {
  margin: 0;
  font-size: 0.82rem;
  color: #5f7388;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 16px;
    padding-bottom: 42px;
  }

  .hero-badge {
    justify-self: start;
  }

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

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

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