:root {
  --md-ref-typeface-brand: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --md-ref-typeface-plain: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --md-ref-typeface-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;

  /* Light mode colors (blue seed: #2563eb) */
  --md-sys-color-primary: #2563eb;
  --md-sys-color-on-primary: #ffffff;
  --md-sys-color-primary-container: #dbeafe;
  --md-sys-color-on-primary-container: #1e40af;
  --md-sys-color-secondary: #5f6368;
  --md-sys-color-on-secondary: #ffffff;
  --md-sys-color-secondary-container: #e8eaed;
  --md-sys-color-on-secondary-container: #1f1f1f;
  --md-sys-color-tertiary: #7c5c9a;
  --md-sys-color-on-tertiary: #ffffff;
  --md-sys-color-tertiary-container: #f0e4ff;
  --md-sys-color-on-tertiary-container: #311162;
  --md-sys-color-error: #b3261e;
  --md-sys-color-on-error: #ffffff;
  --md-sys-color-error-container: #f9dedc;
  --md-sys-color-on-error-container: #410e0b;
  --md-sys-color-background: #f8faff;
  --md-sys-color-on-background: #1c1b1f;
  --md-sys-color-surface: #f8faff;
  --md-sys-color-on-surface: #1c1b1f;
  --md-sys-color-surface-variant: #e7e0ec;
  --md-sys-color-on-surface-variant: #49454f;
  --md-sys-color-outline: #79747e;
  --md-sys-color-outline-variant: #cac4d0;
  --md-sys-color-inverse-surface: #313033;
  --md-sys-color-inverse-on-surface: #f4eff4;
  --md-sys-color-inverse-primary: #93c5fd;
  --md-sys-color-surface-container-lowest: #ffffff;
  --md-sys-color-surface-container-low: #f0f4ff;
  --md-sys-color-surface-container: #e8edfc;
  --md-sys-color-surface-container-high: #e0e6f5;
  --md-sys-color-surface-container-highest: #d8dfef;
  --md-sys-color-shadow: rgba(0,0,0,0.12);

  /* Elevation shadows */
  --md-sys-elevation-1: 0 1px 3px 1px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --md-sys-elevation-2: 0 2px 6px 2px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --md-sys-elevation-3: 0 4px 8px 3px rgba(0,0,0,.06), 0 1px 3px rgba(0,0,0,.04);

  /* Typography - Display */
  --md-sys-typescale-display-large: 400 57px/64px var(--md-ref-typeface-brand);
  --md-sys-typescale-display-medium: 400 45px/52px var(--md-ref-typeface-brand);
  --md-sys-typescale-display-small: 400 36px/44px var(--md-ref-typeface-brand);
  /* Headline */
  --md-sys-typescale-headline-large: 400 32px/40px var(--md-ref-typeface-brand);
  --md-sys-typescale-headline-medium: 400 28px/36px var(--md-ref-typeface-brand);
  --md-sys-typescale-headline-small: 400 24px/32px var(--md-ref-typeface-brand);
  /* Title */
  --md-sys-typescale-title-large: 500 22px/28px var(--md-ref-typeface-plain);
  --md-sys-typescale-title-medium: 500 16px/24px var(--md-ref-typeface-plain);
  --md-sys-typescale-title-small: 500 14px/20px var(--md-ref-typeface-plain);
  /* Body */
  --md-sys-typescale-body-large: 400 16px/24px var(--md-ref-typeface-plain);
  --md-sys-typescale-body-medium: 400 14px/20px var(--md-ref-typeface-plain);
  --md-sys-typescale-body-small: 400 12px/16px var(--md-ref-typeface-plain);
  /* Label */
  --md-sys-typescale-label-large: 500 14px/20px var(--md-ref-typeface-plain);
  --md-sys-typescale-label-medium: 500 12px/16px var(--md-ref-typeface-plain);
  --md-sys-typescale-label-small: 500 11px/16px var(--md-ref-typeface-plain);

  /* Shape */
  --md-sys-shape-corner-none: 0;
  --md-sys-shape-corner-extra-small: 4px;
  --md-sys-shape-corner-small: 8px;
  --md-sys-shape-corner-medium: 12px;
  --md-sys-shape-corner-large: 16px;
  --md-sys-shape-corner-full: 9999px;

  /* Motion */
  --md-sys-motion-easing-emphasized: cubic-bezier(0.2, 0, 0, 1);
  --md-sys-motion-easing-standard: cubic-bezier(0.2, 0, 0, 1);
  --md-sys-motion-duration-short2: 100ms;
  --md-sys-motion-duration-short3: 150ms;
  --md-sys-motion-duration-short4: 200ms;
  --md-sys-motion-duration-medium2: 300ms;

  /* State */
  --md-sys-state-hover-opacity: .08;
  --md-sys-state-focus-opacity: .12;
  --md-sys-state-pressed-opacity: .12;
  --md-sys-state-disabled-opacity: .38;
}

@media(prefers-color-scheme:dark) {
  :root {
    --md-sys-color-primary: #93c5fd;
    --md-sys-color-on-primary: #1e3a5f;
    --md-sys-color-primary-container: #1e40af;
    --md-sys-color-on-primary-container: #dbeafe;
    --md-sys-color-secondary: #ccc2dc;
    --md-sys-color-on-secondary: #332d41;
    --md-sys-color-secondary-container: #4a4458;
    --md-sys-color-on-secondary-container: #e8def8;
    --md-sys-color-tertiary: #cec3e4;
    --md-sys-color-on-tertiary: #372d4a;
    --md-sys-color-tertiary-container: #4f4367;
    --md-sys-color-on-tertiary-container: #eaddff;
    --md-sys-color-error: #f2b8b5;
    --md-sys-color-on-error: #601410;
    --md-sys-color-error-container: #8c1d18;
    --md-sys-color-on-error-container: #f9dedc;
    --md-sys-color-background: #0f172a;
    --md-sys-color-on-background: #e2e8f0;
    --md-sys-color-surface: #0f172a;
    --md-sys-color-on-surface: #e2e8f0;
    --md-sys-color-surface-variant: #1e293b;
    --md-sys-color-on-surface-variant: #94a3b8;
    --md-sys-color-outline: #475569;
    --md-sys-color-outline-variant: #334155;
    --md-sys-color-inverse-surface: #e2e8f0;
    --md-sys-color-inverse-on-surface: #0f172a;
    --md-sys-color-inverse-primary: #2563eb;
    --md-sys-color-surface-container-lowest: #020617;
    --md-sys-color-surface-container-low: #0f172a;
    --md-sys-color-surface-container: #1e293b;
    --md-sys-color-surface-container-high: #334155;
    --md-sys-color-surface-container-highest: #475569;
    --md-sys-color-shadow: rgba(0,0,0,0.4);

    --md-sys-elevation-1: 0 1px 3px 1px rgba(0,0,0,.3), 0 1px 2px rgba(0,0,0,.2);
    --md-sys-elevation-2: 0 2px 6px 2px rgba(0,0,0,.3), 0 1px 2px rgba(0,0,0,.2);
    --md-sys-elevation-3: 0 4px 8px 3px rgba(0,0,0,.3), 0 1px 3px rgba(0,0,0,.2);
  }
}

/* === Base === */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{
  font:var(--md-sys-typescale-body-large);
  letter-spacing:0.5px;
  background:var(--md-sys-color-background);
  color:var(--md-sys-color-on-surface);
  min-height:100vh;
  -webkit-tap-highlight-color:transparent;
  overscroll-behavior:none;
}
a{color:inherit;text-decoration:none;-webkit-tap-highlight-color:transparent}
img{max-width:100%;height:auto;display:block}

/* === Typography Utilities === */
.typescale-display-large{font:var(--md-sys-typescale-display-large)}
.typescale-display-medium{font:var(--md-sys-typescale-display-medium)}
.typescale-display-small{font:var(--md-sys-typescale-display-small)}
.typescale-headline-large{font:var(--md-sys-typescale-headline-large)}
.typescale-headline-medium{font:var(--md-sys-typescale-headline-medium)}
.typescale-headline-small{font:var(--md-sys-typescale-headline-small)}
.typescale-title-large{font:var(--md-sys-typescale-title-large)}
.typescale-title-medium{font:var(--md-sys-typescale-title-medium)}
.typescale-title-small{font:var(--md-sys-typescale-title-small)}
.typescale-body-large{font:var(--md-sys-typescale-body-large)}
.typescale-body-medium{font:var(--md-sys-typescale-body-medium)}
.typescale-body-small{font:var(--md-sys-typescale-body-small)}
.typescale-label-large{font:var(--md-sys-typescale-label-large)}
.typescale-label-medium{font:var(--md-sys-typescale-label-medium)}
.typescale-label-small{font:var(--md-sys-typescale-label-small)}

/* === Top App Bar === */
.top-bar{
  position:sticky;top:0;z-index:20;
  height:64px;padding:0 16px;
  display:flex;align-items:center;justify-content:space-between;
  background:var(--md-sys-color-surface-container);
  transition:background var(--md-sys-motion-duration-short4) var(--md-sys-motion-easing-standard);
}
.top-bar.scrolled{
  background:var(--md-sys-color-surface-container-high);
}
.top-bar-title{
  font:var(--md-sys-typescale-title-large);
  letter-spacing:0;
  background:linear-gradient(135deg,var(--md-sys-color-primary),var(--md-sys-color-tertiary));
  -webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;
  white-space:nowrap;
}
.top-bar-actions{display:flex;align-items:center;gap:8px}

/* === Buttons === */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  height:40px;padding:0 24px;
  border-radius:var(--md-sys-shape-corner-full);
  border:none;cursor:pointer;
  font:var(--md-sys-typescale-label-large);
  letter-spacing:0.1px;
  transition:all var(--md-sys-motion-duration-short4) var(--md-sys-motion-easing-standard);
  position:relative;overflow:hidden;
  white-space:nowrap;
}
.btn-primary{background:var(--md-sys-color-primary);color:var(--md-sys-color-on-primary)}
.btn-primary:hover{box-shadow:var(--md-sys-elevation-2)}
.btn-tonal{background:var(--md-sys-color-secondary-container);color:var(--md-sys-color-on-secondary-container)}
.btn-outline{
  background:transparent;
  border:1px solid var(--md-sys-color-outline);
  color:var(--md-sys-color-primary);
}
.btn-text{background:transparent;color:var(--md-sys-color-primary);padding:0 12px}
.btn-elevated{
  background:var(--md-sys-color-surface-container-low);
  color:var(--md-sys-color-primary);
  box-shadow:var(--md-sys-elevation-1);
}

/* === State Layer === */
.state-layer{position:relative;overflow:hidden}
.state-layer::before{
  content:'';position:absolute;inset:0;border-radius:inherit;
  background:currentColor;opacity:0;
  transition:opacity var(--md-sys-motion-duration-short3) var(--md-sys-motion-easing-standard);
  pointer-events:none;
}
.state-layer:hover::before{opacity:var(--md-sys-state-hover-opacity)}
.state-layer:focus-visible::before{opacity:var(--md-sys-state-focus-opacity)}
.state-layer:active::before{opacity:var(--md-sys-state-pressed-opacity)}

/* === Ripple === */
.md-ripple{
  position:absolute;border-radius:50%;
  background:var(--md-sys-color-primary);
  opacity:.12;
  transform:scale(0);
  animation:ripple-anim var(--md-sys-motion-duration-medium2) var(--md-sys-motion-easing-standard) forwards;
  pointer-events:none;
}
@keyframes ripple-anim{
  0%{transform:scale(0);opacity:.12}
  100%{transform:scale(4);opacity:0}
}

/* === Hero === */
.hero{
  padding:48px 16px 32px;
  text-align:center;
  background:var(--md-sys-color-surface-container-low);
  position:relative;
  overflow:hidden;
}
.hero::before{
  content:'';
  position:absolute;
  top:-50%;right:-50%;
  width:100%;height:100%;
  background:radial-gradient(circle at 30% 40%, var(--md-sys-color-primary-container) 0%, transparent 60%);
  opacity:.4;
  pointer-events:none;
}
.hero-content{position:relative;z-index:1;max-width:640px;margin:0 auto}
.hero-icon{
  width:72px;height:72px;
  border-radius:var(--md-sys-shape-corner-large);
  background:var(--md-sys-color-primary-container);
  color:var(--md-sys-color-primary);
  display:flex;align-items:center;justify-content:center;
  margin:0 auto 20px;
}
.hero-icon svg{width:40px;height:40px;fill:currentColor}
.hero h1{
  font:var(--md-sys-typescale-display-small);
  margin-bottom:8px;
  background:linear-gradient(135deg,var(--md-sys-color-primary),var(--md-sys-color-tertiary));
  -webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;
}
.hero .subtitle{
  font:var(--md-sys-typescale-headline-small);
  color:var(--md-sys-color-on-surface);
  margin-bottom:12px;
}
.hero .desc{
  font:var(--md-sys-typescale-body-large);
  color:var(--md-sys-color-on-surface-variant);
  margin-bottom:24px;
}
.hero-actions{display:flex;flex-wrap:wrap;gap:12px;justify-content:center}
.hero-stats{
  display:flex;flex-wrap:wrap;gap:12px;justify-content:center;
  margin-top:28px;
}
.hero-stat{
  background:var(--md-sys-color-surface-container);
  border-radius:var(--md-sys-shape-corner-extra-small);
  padding:12px 20px;
  text-align:center;
  min-width:100px;
}
.hero-stat-value{
  font:var(--md-sys-typescale-title-large);
  color:var(--md-sys-color-primary);
}
.hero-stat-label{
  font:var(--md-sys-typescale-label-small);
  color:var(--md-sys-color-on-surface-variant);
  text-transform:uppercase;
  letter-spacing:0.5px;
  margin-top:2px;
}

/* === Content Layout === */
.content{
  max-width:880px;margin:0 auto;
  padding:0 16px 80px;
}
.section{
  padding:32px 0;
}
.section-header{
  display:flex;align-items:center;justify-content:space-between;
  margin-bottom:16px;
}
.section-title{
  font:var(--md-sys-typescale-headline-small);
  color:var(--md-sys-color-on-surface);
}
.section-desc{
  font:var(--md-sys-typescale-body-medium);
  color:var(--md-sys-color-on-surface-variant);
  margin-bottom:16px;
}

/* === Cards === */
.card{
  background:var(--md-sys-color-surface-container);
  border-radius:var(--md-sys-shape-corner-medium);
  padding:16px;
  margin-bottom:14px;
}
.card-elevated{
  background:var(--md-sys-color-surface-container-low);
  border-radius:var(--md-sys-shape-corner-medium);
  padding:16px;
  box-shadow:var(--md-sys-elevation-1);
  margin-bottom:14px;
}

/* === Chip === */
.chip{
  display:inline-flex;align-items:center;gap:8px;
  height:32px;padding:0 16px;
  border-radius:var(--md-sys-shape-corner-small);
  border:1px solid var(--md-sys-color-outline-variant);
  background:transparent;
  color:var(--md-sys-color-on-surface);
  font:var(--md-sys-typescale-label-large);
  letter-spacing:0.1px;
  cursor:pointer;
  transition:all var(--md-sys-motion-duration-short4) var(--md-sys-motion-easing-standard);
  position:relative;overflow:hidden;
  white-space:nowrap;
  user-select:none;
}
.chip:hover{border-color:var(--md-sys-color-on-surface)}
.chip.active{
  background:var(--md-sys-color-secondary-container);
  color:var(--md-sys-color-on-secondary-container);
  border-color:var(--md-sys-color-secondary-container);
}
.chip-group{display:flex;flex-wrap:wrap;gap:8px}
.chip-icon{width:16px;height:16px;fill:currentColor;flex:none}

/* === Features Grid === */
.features-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:14px;
}
.feature-card{
  background:var(--md-sys-color-surface-container);
  border-radius:var(--md-sys-shape-corner-medium);
  padding:20px;
  transition:all var(--md-sys-motion-duration-short4) var(--md-sys-motion-easing-standard);
}
.feature-card:hover{background:var(--md-sys-color-surface-container-high)}
.feature-card-icon{
  width:40px;height:40px;
  border-radius:var(--md-sys-shape-corner-small);
  background:var(--md-sys-color-primary-container);
  color:var(--md-sys-color-primary);
  display:flex;align-items:center;justify-content:center;
  margin-bottom:12px;
}
.feature-card-icon svg{width:24px;height:24px;fill:currentColor}
.feature-card-title{
  font:var(--md-sys-typescale-title-medium);
  color:var(--md-sys-color-on-surface);
  margin-bottom:4px;
}
.feature-card-desc{
  font:var(--md-sys-typescale-body-medium);
  color:var(--md-sys-color-on-surface-variant);
}

/* === Command Block === */
.command-wrap{
  margin-bottom:12px;
}
.command-block{
  background:var(--md-sys-color-surface-container-highest);
  border-radius:var(--md-sys-shape-corner-small);
  padding:12px 44px 12px 14px;
  position:relative;
  min-height:44px;
  display:flex;align-items:center;
}
.command-block pre{
  font-family:var(--md-ref-typeface-mono);
  font-size:13px;
  line-height:1.5;
  color:var(--md-sys-color-on-surface);
  white-space:pre-wrap;
  word-break:break-all;
  margin:0;
}
.copy-btn{
  position:absolute;top:6px;right:6px;
  width:32px;height:32px;
  border-radius:var(--md-sys-shape-corner-extra-small);
  border:none;
  background:var(--md-sys-color-surface-container);
  color:var(--md-sys-color-on-surface-variant);
  cursor:pointer;
  display:flex;align-items:center;justify-content:center;
  transition:all var(--md-sys-motion-duration-short3) var(--md-sys-motion-easing-standard);
}
.copy-btn:hover{background:var(--md-sys-color-surface-container-high);color:var(--md-sys-color-primary)}
.copy-btn svg{width:18px;height:18px;fill:currentColor}
.command-label{
  font:var(--md-sys-typescale-label-medium);
  color:var(--md-sys-color-on-surface-variant);
  margin-bottom:4px;
  display:flex;align-items:center;gap:6px;
}

/* === OS Selector === */
.os-selector{margin-bottom:16px}

/* === Feature List === */
.feature-list{
  display:flex;flex-direction:column;gap:8px;
  padding:8px 0;
}
.feature-item{
  display:flex;align-items:flex-start;gap:10px;
  font:var(--md-sys-typescale-body-medium);
  color:var(--md-sys-color-on-surface-variant);
}
.feature-item-icon{
  width:20px;height:20px;
  border-radius:var(--md-sys-shape-corner-full);
  background:var(--md-sys-color-primary-container);
  color:var(--md-sys-color-primary);
  display:flex;align-items:center;justify-content:center;
  flex:none;margin-top:2px;
}
.feature-item-icon svg{width:14px;height:14px;fill:currentColor}

/* === Parameter Grid === */
.param-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(260px,1fr));
  gap:12px;
}
.param-card{
  background:var(--md-sys-color-surface-container);
  border-radius:var(--md-sys-shape-corner-small);
  overflow:hidden;
}
.param-header{
  padding:12px 14px;
  background:var(--md-sys-color-surface-container-high);
  display:flex;align-items:center;gap:8px;
}
.param-name{
  font-family:var(--md-ref-typeface-mono);
  font-size:13px;font-weight:500;
  color:var(--md-sys-color-primary);
}
.param-body{padding:12px 14px;}
.param-desc{
  font:var(--md-sys-typescale-body-small);
  color:var(--md-sys-color-on-surface-variant);
  margin-bottom:10px;
}
.param-desc strong{
  display:block;
  font:var(--md-sys-typescale-body-medium);
  color:var(--md-sys-color-on-surface);
  margin-bottom:2px;
}

/* === Monitor Preview === */
.monitor-preview{
  border-radius:var(--md-sys-shape-corner-small);
  overflow:hidden;
  margin:12px 0;
  background:var(--md-sys-color-surface-container-high);
}
.monitor-preview img{width:100%;display:block}

/* === Footer === */
.footer{
  text-align:center;
  padding:24px 16px 32px;
  border-top:1px solid var(--md-sys-color-outline-variant);
}
.footer-content{max-width:880px;margin:0 auto}
.footer-links{
  display:flex;flex-wrap:wrap;gap:16px;
  justify-content:center;
  margin-bottom:16px;
}
.footer-link{
  font:var(--md-sys-typescale-body-medium);
  color:var(--md-sys-color-primary);
  display:flex;align-items:center;gap:6px;
}
.footer-link:hover{text-decoration:underline}
.footer-link svg{width:16px;height:16px;fill:currentColor}
.footer-authors{
  display:flex;flex-wrap:wrap;gap:12px;
  justify-content:center;
  margin-bottom:12px;
}
.footer-author{
  display:flex;align-items:center;gap:8px;
  padding:6px 14px 6px 6px;
  background:var(--md-sys-color-surface-container);
  border-radius:var(--md-sys-shape-corner-full);
}
.footer-author img{
  width:28px;height:28px;
  border-radius:50%;
}
.footer-author-name{
  font:var(--md-sys-typescale-body-small);
  color:var(--md-sys-color-on-surface);
}
.footer-copy{
  font:var(--md-sys-typescale-body-small);
  color:var(--md-sys-color-on-surface-variant);
}

/* === Snackbar === */
.snackbar{
  position:fixed;bottom:80px;left:50%;transform:translateX(-50%) translateY(100px);
  background:var(--md-sys-color-inverse-surface);
  color:var(--md-sys-color-inverse-on-surface);
  padding:12px 24px;
  border-radius:var(--md-sys-shape-corner-extra-small);
  font:var(--md-sys-typescale-body-medium);
  opacity:0;
  transition:all var(--md-sys-motion-duration-medium2) var(--md-sys-motion-easing-emphasized);
  z-index:100;
  pointer-events:none;
  white-space:nowrap;
}
.snackbar.show{opacity:1;transform:translateX(-50%) translateY(0)}

/* === Key Features === */
.key-features{
  display:flex;flex-wrap:wrap;gap:8px;
  padding:8px 0;
}
.key-feature{
  display:inline-flex;align-items:center;gap:6px;
  padding:4px 12px;
  border-radius:var(--md-sys-shape-corner-full);
  background:var(--md-sys-color-primary-container);
  color:var(--md-sys-color-on-primary-container);
  font:var(--md-sys-typescale-body-small);
}

/* === Responsive === */
@media(max-width:639px){
  .content{padding:0 12px 80px}
  .hero{padding:32px 12px 24px}
  .hero h1{font:var(--md-sys-typescale-headline-large)}
  .hero .subtitle{font:var(--md-sys-typescale-title-large)}
  .hero-stats{gap:8px}
  .hero-stat{padding:8px 14px;min-width:80px}
  .hero-stat-value{font:var(--md-sys-typescale-title-medium)}
  .section{padding:24px 0}
  .features-grid{grid-template-columns:1fr}
  .param-grid{grid-template-columns:1fr}
}

@media(min-width:640px) and (max-width:904px){
  .content{max-width:600px}
}

@media(min-width:905px){
  .content{padding:0 16px 80px}
}

@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{
    animation-duration:.01ms!important;
    animation-iteration-count:1!important;
    transition-duration:.01ms!important;
  }
  html{scroll-behavior:auto}
}

/* === Focus Visible === */
.btn:focus-visible,.chip:focus-visible,.copy-btn:focus-visible,.top-bar a:focus-visible{
  outline:2px solid var(--md-sys-color-primary);outline-offset:2px;
}
