:root {
  color-scheme: dark;
  --bg: #090b0d; 
  --bg-alt: #101316;
  --panel: rgba(255, 255, 255, 0.055);
  --panel-strong: rgba(255, 255, 255, 0.09);
  --line: rgba(255, 255, 255, 0.13);
  --text: #f3f6f4;
  --muted: #aab4b0;
  --soft: #d8e1de;
  --lime: #9bef7f;
  --cyan: #64d6e7;
  --amber: #e8bb68;
  --ink: #07100e;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(100, 214, 231, 0.08), transparent 34%),
    linear-gradient(220deg, rgba(155, 239, 127, 0.08), transparent 38%),
    var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(9, 11, 13, 0.84);
  backdrop-filter: blur(18px);
}

.nav-inner {
  width: min(var(--max), calc(100% - 40px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-inner,
.hero-inner,
.section-inner,
.footer-inner,
.content-grid,
.panel,
.card,
.tool-workspace,
.tool-form,
.field,
.field-grid,
.check-group,
.result-box {
  min-width: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(155, 239, 127, 0.42);
  background: linear-gradient(135deg, rgba(155, 239, 127, 0.18), rgba(100, 214, 231, 0.12));
  color: var(--lime);
  font-size: 15px;
  font-weight: 800;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.nav-links a {
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--text);
}

.hero {
  position: relative;
  padding: 78px 0 54px;
  border-bottom: 1px solid var(--line);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 90%);
  pointer-events: none;
}

.hero-inner,
.section-inner,
.footer-inner {
  position: relative;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--cyan);
  box-shadow: 0 0 18px rgba(100, 214, 231, 0.72);
}

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

.lead {
  max-width: 760px;
  margin: 24px 0 0;
  color: var(--soft);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
}

.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 transparent;
  border-radius: 8px;
  background: var(--lime);
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

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

section {
  padding: 64px 0;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 22px;
  align-items: start;
}

.panel,
.card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(16, 19, 22, 0.74);
}

.panel {
  padding: 28px;
}

.panel h2,
.card h2 {
  margin: 0 0 16px;
  font-size: 26px;
  letter-spacing: 0;
}

.panel p,
.panel li,
.card p,
.card li {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.panel p {
  margin: 0 0 18px;
}

.panel p:last-child {
  margin-bottom: 0;
}

ul {
  margin: 0;
  padding-left: 22px;
}

.stack {
  display: grid;
  gap: 14px;
}

.card {
  padding: 22px;
}

.tool-workspace {
  display: grid;
  gap: 18px;
}

.tool-form {
  display: grid;
  gap: 16px;
}

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

.field,
.check-row {
  display: grid;
  gap: 8px;
}

.field label,
.check-row label {
  color: var(--soft);
  font-size: 14px;
  font-weight: 800;
}

.field input,
.field textarea,
.field select {
  max-width: 100%;
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.22);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  padding: 11px 12px;
  outline: none;
}

.field textarea {
  min-height: 150px;
  resize: vertical;
  line-height: 1.5;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: rgba(155, 239, 127, 0.55);
  box-shadow: 0 0 0 3px rgba(155, 239, 127, 0.12);
}

.check-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
}

.check-row {
  grid-template-columns: 18px 1fr;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.check-row input {
  width: 16px;
  height: 16px;
  accent-color: var(--lime);
}

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

button.button {
  cursor: pointer;
  font-family: inherit;
}

.result-box {
  min-height: 130px;
  padding: 16px;
  border: 1px solid rgba(155, 239, 127, 0.26);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.24);
  color: var(--soft);
  font-family: "Consolas", "SFMono-Regular", monospace;
  font-size: 14px;
  line-height: 1.55;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.result-box:empty::before {
  content: "Results will appear here.";
  color: var(--muted);
  font-family: Inter, system-ui, sans-serif;
}

.status-line {
  min-height: 22px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.status-line strong {
  color: var(--text);
}

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

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--soft);
  background: rgba(255, 255, 255, 0.04);
  font-size: 13px;
  font-weight: 700;
}

.meta-list {
  display: grid;
  gap: 12px;
}

.meta-item {
  display: grid;
  gap: 5px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.meta-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.meta-item strong {
  color: var(--text);
  font-size: 14px;
}

.meta-item span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

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

.tool-card {
  min-height: 150px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  text-decoration: none;
}

.tool-card:hover {
  border-color: rgba(155, 239, 127, 0.34);
  background: var(--panel-strong);
}

.tool-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: 16px;
}

.tool-card span {
  display: block;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

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

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer a {
  color: var(--soft);
  text-decoration: none;
}

.footer a:hover {
  color: var(--lime);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
  font-weight: 700;
}

@media (max-width: 900px) {
  .content-grid {
    grid-template-columns: 1fr;
  }

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

  .field-grid,
  .check-group {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .nav-inner,
  .hero-inner,
  .section-inner,
  .footer-inner {
    width: calc(100% - 28px);
  }

  .nav-links {
    display: none;
  }

  .hero,
  section {
    padding: 40px 0;
  }

  h1 {
    font-size: clamp(34px, 12vw, 46px);
    line-height: 1;
  }

  .lead {
    font-size: 16px;
    line-height: 1.5;
  }

  .eyebrow {
    max-width: 100%;
    font-size: 11px;
    line-height: 1.35;
    white-space: normal;
  }

  .panel,
  .card {
    padding: 18px;
  }

  .panel h2,
  .card h2 {
    font-size: 22px;
  }

  .actions {
    flex-direction: column;
  }

  .button,
  .inline-actions .button {
    width: 100%;
    min-width: 0;
    white-space: normal;
    text-align: center;
  }

  .inline-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .field input,
  .field textarea,
  .field select {
    font-size: 16px;
  }

  .result-box {
    max-width: 100%;
    padding: 14px;
    font-size: 13px;
    overflow-x: auto;
  }

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

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

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 390px) {
  .nav-inner,
  .hero-inner,
  .section-inner,
  .footer-inner {
    width: calc(100% - 20px);
  }

  .brand {
    gap: 9px;
    font-size: 14px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .panel,
  .card,
  .tool-card {
    padding: 16px;
  }
}
