/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0d0f1a;
  --bg2: #13162a;
  --card: #1a1e35;
  --card2: #1f2440;
  --border: rgba(255,255,255,0.08);
  --text: #e8eaf6;
  --text-muted: #8892b0;
  --accent: #6c63ff;
  --accent2: #a78bfa;
  --green: #34d399;
  --red: #f87171;
  --yellow: #fbbf24;
  --ms-blue: #0078d4;
  --apple-gray: #555;
  --radius: 14px;
  --shadow: 0 8px 32px rgba(0,0,0,0.4);
}

html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; min-height: 100vh; }

/* ===== HEADER ===== */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(13,15,26,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
}
.header-inner { max-width: 1400px; margin: auto; display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 1rem; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: .6rem; font-weight: 700; font-size: 1rem; white-space: nowrap; }
.logo-icon { font-size: 1.4rem; }
.nav { display: flex; gap: .3rem; flex-wrap: wrap; }
.nav-link { padding: .4rem .9rem; border-radius: 8px; text-decoration: none; color: var(--text-muted); font-size: .85rem; font-weight: 500; transition: all .2s; }
.nav-link:hover, .nav-link.active { background: var(--card2); color: var(--text); }
.nav-link.active { color: var(--accent2); }

/* ===== HERO ===== */
.hero {
  padding: 4rem 2rem 3rem;
  max-width: 1400px; margin: auto;
  display: flex; flex-direction: column; gap: 2rem;
}
.hero-content { max-width: 700px; }
.badge { display: inline-block; background: rgba(108,99,255,.15); border: 1px solid rgba(108,99,255,.4); color: var(--accent2); padding: .3rem .9rem; border-radius: 999px; font-size: .8rem; font-weight: 600; letter-spacing: .05em; margin-bottom: 1rem; }
.hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700; line-height: 1.2; margin-bottom: 1rem; }
.gradient-text { background: linear-gradient(135deg, var(--accent), var(--accent2), #60a5fa); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero p { color: var(--text-muted); font-size: 1.05rem; max-width: 580px; }
.hero-cards { display: flex; gap: 1rem; flex-wrap: wrap; }
.mini-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: .6rem 1.2rem; font-size: .9rem; font-weight: 500; display: flex; align-items: center; gap: .4rem; transition: transform .2s, border-color .2s; }
.mini-card:hover { transform: translateY(-2px); border-color: var(--accent); }

/* ===== SECTION ===== */
.section { padding: 2rem 2rem 4rem; }
.container { max-width: 1400px; margin: auto; }
.section-title { font-size: 1.6rem; font-weight: 700; margin-bottom: .4rem; }
.section-sub { color: var(--text-muted); margin-bottom: 2rem; }

/* ===== TABLE ===== */
.table-wrapper { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow); }
.comp-table { width: 100%; border-collapse: collapse; font-size: .85rem; min-width: 1100px; }
.comp-table thead th { background: var(--card2); padding: .9rem 1rem; text-align: left; font-weight: 600; color: var(--accent2); font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; border-bottom: 1px solid var(--border); white-space: nowrap; }
.comp-table tbody tr { border-bottom: 1px solid var(--border); transition: background .2s; }
.comp-table tbody tr:last-child { border-bottom: none; }
.comp-table tbody tr:hover { background: rgba(108,99,255,.05); }
.comp-table td { padding: 1rem; vertical-align: top; color: var(--text); }

/* Row accents */
.row-win11 td:first-child { border-left: 3px solid #0078d4; }
.row-win10 td:first-child { border-left: 3px solid #00b4d8; }
.row-server td:first-child { border-left: 3px solid var(--accent); }
.row-macos td:first-child { border-left: 3px solid #a1a1aa; }

.os-name { display: flex; align-items: flex-start; gap: .7rem; }
.os-icon { font-size: 1.6rem; }
.os-name strong { display: block; font-weight: 600; white-space: nowrap; }
.os-tag { font-size: .7rem; color: var(--text-muted); background: var(--card2); padding: .1rem .5rem; border-radius: 999px; display: inline-block; margin-top: .2rem; }

.dev-badge { padding: .2rem .7rem; border-radius: 999px; font-size: .75rem; font-weight: 600; }
.dev-badge.ms { background: rgba(0,120,212,.2); color: #60a5fa; }
.dev-badge.apple { background: rgba(161,161,170,.15); color: #d4d4d8; }

.lic-badge { font-size: .78rem; color: var(--yellow); background: rgba(251,191,36,.1); padding: .2rem .6rem; border-radius: 6px; white-space: nowrap; }

.req-list, .feat-list { list-style: none; display: flex; flex-direction: column; gap: .25rem; }
.req-list li::before { content: "▸ "; color: var(--accent2); }
.feat-list.green li::before { content: "✓ "; color: var(--green); }
.feat-list.red li::before { content: "✗ "; color: var(--red); }

.sec-badge { padding: .2rem .7rem; border-radius: 999px; font-size: .75rem; font-weight: 600; }
.sec-badge.high { background: rgba(52,211,153,.15); color: var(--green); }
.sec-badge.med { background: rgba(251,191,36,.15); color: var(--yellow); }

.table-note { margin-top: 1.2rem; color: var(--text-muted); font-size: .85rem; background: var(--card); border-left: 3px solid var(--accent2); padding: .8rem 1.2rem; border-radius: 8px; }

/* ===== REPORT SECTIONS ===== */
.report-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.report-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; transition: transform .2s, border-color .2s; }
.report-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.report-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: .5rem; display: flex; align-items: center; gap: .5rem; }
.report-card p, .report-card li { color: var(--text-muted); font-size: .88rem; }
.report-card ul { list-style: none; margin-top: .5rem; display: flex; flex-direction: column; gap: .3rem; }
.report-card ul li::before { content: "→ "; color: var(--accent2); }

.step-list { list-style: none; counter-reset: steps; display: flex; flex-direction: column; gap: 1rem; margin-top: 1.5rem; }
.step-list li { counter-increment: steps; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.2rem 1rem 3.5rem; position: relative; }
.step-list li::before { content: counter(steps); position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); background: var(--accent); color: #fff; width: 1.7rem; height: 1.7rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .8rem; }
.step-list li strong { display: block; font-weight: 600; margin-bottom: .2rem; }
.step-list li span { color: var(--text-muted); font-size: .87rem; }

.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.info-box { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.2rem; }
.info-box .label { font-size: .75rem; font-weight: 600; color: var(--accent2); text-transform: uppercase; letter-spacing: .05em; margin-bottom: .3rem; }
.info-box .value { font-size: .95rem; font-weight: 500; }

.highlight { background: rgba(108,99,255,.1); border: 1px solid rgba(108,99,255,.3); border-radius: var(--radius); padding: 1.2rem 1.5rem; margin: 1.5rem 0; }
.highlight h4 { color: var(--accent2); font-size: .9rem; margin-bottom: .4rem; }
.highlight p { color: var(--text-muted); font-size: .88rem; }

/* ===== FOOTER ===== */
.footer { text-align: center; padding: 2rem; color: var(--text-muted); font-size: .8rem; border-top: 1px solid var(--border); margin-top: 2rem; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .header-inner { height: auto; padding: .8rem 0; }
  .nav-link { font-size: .78rem; padding: .3rem .6rem; }
  .hero { padding: 2rem 1rem; }
  .section { padding: 1rem 1rem 2rem; }
}
