:root {
  color-scheme: dark;
  --bg: #0b1218;
  --surface: #111c24;
  --surface-2: #16242d;
  --line: #283943;
  --text: #f4f7f8;
  --muted: #98aab4;
  --green: #65d6b5;
  --yellow: #f2c66f;
  --coral: #ee806c;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: inherit; text-decoration: none; }

.site-header { width: min(1180px, calc(100% - 48px)); height: 82px; margin: 0 auto; display: flex; align-items: center; gap: 36px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 11px; font-size: 18px; font-weight: 800; }
.brand img { display: block; }
nav { display: flex; gap: 28px; margin-left: auto; }
nav a { color: var(--muted); font-size: 13px; font-weight: 650; }
nav a:hover { color: var(--text); }
.header-action { border: 1px solid var(--line); padding: 11px 15px; font-size: 12px; font-weight: 750; }
.header-action:hover { border-color: var(--green); color: var(--green); }

main { overflow: hidden; }
.hero { width: min(1180px, calc(100% - 48px)); min-height: 660px; margin: 0 auto; display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 70px; }
.eyebrow { color: var(--green); font-size: 11px; font-weight: 800; letter-spacing: 2px; margin: 0 0 18px; }
.eyebrow span { width: 24px; height: 1px; display: inline-block; vertical-align: middle; margin-right: 8px; background: var(--green); }
h1 { max-width: 690px; margin: 0; font-size: clamp(48px, 6vw, 78px); line-height: 1.03; letter-spacing: 0; }
.hero-description { max-width: 590px; color: var(--muted); font-size: 17px; line-height: 1.7; margin: 26px 0 30px; }
.hero-actions { display: flex; align-items: center; gap: 22px; }
.primary-action { display: inline-flex; align-items: center; gap: 18px; min-height: 50px; padding: 0 18px; color: #0b1715; background: var(--green); font-size: 13px; font-weight: 800; }
.primary-action:hover { background: #80e4c7; }
.text-action { color: var(--muted); font-size: 13px; border-bottom: 1px solid var(--line); padding: 10px 0; }
.text-action:hover { color: var(--text); }

.system-visual { min-height: 430px; border: 1px solid var(--line); background: #0e181f; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.system-visual::before { content: ""; position: absolute; inset: 0; opacity: .18; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 32px 32px; }
.visual-topline { z-index: 1; display: flex; justify-content: space-between; color: #6f858f; font: 700 9px/1 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: 1.2px; padding: 16px; border-bottom: 1px solid var(--line); }
.online { color: var(--green); }
.visual-core { z-index: 1; flex: 1; display: grid; place-items: center; position: relative; }
.visual-core img { position: relative; z-index: 2; filter: drop-shadow(0 14px 32px rgba(101,214,181,.22)); }
.orbit { position: absolute; border: 1px solid #345048; border-radius: 50%; }
.orbit-one { width: 210px; height: 210px; }
.orbit-two { width: 310px; height: 310px; border-color: #273d38; }
.visual-metrics { z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.visual-metrics div { padding: 16px; border-right: 1px solid var(--line); }
.visual-metrics div:last-child { border: 0; }
.visual-metrics strong, .visual-metrics span { display: block; }
.visual-metrics strong { color: var(--yellow); font: 800 13px/1 ui-monospace, SFMono-Regular, Consolas, monospace; }
.visual-metrics span { color: #70848e; font-size: 9px; margin-top: 7px; }

.projects { padding: 100px max(24px, calc((100% - 1180px) / 2)); background: #f1f4f3; color: #142129; }
.section-heading { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: end; margin-bottom: 48px; }
.section-heading .eyebrow, .about .eyebrow { color: #237b68; margin-bottom: 10px; }
h2 { font-size: clamp(34px, 4vw, 52px); line-height: 1.08; margin: 0; }
.section-heading > p { color: #687980; line-height: 1.7; margin: 0; }
.project-item { display: grid; grid-template-columns: 56px 90px 1fr auto; gap: 24px; align-items: center; padding: 30px 0; border-top: 1px solid #cad3d1; border-bottom: 1px solid #cad3d1; }
.project-index { color: #7e8e94; font: 700 12px/1 ui-monospace, SFMono-Regular, Consolas, monospace; }
.project-icon { width: 76px; height: 76px; object-fit: cover; border-radius: 16px; }
.project-meta { display: flex; gap: 12px; color: #237b68; font-size: 9px; font-weight: 800; letter-spacing: 1px; }
.project-copy h3 { margin: 7px 0 8px; font-size: 27px; }
.project-copy p { max-width: 660px; color: #687980; line-height: 1.6; margin: 0; font-size: 14px; }
.project-link { display: inline-flex; gap: 8px; margin-top: 16px; color: #237b68; font-size: 12px; font-weight: 800; }
.project-link:hover { color: #145848; }
.project-platforms { display: flex; gap: 7px; }
.project-platforms span { border: 1px solid #bdc9c6; padding: 7px 9px; font-size: 9px; font-weight: 800; color: #63747a; }
.next-project { min-height: 110px; display: grid; grid-template-columns: 56px 1fr auto; gap: 24px; align-items: center; color: #87969a; border-bottom: 1px solid #cad3d1; }
.next-project span { font: 700 12px/1 ui-monospace, SFMono-Regular, Consolas, monospace; }
.next-project p { font-size: 17px; font-weight: 750; }
.next-project small { font-size: 9px; font-weight: 800; letter-spacing: 1px; }
.downloads { padding: 88px max(24px, calc((100% - 1180px) / 2)); display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; border-top: 1px solid var(--line); }
.downloads .eyebrow { color: var(--yellow); }
.download-copy > p { max-width: 500px; color: var(--muted); font-size: 15px; line-height: 1.75; margin: 0 0 24px; }
.download-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.store-button { min-width: 178px; min-height: 58px; display: inline-flex; align-items: center; gap: 11px; padding: 9px 14px; border: 1px solid var(--green); background: var(--green); color: #0b1715; }
.store-button:hover { background: #80e4c7; }
.store-button-muted { border-color: var(--line); background: transparent; color: var(--text); }
.store-button-muted:hover { border-color: var(--muted); background: var(--surface); }
.store-icon { width: 20px; text-align: center; font-size: 19px; font-weight: 800; }
.store-button small, .store-button strong { display: block; }
.store-button small { font-size: 8px; font-weight: 800; letter-spacing: .7px; opacity: .72; }
.store-button strong { font-size: 14px; margin-top: 3px; }

.about { width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 110px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.about > p { color: var(--muted); font-size: 16px; line-height: 1.8; margin: 28px 0 0; }
footer { width: min(1180px, calc(100% - 48px)); min-height: 120px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 38px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
footer a:hover { color: var(--green); }

@media (max-width: 820px) {
  .site-header { width: min(100% - 32px, 1180px); height: 70px; }
  nav, .header-action { display: none; }
  .hero { width: min(100% - 32px, 1180px); min-height: auto; padding: 76px 0 58px; grid-template-columns: 1fr; gap: 48px; }
  h1 { font-size: clamp(43px, 13vw, 62px); }
  .system-visual { min-height: 370px; }
  .projects { padding: 72px 20px; }
  .section-heading, .downloads, .about { grid-template-columns: 1fr; gap: 22px; }
  .project-item { grid-template-columns: 38px 70px 1fr; align-items: start; }
  .project-icon { width: 64px; height: 64px; border-radius: 13px; }
  .project-platforms { grid-column: 3; flex-wrap: wrap; }
  .about { width: min(100% - 40px, 1180px); padding: 78px 0; }
  footer { width: min(100% - 40px, 1180px); grid-template-columns: 1fr; gap: 15px; padding: 30px 0; }
}

@media (max-width: 520px) {
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .system-visual { min-height: 330px; }
  .orbit-one { width: 170px; height: 170px; }
  .orbit-two { width: 245px; height: 245px; }
  .visual-metrics div { padding: 13px 10px; }
  .project-item { grid-template-columns: 32px 1fr; }
  .project-icon { grid-column: 2; }
  .project-copy, .project-platforms { grid-column: 2; }
  .next-project { grid-template-columns: 32px 1fr auto; gap: 10px; }
}
