/* WWM - Windows Workspace Manager
   GitHub Pages stylesheet */

:root {
  --bg: #0b0e14;
  --bg-alt: #10151f;
  --surface: #161c29;
  --surface-2: #1d2535;
  --border: #28334a;
  --text: #e6ebf4;
  --text-muted: #9aa6ba;
  --accent: #4f8cff;
  --accent-2: #7ee0ff;
  --gradient: linear-gradient(100deg, var(--accent) 0%, var(--accent-2) 100%);
  --code-bg: #0e1522;
  --radius: 0px;
  --radius-lg: 0px;
  --maxw: 1060px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

a {
  color: var(--accent-2);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--accent);
  color: #fff;
  padding: 8px 14px;
  border-radius: 0;
  z-index: 100;
}

.skip-link:focus {
  left: 8px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 14, 20, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  color: var(--text);
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 0;
  background: var(--gradient);
  color: #06101f;
  font-size: 1.05rem;
}

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: color 0.15s ease;
}

.nav-links a:hover {
  color: var(--text);
  text-decoration: none;
}

/* Hero */
.hero {
  padding: 96px 0 88px;
  background:
    radial-gradient(60% 80% at 70% 0%, rgba(79, 140, 255, 0.16) 0%, transparent 60%),
    radial-gradient(50% 70% at 15% 20%, rgba(126, 224, 255, 0.08) 0%, transparent 55%);
}

.hero-inner {
  max-width: 760px;
}

.badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-2);
  background: rgba(79, 140, 255, 0.12);
  border: 1px solid rgba(79, 140, 255, 0.35);
  padding: 6px 12px;
  border-radius: 0;
  margin: 0 0 24px;
}

h1 {
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
}

.gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  font-size: 1.18rem;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 0 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 24px;
}

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 0;
  font-weight: 600;
  font-size: 0.98rem;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--gradient);
  color: #06101f;
  box-shadow: 0 8px 24px rgba(79, 140, 255, 0.3);
}

.btn-ghost {
  color: var(--text);
  border: 1px solid var(--border);
  background: var(--surface);
}

.btn-ghost:hover {
  border-color: var(--accent);
}

.hero-note {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}

/* Sections */
.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-title {
  font-size: 1.9rem;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}

.section-sub {
  color: var(--text-muted);
  margin: 0 0 32px;
  max-width: 720px;
}

.section-sub code {
  color: var(--text);
}

/* Feature grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 24px;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 1.08rem;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.96rem;
}

/* Feature list */
.feature-list {
  margin: 0;
  padding-left: 20px;
  color: var(--text-muted);
}

.feature-list li {
  margin-bottom: 12px;
}

.feature-list li:last-child {
  margin-bottom: 0;
}

.feature-list strong {
  color: var(--text);
}

code {
  font-family: "Cascadia Code", "Consolas", "SFMono-Regular", monospace;
  font-size: 0.88em;
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 2px 6px;
  color: #d7e3f8;
}

/* Table */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 0;
  background: var(--surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}

th,
td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

thead th {
  background: var(--surface-2);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

tbody tr:last-child td {
  border-bottom: none;
}

tbody tr:hover {
  background: rgba(79, 140, 255, 0.05);
}

kbd {
  font-family: "Cascadia Code", "Consolas", monospace;
  font-size: 0.8rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-radius: 0;
  padding: 3px 7px;
  color: var(--text);
  white-space: nowrap;
}

/* Code block */
.code {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 22px;
  overflow-x: auto;
  font-family: "Cascadia Code", "Consolas", "SFMono-Regular", monospace;
  font-size: 0.9rem;
  line-height: 1.7;
  margin: 0 0 24px;
}

.code code {
  background: none;
  border: none;
  padding: 0;
  color: #d7e3f8;
}

.tok-comment { color: #64748b; }
.tok-key     { color: #7ee0ff; }
.tok-str     { color: #a5d6a7; }
.tok-num     { color: #ffb86b; }

/* Install */
.install-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.install-grid h3 {
  margin: 0 0 14px;
  font-size: 1.08rem;
}

.steps {
  margin: 0;
  padding-left: 22px;
  color: var(--text-muted);
}

.steps li {
  margin-bottom: 10px;
}

.muted {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.build-note {
  border: 1px dashed var(--border);
  border-radius: 0;
  padding: 20px 24px;
}

.build-note h3 {
  margin: 0 0 14px;
  font-size: 1.05rem;
}

.build-note .code {
  margin: 0;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 36px 0;
  background: var(--bg-alt);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.footer-inner p {
  margin: 0;
}

/* Responsive nav */
@media (max-width: 640px) {
  .nav {
    flex-direction: column;
    height: auto;
    padding: 14px 0;
    gap: 10px;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px 18px;
  }

  .hero {
    padding: 60px 0;
  }
}
