:root {
  color-scheme: light;
  --ink: #171717;
  --muted: #575e5a;
  --subtle: #727b75;
  --paper: #fbfcfa;
  --surface: #ffffff;
  --line: #d9dfd8;
  --line-strong: #b7c0b8;
  --charcoal: #141414;
  --charcoal-2: #202321;
  --coral: #df5a3f;
  --coral-dark: #b13d27;
  --amber: #b7791f;
  --teal: #0f766e;
  --green: #2f855a;
  --blue: #326891;
  --shadow: 0 18px 60px rgba(24, 29, 26, 0.14);
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

button,
input,
textarea,
select {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 0.75rem;
  z-index: 1000;
  transform: translateY(-160%);
  background: var(--charcoal);
  color: #fff;
  padding: 0.65rem 0.85rem;
  border-radius: 6px;
}

.skip-link:focus {
  transform: translateY(0);
}

.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;
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(20, 20, 20, 0.72);
  color: #fff;
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(var(--container), calc(100% - 2rem));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 760;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  width: 30px;
  height: 30px;
  display: inline-block;
  border-radius: 7px;
  background:
    radial-gradient(circle at 50% 82%, var(--coral) 0 25%, transparent 26%),
    linear-gradient(180deg, #f2b84a 0 38%, #df5a3f 39% 58%, #0f766e 59% 61%, #171717 62%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.05rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.94rem;
}

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

.site-nav a:hover,
.site-nav a:focus-visible {
  color: #fff;
}

.nav-github {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 6px;
  padding: 0 0.85rem;
}

.nav-toggle {
  width: 44px;
  height: 44px;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 6px;
  background: transparent;
  color: #fff;
}

.nav-toggle-line {
  width: 18px;
  height: 2px;
  background: currentColor;
  display: block;
}

.hero {
  position: relative;
  min-height: 88svh;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: center;
  padding: 8.8rem 0 5.4rem;
  background:
    linear-gradient(90deg, rgba(20, 20, 20, 0.96) 0%, rgba(20, 20, 20, 0.9) 39%, rgba(20, 20, 20, 0.48) 72%, rgba(20, 20, 20, 0.72) 100%),
    url("assets/sunsetscan-report-preview.png");
  background-position: center, right 8% center;
  background-repeat: no-repeat;
  background-size: cover, min(920px, 72%) auto;
  color: #fff;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.18);
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(0deg, rgba(15, 118, 110, 0.12), transparent 46%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.055) 0 1px, transparent 1px 120px);
}

.hero-content {
  position: relative;
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.5;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f7b267;
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  max-width: 11ch;
  font-size: 5.1rem;
  font-weight: 820;
}

h2 {
  font-size: 2.6rem;
  font-weight: 780;
}

h3 {
  font-size: 1.12rem;
  font-weight: 760;
}

.hero-copy {
  max-width: 710px;
  margin: 1.35rem 0 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.42rem;
  line-height: 1.42;
}

.hero-note {
  max-width: 650px;
  margin: 1rem 0 0;
  color: rgba(255, 255, 255, 0.74);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  padding: 0 1rem;
  font-weight: 760;
  text-decoration: none;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

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

.button-primary {
  border: 1px solid var(--coral);
  background: var(--coral);
  color: #fff;
}

.button-secondary {
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.hero-facts {
  width: min(760px, 100%);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 3.1rem 0 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
  overflow: hidden;
}

.hero-facts div {
  padding: 1rem;
  background: rgba(20, 20, 20, 0.58);
}

.hero-facts dt {
  margin: 0 0 0.25rem;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.72rem;
  font-weight: 780;
  text-transform: uppercase;
}

.hero-facts dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.94);
  font-weight: 720;
}

section {
  scroll-margin-top: 90px;
}

.intro-band,
.feature-band,
.database-band,
.workflow-band,
.report-band,
.install-band,
.open-source-band {
  padding: 6rem 0;
}

.intro-band {
  background: var(--surface);
}

.section-grid,
.database-layout,
.report-layout,
.install-layout,
.open-source-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 4rem;
  align-items: start;
}

.section-body p,
.database-copy p,
.report-copy p,
.install-layout p,
.open-source-copy p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.section-body p:last-child,
.database-copy p:last-child,
.report-copy p:last-child,
.install-layout p:last-child,
.open-source-copy p:last-child {
  margin-bottom: 0;
}

.feature-band {
  background: #f2f5f1;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 2.3rem;
}

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

.feature-card,
.metric-card,
.database-notes article,
.workflow-list li {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.feature-card {
  min-height: 260px;
  padding: 1.2rem;
}

.feature-kicker {
  display: inline-block;
  margin-bottom: 1.2rem;
  color: var(--teal);
  font-size: 0.74rem;
  font-weight: 820;
  text-transform: uppercase;
}

.feature-card p,
.database-notes p,
.workflow-list p {
  margin: 0.75rem 0 0;
  color: var(--muted);
}

.database-band {
  background: var(--charcoal);
  color: #fff;
}

.database-band .eyebrow {
  color: #f7b267;
}

.database-copy p,
.database-notes p {
  color: rgba(255, 255, 255, 0.74);
}

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

.metric-card {
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
}

.metric-value {
  display: block;
  color: #fff;
  font-size: 2.4rem;
  line-height: 1;
  font-weight: 820;
}

.metric-label {
  display: block;
  margin-top: 0.75rem;
  color: rgba(255, 255, 255, 0.68);
}

.database-notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 3rem;
}

.database-notes article {
  padding: 1.2rem;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
}

.workflow-band {
  background: var(--paper);
}

.workflow-list {
  counter-reset: workflow;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
}

.workflow-list li {
  min-height: 270px;
  padding: 1.2rem;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 32px;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(223, 90, 63, 0.35);
  border-radius: 6px;
  color: var(--coral-dark);
  font-size: 0.78rem;
  font-weight: 820;
}

.report-band {
  background: var(--surface);
}

.report-preview {
  margin: 0;
}

.report-preview img {
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.report-preview figcaption {
  margin-top: 0.75rem;
  color: var(--subtle);
  font-size: 0.9rem;
}

.plain-list {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.plain-list li {
  position: relative;
  margin: 0 0 0.75rem;
  padding-left: 1.3rem;
  color: var(--muted);
}

.plain-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
}

.install-band {
  background: #f2f5f1;
}

.command-panel {
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--charcoal-2);
  color: #fff;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.command-header {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.88rem;
  font-weight: 720;
}

.command-header:not(:first-child) {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.copy-button {
  min-width: 68px;
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
}

.copy-button:hover,
.copy-button:focus-visible {
  border-color: rgba(255, 255, 255, 0.45);
}

pre {
  margin: 0;
  padding: 1rem;
  overflow-x: auto;
}

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.92rem;
}

.open-source-band {
  background: var(--surface);
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.4rem;
}

.text-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 0 0.85rem;
  color: var(--ink);
  font-weight: 740;
  text-decoration: none;
}

.text-link:hover,
.text-link:focus-visible {
  border-color: var(--coral);
  color: var(--coral-dark);
}

.site-footer {
  padding: 3.5rem 0;
  background: var(--charcoal);
  color: #fff;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
}

.footer-brand {
  color: #fff;
}

.site-footer p {
  max-width: 520px;
  margin: 1rem 0 0;
  color: rgba(255, 255, 255, 0.66);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  justify-content: flex-end;
  gap: 0.9rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.76);
}

.not-found {
  min-height: 100svh;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(20, 20, 20, 0.94), rgba(20, 35, 32, 0.9)),
    url("assets/sunsetscan-report-preview.png");
  background-position: center;
  background-size: cover;
  color: #fff;
}

.not-found-panel {
  max-width: 620px;
}

.not-found-panel h1 {
  margin-top: 2rem;
  font-size: 3.4rem;
}

.not-found-panel p {
  margin: 1rem 0 1.8rem;
  color: rgba(255, 255, 255, 0.74);
  font-size: 1.1rem;
}

@media (max-width: 1040px) {
  h1 {
    font-size: 4.1rem;
  }

  h2 {
    font-size: 2.15rem;
  }

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

  .section-grid,
  .database-layout,
  .report-layout,
  .install-layout,
  .open-source-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 760px) {
  .site-header {
    background: rgba(20, 20, 20, 0.9);
  }

  .header-inner {
    min-height: 64px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: calc(100% + 0.5rem);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.45rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    background: var(--charcoal);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.25);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 0 0.75rem;
  }

  .nav-github {
    justify-content: flex-start;
    border-color: transparent;
    padding: 0 0.75rem;
  }

  .hero {
    min-height: 82svh;
    padding: 7.2rem 0 4rem;
    background:
      linear-gradient(180deg, rgba(20, 20, 20, 0.95) 0%, rgba(20, 20, 20, 0.86) 54%, rgba(20, 20, 20, 0.92) 100%),
      url("assets/sunsetscan-report-preview.png");
    background-size: cover, 880px auto;
    background-position: center, center bottom;
  }

  h1 {
    font-size: 3.2rem;
  }

  h2 {
    font-size: 1.85rem;
  }

  .hero-copy {
    font-size: 1.14rem;
  }

  .hero-facts,
  .metric-grid,
  .database-notes,
  .feature-grid,
  .workflow-list {
    grid-template-columns: 1fr;
  }

  .hero-facts div {
    padding: 0.85rem;
  }

  .intro-band,
  .feature-band,
  .database-band,
  .workflow-band,
  .report-band,
  .install-band,
  .open-source-band {
    padding: 4.2rem 0;
  }

  .feature-card,
  .workflow-list li {
    min-height: auto;
  }

  .footer-inner {
    flex-direction: column;
  }

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

@media (max-width: 380px) {
  h1 {
    font-size: 2.75rem;
  }

  .hero-copy {
    font-size: 1.05rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
}
