:root {
  color-scheme: light dark;
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #eef2f6;
  --text: #17202a;
  --muted: #5f6f80;
  --line: #d9e0e8;
  --accent: #245f73;
  --accent-2: #d78336;
  --ok: #2d8a58;
  --shadow: 0 18px 50px rgba(27, 39, 51, 0.08);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12161b;
    --surface: #1b222b;
    --surface-2: #222b35;
    --text: #eef3f8;
    --muted: #a8b4c0;
    --line: #303b48;
    --accent: #76c5d6;
    --accent-2: #f0a75a;
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

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

a:hover {
  text-decoration: underline;
}

.site-header,
.site-footer,
main {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
}

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

.nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.nav a {
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--muted);
}

.nav a:hover,
.nav a[aria-current="page"] {
  background: var(--surface-2);
  color: var(--text);
  text-decoration: none;
}

.hero,
.page-title {
  padding: 80px 0 56px;
}

.eyebrow,
.card-kicker {
  margin: 0 0 10px;
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 18px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.02;
}

h2 {
  margin-bottom: 12px;
  font-size: 24px;
  line-height: 1.2;
}

.lead {
  max-width: 720px;
  color: var(--muted);
  font-size: 20px;
}

.hero-actions,
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  cursor: pointer;
}

.button:hover {
  text-decoration: none;
  border-color: var(--accent);
}

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

.button.small {
  min-height: 34px;
  padding: 6px 11px;
  font-size: 14px;
}

.section {
  padding: 24px 0 56px;
}

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

.card,
.tool-panel,
.note,
.status-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.card {
  padding: 24px;
}

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

.split {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 28px;
  align-items: start;
}

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

.tool-panel {
  margin-bottom: 18px;
  padding: 22px;
}

.tool-header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 14px;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 Consolas, "Courier New", monospace;
}

.output {
  min-height: 52px;
  margin: 14px 0 0;
  padding: 14px;
  overflow: auto;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text);
  font: 14px/1.5 Consolas, "Courier New", monospace;
}

.note-list {
  display: grid;
  gap: 16px;
  padding-bottom: 48px;
}

.note {
  padding: 24px;
}

.note p {
  margin-bottom: 0;
  color: var(--muted);
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.status-card {
  display: flex;
  gap: 12px;
  padding: 20px;
}

.status-card h2 {
  margin-bottom: 4px;
  font-size: 18px;
}

.status-card p {
  margin: 0;
  color: var(--muted);
}

.status-dot {
  width: 11px;
  height: 11px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--muted);
}

.status-card.ok .status-dot {
  background: var(--ok);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 38px 0;
  color: var(--muted);
  font-size: 14px;
  border-top: 1px solid var(--line);
}

@media (max-width: 820px) {
  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero,
  .page-title {
    padding: 48px 0 36px;
  }

  .grid,
  .split,
  .status-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 42px;
  }
}
