/* ============================================================
   cdxssh marketing site — stylesheet
   Sections: tokens, base, layout helpers, components, sections,
             media queries, reduced-motion
   ============================================================ */

/* ---------- tokens ---------- */
:root{
  --bg0:#0a0e14; --bg1:#0e131b; --bg2:#141b26; --bg3:#1b2432;
  --line:#1f2937; --line2:#2b3950;
  --txt:#d7e0ea; --mut:#8ea0b5; --dim:#5f7186;
  --acc:#35d0ba; --acc-hov:#4be0ca; --acc-ink:#052620; --acc-dim:rgba(53,208,186,0.14);
  --ok:#3ecf8e; --warn:#f5c664; --bad:#ff6f6f;
  --radius:8px;
  --font-ui:"Segoe UI Variable Text","Segoe UI",system-ui,-apple-system,sans-serif;
  --font-mono:"Cascadia Mono","Cascadia Code",Consolas,"JetBrains Mono",monospace;
}

/* ---------- base ---------- */
*, *::before, *::after{ box-sizing: border-box; }

html{
  scroll-behavior: smooth;
  color-scheme: dark;
}

body{
  margin: 0;
  background: var(--bg0);
  color: var(--txt);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3{
  margin: 0 0 0.5em 0;
  font-weight: 700;
  color: var(--txt);
}

p{ margin: 0 0 1em 0; }

a{ color: inherit; text-decoration: none; }

img{ max-width: 100%; display: block; }

svg{ flex-shrink: 0; }

ul{ margin: 0; padding: 0; list-style: none; }

button{ font-family: inherit; }

.container{
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link{
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--bg2);
  color: var(--txt);
  padding: 10px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line2);
  z-index: 1000;
}
.skip-link:focus{
  left: 16px;
  top: 16px;
}

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

/* custom scrollbar */
::-webkit-scrollbar{ width: 10px; height: 10px; }
::-webkit-scrollbar-thumb{
  background: var(--line2);
  border-radius: 5px;
  border: 2px solid transparent;
  background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover{
  background: var(--dim);
  border: 2px solid transparent;
  background-clip: content-box;
}
::-webkit-scrollbar-track{ background: transparent; }

/* ---------- shared components ---------- */

.wordmark{
  font-weight: 700;
  color: var(--txt);
  letter-spacing: -0.01em;
}
.wordmark em{
  font-style: normal;
  color: var(--acc);
}

.eyebrow{
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--acc);
  font-weight: 600;
  margin: 0 0 12px 0;
}

.section-lead{
  font-size: 16px;
  color: var(--mut);
  max-width: 560px;
  line-height: 1.6;
}

.btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  background: none;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
  white-space: nowrap;
}

.btn-accent{
  background: var(--acc);
  color: var(--acc-ink);
}
.btn-accent:hover{ background: var(--acc-hov); }

.btn-ghost{
  background: var(--bg3);
  border-color: var(--line2);
  color: var(--txt);
}
.btn-ghost:hover{
  background: #223045;
  border-color: var(--dim);
}

.btn-lg{
  padding: 13px 24px;
  font-size: 16px;
}

.btn-sm{
  padding: 8px 14px;
  font-size: 14px;
}

.btn-disabled{
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.dot{
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot-ok{ background: var(--ok); }
.dot-warn{ background: var(--warn); }
.dot-dim{ background: var(--dim); }

/* scroll-reveal */
.reveal{
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.reveal.on{
  opacity: 1;
  transform: translateY(0);
}

/* ---------- nav ---------- */
.nav{
  position: sticky;
  top: 0;
  z-index: 100;
  height: 60px;
  background: rgba(10,14,20,.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 150ms ease;
}
.nav.scrolled{
  border-bottom-color: var(--line2);
}
.nav-inner{
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand{
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 17px;
}
.brand-icon{
  border-radius: 6px;
}
.nav-links{
  display: flex;
  align-items: center;
  gap: 28px;
  margin-right: auto;
  margin-left: 40px;
  font-size: 14.5px;
  color: var(--mut);
}
.nav-links a{
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color 150ms ease;
}
.nav-links a:hover{ color: var(--txt); }
.ext-icon{ opacity: 0.8; }

/* ---------- hero ---------- */
.hero{
  position: relative;
  padding-top: 90px;
  padding-bottom: 56px;
  text-align: center;
  overflow: hidden;
}

.hero-decor{
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero-grid{
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(90deg, rgba(31,41,55,.35) 0 1px, transparent 1px 40px),
    repeating-linear-gradient(0deg, rgba(31,41,55,.35) 0 1px, transparent 1px 40px);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, black, transparent);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, black, transparent);
}
.hero-glow{
  position: absolute;
  top: 40px;
  left: 50%;
  width: 900px;
  height: 500px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse closest-side, rgba(53,208,186,.14), transparent 70%);
}

.hero .container{
  position: relative;
  z-index: 1;
}

.version-pill{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line2);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 13px;
  color: var(--mut);
  margin-bottom: 24px;
}

.hero-title{
  font-size: clamp(2.5rem, 5.3vw, 4.3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 20px 0;
}
.dotsep{
  color: var(--acc);
}

.hero-sub{
  font-size: 18px;
  color: var(--mut);
  max-width: 620px;
  margin: 0 auto 32px auto;
}

.cta-row{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.fine-print{
  font-size: 13px;
  color: var(--dim);
  margin-bottom: 0;
}

/* ---------- app window mockup ---------- */
.app-window{
  margin-top: 56px;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
  background: var(--bg0);
  border: 1px solid var(--line2);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,.5);
  min-width: 0;
}

.app-titlebar{
  height: 36px;
  background: var(--bg1);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
}
.app-titlebar-left{
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: var(--dim);
}
.app-titlebar-left img{ border-radius: 3px; }
.app-titlebar-right{
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--dim);
}

.app-body{
  display: flex;
  min-height: 404px;
}

.app-sidebar{
  width: 208px;
  flex-shrink: 0;
  background: var(--bg1);
  border-right: 1px solid var(--line);
  padding: 10px;
  font-size: 12.5px;
  display: flex;
  flex-direction: column;
}
.sidebar-brand{
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
  font-size: 13px;
}
.sidebar-brand img{ border-radius: 4px; }
.side-new-btn{
  width: 100%;
  font-size: 12px;
  padding: 6px;
  border-radius: 6px;
  justify-content: center;
}
.side-label{
  font-size: 10px;
  text-transform: uppercase;
  color: var(--dim);
  letter-spacing: 0.1em;
  margin: 12px 0 6px 0;
}
.side-group-label{
  font-size: 10.5px;
  color: var(--dim);
  margin: 10px 0 4px 2px;
}
.side-row{
  padding: 6px 8px;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.side-name{ font-size: 12.5px; color: var(--txt); }
.side-sub{ font-size: 11px; color: var(--dim); }
.side-row.pressed{
  background: var(--bg3);
}
.side-row.sel{
  background: var(--acc-dim);
  box-shadow: inset 2px 0 0 var(--acc);
}
.sidebar-footer{
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  color: var(--dim);
  font-size: 11.5px;
}

.app-main{
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.app-tabbar{
  height: 36px;
  background: var(--bg1);
  border-bottom: 1px solid var(--line);
  display: flex;
  font-size: 12.5px;
  overflow: hidden;
}
.app-tab{
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--mut);
  border-right: 1px solid var(--line);
  white-space: nowrap;
}
.app-tab-active{
  background: var(--bg0);
  color: var(--txt);
  box-shadow: inset 0 2px 0 var(--acc);
}
.app-tab.hidden{ display: none; }
.app-tab.tab-in{
  animation: tab-in .2s ease;
}
@keyframes tab-in{
  from{ opacity: 0; transform: translateY(2px); }
  to{ opacity: 1; transform: translateY(0); }
}
.tab-dot{
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.tab-dot-pulse{
  animation: pulse 1.2s ease-in-out infinite;
}
@keyframes pulse{ 50%{ opacity: .35; } }

/* ---------- home view / session view swap ---------- */
#homeView{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 24px 20px;
  background: var(--bg0);
}
#homeView.hidden{ display: none; }

#sessionView{
  display: none;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
#sessionView.active{ display: flex; }

.hv-hero{
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.hv-hero .wordmark{ font-size: 24px; }
.hv-tag{
  font-size: 11.5px;
  color: var(--mut);
  margin-bottom: 18px;
  text-align: center;
}
.hv-qc{
  background: var(--bg1);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  max-width: 100%;
}
.hv-label{
  display: block;
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--dim);
  margin-bottom: 4px;
}
.hv-box{
  display: block;
  background: var(--bg0);
  border: 1px solid var(--line2);
  border-radius: 6px;
  padding: 5px 9px;
  font-size: 11.5px;
  color: var(--txt);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hv-box-dim{ color: var(--dim); }
.hv-field-proto .hv-box{
  width: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
}
.hv-field-host .hv-box{ width: 110px; }
.hv-field-port .hv-box{ width: 44px; }
.hv-field-user .hv-box,
.hv-field-pass .hv-box{ width: 72px; }
.hv-connect{
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--acc);
  color: var(--acc-ink);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}
.hv-recent{
  width: 100%;
  max-width: 460px;
  margin-top: 18px;
}
.hv-recent .hv-label{
  text-align: left;
  margin-bottom: 8px;
}
.hv-cards{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.hv-card{
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hv-chip{
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--acc-dim);
  color: var(--acc);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hv-card-text{
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.hv-card-name{
  font-size: 12px;
  color: var(--txt);
  font-weight: 600;
}
.hv-card-sub{
  font-size: 10.5px;
  color: var(--dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- app toolbar (below tab bar) ---------- */
.app-toolbar{
  height: 32px;
  background: var(--bg1);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  font-size: 12px;
  color: var(--mut);
  opacity: 0;
  transition: opacity .25s ease;
}
.app-toolbar.shown{ opacity: 1; }
.toolbar-left{
  display: flex;
  align-items: center;
  gap: 7px;
}
.toolbar-right{
  display: flex;
  align-items: center;
  gap: 4px;
}
.tool-btn{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: var(--mut);
  font-size: 12px;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease;
}
.tool-btn:hover{ background: var(--bg3); }
#filesBtn.pressed,
#filesBtn.active{
  color: var(--acc);
  background: var(--acc-dim);
}

/* ---------- workspace (files panel + terminal) ---------- */
.app-workspace{
  display: flex;
  flex: 1;
  min-height: 0;
}

#filesPanel{
  width: 0;
  opacity: 0;
  overflow: hidden;
  border-right: 1px solid transparent;
  background: var(--bg0);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  transition: width .35s ease, opacity .25s ease .08s, border-color .35s ease;
}
#filesPanel.open{
  width: 212px;
  opacity: 1;
  border-right-color: var(--line);
}
.fp-inner{
  min-width: 212px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.fp-toolbar{
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  color: var(--mut);
}
.fp-toolbar-extra{
  display: contents;
}
.fp-path{
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--txt);
  border: 1px solid var(--line2);
  border-radius: 6px;
  padding: 2px 9px;
}
.fp-head{
  display: flex;
  justify-content: space-between;
  padding: 3px 12px 5px;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--dim);
}
.fp-list{
  flex: 1;
  overflow: hidden;
}
.fp-row{
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4.5px 12px;
  font-size: 12px;
  color: var(--mut);
  opacity: 0;
  transform: translateX(-5px);
  transition: opacity .3s ease, transform .3s ease;
}
.fp-row svg{ color: var(--dim); }
#filesPanel.open .fp-row{
  opacity: 1;
  transform: translateX(0);
}
#filesPanel.open .fp-row:nth-child(1){ transition-delay: 0ms; }
#filesPanel.open .fp-row:nth-child(2){ transition-delay: 35ms; }
#filesPanel.open .fp-row:nth-child(3){ transition-delay: 70ms; }
#filesPanel.open .fp-row:nth-child(4){ transition-delay: 105ms; }
#filesPanel.open .fp-row:nth-child(5){ transition-delay: 140ms; }
#filesPanel.open .fp-row:nth-child(6){ transition-delay: 175ms; }
#filesPanel.open .fp-row:nth-child(7){ transition-delay: 210ms; }
#filesPanel.open .fp-row:nth-child(8){ transition-delay: 245ms; }
#filesPanel.open .fp-row:nth-child(9){ transition-delay: 280ms; }
.fp-row.sel{
  background: var(--acc-dim);
  box-shadow: inset 2px 0 0 var(--acc);
  color: var(--txt);
}
.fp-name{
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fp-size{
  font-size: 11px;
  color: var(--dim);
  flex-shrink: 0;
}
.fp-foot{
  padding: 6px 12px;
  border-top: 1px solid var(--line);
  font-size: 10.5px;
  color: var(--dim);
}

.app-term{
  flex: 1;
  min-width: 0;
  padding: 14px 16px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--txt);
  min-height: 310px;
  overflow: hidden;
}
.term-line{ min-height: 1em; white-space: pre-wrap; word-break: break-word; }

.t-dim{ color: var(--dim); }
.t-ok{ color: var(--ok); }
.t-acc{ color: var(--acc); }
.t-blue{ color: #4da3ff; }
.t-warn{ color: var(--warn); }

.cursor{
  display: inline-block;
  width: 7px;
  height: 14px;
  background: var(--acc);
  vertical-align: -2px;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink{ 50%{ opacity: 0; } }

.app-statusbar{
  height: 26px;
  background: var(--bg1);
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  font-size: 11px;
  color: var(--mut);
}
.status-left{
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.status-right{
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.xfer-name{ color: var(--dim); }
.xfer-track{
  width: 90px;
  height: 4px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
  display: inline-block;
}
.xfer-fill{
  display: block;
  height: 100%;
  width: 0%;
  background: var(--acc);
}

/* ---------- protocol strip ---------- */
.protocols{
  padding: 48px 0;
}
.protocol-strip{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.chip{
  display: inline-flex;
  align-items: baseline;
  font-family: var(--font-mono);
  font-size: 13.5px;
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
}
.chip-proto{ color: var(--acc); }
.chip-slash{ color: var(--dim); }

/* ---------- sections generic ---------- */
section{
  padding: 96px 0;
}
.protocols{ padding: 48px 0; }

/* ---------- features / bento ---------- */
.bento{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 40px;
}
.card-wide{ grid-column: span 2; }
.card-full{ grid-column: 1 / -1; }

.card{
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  transition: border-color 150ms ease, background-color 150ms ease;
}
.card:hover{
  border-color: var(--line2);
  background: var(--bg3);
}
.card-icon{
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: var(--acc-dim);
  color: var(--acc);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.card h3{
  font-size: 16px;
  font-weight: 650;
  margin-bottom: 6px;
}
.card p{
  font-size: 14px;
  color: var(--mut);
  line-height: 1.55;
  margin-bottom: 0;
}

/* ---------- download ---------- */
.download-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 40px;
}
.download-card{
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.download-card-hero{
  border-color: var(--line2);
  background: var(--bg2);
}
.download-card h3{
  font-size: 20px;
  margin-bottom: 0;
}
.linux-h3{
  display: flex;
  align-items: center;
  gap: 10px;
}
.download-meta{
  font-size: 13.5px;
  color: var(--mut);
  margin-bottom: 6px;
}
.download-card .btn{ width: 100%; justify-content: center; }
.download-fine{
  font-size: 12.5px;
  color: var(--dim);
  margin: 4px 0 0 0;
}
.pill{
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
}
.pill-warn{
  background: rgba(245,198,100,.14);
  color: var(--warn);
  border: 1px solid rgba(245,198,100,.35);
}
.smartscreen-note{
  text-align: center;
  font-size: 13px;
  color: var(--dim);
  margin: 32px 0 0 0;
}

/* ---------- footer ---------- */
.site-footer{
  border-top: 1px solid var(--line);
  padding: 40px 0;
  background: var(--bg1);
}
.footer-inner{
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-tag{
  font-size: 13px;
  color: var(--dim);
  margin: 8px 0 0 0;
}
.footer-links{
  display: flex;
  gap: 20px;
  font-size: 14px;
  color: var(--mut);
  flex-wrap: wrap;
}
.footer-links a{ transition: color 150ms ease; }
.footer-links a:hover{ color: var(--txt); }

/* ============================================================
   media queries
   ============================================================ */

@media (max-width: 1024px){
  .bento{ grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px){
  .nav-links{ display: none; }

  section{ padding: 56px 0; }
  .protocols{ padding: 40px 0; }

  .bento{ grid-template-columns: 1fr; }
  .card-wide{ grid-column: auto; }

  .download-grid{ grid-template-columns: 1fr; }

  .app-sidebar{ display: none; }
  .app-term{ font-size: 11.5px; }
  .status-right{ display: none; }

  #filesPanel.open{ width: 148px; }
  .fp-toolbar-extra{ display: none; }
  .fp-head-size,
  .fp-size{ display: none; }
  .fp-row{ font-size: 11.5px; }

  #homeView{ padding: 18px 12px; }
  .hv-hero img{ width: 32px; height: 32px; }
  .hv-hero .wordmark{ font-size: 20px; }
  .hv-qc{ gap: 8px; }
  .hv-field-user,
  .hv-field-pass{ display: none; }
  .hv-field-host{ flex: 1; min-width: 0; }
  .hv-field-host .hv-box{ width: auto; }
  .hv-cards{ grid-template-columns: 1fr; }

  .hero{ padding-top: 76px; }

  .footer-inner{
    flex-direction: column;
    gap: 20px;
  }
}

@media (max-width: 400px){
  .cta-row .btn{ width: 100%; justify-content: center; }
}

/* ============================================================
   reduced motion
   ============================================================ */

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }

  *, *::before, *::after{
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .cursor{
    animation: none !important;
    opacity: 1;
  }
  .tab-dot-pulse{
    animation: none !important;
    opacity: 1;
  }
  .reveal{
    opacity: 1 !important;
    transform: none !important;
  }

  #filesPanel,
  .fp-row{
    transition-delay: 0s !important;
  }
}
