:root {
  --bg: #0b0912;
  --bg-2: #110d1b;
  --panel: #161222;
  --panel-2: #1c1730;
  --border: #2b2342;
  --border-strong: #3d3160;
  --text: #ece8f5;
  --dim: #a59dba;
  --faint: #6f6788;
  --gold: #e8b64c;
  --gold-2: #ffd98a;
  --gold-deep: #9c6d1c;
  --violet: #9b5cff;
  --violet-2: #c7a4ff;
  --haste: #f2c14e;
  --crit: #ff6f6f;
  --mastery: #a77bff;
  --versatility: #3fd0ae;
  --class: var(--gold);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, .7);
  --max: 1180px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--gold-2); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; }
button, select { font: inherit; color: inherit; }

.bg-glow {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 600px at 85% -10%, rgba(155, 92, 255, .22), transparent 60%),
    radial-gradient(700px 500px at -10% 30%, rgba(232, 182, 76, .10), transparent 60%),
    radial-gradient(800px 800px at 50% 120%, rgba(155, 92, 255, .12), transparent 60%);
}

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px max(16px, calc((100vw - var(--max)) / 2));
  background: rgba(11, 9, 18, .72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(61, 49, 96, .5);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-family: Cinzel, serif; font-weight: 700; font-size: 18px; letter-spacing: .02em; }
.brand:hover { text-decoration: none; }
.brand img { border-radius: 8px; }
.nav nav { display: flex; align-items: center; gap: 4px; }
.nav nav a { color: var(--dim); font-size: 14px; font-weight: 500; padding: 8px 12px; border-radius: 8px; }
.nav nav a:hover { color: var(--text); background: rgba(255, 255, 255, .04); text-decoration: none; }
.nav nav a.nav-cta { color: #1a1206; background: linear-gradient(180deg, var(--gold-2), var(--gold)); font-weight: 600; }
.nav nav a.nav-cta:hover { filter: brightness(1.08); }

main > section { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 12px; font-weight: 600; font-size: 15px;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-gold {
  color: #1a1206;
  background: linear-gradient(180deg, var(--gold-2), var(--gold) 55%, #d49a2c);
  box-shadow: 0 10px 30px -10px rgba(232, 182, 76, .6), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.btn-gold:hover { box-shadow: 0 14px 36px -10px rgba(232, 182, 76, .8), inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn-ghost { color: var(--text); background: rgba(255, 255, 255, .04); border: 1px solid var(--border-strong); }
.btn-ghost:hover { background: rgba(155, 92, 255, .12); border-color: var(--violet); }

/* Hero */
.hero {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
  padding-top: 72px !important; padding-bottom: 88px !important;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px;
  padding: 6px 14px 6px 10px; border-radius: 999px;
  background: rgba(155, 92, 255, .12); border: 1px solid rgba(155, 92, 255, .35);
  color: var(--violet-2); font-size: 13px; font-weight: 600;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 4px rgba(74, 222, 128, .18); animation: pulse 2.4s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(74, 222, 128, 0); } }
.hero h1 {
  font-family: Cinzel, serif; font-weight: 800;
  font-size: clamp(38px, 6vw, 64px); letter-spacing: -.01em;
}
.gold {
  background: linear-gradient(180deg, var(--gold-2), var(--gold) 60%, var(--gold-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { color: var(--dim); font-size: 18px; max-width: 540px; margin: 22px 0 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-stats {
  display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 36px;
  margin: 44px 0 0; padding-top: 26px; border-top: 1px solid var(--border);
}
.hero-stats dt { color: var(--faint); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.hero-stats dd { margin: 4px 0 0; font-family: Cinzel, serif; font-weight: 700; font-size: 26px; color: var(--text); }

.hero-art { position: relative; justify-self: center; }
.hero-halo {
  position: absolute; inset: -12%;
  background: conic-gradient(from 200deg, rgba(155, 92, 255, .0), rgba(155, 92, 255, .45), rgba(232, 182, 76, .35), rgba(155, 92, 255, .0));
  filter: blur(60px); border-radius: 50%; opacity: .8;
}
.hero-shot {
  position: relative; width: 420px; border-radius: 14px;
  border: 1px solid rgba(232, 182, 76, .35);
  box-shadow: var(--shadow), 0 0 0 6px rgba(22, 18, 34, .8);
  transform: perspective(1200px) rotateY(-8deg) rotateX(3deg);
  transition: transform .5s ease;
}
.hero-art:hover .hero-shot { transform: perspective(1200px) rotateY(0) rotateX(0); }
.hero-icon {
  position: absolute; left: -44px; bottom: -36px; border-radius: 22px;
  border: 1px solid rgba(232, 182, 76, .5);
  box-shadow: var(--shadow);
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-10px); } }

/* Section heads */
.section-head { text-align: center; max-width: 680px; margin: 0 auto 36px; }
.kicker { margin: 0 0 10px; color: var(--gold); font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.section-head h2 { font-family: Cinzel, serif; font-weight: 700; font-size: clamp(28px, 4vw, 40px); }
.section-sub { color: var(--dim); margin: 14px 0 0; }

/* Explorer */
.explorer { padding-top: 40px !important; padding-bottom: 96px !important; }
.class-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 10px;
  max-width: 1180px; margin: 0 auto;
}
@media (min-width: 1100px) { .class-grid { grid-template-columns: repeat(13, minmax(0, 1fr)); } }
.class-btn {
  --c: var(--gold);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 12px 6px 10px; border-radius: 14px; cursor: pointer;
  background: var(--panel); border: 1px solid var(--border);
  color: var(--dim); font-size: 11.5px; font-weight: 600; text-align: center; line-height: 1.2;
  transition: transform .15s ease, border-color .2s ease, background .2s ease, color .2s ease;
}
.class-btn img { width: 40px; height: 40px; border-radius: 10px; border: 1px solid rgba(0, 0, 0, .6); filter: saturate(.7) brightness(.85); transition: filter .2s ease; }
.class-btn:hover { transform: translateY(-2px); color: var(--text); border-color: color-mix(in srgb, var(--c) 50%, var(--border)); }
.class-btn:hover img { filter: none; }
.class-btn[aria-selected="true"] {
  color: var(--c); border-color: var(--c);
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 16%, var(--panel)), var(--panel));
  box-shadow: 0 10px 30px -14px var(--c);
}
.class-btn[aria-selected="true"] img { filter: none; box-shadow: 0 0 0 2px var(--c); }

.spec-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 22px 0 30px; min-height: 42px; }
.spec-btn {
  padding: 9px 18px; border-radius: 999px; cursor: pointer;
  background: transparent; border: 1px solid var(--border-strong);
  color: var(--dim); font-weight: 600; font-size: 14px;
  transition: all .15s ease;
}
.spec-btn:hover { color: var(--text); border-color: var(--class); }
.spec-btn[aria-selected="true"] { background: var(--class); border-color: var(--class); color: #0b0912; }

.spec-panel { animation: rise .35s ease; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }

.spec-banner {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  padding: 20px 22px; margin-bottom: 18px; border-radius: var(--radius);
  background:
    linear-gradient(100deg, color-mix(in srgb, var(--class) 22%, transparent), transparent 55%),
    var(--panel);
  border: 1px solid color-mix(in srgb, var(--class) 40%, var(--border));
}
.spec-banner-icon { width: 56px; height: 56px; border-radius: 12px; border: 2px solid var(--class); box-shadow: 0 0 24px -4px var(--class); }
.spec-banner-text { flex: 1; min-width: 200px; }
.spec-banner h3 { font-family: Cinzel, serif; font-size: 26px; font-weight: 700; color: var(--class); }
.spec-banner p { margin: 4px 0 0; color: var(--dim); font-size: 14px; }

.segmented { display: inline-flex; padding: 4px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--border); }
.segmented button {
  border: 0; background: transparent; cursor: pointer; padding: 9px 20px; border-radius: 9px;
  color: var(--dim); font-weight: 600; font-size: 14px; transition: all .15s ease;
}
.segmented button:hover { color: var(--text); }
.segmented button[aria-selected="true"] { background: var(--panel-2); color: var(--gold-2); box-shadow: inset 0 0 0 1px var(--border-strong); }
.segmented button:disabled { opacity: .35; cursor: not-allowed; }

.panel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.card {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; min-width: 0;
}
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.card-head h4 { font-family: Cinzel, serif; font-size: 18px; font-weight: 700; }
.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px;
  font-size: 12px; font-weight: 600; color: var(--dim); background: rgba(255, 255, 255, .04); border: 1px solid var(--border);
}
.pill.warn { color: #fbbf24; border-color: rgba(251, 191, 36, .4); background: rgba(251, 191, 36, .08); }
.fine { color: var(--faint); font-size: 12.5px; margin: 14px 0 0; }

/* Stat bars */
.stat-bars { display: grid; gap: 18px; }
.stat-row { --sc: var(--gold); }
.stat-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.stat-name { font-weight: 600; display: flex; align-items: center; gap: 8px; }
.stat-name::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--sc); box-shadow: 0 0 10px var(--sc); }
.stat-val { font-family: Cinzel, serif; font-weight: 700; font-size: 22px; color: var(--sc); font-variant-numeric: tabular-nums; }
.stat-val small { font-family: Inter, sans-serif; font-size: 12px; color: var(--faint); font-weight: 500; margin-left: 6px; }
.track { position: relative; height: 10px; border-radius: 999px; background: rgba(255, 255, 255, .05); overflow: hidden; }
.track .fill {
  position: absolute; inset: 0 auto 0 0; border-radius: 999px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--sc) 45%, transparent), var(--sc));
  width: 0; transition: width .7s cubic-bezier(.2, .8, .2, 1);
}
.track .band {
  position: absolute; top: 0; bottom: 0; border-radius: 999px;
  background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--sc) 35%, transparent) 0 4px, color-mix(in srgb, var(--sc) 18%, transparent) 4px 8px);
  transition: left .7s ease, width .7s ease;
}
.track .tick { position: absolute; top: -3px; bottom: -3px; width: 3px; border-radius: 2px; background: #fff; box-shadow: 0 0 8px var(--sc); transition: left .7s cubic-bezier(.2, .8, .2, 1); }

.priority { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 22px; padding-top: 18px; border-top: 1px dashed var(--border); }
.priority-label { color: var(--faint); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-right: 4px; }
.prio { padding: 5px 12px; border-radius: 8px; font-weight: 600; font-size: 13.5px; color: var(--sc); background: color-mix(in srgb, var(--sc) 12%, transparent); border: 1px solid color-mix(in srgb, var(--sc) 35%, transparent); }
.prio-sep { color: var(--faint); font-weight: 700; }

/* Talents */
.talents-card select {
  background: var(--bg-2); border: 1px solid var(--border-strong); border-radius: 10px;
  padding: 8px 34px 8px 12px; font-size: 14px; max-width: 100%; cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%23e8b64c' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.scope-note { color: var(--dim); font-size: 13.5px; margin: -6px 0 16px; min-height: 1.2em; }
.builds { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.build {
  position: relative; padding: 14px 16px; border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .025); border: 1px solid var(--border);
}
.build:first-child { border-color: rgba(232, 182, 76, .55); background: linear-gradient(180deg, rgba(232, 182, 76, .08), rgba(232, 182, 76, .02)); }
.build-top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.build-rank { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; background: var(--panel-2); border: 1px solid var(--border-strong); font-weight: 700; font-size: 13px; color: var(--dim); }
.build:first-child .build-rank { background: var(--gold); color: #1a1206; border-color: var(--gold); }
.build-share { flex: 1; font-size: 13.5px; color: var(--dim); }
.build-share strong { color: var(--text); }
.build-meter { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .06); margin-bottom: 10px; overflow: hidden; }
.build-meter span { display: block; height: 100%; background: linear-gradient(90deg, var(--violet), var(--gold)); border-radius: 4px; }
.build-code {
  font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 11.5px; color: var(--faint);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 10px;
}
.build-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.mini-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 8px; cursor: pointer;
  font-size: 13px; font-weight: 600; color: var(--text); background: var(--panel-2); border: 1px solid var(--border-strong);
  transition: all .15s ease;
}
.mini-btn:hover { border-color: var(--gold); color: var(--gold-2); text-decoration: none; }
.mini-btn.primary { background: var(--gold); border-color: var(--gold); color: #1a1206; }
.mini-btn.primary:hover { filter: brightness(1.08); color: #1a1206; }
.mini-btn svg { width: 14px; height: 14px; fill: currentColor; }

/* BiS */
.legend { display: inline-flex; align-items: center; gap: 8px; color: var(--faint); font-size: 12.5px; }
.ring-mini { width: 14px; height: 14px; border-radius: 50%; background: conic-gradient(var(--gold) 0 70%, rgba(255, 255, 255, .1) 0); }
.bis-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.slot {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 14px; align-items: center;
  padding: 14px 16px; border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .025); border: 1px solid var(--border);
  transition: border-color .2s ease, background .2s ease;
}
.slot:hover { border-color: var(--border-strong); background: rgba(255, 255, 255, .04); }
.slot-label { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; color: var(--faint); font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; }
.new-tag { padding: 1px 7px; border-radius: 6px; font-size: 10.5px; letter-spacing: .06em; color: #0b0912; background: #4ade80; }
.slot-item { min-width: 0; font-weight: 600; font-size: 14.5px; line-height: 1.35; overflow-wrap: anywhere; }
.slot-item a { color: var(--text); }
.slot-meta { grid-column: 1; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; color: var(--dim); font-size: 12.5px; }
.slot-meta .chip { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 6px; background: rgba(155, 92, 255, .1); border: 1px solid rgba(155, 92, 255, .25); color: var(--violet-2); }
.slot-meta .chip a { color: var(--violet-2); }
.slot-alt { grid-column: 1 / -1; color: var(--faint); font-size: 12.5px; margin-top: 4px; padding-top: 8px; border-top: 1px dashed var(--border); }
.slot-alt a { color: var(--dim); }
.ring {
  grid-row: 2 / span 2; grid-column: 2;
  --p: 0; width: 48px; height: 48px; border-radius: 50%;
  background: conic-gradient(var(--gold) calc(var(--p) * 1%), rgba(255, 255, 255, .08) 0);
  display: grid; place-items: center; position: relative;
}
.ring::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--panel); }
.ring span { position: relative; font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.slot-empty { color: var(--faint); font-style: italic; }

/* Wowhead iconized links */
.slot-item a[data-wh-icon-added] { display: inline; }
.slot-item .iconmedium { vertical-align: middle; margin-right: 6px; }

.loading { text-align: center; color: var(--faint); }
.error { text-align: center; color: #fca5a5; }

/* Features */
.features { padding-bottom: 96px !important; }
.feature-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.feature-note { margin-top: 22px; text-align: center; }
.feature {
  padding: 24px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--border);
  transition: transform .2s ease, border-color .2s ease;
}
.feature:hover { transform: translateY(-3px); border-color: rgba(232, 182, 76, .45); }
.feature-icon {
  width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(155, 92, 255, .3), rgba(232, 182, 76, .2));
  border: 1px solid rgba(232, 182, 76, .35); color: var(--gold-2);
}
.feature-icon svg { width: 24px; height: 24px; fill: currentColor; }
.feature h3 { font-family: Cinzel, serif; font-size: 18px; margin-bottom: 8px; }
.feature p { margin: 0; color: var(--dim); font-size: 14.5px; }

/* Screenshots */
.screens { padding-bottom: 96px !important; }
.screen-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.screen-grid figure {
  margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--panel); border: 1px solid var(--border);
  display: flex; flex-direction: column;
}
.screen-grid figure.wide { grid-column: span 4; }
.screen-grid img { width: 100%; flex: 1; object-fit: cover; object-position: top; cursor: zoom-in; transition: transform .4s ease; }
.screen-grid figure:hover img { transform: scale(1.02); }
.screen-grid figcaption { padding: 12px 16px; color: var(--dim); font-size: 13.5px; border-top: 1px solid var(--border); }

.lightbox { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 24px; background: rgba(5, 4, 9, .88); backdrop-filter: blur(6px); cursor: zoom-out; animation: rise .2s ease; }
.lightbox img { max-height: 92vh; border-radius: 12px; box-shadow: var(--shadow); }

/* Download */
.download { padding-bottom: 72px !important; }
.download-card {
  display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center;
  padding: 32px; border-radius: 22px;
  background:
    radial-gradient(600px 200px at 0% 0%, rgba(232, 182, 76, .18), transparent 70%),
    radial-gradient(600px 240px at 100% 100%, rgba(155, 92, 255, .25), transparent 70%),
    var(--panel);
  border: 1px solid rgba(232, 182, 76, .35);
}
.download-card img { border-radius: 20px; }
.download-card h2 { font-family: Cinzel, serif; font-size: 28px; }
.download-card p { margin: 6px 0 0; color: var(--dim); }
.download-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.footer { max-width: var(--max); margin: 0 auto; padding: 28px 16px 48px; border-top: 1px solid var(--border); color: var(--dim); font-size: 14px; text-align: center; }
.footer p { margin: 0 0 6px; }
.support { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-bottom: 28px; }
.support p { margin: 0; color: var(--dim); }
.kofi { display: inline-block; border-radius: 10px; transition: transform .15s ease, box-shadow .2s ease; }
.kofi:hover { transform: translateY(-2px); box-shadow: 0 10px 28px -10px rgba(232, 182, 76, .6); }
.kofi img { height: 40px; width: auto; border: 0; }

.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 60; transform: translate(-50%, 20px);
  padding: 12px 18px; border-radius: 12px; background: var(--gold); color: #1a1206; font-weight: 600; font-size: 14px;
  opacity: 0; pointer-events: none; transition: all .25s ease; box-shadow: var(--shadow);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

@media (max-width: 980px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 48px; padding-top: 44px !important; text-align: left; }
  .hero-art { order: -1; }
  .hero-shot { width: min(420px, 100%); }
  .hero-icon { width: 80px; height: 80px; left: -12px; bottom: -24px; }
  .panel-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-art { max-width: 100%; }
  .hero-shot { transform: none; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .screen-grid { grid-template-columns: 1fr 1fr; }
  .screen-grid figure.wide { grid-column: span 2; }
  .download-card { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .download-actions { justify-content: center; }
}
@media (max-width: 640px) {
  .nav nav a:not(.nav-cta) { display: none; }
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 20px; }
  .feature-grid, .screen-grid { grid-template-columns: 1fr; }
  .screen-grid figure.wide { grid-column: auto; }
  .bis-grid { grid-template-columns: minmax(0, 1fr); }
  .class-grid { grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); }
  .hero h1 { font-size: 34px; }
  .card-head select { width: 100%; }
  .card { padding: 18px; }
  .segmented { width: 100%; }
  .segmented button { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
