:root {
  color-scheme: dark;
  --bg: #0b1020;
  --bg-elevated: #121a2f;
  --bg-soft: #18233d;
  --border: rgba(148, 163, 184, 0.18);
  --text: #e8edf7;
  --text-muted: #9aa8c0;
  --accent: #5eead4;
  --accent-strong: #2dd4bf;
  --accent-soft: rgba(94, 234, 212, 0.12);
  --danger: #fca5a5;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --radius: 18px;
  --radius-sm: 12px;
  --max-width: 1120px;
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: "Cascadia Code", "Consolas", "Courier New", monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(45, 212, 191, 0.12), transparent 32%),
    linear-gradient(180deg, #0b1020 0%, #090d18 100%);
}

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

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

img {
  max-width: 100%;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
  background: rgba(11, 16, 32, 0.82);
  border-bottom: 1px solid var(--border);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.9rem;
  background: linear-gradient(135deg, rgba(94, 234, 212, 0.22), rgba(45, 212, 191, 0.08));
  border: 1px solid rgba(94, 234, 212, 0.28);
  color: var(--accent);
  font-size: 0.95rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.75rem 1.1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    background-color 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.button--primary {
  background: linear-gradient(135deg, var(--accent), #34d399);
  color: #052e2b;
}

.button--secondary {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border);
  color: var(--text);
}

.button--ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.hero {
  padding: 4.5rem 0 3rem;
}

.hero__grid {
  display: grid;
  gap: 2rem;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 600;
}

.hero h1 {
  margin: 1rem 0 0.75rem;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.hero__lead {
  max-width: 46rem;
  margin: 0;
  color: var(--text-muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

.panel {
  padding: 1.4rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(18, 26, 47, 0.82);
  box-shadow: var(--shadow);
}

.panel h2,
.panel h3 {
  margin-top: 0;
}

.section {
  padding: 1rem 0 3.5rem;
}

.section__title {
  margin: 0 0 1rem;
  font-size: 1.6rem;
}

.grid {
  display: grid;
  gap: 1rem;
}

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

.feature-card,
.list-card {
  padding: 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.feature-card h3,
.list-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.feature-card p,
.list-card p,
.note,
.footer-note {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.65;
}

.note {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
}

.tool-layout {
  padding: 2rem 0 3rem;
}

.tool-header {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.tool-header h1 {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
}

.tool-header p {
  margin: 0.5rem 0 0;
  color: var(--text-muted);
  max-width: 42rem;
  line-height: 1.6;
}

.status-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  font-size: 0.92rem;
}

.status-pill--ok {
  color: var(--accent);
  border-color: rgba(94, 234, 212, 0.28);
  background: var(--accent-soft);
}

.status-pill--error {
  color: var(--danger);
  border-color: rgba(252, 165, 165, 0.28);
  background: rgba(252, 165, 165, 0.08);
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.trackers-output {
  width: 100%;
  min-height: 28rem;
  resize: vertical;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #070b14;
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.92rem;
  line-height: 1.55;
}

.trackers-output:focus {
  outline: 2px solid rgba(94, 234, 212, 0.35);
  outline-offset: 2px;
}

.feedback {
  min-height: 1.4rem;
  margin: 0.85rem 0 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.feedback--success {
  color: var(--accent);
}

.feedback--error {
  color: var(--danger);
}

.site-footer {
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  align-items: center;
}

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

@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: 1.35fr 0.9fr;
    align-items: center;
  }
}
