:root {
  color-scheme: light;
  --ink: #14212b;
  --muted: #596b76;
  --line: rgba(20, 33, 43, 0.12);
  --paper: #f5f8f4;
  --surface: #ffffff;
  --green: #0c9b68;
  --coral: #f05d4e;
  --blue: #235fe8;
  --gold: #ffbd2e;
  --shadow: 0 22px 80px rgba(20, 33, 43, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.55;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 72px);
  background: rgba(245, 248, 244, 0.84);
  border-bottom: 1px solid rgba(20, 33, 43, 0.08);
  backdrop-filter: blur(18px);
}

.brand,
.nav-links,
.hero-actions,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(20, 33, 43, 0.12);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(20, 33, 43, 0.14);
}

.brand-mark img {
  display: block;
  width: 90%;
  height: 90%;
  object-fit: contain;
}

.nav-links {
  gap: 24px;
  color: rgba(20, 33, 43, 0.72);
  font-size: 14px;
  font-weight: 650;
}

.nav-links a:hover,
.header-action:hover {
  color: var(--blue);
}

.header-action {
  padding: 10px 16px;
  color: #fff;
  background: var(--ink);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 750;
}

.hero {
  position: relative;
  display: grid;
  min-height: 94vh;
  padding: 132px clamp(20px, 6vw, 84px) 64px;
  overflow: hidden;
  isolation: isolate;
}

.hero-art,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-art {
  z-index: -2;
  object-fit: cover;
  object-position: center right;
}

.hero-overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(245, 248, 244, 0.98) 0%, rgba(245, 248, 244, 0.9) 36%, rgba(245, 248, 244, 0.28) 72%),
    linear-gradient(180deg, rgba(255, 250, 241, 0) 72%, var(--paper) 100%);
}

.hero-content {
  width: min(760px, 100%);
  align-self: center;
  padding-bottom: 4vh;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

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

h1 {
  font-size: clamp(72px, 14vw, 156px);
  font-weight: 900;
}

h2 {
  font-size: clamp(34px, 4.8vw, 62px);
  font-weight: 880;
}

h3 {
  font-size: 21px;
  font-weight: 830;
}

.hero-statement {
  max-width: 730px;
  margin: 4px 0 0;
  font-size: clamp(30px, 4.9vw, 66px);
  font-weight: 920;
  line-height: 1.04;
}

.hero-copy {
  max-width: 670px;
  margin: 20px 0 22px;
  color: rgba(20, 33, 43, 0.76);
  font-size: clamp(18px, 2vw, 22px);
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.hero-pills span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 7px 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(20, 33, 43, 0.14);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 840;
  box-shadow: 0 12px 28px rgba(20, 33, 43, 0.08);
}

.hero-actions {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 14px;
}

.download-action-stack {
  display: grid;
  gap: 10px;
  width: min(280px, 100%);
}

.download-action-stack .primary-button,
.download-action-stack .secondary-button {
  width: 100%;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 8px;
  font-weight: 800;
}

.primary-button {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 16px 34px rgba(36, 119, 243, 0.28);
}

.primary-button,
.secondary-button {
  padding: 14px 20px;
}

.secondary-button {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--line);
}

.download-section,
.terminal-section,
.ecosystem-section,
.device-section,
.showcase-section,
.install-section,
.faq-section {
  padding: 86px clamp(20px, 6vw, 84px);
}

.download-section,
.install-section,
.faq-section {
  background: var(--paper);
}

.section-heading {
  width: min(780px, 100%);
  margin-bottom: 34px;
}

.section-lede {
  max-width: 760px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.mac-connect-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
  gap: clamp(22px, 5vw, 58px);
  align-items: center;
  margin-top: 22px;
  padding: clamp(24px, 4vw, 42px);
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(12, 155, 104, 0.12), rgba(35, 95, 232, 0.12)),
    #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 54px rgba(20, 33, 43, 0.08);
}

.import-panel {
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.25fr);
  background:
    linear-gradient(135deg, rgba(255, 189, 46, 0.16), rgba(111, 75, 216, 0.1)),
    #ffffff;
}

.mac-connect-copy {
  max-width: 680px;
}

.mac-connect-copy h3 {
  max-width: 640px;
  font-size: clamp(28px, 3.8vw, 48px);
}

.mac-connect-copy p:not(.eyebrow) {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.mac-phone-preview {
  margin: 0;
  justify-self: center;
  width: min(240px, 100%);
  overflow: hidden;
  background: #f7f7f7;
  border: 1px solid rgba(20, 33, 43, 0.1);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(20, 33, 43, 0.18);
}

.mac-phone-preview img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 35;
  object-fit: cover;
}

.project-screens {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
}

.project-screens .mac-phone-preview {
  width: min(180px, 100%);
}

.terminal-section {
  color: #f3f6f5;
  background:
    radial-gradient(circle at 18% 18%, rgba(12, 155, 104, 0.22), transparent 34%),
    linear-gradient(135deg, #101415, #17211d);
}

.terminal-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(220px, 330px);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
}

.terminal-copy {
  max-width: 720px;
}

.terminal-copy .eyebrow {
  color: var(--gold);
}

.terminal-copy h2 {
  max-width: 760px;
}

.terminal-copy p:not(.eyebrow) {
  margin: 18px 0 0;
  color: rgba(243, 246, 245, 0.72);
  font-size: clamp(18px, 2vw, 22px);
}

.terminal-shot {
  margin: 0;
  justify-self: center;
  width: min(300px, 100%);
  overflow: hidden;
  background: #0e1213;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.38);
}

.terminal-shot img {
  display: block;
  width: 100%;
  aspect-ratio: 1280 / 2684;
  object-fit: cover;
}

.ecosystem-grid,
.showcase-grid {
  display: grid;
  gap: 18px;
}

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

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

.faq-list p {
  margin: 10px 0 0;
  color: var(--muted);
}

.ecosystem-section {
  background: #ffffff;
}

.ecosystem-section .section-heading {
  width: min(930px, 100%);
}

.ecosystem-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 210px);
  gap: 24px;
  align-items: center;
  min-height: 440px;
  padding: 28px;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255, 189, 46, 0.12), rgba(35, 95, 232, 0.08)),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 54px rgba(20, 33, 43, 0.08);
}

.store-card,
.skill-card {
  grid-column: 1 / -1;
}

.store-card {
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.4fr);
}

.store-screens {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
}

.ecosystem-copy span {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  margin-bottom: 16px;
  padding: 6px 10px;
  color: #fff;
  background: var(--ink);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
}

.ecosystem-copy h3 {
  max-width: 360px;
  font-size: clamp(26px, 3vw, 38px);
}

.ecosystem-copy p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.ecosystem-phone {
  margin: 0;
  justify-self: center;
  width: min(190px, 100%);
  overflow: hidden;
  background: #f7f7f7;
  border: 1px solid rgba(20, 33, 43, 0.1);
  border-radius: 8px;
  box-shadow: 0 22px 60px rgba(20, 33, 43, 0.16);
}

.store-screens .ecosystem-phone {
  width: min(180px, 100%);
}

.ecosystem-phone img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 35;
  object-fit: cover;
}

.device-section {
  background: #fff;
}

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

.device-shot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(130px, 190px);
  align-items: center;
  margin: 0;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 54px rgba(20, 33, 43, 0.08);
}

.device-shot img {
  order: 2;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 28;
  object-fit: cover;
  object-position: top center;
}

.device-shot figcaption {
  order: 1;
  padding: 22px 24px 24px;
}

.device-shot span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  margin-bottom: 14px;
  padding: 5px 10px;
  color: #fff;
  background: var(--green);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
}

.device-shot strong {
  display: block;
  font-size: 24px;
  line-height: 1.15;
}

.device-shot p {
  margin: 10px 0 0;
  color: var(--muted);
}

.mac-control-wide {
  margin: 22px 0 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 54px rgba(20, 33, 43, 0.08);
}

.mac-control-wide img {
  display: block;
  width: 100%;
  aspect-ratio: 35 / 16;
  object-fit: cover;
}

.mac-control-wide figcaption {
  padding: 22px 24px 24px;
}

.mac-control-wide span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  margin-bottom: 14px;
  padding: 5px 10px;
  color: #fff;
  background: var(--ink);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
}

.mac-control-wide strong {
  display: block;
  font-size: 24px;
  line-height: 1.15;
}

.mac-control-wide p {
  margin: 10px 0 0;
  color: var(--muted);
}

.showcase-section {
  color: #fff;
  background: #101a17;
}

.showcase-section .eyebrow {
  color: var(--gold);
}

.showcase-section .section-heading {
  width: min(940px, 100%);
}

.showcase-card {
  margin: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.28);
}

.showcase-card img {
  display: block;
  width: 100%;
  aspect-ratio: 35 / 16;
  object-fit: cover;
}

.showcase-card figcaption {
  padding: 22px 24px 24px;
}

.showcase-card span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  margin-bottom: 14px;
  padding: 5px 10px;
  color: var(--ink);
  background: var(--gold);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
}

.showcase-card strong {
  display: block;
  font-size: 24px;
  line-height: 1.1;
}

.showcase-card p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.72);
}

.install-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2.4vw, 22px);
  align-items: start;
}

.install-preview {
  margin: 0;
  justify-self: center;
  width: min(230px, 100%);
  overflow: hidden;
  background: #f7f7f7;
  border: 1px solid rgba(20, 33, 43, 0.1);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(20, 33, 43, 0.16);
}

.install-preview img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 35;
  object-fit: cover;
  object-position: top center;
}

.install-preview figcaption {
  padding: 14px 16px 16px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 760;
  text-align: center;
}

.faq-list {
  display: grid;
  gap: 12px;
  width: min(880px, 100%);
}

details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 36px rgba(20, 33, 43, 0.06);
}

summary {
  cursor: pointer;
  padding: 22px 24px;
  font-weight: 820;
}

details p {
  padding: 0 24px 22px;
}

code {
  padding: 2px 5px;
  background: rgba(20, 33, 43, 0.08);
  border-radius: 5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.92em;
}

.site-footer {
  justify-content: space-between;
  gap: 16px;
  padding: 28px clamp(20px, 6vw, 84px);
  color: rgba(20, 33, 43, 0.7);
  border-top: 1px solid var(--line);
  font-weight: 720;
}

.footer-brand,
.footer-contacts,
.footer-contact {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.footer-contacts {
  justify-content: flex-end;
  flex-wrap: wrap;
}

.footer-contact {
  color: var(--blue);
  font-weight: 820;
}

.footer-contact:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 900px) {
  .site-header {
    position: sticky;
    padding: 14px 18px;
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 82px 20px 42px;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(245, 248, 244, 0.96) 0%, rgba(245, 248, 244, 0.88) 48%, rgba(245, 248, 244, 0.5) 100%),
      linear-gradient(180deg, rgba(245, 248, 244, 0) 70%, var(--paper) 100%);
  }

  .hero-art {
    opacity: 0.72;
    object-position: 62% center;
  }

  .ecosystem-grid,
  .showcase-grid {
    grid-template-columns: 1fr;
  }

  .terminal-layout {
    grid-template-columns: 1fr;
  }

  .terminal-shot {
    width: min(280px, 100%);
  }

  .device-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .device-shot {
    grid-template-columns: 1fr;
  }

  .device-shot img {
    order: 0;
  }

  .device-shot figcaption {
    order: 1;
    padding: 16px;
  }

  .device-shot strong {
    font-size: 18px;
  }

  .ecosystem-card {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .store-card {
    grid-template-columns: 1fr;
  }

  .skill-card {
    grid-template-columns: minmax(0, 1fr) minmax(140px, 190px);
  }

  .store-screens {
    grid-template-columns: repeat(3, minmax(120px, 1fr));
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .mac-connect-panel {
    grid-template-columns: 1fr;
  }

  .mac-section .mac-connect-panel {
    grid-template-columns: minmax(0, 1fr) minmax(180px, 240px);
  }

  .project-screens {
    grid-template-columns: repeat(3, minmax(120px, 1fr));
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .mac-phone-preview {
    width: min(240px, 100%);
  }

  .project-screens .mac-phone-preview {
    width: min(170px, 100%);
  }

  .install-gallery {
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .install-preview {
    width: min(220px, 100%);
  }

  .download-section,
  .terminal-section,
  .ecosystem-section,
  .device-section,
  .showcase-section,
  .install-section,
  .faq-section {
    padding: 58px 20px;
  }
}

@media (max-width: 560px) {
  .header-action {
    display: none;
  }

  .skill-card,
  .mac-section .mac-connect-panel {
    grid-template-columns: 1fr;
  }

  .hero-actions a {
    width: 100%;
  }

  .hero-statement {
    font-size: 29px;
  }

  .hero-pills {
    gap: 8px;
    margin-bottom: 22px;
  }

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