:root {
  --navy-950: #03071d;
  --navy-900: #050b28;
  --navy-800: #0a1541;
  --navy-700: #13245c;
  --blue: #4477ff;
  --cyan: #32d7ff;
  --violet: #a35cff;
  --ink: #0b1438;
  --muted: #536181;
  --ice: #eef6ff;
  --ice-2: #f7fbff;
  --white: #fff;
  --line: #cdddf2;
  --shadow: 0 22px 70px rgba(30, 72, 150, .16);
  --glow: 0 0 32px rgba(50, 215, 255, .26);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --page: min(1180px, calc(100% - 40px));
  --header-height: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 18px); }
body {
  margin: 0;
  color: var(--ink);
  background: var(--ice-2);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}
body.search-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}
.page-shell { width: var(--page); margin-inline: auto; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  transform: translateY(-150%);
  padding: 10px 16px;
  border-radius: 10px;
  background: white;
  color: var(--navy-900);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  height: var(--header-height);
  color: white;
  background: rgba(3, 7, 29, .88);
  border-bottom: 1px solid rgba(136, 176, 255, .16);
  backdrop-filter: blur(18px);
}
.nav-shell {
  width: min(1320px, calc(100% - 36px));
  height: 100%;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 36px;
}
.brand {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.28rem;
  font-weight: 750;
  letter-spacing: -.035em;
}
.brand strong {
  color: var(--cyan);
  background: linear-gradient(90deg, var(--cyan), #79a1ff 52%, #cf72ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.brand-mark {
  width: 42px;
  height: 42px;
  overflow: hidden;
  border: 1px solid rgba(94, 220, 255, .35);
  border-radius: 50%;
  background: var(--ice);
  box-shadow: var(--glow);
}
.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 31%;
  transform: scale(1.65);
}
.nav-content {
  min-width: 0;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  position: relative;
  padding-block: 25px 22px;
  color: #d9e4ff;
  font-size: .92rem;
  font-weight: 650;
}
.nav-links a::after {
  content: "";
  position: absolute;
  inset: auto 50% 16px;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  transition: width .25s ease, left .25s ease;
}
.nav-links a:hover::after, .nav-links a:focus-visible::after { width: 100%; left: 0; }
.nav-tools { display: flex; align-items: center; gap: 12px; }
.search-trigger, .language-control {
  height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(153, 184, 255, .24);
  border-radius: 12px;
  color: #c8d5f3;
  background: rgba(21, 36, 84, .68);
}
.search-trigger {
  min-width: 220px;
  padding: 0 11px 0 14px;
  text-align: left;
}
.search-trigger svg, .language-control svg { width: 19px; height: 19px; flex: none; }
.search-trigger span { flex: 1; font-size: .86rem; }
kbd {
  padding: 2px 6px;
  border: 1px solid rgba(194, 215, 255, .25);
  border-radius: 6px;
  color: #aebcda;
  background: rgba(255,255,255,.05);
  font: 600 .68rem/1.5 inherit;
}
.language-control { padding-left: 12px; }
.language-control select {
  max-width: 115px;
  height: 100%;
  border: 0;
  padding: 0 30px 0 0;
  outline: 0;
  color: white;
  background: transparent;
  font-size: .86rem;
  font-weight: 650;
}
.language-control option { color: var(--ink); background: white; }
.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  margin-left: auto;
  border: 0;
  padding: 10px;
  color: white;
  background: transparent;
}
.menu-toggle > span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: currentColor;
  transition: transform .2s ease, opacity .2s ease;
}

.hero {
  position: relative;
  min-height: 760px;
  padding-top: var(--header-height);
  display: flex;
  align-items: center;
  overflow: hidden;
  color: white;
  background: var(--navy-950);
}
.hero-background {
  position: absolute;
  inset: var(--header-height) 0 0;
  background: url("assets/sams-translator-hero.png") 64% center / cover no-repeat fixed;
}
.hero-fade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 7, 29, .98) 0%, rgba(3, 7, 29, .92) 25%, rgba(3, 7, 29, .34) 58%, rgba(3, 7, 29, .08) 100%),
    linear-gradient(0deg, rgba(3, 7, 29, .72), transparent 35%);
}
.hero-content { position: relative; z-index: 2; padding-block: 90px 110px; }
.hero-copy { max-width: 650px; }
.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(4.2rem, 8vw, 7.5rem);
  line-height: .92;
  letter-spacing: -.075em;
}
.hero h1 span {
  display: block;
  width: max-content;
  color: var(--cyan);
  background: linear-gradient(90deg, var(--cyan), #8ba1ff 52%, #d16aff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-lead {
  margin: 28px 0 8px;
  font-size: clamp(1.55rem, 3vw, 2.45rem);
  font-weight: 720;
  line-height: 1.2;
  letter-spacing: -.035em;
}
.hero-text {
  max-width: 590px;
  margin: 0;
  color: #ccd8ef;
  font-size: clamp(1rem, 1.4vw, 1.18rem);
}
.hero-actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; }
.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 13px;
  padding: 0 21px;
  font-size: .94rem;
  font-weight: 750;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button svg { width: 20px; height: 20px; }
.button.primary {
  color: white;
  background: linear-gradient(110deg, #248dff, #785dff 58%, #b847ed);
  box-shadow: 0 14px 38px rgba(76, 87, 255, .35);
}
.button.primary:hover { box-shadow: 0 18px 48px rgba(76, 87, 255, .48); }
.button.install-button svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}
.button.secondary {
  border-color: rgba(75, 213, 255, .65);
  color: white;
  background: rgba(5, 11, 40, .68);
  box-shadow: inset 0 0 25px rgba(89, 65, 219, .12);
}
.scroll-cue {
  position: absolute;
  z-index: 2;
  bottom: 28px;
  left: 50%;
  width: 28px;
  height: 45px;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 18px;
}
.scroll-cue span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  border-radius: 2px;
  background: var(--cyan);
  transform: translateX(-50%);
  animation: scrollCue 1.8s infinite;
}
@keyframes scrollCue { 0% { opacity: 0; transform: translate(-50%, 0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, 16px); } }

section { position: relative; }
.section-light { background: var(--ice-2); }
.overview { padding: 115px 0 100px; }
.overview-grid {
  display: grid;
  grid-template-columns: .88fr 1.12fr;
  gap: 78px;
  align-items: center;
}
.section-label {
  margin: 0 0 12px;
  color: #2b67ef;
  font-size: .78rem;
  font-weight: 820;
  letter-spacing: .16em;
  text-transform: uppercase;
}
h2 {
  margin: 0;
  font-size: clamp(2.15rem, 4vw, 3.75rem);
  line-height: 1.06;
  letter-spacing: -.055em;
}
.section-intro, .features-heading > p, .setup-heading > p, .commands-heading > p {
  color: var(--muted);
  font-size: 1.05rem;
}
.feature-line {
  margin-top: 30px;
  display: flex;
  align-items: center;
  gap: 17px;
}
.feature-line p { margin: 0; color: var(--muted); }
.feature-line p strong { color: var(--ink); }
.feature-line-icon {
  position: relative;
  width: 58px;
  height: 58px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid #c5d9f5;
  border-radius: 18px;
  color: #2673ef;
  background: white;
  box-shadow: 0 12px 30px rgba(48, 102, 190, .13);
  font-size: 1.4rem;
  font-weight: 850;
}
.feature-line-icon span { position: absolute; right: 6px; bottom: 5px; font-size: .76rem; }
.channel-demo {
  position: relative;
  min-height: 460px;
  isolation: isolate;
}
.channel-card {
  position: absolute;
  z-index: 2;
  width: min(310px, 55%);
  overflow: hidden;
  border: 1px solid rgba(84, 146, 255, .28);
  border-radius: 15px;
  color: #dce8ff;
  background: linear-gradient(140deg, #101d4e, #091337);
  box-shadow: 0 18px 45px rgba(18, 50, 117, .2);
}
.channel-card header {
  min-height: 42px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 7px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  font-size: .78rem;
}
.channel-card header span:last-child { margin-left: auto; }
.discord-dot { color: #779aff; font-size: 1.2rem; }
.channel-card p {
  margin: 0;
  padding: 16px;
  display: grid;
  gap: 3px;
  font-size: .78rem;
}
.channel-card p b { color: #8cb2ff; }
.channel-de { top: 8px; left: 0; }
.channel-en { top: 136px; right: 0; border-color: rgba(170, 86, 255, .42); }
.channel-fr { left: 40px; bottom: 0; border-color: rgba(52, 216, 255, .42); }
.thinking-mascot {
  position: absolute;
  z-index: 1;
  right: 21%;
  bottom: 8%;
  width: 310px;
  border-radius: 50%;
  mix-blend-mode: multiply;
  filter: drop-shadow(0 18px 34px rgba(76, 97, 190, .14));
}
.demo-connector {
  position: absolute;
  inset: 60px 110px 80px 100px;
  z-index: 0;
  border: 2px dashed rgba(70, 130, 255, .32);
  border-radius: 44%;
}

.features {
  padding: 110px 0;
  background: linear-gradient(135deg, #e9f4ff 0%, #f9fcff 48%, #eff0ff 100%);
}
.features-heading, .setup-heading, .commands-heading {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 80px;
  align-items: end;
  margin-bottom: 58px;
}
.features-heading > p, .setup-heading > p, .commands-heading > p { margin: 0 0 5px; }
.feature-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}
.feature-item {
  min-height: 220px;
  padding: 34px 32px 26px 0;
  border-bottom: 1px solid var(--line);
}
.feature-item:not(:nth-child(3n + 1)) { padding-left: 32px; border-left: 1px solid var(--line); }
.feature-icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  margin-bottom: 23px;
  border: 1px solid #c9dcf5;
  border-radius: 50%;
  color: #3671e9;
  background: rgba(255,255,255,.68);
  box-shadow: 0 10px 28px rgba(58, 103, 184, .1);
}
.feature-icon svg { width: 24px; height: 24px; }
.feature-item h3 {
  margin: 0 0 8px;
  font-size: 1.03rem;
  line-height: 1.3;
}
.feature-item p { margin: 0; color: var(--muted); font-size: .91rem; }

.workflow {
  padding: 110px 0 115px;
  overflow: hidden;
  color: white;
  background:
    radial-gradient(circle at 75% 40%, rgba(73, 78, 255, .2), transparent 34%),
    linear-gradient(130deg, #03071d, #07133b 58%, #080629);
}
.workflow::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .18;
  background-image: radial-gradient(circle, #66dfff 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(90deg, transparent, black, transparent);
}
.workflow-heading { position: relative; z-index: 1; max-width: 780px; }
.workflow .section-label { color: var(--cyan); }
.workflow-steps {
  position: relative;
  z-index: 1;
  margin-top: 58px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.workflow-step {
  position: relative;
  padding-right: 56px;
}
.workflow-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 31px;
  right: 14px;
  width: 45px;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  box-shadow: var(--glow);
}
.step-number {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  border: 1px solid #477eff;
  border-radius: 20px;
  color: var(--cyan);
  background: linear-gradient(145deg, rgba(40, 79, 171, .55), rgba(35, 18, 100, .4));
  box-shadow: 0 0 32px rgba(42, 120, 255, .24);
  font-size: 1.4rem;
  font-weight: 850;
}
.workflow-step h3 { margin: 0 0 8px; }
.workflow-step p { max-width: 260px; margin: 0; color: #acb9d7; font-size: .92rem; }
.workflow-messages {
  position: relative;
  z-index: 1;
  margin-top: 70px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.workflow-messages div {
  display: flex;
  gap: 13px;
  align-items: center;
  padding: 17px 19px;
  border: 1px solid rgba(83, 163, 255, .45);
  border-radius: 13px;
  background: rgba(12, 27, 74, .74);
  box-shadow: inset 0 0 25px rgba(51, 89, 183, .14), 0 0 20px rgba(44, 125, 255, .1);
}
.workflow-messages div:nth-child(2) { border-color: rgba(166, 86, 255, .55); }
.workflow-messages p { margin: 0; color: #d8e2f8; font-size: .8rem; line-height: 1.35; }
.workflow-messages p b { display: block; color: #8eb4ff; }

.setup { padding: 115px 0; }
.wiki-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr) 310px;
  gap: 38px;
  align-items: start;
}
.wiki-nav {
  position: sticky;
  top: calc(var(--header-height) + 24px);
  padding: 21px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(255,255,255,.7);
  box-shadow: 0 18px 45px rgba(36, 81, 151, .08);
}
.wiki-nav > p { margin: 0 0 13px; font-size: .86rem; font-weight: 800; }
.wiki-nav button {
  width: 100%;
  display: flex;
  gap: 10px;
  align-items: center;
  border: 0;
  border-left: 2px solid transparent;
  padding: 9px 8px;
  color: #596781;
  background: transparent;
  text-align: left;
  font-size: .78rem;
}
.wiki-nav button:hover, .wiki-nav button.active {
  border-left-color: #3479ff;
  color: #245ed8;
  background: #e8f0ff;
}
.wiki-nav button span {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 50%;
  color: #275fda;
  background: #dbe8ff;
  font-size: .67rem;
  font-weight: 800;
}
.wiki-content { border-top: 1px solid var(--line); }
.wiki-step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-height) + 25px);
}
.wiki-step > span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: linear-gradient(135deg, #2c8bff, #7857f7);
  font-weight: 800;
}
.wiki-step h3 { margin: 2px 0 7px; font-size: 1.12rem; }
.wiki-step p { margin: 0; color: var(--muted); font-size: .92rem; }
.wiki-step code {
  display: inline-block;
  border: 1px solid #cadcf4;
  border-radius: 6px;
  padding: 1px 6px;
  color: #365ec4;
  background: #edf4ff;
  font-size: .84em;
}
.wiki-mascot {
  position: sticky;
  top: calc(var(--header-height) + 24px);
  margin: 0;
  text-align: center;
}
.wiki-mascot img {
  border-radius: 36%;
  mix-blend-mode: multiply;
  filter: drop-shadow(0 24px 35px rgba(76, 97, 190, .15));
}
.wiki-mascot figcaption { margin-top: 5px; color: #65728e; font-size: .82rem; }

.commands {
  padding: 110px 0;
  background: white;
}
.command-search {
  height: 54px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 25px;
  border: 1px solid #c8d9f0;
  border-radius: 13px;
  padding: 0 17px;
  background: #f8fbff;
}
.command-search:focus-within { border-color: #5587ff; box-shadow: 0 0 0 4px rgba(74, 126, 255, .12); }
.command-search svg { width: 21px; height: 21px; color: #59709d; }
.command-search input { width: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; }
.command-group {
  overflow: hidden;
  margin-bottom: 12px;
  border: 1px solid #d2e0f2;
  border-radius: 14px;
  background: #fbfdff;
}
.command-group summary {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}
.command-group summary::-webkit-details-marker { display: none; }
.command-group summary::after {
  content: "";
  width: 8px;
  height: 8px;
  margin-left: auto;
  border-right: 2px solid #60749a;
  border-bottom: 2px solid #60749a;
  transform: rotate(45deg);
  transition: transform .2s ease;
}
.command-group[open] summary::after { transform: rotate(225deg); }
.command-group-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #2f70ec;
  background: #e8f1ff;
}
.command-group-icon svg { width: 19px; height: 19px; }
.command-list { border-top: 1px solid #dae5f3; }
.command-row {
  display: grid;
  grid-template-columns: minmax(225px, .72fr) 1.5fr auto;
  gap: 20px;
  align-items: start;
  padding: 18px;
  border-bottom: 1px solid #e1eaf6;
}
.command-row:last-child { border-bottom: 0; }
.command-name {
  width: max-content;
  max-width: 100%;
  overflow-wrap: anywhere;
  border: 1px solid #cbdcf2;
  border-radius: 7px;
  padding: 4px 8px;
  color: #305eca;
  background: #edf4ff;
  font: 750 .8rem/1.45 ui-monospace, SFMono-Regular, Consolas, monospace;
}
.command-description { margin: 3px 0 0; color: var(--muted); font-size: .88rem; }
.permission {
  border-radius: 7px;
  padding: 4px 8px;
  color: #714099;
  background: #f4eaff;
  font-size: .7rem;
  font-weight: 760;
  white-space: nowrap;
}
.permission.public { color: #257150; background: #e4f8ef; }
.empty-state {
  margin: 25px 0 0;
  padding: 30px;
  border: 1px dashed #b8cce8;
  border-radius: 15px;
  color: var(--muted);
  text-align: center;
}

.support {
  padding: 76px 0;
  color: white;
  background:
    radial-gradient(circle at 20% 30%, rgba(50, 215, 255, .14), transparent 28%),
    linear-gradient(110deg, #07133a, #0a0b32 58%, #170a3c);
}
.support-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}
.support h2 { max-width: 780px; font-size: clamp(2rem, 3vw, 3rem); }
.support p { max-width: 740px; margin-bottom: 0; color: #b7c5df; }
.button.donate {
  flex: none;
  border-color: rgba(97, 205, 255, .65);
  color: white;
  background: rgba(14, 30, 77, .7);
  box-shadow: 0 0 25px rgba(91, 90, 255, .2);
}
.paypal-p { color: #49b8ff; font-size: 1.35rem; font-style: italic; font-weight: 900; }

.site-footer {
  padding: 64px 0 28px;
  color: #b7c4df;
  background: var(--navy-950);
  border-top: 1px solid rgba(141, 172, 239, .12);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 70px;
}
.footer-brand .brand { color: white; }
.footer-brand p { max-width: 320px; margin: 17px 0 0; }
.site-footer h3 { margin: 7px 0 14px; color: white; font-size: .87rem; }
.site-footer div > a:not(.brand) { display: block; margin: 8px 0; font-size: .83rem; }
.site-footer div > a:hover { color: var(--cyan); }
.copyright {
  grid-column: 1 / -1;
  margin: 32px 0 0;
  padding-top: 22px;
  border-top: 1px solid rgba(141, 172, 239, .12);
  font-size: .75rem;
}

.search-dialog {
  width: min(720px, calc(100% - 28px));
  max-height: min(680px, calc(100vh - 50px));
  border: 1px solid rgba(151, 181, 255, .28);
  border-radius: 19px;
  padding: 0;
  color: white;
  background: #081235;
  box-shadow: 0 30px 100px rgba(0, 0, 0, .55);
}
.search-dialog::backdrop { background: rgba(1, 4, 18, .75); backdrop-filter: blur(7px); }
.search-modal { min-height: 260px; }
.search-modal-top {
  height: 70px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(155, 184, 255, .18);
}
.search-modal-top svg { width: 24px; height: 24px; color: var(--cyan); }
.search-modal-top input { flex: 1; min-width: 0; border: 0; outline: 0; color: white; background: transparent; font-size: 1rem; }
.search-modal-top input::placeholder { color: #8fa0c2; }
.search-close {
  border: 1px solid rgba(166, 192, 255, .25);
  border-radius: 7px;
  padding: 3px 7px;
  color: #aebcda;
  background: rgba(255,255,255,.04);
  font-size: .72rem;
}
.search-results { max-height: 470px; overflow: auto; padding: 10px; }
.search-result {
  display: block;
  padding: 13px 14px;
  border-radius: 10px;
}
.search-result:hover, .search-result:focus-visible { outline: 0; background: rgba(74, 119, 255, .16); }
.search-result strong { display: block; color: white; }
.search-result span { color: #9eaed0; font-size: .82rem; }
.search-hint { margin: 0; padding: 28px; color: #95a6c8; text-align: center; font-size: .86rem; }

.reveal {
  opacity: 1;
  transform: none;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
:focus-visible { outline: 3px solid rgba(50, 215, 255, .65); outline-offset: 3px; }

@media (max-width: 1080px) {
  :root { --page: min(100% - 34px, 980px); }
  .nav-links { gap: 18px; }
  .search-trigger { min-width: auto; }
  .search-trigger span, .search-trigger kbd { display: none; }
  .overview-grid { gap: 35px; }
  .wiki-layout { grid-template-columns: 190px 1fr; }
  .wiki-mascot { grid-column: 1 / -1; position: static; max-width: 310px; margin: 15px auto 0; }
}

@media (max-width: 820px) {
  :root { --header-height: 68px; }
  .menu-toggle { display: block; }
  .nav-content {
    position: absolute;
    top: var(--header-height);
    right: 0;
    left: 0;
    display: none;
    padding: 18px;
    color: white;
    background: rgba(3, 7, 29, .98);
    border-bottom: 1px solid rgba(153, 184, 255, .2);
  }
  .site-header.menu-open .nav-content { display: block; }
  .site-header.menu-open .menu-toggle > span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .site-header.menu-open .menu-toggle > span:nth-child(2) { opacity: 0; }
  .site-header.menu-open .menu-toggle > span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-links { display: grid; gap: 0; }
  .nav-links a { padding: 12px 8px; }
  .nav-links a::after { display: none; }
  .nav-tools { margin-top: 12px; }
  .search-trigger { flex: 1; }
  .search-trigger span { display: block; }
  .hero { min-height: 700px; }
  .hero-background { background-position: 62% center; background-attachment: scroll; }
  .hero-fade { background: linear-gradient(90deg, rgba(3,7,29,.96), rgba(3,7,29,.73) 66%, rgba(3,7,29,.38)); }
  .hero-copy { max-width: 560px; }
  .overview-grid { grid-template-columns: 1fr; }
  .channel-demo { min-height: 430px; }
  .feature-list { grid-template-columns: repeat(2, 1fr); }
  .feature-item:nth-child(n) { padding: 28px 24px; border-left: 0; }
  .feature-item:nth-child(even) { border-left: 1px solid var(--line); }
  .features-heading, .setup-heading, .commands-heading { grid-template-columns: 1fr; gap: 20px; }
  .workflow-steps { gap: 25px; }
  .workflow-step { padding-right: 20px; }
  .workflow-step:not(:last-child)::after { display: none; }
  .workflow-messages { grid-template-columns: 1fr; max-width: 650px; }
  .wiki-layout { grid-template-columns: 1fr; }
  .wiki-nav { position: static; }
  .wiki-nav > div { display: grid; grid-template-columns: repeat(2, 1fr); }
  .wiki-mascot { grid-column: auto; }
  .command-row { grid-template-columns: 1fr; gap: 9px; }
  .permission { width: max-content; }
  .support-inner { align-items: flex-start; flex-direction: column; }
  .footer-grid { grid-template-columns: 1.5fr repeat(3, 1fr); gap: 35px; }
}

@media (max-width: 560px) {
  :root { --page: calc(100% - 28px); }
  .brand { font-size: 1.08rem; }
  .brand-mark { width: 37px; height: 37px; }
  .nav-tools { align-items: stretch; flex-direction: column; }
  .language-control select { max-width: none; width: 100%; }
  .hero { min-height: 720px; align-items: flex-end; }
  .hero-background {
    top: var(--header-height);
    background-size: auto 72%;
    background-position: 65% top;
    background-repeat: no-repeat;
  }
  .hero-fade {
    background:
      linear-gradient(0deg, rgba(3,7,29,1) 15%, rgba(3,7,29,.72) 65%, rgba(3,7,29,.18)),
      linear-gradient(90deg, rgba(3,7,29,.68), transparent);
  }
  .hero-content { padding: 280px 0 70px; }
  .hero h1 { font-size: clamp(3.35rem, 17vw, 5rem); }
  .hero-lead { margin-top: 20px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .scroll-cue { display: none; }
  .overview, .features, .workflow, .setup, .commands { padding-block: 80px; }
  .channel-demo { min-height: 520px; }
  .channel-card { width: 78%; }
  .channel-de { top: 0; }
  .channel-en { top: 120px; }
  .channel-fr { bottom: 50px; }
  .thinking-mascot { right: 4%; bottom: 0; width: 230px; }
  .feature-list { grid-template-columns: 1fr; }
  .feature-item:nth-child(n) { min-height: 0; padding: 25px 0; border-left: 0; }
  .workflow-steps { grid-template-columns: 1fr; gap: 36px; }
  .workflow-step { display: grid; grid-template-columns: 60px 1fr; column-gap: 17px; }
  .workflow-step .step-number { grid-row: 1 / 3; }
  .workflow-step h3 { margin-top: 4px; }
  .wiki-nav > div { grid-template-columns: 1fr; }
  .wiki-mascot { max-width: 260px; }
  .commands-heading { margin-bottom: 35px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

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