:root {
  --bg: #0b0e14;
  --card: #121826;
  --card-hover: #161d2e;
  --text: #e6e9f0;
  --muted: #9aa4bf;
  --accent: #6d8cff;
  --accent-glow: rgba(109, 140, 255, 0.4);
  --border: #1f2740;
  --radius: 18px;
}

.hero {
  max-width: 860px;
  margin: 0 auto;
  padding: 12px 0 0;
}

.hero-card {
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 22px;
  background: linear-gradient(180deg, rgba(18, 24, 38, 0.9), rgba(14, 20, 36, 0.9));
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
}

body.home .hero-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0));
  border-color: rgba(255, 255, 255, 0.03);
  transition: transform 300ms ease, border-color 300ms ease, background 300ms ease;
  box-shadow: none;
}

body.home .hero-card:hover {
  transform: scale(1.02);
  border-color: rgba(211, 214, 241, 0.20);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0));
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  color: var(--muted);
  font-weight: 700;
  font-size: 0.85rem;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

* { box-sizing: border-box; }

html {
  background: linear-gradient(180deg, #050608 0%, #020204 100%);
  scrollbar-gutter: stable;
  background-color: #050608;
  overscroll-behavior: none;
}

html::before {
  content: '';
  position: fixed;
  inset: 0;
  background: #000;
  opacity: 0;
  pointer-events: none;
  z-index: 9999;
  transition: opacity 220ms ease-in-out;
}

html.is-fading::before {
  opacity: 1;
}

.page-wrapper {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.page-wrapper::before {
  content: '';
  position: fixed;
  inset: 0;
  background: #000;
  opacity: 0;
  pointer-events: none;
  z-index: 8;
  transition: opacity 260ms ease-out;
}

.page-wrapper.is-fading::before {
  opacity: 1;
  transition: opacity 260ms ease-in;
}

html {
  scrollbar-width: none;
}

body {
  -ms-overflow-style: none;
}

body::-webkit-scrollbar {
  width: 0;
  height: 0;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: linear-gradient(180deg, #050608 0%, #020204 100%);
  background-color: #050608;
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  isolation: isolate;
  overflow-x: hidden;
  overscroll-behavior: none;
}

body::before {
  content: '';
  position: fixed;
  inset: -20vh -20vw;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(circle at 12px 18px, rgba(255, 255, 255, 0.28) 0 1px, transparent 2px),
    radial-gradient(circle at 44px 62px, rgba(255, 255, 255, 0.20) 0 1px, transparent 2px),
    radial-gradient(circle at 78px 26px, rgba(255, 255, 255, 0.22) 0 1px, transparent 2px),
    radial-gradient(circle at 22px 82px, rgba(255, 255, 255, 0.18) 0 1px, transparent 2px),
    radial-gradient(circle at 92px 74px, rgba(255, 255, 255, 0.16) 0 1px, transparent 2px),
    radial-gradient(circle at 56px 46px, rgba(255, 255, 255, 0.14) 0 1px, transparent 2px),
    radial-gradient(circle at 8px 96px, rgba(255, 255, 255, 0.12) 0 1px, transparent 2px);
  background-repeat: repeat;
  background-size: 110px 110px;
  opacity: 0.16;
  filter: none;
  -webkit-mask-image: radial-gradient(circle at 50% 45%, transparent 0 44%, rgba(0, 0, 0, 1) 74%);
  mask-image: radial-gradient(circle at 50% 45%, transparent 0 44%, rgba(0, 0, 0, 1) 74%);
  transition: opacity 200ms cubic-bezier(0.2, 0.9, 0.2, 1);
  animation: starDrift 38s linear infinite;
  will-change: background-position;
  transform: translateZ(0);
}

@keyframes starDrift {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 240px 320px;
  }
}

@keyframes backgroundDrift {
  0% {
    transform: translate3d(-14px, -10px, 0) scale(1);
  }
  50% {
    transform: translate3d(14px, 10px, 0) scale(1.02);
  }
  100% {
    transform: translate3d(-8px, 12px, 0) scale(1.01);
  }
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(900px 520px at 50% 0%, rgba(255, 255, 255, 0.03), transparent 65%),
    radial-gradient(1200px 900px at 50% 120%, rgba(0, 0, 0, 0.72), transparent 60%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.10) 0%, rgba(0, 0, 0, 0.45) 100%);
  opacity: 1;
  transition: opacity 200ms cubic-bezier(0.2, 0.9, 0.2, 1);
  transform: translateZ(0);
}

body.is-leaving {
  cursor: default;
}

#page-header,
#page-main,
.footer {
  transition: opacity 200ms cubic-bezier(0.2, 0.9, 0.2, 1), transform 200ms cubic-bezier(0.2, 0.9, 0.2, 1);
  opacity: 0;
  transform: translateY(32px);
}

body.page-loaded #page-header,
body.page-loaded #page-main,
body.page-loaded .footer {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 1000ms cubic-bezier(0.16, 1, 0.3, 1), transform 1200ms cubic-bezier(0.16, 1, 0.3, 1);
}

body.page-loaded #page-header {
  transition-delay: 100ms;
}

body.page-loaded #page-main {
  transition-delay: 250ms;
}

body.page-loaded .footer {
  transition-delay: 400ms;
}

body.is-leaving #page-header,
body.is-leaving #page-main,
body.is-leaving .footer {
  opacity: 0.72;
  transform: translateY(6px) scale(0.998);
}

body.is-entering #page-header,
body.is-entering #page-main {
  opacity: 0.85;
  transform: translateY(6px) scale(0.998);
}

body.is-leaving::before,
body.is-entering::before {
  animation-play-state: paused;
}

body.is-leaving .nav-links a::after,
body.is-entering .nav-links a::after {
  transition: none;
}

@media (prefers-reduced-motion: reduce) {
  #page-header,
  #page-main {
    transition: none;
    filter: none;
  }

  body::before {
    animation: none;
  }
}

/* home-specific overrides live below */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  width: 100%;
  pointer-events: none;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  width: fit-content;
  max-width: calc(100% - 32px);
  margin: 0 auto;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(10, 10, 12, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  pointer-events: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  position: relative;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-decoration: none;
  color: var(--text);
}

.brand-logo {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  object-fit: cover;
  flex: none;
}

.brand-text {
  display: inline;
}

.nav-links {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  align-items: center;
}

.nav-divider {
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.10);
  margin: 0 12px;
  border-radius: 999px;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
  padding: 5px 0 6px;
}

.nav-links a:focus {
  outline: none;
}

.nav-links a:focus-visible {
  outline: 2px solid rgba(109, 140, 255, 0.6);
  outline-offset: 2px;
  border-radius: 4px;
}

.nav-links a.active {
  color: var(--text);
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a.active:hover {
  color: var(--text);
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  border-radius: 999px;
  background: rgba(230, 233, 240, 0.7);
  opacity: 0;
  transform: translateY(4px) scaleY(0);
  transform-origin: bottom;
  will-change: transform, opacity;
  transition: transform 140ms cubic-bezier(0.2, 0.9, 0.2, 1), opacity 90ms ease-out, background 120ms ease;
}

.nav-links a:hover::after {
  opacity: 0.65;
  transform: translateY(0) scaleY(1);
}

.nav-links a.active::after {
  opacity: 1;
  transform: translateY(0) scaleY(1);
  background: rgba(255, 255, 255, 0.9);
}

.nav a:hover {
  text-decoration: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  position: relative;
  overflow: hidden;
  transform: translateY(0);
  transition: transform 160ms cubic-bezier(0.2, 0.9, 0.2, 1), box-shadow 220ms ease, border-color 220ms ease, background 220ms ease;
}

.btn::after {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(110deg, transparent 0%, rgba(255,255,255,0.20) 45%, transparent 70%);
  transform: translateX(-120%);
  opacity: 0;
  pointer-events: none;
  transition: transform 520ms cubic-bezier(0.2, 0.9, 0.2, 1), opacity 220ms ease;
}

.btn:hover {
  background: rgba(255, 255, 255, 0.06);
  text-decoration: none;
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.26);
  box-shadow: 0 10px 26px rgba(0,0,0,0.38);
}

.btn:hover::after {
  opacity: 1;
  transform: translateX(120%);
}

.btn:active {
  transform: translateY(0);
}

.btn:focus {
  outline: none !important;
  box-shadow: none !important;
  border-color: var(--border) !important;
}

.btn:focus-visible {
  outline: none !important;
  box-shadow: none !important;
  border-color: var(--border) !important;
}

.btn:active {
  box-shadow: none !important;
}

.btn.primary {
  border-color: rgba(109, 140, 255, 0.45);
  background: rgba(109, 140, 255, 0.12);
}

.btn.primary:hover {
  background: rgba(109, 140, 255, 0.18);
}

header {
  padding: 112px 24px 34px;
  text-align: center;
}

header h1 {
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin: 0 0 16px;
}

header h1.gradient {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.68));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.title-glow {
  text-shadow:
    0 0 18px rgba(255, 255, 255, 0.14),
    0 0 38px rgba(255, 255, 255, 0.06);
}

header p {
  max-width: 760px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.05rem;
}

body:not(.home) header p {
  min-height: 3.4em;
}

main {
  padding: 0 24px 120px;
  flex: 1;
}

body.home main {
  padding-bottom: 120px;
}

body.home .home-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

body.home .home-hero {
  margin-top: 22px;
}

.section {
  margin-top: 72px;
}

body.home .section {
  margin-top: 34px;
}

body.home .grid {
  gap: 16px;
}

body.home .card {
  padding: 18px;
}

.section-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}

body.home .section-title {
  margin-bottom: 12px;
}

.section-title i { color: var(--accent); }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

#page-main.commands-page .grid {
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 768px) {
  #page-main.commands-page .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
}

@media (min-width: 1024px) {
  #page-main.commands-page .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
  }
}

.card {
  background: linear-gradient(180deg, var(--card), #0e1424);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
  overflow: hidden;
  transform: translateY(40px);
  opacity: 0;
  transition: transform 0.6s ease, opacity 0.6s ease, box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  user-select: none;
}

 #page-main.commands-page .card {
   border-color: rgba(31, 39, 64, 0.85);
 }

 #page-main.commands-page .card:hover {
   border-color: rgba(31, 39, 64, 0.95);
 }

.card.visible {
  transform: translateY(0);
  opacity: 1;
}

.card::after {
  content: '';
  position: absolute;
  inset: auto -40% -60% -40%;
  height: 140%;
  background: none;
  opacity: 0;
  transition: none;
  pointer-events: none;
}

.card:hover {
  background: linear-gradient(180deg, var(--card-hover), #0f1630);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.46);
  transform: translateY(-3px);
}

.card:hover::after { opacity: 0; }

.card h3 {
  margin: 0 0 12px;
  font-size: 1.15rem;
  font-weight: 700;
}

.card p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.95rem;
}

#page-main.commands-page .card {
  height: auto;
}

#page-main.commands-page .card {
  padding: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0));
  border: 1px solid rgba(255, 255, 255, 0.03);
  transition: transform 300ms ease, border-color 300ms ease, background 300ms ease;
}

#page-main.commands-page .card:hover {
  transform: scale(1.03);
  border-color: rgba(211, 214, 241, 0.20);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0));
  box-shadow: none;
}

#page-main.commands-page .cmd-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

#page-main.commands-page .cmd-top {
  flex: none;
}

#page-main.commands-page .cmd-head-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  gap: 10px;
}

#page-main.commands-page .cmd-title {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 600;
  font-size: 1.05rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#page-main.commands-page .cmd-desc {
  color: rgba(255, 255, 255, 0.60);
  font-size: 0.86rem;
  margin: 0 0 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#page-main.commands-page .cmd-info {
  flex: auto;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.40);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cmd-line {
  font-size: 0.86rem;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.cmd-line-label {
  color: rgba(255, 255, 255, 0.40);
  font-weight: 300;
}

.cmd-code {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.90);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.75rem;
}

.cmd-perm {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.90);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.75rem;
}

.cmd-line-values {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

code.block {
  display: block;
  width: 100%;
  padding: 10px 12px;
  background: rgba(10, 15, 31, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.85rem;
  color: #c7d2ff;
  user-select: text;
  cursor: text;
  white-space: pre-wrap;
  text-align: center;
  line-height: 1.25;
  margin-top: auto;
  box-shadow: 0 10px 26px rgba(0,0,0,0.42);
}

.cmd-plain {
  color: rgba(154, 164, 191, 0.95);
  font-size: 0.86rem;
}

.cmd-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(31, 39, 64, 0.85);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(230, 233, 240, 0.92);
  font-size: 0.8rem;
  line-height: 1.1;
}

.cmd-pill.muted {
  color: rgba(154, 164, 191, 0.95);
}

.card-page {
  max-width: 980px;
  margin: 0 auto;
}

.policy-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0));
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: var(--radius);
  padding: 28px;
}

.policy-card h2 {
  margin: 26px 0 10px;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

.policy-card h2:first-child { margin-top: 0; }

.policy-card p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.7;
}

.policy-card ul {
  margin: 8px 0 14px 22px;
  color: var(--muted);
}

.policy-card li { margin: 8px 0; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.footer {
  width: fit-content;
  max-width: calc(100% - 32px);
  padding: 10px 14px;
  text-align: center;
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.10);
  margin: 96px auto;
  border-radius: 999px;
  background: rgba(10, 10, 12, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55);
}

.footer a span { color: rgba(154, 164, 191, 0.95); font-weight: 600; }

@media (max-width: 600px) {
  .container {
    padding: 0 16px;
  }

  .nav {
    top: 12px;
  }

  .nav-inner {
    width: min(420px, calc(100% - 24px));
    flex-wrap: wrap;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 22px;
    position: relative;
    min-height: 62px;
  }

  .brand {
    justify-content: center;
    text-align: center;
    cursor: pointer;
    position: relative;
    order: 1;
    pointer-events: auto;
  }

  .brand-text {
    display: none;
  }

  .brand-logo {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    transition: transform 180ms ease, opacity 160ms ease;
    will-change: transform, opacity;
  }

  .nav-divider {
    display: none;
  }

  .nav-links {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 10px);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 12px 14px;
    border-radius: 22px;
    background: rgba(10, 10, 12, 0.985);
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(60px);
    -webkit-backdrop-filter: blur(60px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px) scaleY(0.98);
    transform-origin: top;
    pointer-events: none;
    transition: opacity 160ms ease, transform 200ms cubic-bezier(0.2, 0.9, 0.2, 1), visibility 0s 200ms;
    will-change: transform, opacity;
    z-index: 2;
  }

  .nav-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    border-radius: 12px;
    border-color: rgba(31, 39, 64, 0.85);
    background: rgba(255, 255, 255, 0.03);
  }

  .nav-links a.active {
    text-decoration: none;
    background: rgba(109, 140, 255, 0.14);
    border-color: rgba(109, 140, 255, 0.38);
  }

  header {
    padding: 92px 16px 36px;
  }

  .nav.is-open .nav-inner {
    justify-content: space-between;
  }

  .nav.is-open .brand {
    order: 2;
    margin-left: auto;
  }


  .nav.is-open .nav-inner::before {
    content: '×';
    font-size: 34px;
    line-height: 1;
    font-weight: 600;
    color: rgba(230, 233, 240, 0.92);
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    cursor: pointer;
    order: 1;
    flex-shrink: 0;
  }

  .nav.is-open .brand-logo {
    opacity: 1;
    transform: scale(1);
    content: url('/images/home.png');
  }

  .nav.is-open .nav-links {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scaleY(1);
    pointer-events: auto;
    transition: opacity 160ms ease, transform 200ms cubic-bezier(0.2, 0.9, 0.2, 1), visibility 0s 0s;
  }

  .nav.is-open .nav-inner {
    gap: 12px;
    padding: 12px 14px;
  }

  body:not(.home) header h1 {
    font-size: 2.05rem;
    line-height: 1.15;
  }

  header h1 {
    margin-bottom: 12px;
  }

  header p {
    font-size: 1rem;
  }

  body:not(.home) header p {
    min-height: 3.6em;
  }

  main {
    padding: 0 16px 80px;
  }

  .grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .card {
    padding: 18px;
  }

  .hero-card {
    padding: 18px;
  }

  .section {
    margin-top: 48px;
  }

  .policy-card {
    padding: 18px;
  }

  .footer {
    width: min(420px, calc(100% - 24px));
    padding: 10px 12px;
    font-size: 0.92rem;
  }

  body.home {
    height: 100svh;
    overflow-y: hidden;
    display: flex;
    flex-direction: column;
  }

  body.home header {
    padding: 86px 16px 22px;
  }

  body.home main {
    padding: 0 16px 80px;
    flex: 1;
  }

  body.home .hero {
    padding-top: 0;
  }

  body.home .hero-card {
    padding: 20px 18px;
  }

  body.home .hero-card:hover {
    transform: none;
  }

  .hero-kicker {
    font-size: 0.8rem;
    padding: 5px 9px;
  }

  body.home .hero-actions {
    margin-top: 16px;
    gap: 8px;
  }

  .hero-actions .btn {
    padding: 9px 14px;
    font-size: 0.85rem;
    flex: 0 1 auto;
    white-space: nowrap;
  }

  body.home header h1 {
    font-size: 2.2rem;
    line-height: 1.1;
    margin-bottom: 10px;
  }

  body.home header p {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  body.home .footer {
    margin: 18px auto;
  }
}

@media (min-width: 900px) {
  .grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 700px) and (max-width: 899px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
