:root {
  --teal: #5fa8a4;
  --teal-bright: #7ed0cb;
  --blue: #4a90e2;
  --blue-soft: #8ec0ff;
  --surface: rgba(13, 24, 31, 0.84);
  --surface-strong: rgba(18, 33, 41, 0.9);
  --surface-panel: linear-gradient(180deg, rgba(20, 37, 46, 0.92) 0%, rgba(9, 18, 24, 0.9) 100%);
  --border: rgba(95, 168, 164, 0.34);
  --border-strong: rgba(126, 208, 203, 0.78);
  --text-primary: #edf8ff;
  --text-secondary: #d0e3ef;
  --text-muted: #a9c2d0;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", Tahoma, sans-serif;
  background:
    radial-gradient(circle at 14% 10%, rgba(95, 168, 164, 0.34) 0%, rgba(95, 168, 164, 0) 28%),
    radial-gradient(circle at 84% 14%, rgba(74, 144, 226, 0.28) 0%, rgba(74, 144, 226, 0) 26%),
    radial-gradient(circle at 50% 100%, rgba(95, 168, 164, 0.14) 0%, rgba(95, 168, 164, 0) 38%),
    linear-gradient(160deg, #1d3946 0%, #12252f 42%, #09141b 100%);
  color: var(--text-primary);
}

a {
  color: inherit;
}

code {
  font-family: Consolas, "Courier New", monospace;
}

.shell {
  width: min(920px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 40px 0 64px;
}

.shell-home {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.shell-centered {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 0;
}

.panel-stack {
  width: min(740px, 100%);
  display: grid;
  gap: 16px;
}

.hero,
.panel {
  background: var(--surface-panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(74, 144, 226, 0.08);
  padding: 28px;
}

.hero {
  margin-bottom: 24px;
}

.home-hero {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--blue-soft);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0 0 12px;
  line-height: 1.1;
}

.lead {
  margin: 0;
  color: var(--text-secondary);
  font-size: 18px;
  line-height: 1.5;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.tool-grid-single {
  display: flex;
  align-items: center;
  justify-content: center;
}

.tool-card {
  display: block;
  text-decoration: none;
  background: linear-gradient(180deg, rgba(25, 43, 52, 0.94) 0%, rgba(12, 20, 26, 0.94) 100%);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  will-change: transform, box-shadow;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(142, 192, 255, 0.06);
}

.tool-grid-single .tool-card {
  width: min(420px, 100%);
  min-height: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.tool-card:hover {
  border-color: var(--border-strong);
  animation: tool-card-pulse 1.75s ease-in-out infinite;
}

.tool-card:focus-visible {
  outline: none;
  border-color: var(--border-strong);
  animation: tool-card-pulse 1.75s ease-in-out infinite;
}

.tool-tag {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  background: rgba(95, 168, 164, 0.2);
  color: var(--teal-bright);
  box-shadow: inset 0 0 0 1px rgba(126, 208, 203, 0.18);
}

.tool-link {
  display: inline-block;
  margin-top: 16px;
  color: var(--teal-bright);
  font-weight: 600;
}

.back-link {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--blue-soft);
  text-decoration: none;
}

.help-list {
  margin: 24px 0 0;
  padding-left: 20px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.notice {
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 12px;
}

.notice-error {
  background: rgba(183, 54, 79, 0.16);
  border: 1px solid rgba(255, 109, 143, 0.35);
  color: #ffd7e0;
}

.status-list {
  display: grid;
  gap: 16px;
  margin: 24px 0 0;
}

.status-list dt {
  color: var(--blue-soft);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.status-list dd {
  margin: 6px 0 0;
  color: var(--text-primary);
}

@media (max-width: 760px) {
}

@keyframes tool-card-pulse {
  0% {
    transform: translateY(-3px) scale(1);
    box-shadow: 0 18px 32px rgba(0, 0, 0, 0.25);
  }

  50% {
    transform: translateY(-10px) scale(1.045);
    box-shadow: 0 0 0 1px rgba(126, 208, 203, 0.34), 0 28px 46px rgba(0, 0, 0, 0.34), 0 0 36px rgba(74, 144, 226, 0.22);
  }

  100% {
    transform: translateY(-3px) scale(1);
    box-shadow: 0 18px 32px rgba(0, 0, 0, 0.25);
  }
}
