
:root {
  color-scheme: dark;
  --background: #0b1110;
  --surface: #111a18;
  --surface-raised: #17221f;
  --border: #293833;
  --text: #edf5f0;
  --muted: #a0b2a9;
  --accent: #8ef0b0;
  --accent-dark: #193b2a;
  --danger: #ffb6a8;
  --radius: 16px;
  --content-width: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--background);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button,
textarea,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible,
a:focus-visible,
textarea:focus-visible,
input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.site-header {
  width: min(var(--content-width), calc(100% - 40px));
  margin: 0 auto;
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid var(--border);
}

.brand {
  color: var(--text);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.06em;
}

.brand span {
  color: var(--accent);
}

.site-header nav,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.site-header nav a,
.footer-links a {
  color: var(--muted);
  font-size: 0.92rem;
}

.site-header nav a:hover,
.site-header nav a[aria-current="page"] {
  color: var(--accent);
}

main {
  flex: 1;
}

.page-shell,
.home-shell {
  width: min(var(--content-width), calc(100% - 40px));
  margin: 0 auto;
}

.page-shell {
  padding: 64px 0 88px;
}

.home-shell {
  padding: 92px 0 100px;
}

.hero {
  max-width: 780px;
  margin-bottom: 56px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.13em;
}

h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.035em;
}

h1 {
  margin: 0 0 20px;
  font-size: clamp(2.4rem, 7vw, 4.6rem);
}

h2 {
  margin: 0 0 16px;
  font-size: clamp(1.5rem, 4vw, 2.1rem);
}

h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
}

.hero-copy,
.intro-copy {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.15rem;
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button,
button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 46px;
  padding: 11px 18px;
  border: 1px solid var(--accent);
  border-radius: 10px;
  background: var(--accent);
  color: #0b1710;
  font-weight: 750;
  text-decoration: none;
  transition: transform 120ms ease, opacity 120ms ease;
}

.button:hover,
button:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.button-secondary,
button.button-secondary {
  border-color: var(--border);
  background: var(--surface-raised);
  color: var(--text);
}

.button-quiet,
button.button-quiet {
  border-color: transparent;
  background: transparent;
  color: var(--muted);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature-card,
.tool-panel,
.content-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.feature-card {
  padding: 24px;
}

.feature-card p,
.content-panel p,
.content-panel li {
  color: var(--muted);
}

.feature-card p {
  margin-bottom: 0;
}

.analyzer-intro {
  max-width: 760px;
  margin-bottom: 36px;
}

.analyzer-intro h1 {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
}

.tool-panel {
  padding: clamp(20px, 4vw, 36px);
}

.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 26px;
}

.local-badge {
  flex-shrink: 0;
  padding: 5px 10px;
  border: 1px solid #315541;
  border-radius: 999px;
  background: var(--accent-dark);
  color: var(--accent);
  font-size: 0.78rem;
}

label {
  display: block;
  margin-bottom: 10px;
  font-weight: 650;
}

textarea,
input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #0c1311;
  color: var(--text);
}

textarea {
  display: block;
  min-height: 200px;
  padding: 16px;
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.92rem;
  line-height: 1.6;
}

textarea::placeholder,
input::placeholder {
  color: #71847a;
}

.helper-copy {
  color: var(--muted);
  font-size: 0.88rem;
}

.result-panel {
  margin-top: 28px;
  padding: 24px;
  border: 1px solid #315541;
  border-radius: 12px;
  background: #101d17;
}

.result-panel[hidden] {
  display: none;
}

.result-panel > h2 {
  color: var(--accent);
}

.result-block {
  margin-top: 24px;
}

.result-block p {
  white-space: pre-line;
  color: var(--muted);
}

.result-next-step {
  padding: 18px;
  border-radius: 10px;
  background: var(--surface-raised);
}

.content-panel {
  max-width: 820px;
  padding: clamp(22px, 4vw, 40px);
}

.content-panel h2 {
  margin-top: 32px;
}

.content-panel h2:first-child {
  margin-top: 0;
}

.content-panel li {
  margin: 8px 0;
}

.content-panel a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-form {
  display: grid;
  gap: 18px;
  max-width: 620px;
}

.contact-form input,
.contact-form textarea {
  padding: 12px 14px;
}

.site-footer {
  width: min(var(--content-width), calc(100% - 40px));
  margin: auto;
  padding: 28px 0;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.site-footer > p {
  width: 100%;
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

@media (max-width: 720px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .site-header nav {
    gap: 12px 18px;
  }

  .home-shell {
    padding-top: 64px;
  }

  .page-shell {
    padding-top: 44px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .panel-heading {
    flex-direction: column;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

.section-spaced {
  margin-top: 36px;
}
