:root {
  color-scheme: light dark;
  --bg: #f6f3ed;
  --panel: #ffffff;
  --panel-soft: #ece7df;
  --ink: #152029;
  --muted: #5b6670;
  --line: rgba(21, 32, 41, 0.14);
  --accent: #0b6f73;
  --accent-strong: #0f5158;
  --gold: #bb7a16;
  --code: #263646;
  --shadow: 0 24px 70px rgba(21, 32, 41, 0.16);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 760;
}

.brand img,
.final-cta img {
  border-radius: 21%;
  box-shadow: 0 10px 28px rgba(21, 32, 41, 0.2);
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 650;
}

.nav a {
  text-decoration: none;
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  min-height: calc(100svh - 69px);
  padding: clamp(44px, 7vw, 88px) clamp(18px, 4vw, 56px) clamp(28px, 5vw, 56px);
  overflow: hidden;
}

.hero-copy,
.section-heading,
.workflow-panel,
.patron-section,
.final-cta {
  max-width: 1180px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(4rem, 11vw, 7.5rem);
  line-height: 0.88;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4.8rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 1.15rem;
}

.hero-text {
  max-width: 650px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(1.15rem, 2vw, 1.42rem);
  line-height: 1.48;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 780;
}

.button.primary {
  background: var(--ink);
  color: #fff;
}

.button.primary:hover {
  background: var(--accent-strong);
}

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

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.hero-facts li,
.patron-features span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
  padding: 8px 12px;
  color: var(--code);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.84rem;
  font-weight: 700;
}

.hero-media {
  position: relative;
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: 12% -8% 6% 8%;
  z-index: -1;
  background: rgba(11, 111, 115, 0.16);
  filter: blur(46px);
}

.preview-image {
  display: block;
  width: min(100%, 760px);
  height: auto;
  margin-inline: auto;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.feature-band,
.workflow-section,
.patron-section,
.final-cta {
  padding: clamp(58px, 8vw, 110px) clamp(18px, 4vw, 56px);
}

.section-heading {
  margin-inline: auto;
}

.section-heading p,
.patron-copy p,
.final-cta p {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  max-width: 1180px;
  margin: 32px auto 0;
}

.feature-card {
  min-height: 240px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 12px 34px rgba(21, 32, 41, 0.08);
}

.feature-card p {
  color: var(--muted);
  line-height: 1.55;
}

.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 24px;
  border-radius: 8px;
  background: var(--code);
  color: #fff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 800;
}

.workflow-section {
  background: #101823;
  color: #f7fbfb;
}

.workflow-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: start;
  margin-inline: auto;
}

.workflow-section .eyebrow {
  color: #82d6ce;
}

.workflow-list {
  display: grid;
  gap: 14px;
}

.workflow-list div {
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.workflow-list strong,
.workflow-list span {
  display: block;
}

.workflow-list span {
  margin-top: 8px;
  color: rgba(247, 251, 251, 0.72);
  line-height: 1.55;
}

.patron-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.75fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: center;
  margin-inline: auto;
}

.patron-features {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-content: center;
}

.final-cta {
  margin-inline: auto;
  text-align: center;
}

.final-cta img {
  margin-bottom: 22px;
}

.final-cta p {
  margin: 18px auto 28px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer a {
  text-decoration: none;
  font-weight: 650;
}

@media (max-width: 980px) {
  .hero,
  .workflow-panel,
  .patron-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

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

@media (max-width: 640px) {
  .site-header {
    align-items: flex-start;
  }

  .nav {
    gap: 12px;
    font-size: 0.84rem;
  }

  .brand span {
    display: none;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

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

  .feature-card {
    min-height: 0;
  }

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

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111820;
    --panel: #17222d;
    --panel-soft: #1d2a36;
    --ink: #f4f8fa;
    --muted: #b4c0c8;
    --line: rgba(244, 248, 250, 0.14);
    --accent: #7acdc7;
    --accent-strong: #8ce0d7;
    --code: #d9e7ea;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  }

  .button.primary {
    background: #e9f3f4;
    color: #101823;
  }

  .button.primary:hover {
    background: #8ce0d7;
  }

  .button.secondary,
  .hero-facts li,
  .patron-features span {
    background: rgba(255, 255, 255, 0.08);
  }

  .feature-icon {
    background: #e9f3f4;
    color: #101823;
  }
}
