@import url("https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
  color-scheme: dark;
  --bg: #0b1728;
  --bg-soft: #0e1c30;
  --card: #11223a;
  --text: #f2f6fc;
  --muted: #a4b3c8;
  --accent: #73e2bd;
  --line: #24364e;
  font-family: "DM Sans", sans-serif;
  scroll-behavior: smooth;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.65; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
code, pre { font-family: "DM Mono", monospace; }
.site-header, .site-footer { display: flex; align-items: center; justify-content: space-between; max-width: 1180px; margin: auto; padding: 22px 30px; }
.site-header { border-bottom: 1px solid rgba(164, 179, 200, .12); }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 700; letter-spacing: -.02em; }
.brand-mark { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 10px; background: var(--accent); color: #0b1728; font-family: "Manrope", sans-serif; font-weight: 800; }
.brand-light { color: var(--muted); font-weight: 500; }
nav { display: flex; align-items: center; gap: 30px; color: var(--muted); font-size: .9rem; }
nav a:hover, .site-footer a:hover, .text-link:hover { color: var(--accent); }
.nav-github { color: var(--text); }
.hero { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 65px; max-width: 1120px; min-height: 510px; margin: auto; padding: 76px 30px 65px; }
.eyebrow { color: var(--accent); font-family: "DM Mono", monospace; font-size: .73rem; letter-spacing: .11em; font-weight: 500; }
.status-dot { display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px rgba(115, 226, 189, .65); }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: "Manrope", sans-serif; letter-spacing: -.045em; }
h1 { margin: 20px 0; font-size: clamp(2.5rem, 5.3vw, 4.25rem); line-height: 1.12; }
h1 span { color: var(--accent); }
.hero-description { max-width: 550px; color: var(--muted); font-size: 1.05rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 27px; }
.button { display: inline-flex; align-items: center; gap: 12px; padding: 12px 17px; border: 1px solid var(--line); border-radius: 7px; font-weight: 600; font-size: .9rem; transition: transform .18s ease, border-color .18s ease; }
.button:hover { transform: translateY(-2px); border-color: var(--accent); }
.button-primary { background: var(--accent); border-color: var(--accent); color: #0b1728; }
.button-secondary { background: transparent; }
.hero-note { margin: 18px 0 0; color: #8093aa; font-size: .8rem; }
.code-card { overflow: hidden; border: 1px solid #2a405b; border-radius: 11px; background: #0a1422; box-shadow: 0 22px 65px rgba(0, 0, 0, .25); }
.code-card-top { display: flex; align-items: center; gap: 7px; padding: 14px 17px; border-bottom: 1px solid #1e3047; }
.code-card-top > span { width: 8px; height: 8px; border-radius: 50%; background: #e57c73; }
.code-card-top > span:nth-child(2) { background: #e7bb68; }
.code-card-top > span:nth-child(3) { background: #71c990; }
.code-card-top small { margin-left: auto; color: #8192a8; }
pre { overflow-x: auto; margin: 0; padding: 23px; color: #dce8f5; font-size: .81rem; line-height: 2; }
.code-muted { color: #7389a1; }
.code-card-footer { padding: 13px 20px; border-top: 1px solid #1e3047; color: var(--muted); font-size: .81rem; }
.terminal-check { margin-right: 6px; color: var(--accent); }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; max-width: 1120px; margin: 0 auto; padding: 24px 30px 30px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.metrics div { display: flex; flex-direction: column; }
.metrics strong { font-family: "Manrope", sans-serif; font-size: 1.05rem; }
.metrics span { color: var(--muted); font-size: .82rem; }
.section, .architecture, .commands-section { max-width: 1120px; margin: auto; padding: 100px 30px; }
.section-heading { max-width: 650px; margin-bottom: 35px; }
.section-heading h2, .setup-copy h2, .hosting-callout h2 { margin-bottom: 12px; font-size: clamp(1.8rem, 3.6vw, 2.65rem); line-height: 1.2; }
.section-heading > p:last-child, .setup-copy > p:not(.eyebrow), .hosting-callout p:not(.eyebrow) { color: var(--muted); }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.feature-card { min-height: 238px; padding: 23px 20px; border: 1px solid var(--line); border-radius: 9px; background: linear-gradient(155deg, #11223a, #0e1c30); }
.feature-icon { display: grid; width: 38px; height: 38px; place-items: center; margin-bottom: 19px; border-radius: 9px; font-family: "DM Mono", monospace; }
.icon-blue { background: #193a57; color: #7bc2ed; }.icon-green { background: #183c37; color: #73e2bd; }.icon-purple { background: #302849; color: #b8a0ed; }.icon-orange { background: #423426; color: #edbb7b; }
.feature-card h3 { margin-bottom: 9px; font-size: 1rem; }
.feature-card p { min-height: 77px; margin-bottom: 14px; color: var(--muted); font-size: .84rem; }
.feature-card a, .text-link { color: var(--accent); font-size: .84rem; font-weight: 600; }
.architecture { padding-top: 38px; }
.architecture-flow { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.flow-card { display: flex; flex: 1; flex-direction: column; gap: 3px; min-height: 112px; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg-soft); }
.flow-number { color: var(--accent); font: .7rem "DM Mono", monospace; }
.flow-card strong { margin-top: 7px; font-size: .9rem; }
.flow-card small { color: var(--muted); font-size: .74rem; }
.flow-target { border-color: #3b6d65; background: #102c30; }
.flow-arrow { color: #60758e; }
.folder-list { display: grid; grid-template-columns: auto 1fr auto 1fr; gap: 13px 18px; align-items: center; margin-top: 27px; padding: 20px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); font-size: .84rem; }
.folder-list code, .setup-copy code, .alt-setup code { color: var(--accent); }
.setup-section { display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: 60px; padding: 76px max(30px, calc((100% - 1060px) / 2)); background: #0e1c30; }
.setup-copy > p:not(.eyebrow) { margin-bottom: 20px; }
.setup-tabs { overflow: hidden; border: 1px solid #2a405b; border-radius: 9px; background: #0a1422; }
.tab-bar { display: flex; gap: 22px; padding: 13px 18px; border-bottom: 1px solid #1e3047; color: var(--muted); font-size: .8rem; }
.tab-bar span:first-child { color: var(--text); }
.setup-tabs pre { font-size: .76rem; line-height: 1.85; }
.setup-divider { height: 1px; background: #1e3047; }
.alt-setup { margin: 0; padding: 13px 18px; color: var(--muted); font-size: .76rem; }
.commands-section { padding-top: 85px; padding-bottom: 85px; }
.command-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.command-grid div { display: flex; flex-direction: column; gap: 9px; padding: 17px; border: 1px solid var(--line); border-radius: 7px; background: var(--bg-soft); }
.command-grid span { color: var(--muted); font-size: .82rem; }
.command-grid code { color: #d6e5f4; font-size: .78rem; overflow-wrap: anywhere; }
.safety-note { margin: 23px 0 0; padding: 17px 19px; border-left: 3px solid #d3a967; background: #201f20; color: #bbc3ce; font-size: .83rem; }
.safety-note strong { color: #f0d19b; }
.hosting-callout { display: flex; align-items: center; justify-content: space-between; gap: 35px; max-width: 1060px; margin: 0 auto 85px; padding: 32px; border: 1px solid #31524e; border-radius: 10px; background: linear-gradient(120deg, #112d32, #11223a); }
.hosting-callout h2 { font-size: 1.65rem; }
.hosting-callout p:not(.eyebrow) { max-width: 620px; margin-bottom: 0; font-size: .88rem; }
.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; }
.site-footer p { margin: 0; }

@media (max-width: 850px) {
  .hero { grid-template-columns: 1fr; gap: 35px; padding-top: 60px; }
  .code-card { max-width: 600px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .setup-section { grid-template-columns: 1fr; gap: 30px; padding: 65px 30px; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .site-header { align-items: flex-start; gap: 15px; flex-direction: column; }
  nav { width: 100%; flex-wrap: wrap; gap: 10px 20px; font-size: .82rem; }
  .hero { padding: 45px 22px; }
  .metrics, .section, .architecture, .commands-section { padding-right: 22px; padding-left: 22px; }
  .metrics { gap: 17px; }
  .feature-grid, .command-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 0; }
  .feature-card p { min-height: 0; }
  .architecture-flow { align-items: stretch; flex-direction: column; }
  .flow-card { min-height: auto; }
  .flow-arrow { align-self: center; transform: rotate(90deg); }
  .folder-list { grid-template-columns: auto 1fr; }
  .setup-section { padding: 55px 22px; }
  .setup-tabs pre { font-size: .68rem; padding: 17px 12px; }
  .tab-bar { gap: 12px; font-size: .71rem; }
  .hosting-callout { align-items: flex-start; flex-direction: column; margin: 0 22px 55px; padding: 24px; }
  .site-footer { align-items: flex-start; flex-direction: column; gap: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
