/* ── Reset & Base ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif;
  background: #fff;
  color: #1d1d1f;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
code { font-family: 'SF Mono', 'JetBrains Mono', 'Menlo', monospace; }

/* ── Nav ───────────────────────────────────────────────────────── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0,0,0,.08);
}
.nav-inner {
  max-width: 1080px; margin: 0 auto;
  display: flex; align-items: center; gap: 2rem;
  padding: 0 2rem; height: 52px;
}
.logo { font-size: 1.1rem; font-weight: 700; color: #0071e3; letter-spacing: -.02em; }
nav ul { display: flex; gap: 1.8rem; list-style: none; flex: 1; }
nav ul a { font-size: .88rem; color: #424245; transition: color .15s; }
nav ul a:hover, nav ul a.active { color: #0071e3; }
.btn-nav {
  background: #0071e3; color: #fff;
  padding: .4rem 1rem; border-radius: 20px;
  font-size: .82rem; font-weight: 600;
  transition: background .15s; white-space: nowrap;
}
.btn-nav:hover { background: #0077ed; }

/* ── Hero ──────────────────────────────────────────────────────── */
.hero {
  padding: 6rem 2rem 4rem;
  text-align: center;
  max-width: 780px; margin: 0 auto;
}
.hero-sm { padding: 4rem 2rem 3rem; }
.badge {
  display: inline-block;
  background: #f5f5f7; color: #0071e3;
  border-radius: 20px; padding: .25rem .9rem;
  font-size: .78rem; font-weight: 600; margin-bottom: 1.4rem;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 700; line-height: 1.08;
  letter-spacing: -.035em; margin-bottom: 1.2rem;
  color: #1d1d1f;
}
.hero h1 span { color: #0071e3; }
.hero-sub { font-size: 1.05rem; color: #6e6e73; max-width: 520px; margin: 0 auto 2.5rem; }

/* ── OS Pills ──────────────────────────────────────────────────── */
.os-pills { display: flex; justify-content: center; gap: .5rem; margin-bottom: 1rem; }
.pill {
  background: #f5f5f7; border: none; color: #424245;
  padding: .4rem 1rem; border-radius: 20px; font-size: .82rem;
  cursor: pointer; font-family: inherit; transition: all .15s;
}
.pill.active { background: #0071e3; color: #fff; }
.pill:hover:not(.active) { background: #e8e8ed; }

/* ── Install Box ───────────────────────────────────────────────── */
.install-box {
  display: inline-flex; align-items: center; gap: 1rem;
  background: #f5f5f7; border-radius: 12px;
  padding: 1rem 1.4rem; max-width: 100%;
  border: 1px solid rgba(0,0,0,.06);
}
.dollar { color: #0071e3; font-family: 'SF Mono', monospace; font-weight: 600; }
.install-box code { font-size: .88rem; color: #1d1d1f; word-break: break-all; }
.copy {
  background: #fff; border: 1px solid rgba(0,0,0,.12);
  color: #424245; padding: .3rem .8rem; border-radius: 7px;
  font-size: .78rem; cursor: pointer; white-space: nowrap;
  font-family: inherit; transition: all .15s;
}
.copy:hover { background: #0071e3; color: #fff; border-color: #0071e3; }
.req { margin-top: .8rem; font-size: .82rem; color: #6e6e73; }
.req a { color: #0071e3; }

/* ── Terminal Demo ─────────────────────────────────────────────── */
.demo-section { max-width: 820px; margin: 0 auto; padding: 0 2rem 5rem; }
.terminal {
  background: #1c1c1e; border-radius: 14px; overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.15), 0 0 0 1px rgba(0,0,0,.06);
}
.tbar {
  background: #2c2c2e; padding: .75rem 1rem;
  display: flex; align-items: center; gap: .5rem;
}
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.r { background: #ff5f56; }
.dot.y { background: #ffbd2e; }
.dot.g { background: #27c93f; }
.ttitle { font-size: .78rem; color: #8e8e93; margin: 0 auto; font-family: 'SF Mono', monospace; }
.tbody { padding: 1.5rem; font-family: 'SF Mono', 'Menlo', monospace; font-size: .84rem; line-height: 2; color: #e5e5ea; white-space: pre-wrap; }
.tp   { color: #30d158; }
.tc   { color: #e5e5ea; }
.ta   { color: #bf5af2; font-weight: 600; }
.tt   { color: #ffd60a; }
.tg   { color: #8e8e93; }
.tgreen { color: #30d158; }
.tcyan  { color: #32ade6; }

/* ── Sections ──────────────────────────────────────────────────── */
section { padding: 5rem 2rem; }
.features, .install-section, .commands-section, .info-section { max-width: 1080px; margin: 0 auto; }
h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 700; letter-spacing: -.03em; margin-bottom: .8rem; }
.section-sub { font-size: 1rem; color: #6e6e73; margin-bottom: 2.5rem; }
.divider { height: 1px; background: #f5f5f7; max-width: 1080px; margin: 0 auto; }

/* ── Cards ─────────────────────────────────────────────────────── */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1px; background: #f5f5f7; border: 1px solid #f5f5f7; border-radius: 16px; overflow: hidden; }
.card { background: #fff; padding: 2rem; transition: background .15s; }
.card:hover { background: #fafafa; }
.card-icon { font-size: 1.6rem; margin-bottom: .8rem; }
.card h3 { font-size: 1rem; font-weight: 600; margin-bottom: .4rem; }
.card p { font-size: .88rem; color: #6e6e73; line-height: 1.5; }
.tag { display: inline-block; background: #f5f5f7; color: #0071e3; font-size: .72rem; padding: .2rem .6rem; border-radius: 5px; margin-top: .8rem; }

/* ── Install Cards ─────────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.5rem; margin-top: 2.5rem; }
.icard { background: #f5f5f7; border-radius: 16px; padding: 1.8rem; }
.icard h3 { font-size: .95rem; font-weight: 600; margin-bottom: 1.2rem; }
.code-block { background: #fff; border-radius: 8px; padding: .7rem 1rem; margin-bottom: .7rem; display: flex; align-items: center; justify-content: space-between; gap: .8rem; border: 1px solid rgba(0,0,0,.06); }
.code-block code { font-size: .78rem; color: #1d1d1f; flex: 1; word-break: break-all; }
.code-block button { background: none; border: none; color: #0071e3; font-size: .75rem; cursor: pointer; white-space: nowrap; font-family: inherit; padding: .1rem .4rem; border-radius: 4px; transition: background .15s; }
.code-block button:hover { background: rgba(0,113,227,.1); }
.hint { font-size: .78rem; color: #6e6e73; margin-top: .5rem; }
.hint code { background: #e8e8ed; padding: .1rem .3rem; border-radius: 3px; }

/* ── Commands ──────────────────────────────────────────────────── */
.cmd-filter { margin: 2rem 0 1.2rem; }
.cmd-filter input {
  width: 100%; max-width: 400px;
  background: #f5f5f7; border: 1px solid rgba(0,0,0,.06);
  border-radius: 10px; padding: .65rem 1rem;
  font-size: .88rem; font-family: inherit; color: #1d1d1f;
  outline: none; margin-bottom: 1rem; transition: border-color .15s;
}
.cmd-filter input:focus { border-color: #0071e3; background: #fff; }
.cats { display: flex; gap: .5rem; flex-wrap: wrap; }
.cat {
  background: #f5f5f7; border: none; color: #424245;
  padding: .3rem .8rem; border-radius: 20px; font-size: .78rem;
  cursor: pointer; font-family: inherit; transition: all .15s;
}
.cat.active { background: #0071e3; color: #fff; }
.cat:hover:not(.active) { background: #e8e8ed; }
.cmd-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1px; background: #f5f5f7; border: 1px solid #f5f5f7; border-radius: 16px; overflow: hidden; margin-top: 1.5rem; }
.cmd { background: #fff; padding: .9rem 1.2rem; display: flex; align-items: baseline; gap: .8rem; transition: background .1s; }
.cmd:hover { background: #fafafa; }
.cmd code { color: #0071e3; font-size: .82rem; white-space: nowrap; min-width: 110px; }
.cmd span { font-size: .83rem; color: #6e6e73; }

/* ── Info page ─────────────────────────────────────────────────── */
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.info-text h2 { margin-bottom: 1rem; }
.info-text p { color: #424245; margin-bottom: 1rem; font-size: .95rem; }
.info-diagram { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; justify-content: center; }
.diag-box { background: #f5f5f7; border-radius: 12px; padding: 1rem 1.4rem; text-align: center; font-size: .88rem; font-weight: 600; line-height: 1.4; }
.diag-box.accent { background: #0071e3; color: #fff; }
.diag-box small { display: block; font-weight: 400; font-size: .75rem; color: #6e6e73; margin-top: .2rem; }
.diag-box.accent small { color: rgba(255,255,255,.7); }
.diag-arrow { font-size: 1.2rem; color: #c7c7cc; }
.code-example { background: #f5f5f7; border-radius: 16px; padding: 1.5rem; margin-top: 2rem; }
.code-label { font-size: .82rem; color: #6e6e73; margin-bottom: .8rem; }
.code-example pre { background: #fff; border-radius: 10px; padding: 1.2rem; overflow-x: auto; border: 1px solid rgba(0,0,0,.06); }
.code-example code { font-size: .82rem; color: #1d1d1f; }

/* ── FAQ ───────────────────────────────────────────────────────── */
.faq { margin-top: 2rem; border: 1px solid #f5f5f7; border-radius: 16px; overflow: hidden; }
.faq-item { border-bottom: 1px solid #f5f5f7; }
.faq-item:last-child { border-bottom: none; }
.faq-item button {
  width: 100%; background: #fff; border: none; padding: 1.2rem 1.5rem;
  text-align: left; font-size: .92rem; font-weight: 500; color: #1d1d1f;
  cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  font-family: inherit; transition: background .1s;
}
.faq-item button:hover { background: #fafafa; }
.faq-item button span { color: #0071e3; font-size: 1.2rem; font-weight: 400; }
.faq-body { font-size: .88rem; color: #424245; padding: 0 1.5rem; max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .3s; }
.faq-body code { background: #f5f5f7; padding: .15rem .4rem; border-radius: 4px; }
.faq-item.open .faq-body { max-height: 300px; padding: 0 1.5rem 1.2rem; }

/* ── Roadmap ───────────────────────────────────────────────────── */
.roadmap { margin-top: 2rem; display: flex; flex-direction: column; gap: 0; }
.rm-item { display: flex; gap: 1.5rem; padding: 1.5rem 0; border-bottom: 1px solid #f5f5f7; }
.rm-item:last-child { border-bottom: none; }
.rm-dot { width: 12px; height: 12px; border-radius: 50%; background: #c7c7cc; flex-shrink: 0; margin-top: .35rem; }
.rm-item.done .rm-dot { background: #0071e3; }
.rm-item strong { font-size: .95rem; display: block; margin-bottom: .3rem; }
.rm-item p { font-size: .88rem; color: #6e6e73; }

/* ── Footer ────────────────────────────────────────────────────── */
footer { border-top: 1px solid #f5f5f7; padding: 2rem; margin-top: 4rem; }
.footer-inner { max-width: 1080px; margin: 0 auto; display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; }
.flogo { font-weight: 700; color: #0071e3; font-size: 1rem; }
.flinks { display: flex; gap: 1.5rem; flex: 1; flex-wrap: wrap; }
.flinks a { font-size: .82rem; color: #6e6e73; transition: color .15s; }
.flinks a:hover { color: #0071e3; }
.fcopy { font-size: .78rem; color: #c7c7cc; margin-left: auto; }

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 680px) {
  nav ul { display: none; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }
  .cmd-list { grid-template-columns: 1fr; }
  .install-box { flex-direction: column; text-align: left; }
  .hero h1 { font-size: 2.2rem; }
}
