:root {
  color-scheme: light;
  --bg: #f4f5f0;
  --bg-alt: #fbfaf6;
  --surface: rgba(255, 255, 255, 0.9);
  --surface-strong: #ffffff;
  --surface-dark: #191d22;
  --text: #171a1f;
  --muted: #5f6672;
  --line: rgba(23, 26, 31, 0.1);
  --line-strong: rgba(23, 26, 31, 0.18);
  --blue: #2778ff;
  --green: #39b54a;
  --orange: #bf7a1b;
  --shadow: 0 18px 48px rgba(23, 26, 31, 0.08);
  --radius: 8px;
  --content-width: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
  background: rgba(244, 245, 240, 0.84);
  border-bottom: 1px solid rgba(23, 26, 31, 0.06);
}

.nav-shell,
.footer-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-shell {
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1rem;
  font-weight: 700;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(39, 120, 255, 0.16);
}

.nav-links {
  display: inline-flex;
  align-items: center;
  gap: 1.25rem;
  color: var(--muted);
  font-size: 0.96rem;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.72rem 1.15rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-weight: 600;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

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

.button-primary {
  color: #ffffff;
  background: var(--text);
  box-shadow: var(--shadow);
}

.button-primary:hover {
  background: #0f1216;
}

.button-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.65);
  border-color: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(16px);
}

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.82);
}

.button-large {
  min-height: 54px;
  padding-inline: 1.4rem;
}

.hero {
  position: relative;
  min-height: 76svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: #f4f5f0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(244, 245, 240, 0.16);
}

.hero-shell {
  position: relative;
  width: min(calc(100% - 4rem), 1480px);
  margin: 0 auto;
  padding-top: 8rem;
  padding-bottom: 3rem;
  display: grid;
  grid-template-columns: minmax(520px, 620px) minmax(420px, 1fr);
  gap: 3rem;
  align-items: end;
}

.hero-copy-block {
  max-width: 620px;
}

.hero-preview {
  min-height: 680px;
  border-radius: var(--radius) 0 0 var(--radius);
  border: 1px solid rgba(23, 26, 31, 0.06);
  background: url("./assets/macfancontrol-dashboard.png") left center / cover no-repeat;
  opacity: 0.18;
  box-shadow: var(--shadow);
}

.eyebrow,
.section-kicker {
  margin: 0 0 0.8rem;
  color: #315cba;
  font-size: 0.95rem;
  font-weight: 700;
}

.hero h1,
.section-heading h2 {
  margin: 0;
  line-height: 1.02;
}

.hero h1 {
  max-width: 8ch;
  font-size: clamp(3rem, 8vw, 5.8rem);
}

.hero-copy {
  max-width: 42rem;
  margin: 1.1rem 0 0;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: rgba(23, 26, 31, 0.86);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.5rem;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.hero-facts li {
  padding: 1rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px);
}

.hero-facts strong,
.download-copy h3,
.feature-card h3,
.scenario-item h3,
.compatibility-row h3 {
  display: block;
  font-size: 1.05rem;
  line-height: 1.3;
}

.hero-facts span {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.section {
  padding: 5.5rem 0;
}

.section-light {
  background: var(--bg);
}

.section-plain {
  background: #ffffff;
}

.section-tint {
  background: var(--bg-alt);
}

.section-dark {
  background: linear-gradient(180deg, #20252b 0%, #15191f 100%);
  color: #f5f7fa;
}

.section-heading {
  max-width: 48rem;
  margin-bottom: 2rem;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
}

.section-heading p {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.section-dark .section-kicker,
.section-dark .section-heading p,
.section-dark .download-meta {
  color: rgba(245, 247, 250, 0.74);
}

.product-shot {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  box-shadow: var(--shadow);
}

.product-shot figcaption {
  padding: 1rem 1.2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.96);
}

.feature-grid,
.scenario-grid {
  display: grid;
  gap: 1rem;
}

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

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

.feature-card,
.scenario-item,
.compatibility-row,
.download-panel,
.faq-item {
  border-radius: var(--radius);
}

.feature-card,
.scenario-item,
.compatibility-row,
.faq-item {
  padding: 1.3rem;
  border: 1px solid var(--line);
  background: var(--surface-strong);
}

.feature-card p,
.scenario-item p,
.compatibility-row p,
.faq-item p,
.download-meta li,
.site-footer p {
  margin: 0.75rem 0 0;
  color: var(--muted);
}

.compatibility-list {
  display: grid;
  gap: 1rem;
}

.compatibility-row {
  display: grid;
  grid-template-columns: minmax(0, 20rem) minmax(0, 1fr);
  gap: 1.2rem;
  align-items: start;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0;
}

.status-ready {
  color: #145b22;
  background: rgba(57, 181, 74, 0.14);
}

.status-warn {
  color: #7a4a0a;
  background: rgba(191, 122, 27, 0.16);
}

.status-info {
  color: #184b95;
  background: rgba(39, 120, 255, 0.14);
}

.status-muted {
  color: #555d67;
  background: rgba(95, 102, 114, 0.12);
}

.download-shell {
  display: grid;
  gap: 2rem;
}

.download-heading p {
  color: rgba(245, 247, 250, 0.74);
}

.download-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.4rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.download-copy h3 {
  font-size: 1.45rem;
}

.download-meta {
  margin: 0.8rem 0 0;
  padding-left: 1.1rem;
}

.download-meta li + li {
  margin-top: 0.45rem;
}

.download-meta li {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.faq-list {
  display: grid;
  gap: 1rem;
}

.faq-item {
  background: #ffffff;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item[open] {
  border-color: var(--line-strong);
}

.site-footer {
  padding: 1.5rem 0 2.5rem;
  background: #ffffff;
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin-top: 0.25rem;
}

.site-footer a {
  font-weight: 700;
}

@media (max-width: 1080px) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .scenario-grid,
  .hero-facts,
  .compatibility-row,
  .download-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .site-header {
    position: static;
  }

  .nav-shell {
    min-height: 72px;
    flex-wrap: wrap;
    padding-block: 0.85rem;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: space-between;
    padding-bottom: 0.15rem;
    overflow-x: auto;
  }

  .nav-cta {
    margin-left: auto;
  }

  .hero {
    min-height: auto;
  }

  .hero-shell {
    width: min(calc(100% - 2rem), 1480px);
    padding-top: 5rem;
    padding-bottom: 2.2rem;
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .hero-copy-block {
    max-width: none;
  }

  .hero-preview {
    min-height: 280px;
    border-radius: var(--radius);
    background-position: center top;
    opacity: 0.12;
  }

  .hero h1 {
    max-width: none;
  }

  .section {
    padding: 4rem 0;
  }

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

  .download-panel {
    align-items: stretch;
  }

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

@media (max-width: 520px) {
  .container {
    width: min(calc(100% - 1.25rem), var(--content-width));
  }

  .brand span {
    max-width: 11ch;
    line-height: 1.2;
  }

  .nav-links {
    gap: 0.9rem;
    font-size: 0.92rem;
  }

  .button,
  .button-large {
    width: 100%;
  }

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