/* =========================================================================
   Hostfory — Layout CSS for Header / Footer / Home / Dedicated
   ========================================================================= */

/* ============== HEADER ============== */
.hf-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: oklch(from var(--bg-1) l c h / 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease, background 200ms ease;
}
.hf-header.is-scrolled { border-bottom-color: var(--line); }
.hf-header__row {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; gap: 24px;
}
.hf-header__left, .hf-header__right { display: flex; align-items: center; gap: 22px; }

.hf-logo { display: inline-flex; align-items: center; gap: 8px; color: var(--fg-0); }
.hf-logo__mark {
  width: 28px; height: 28px; display: grid; place-items: center;
  background: var(--bg-3); border: 1px solid var(--line-2); border-radius: 6px;
  color: var(--accent);
}
.hf-logo__text { font-weight: 600; letter-spacing: -0.01em; font-size: 16px; }
.hf-logo__dot { color: var(--accent); }

.hf-nav { display: flex; gap: 4px; }
.hf-nav__item {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px; border-radius: var(--radius);
  white-space: nowrap;
  color: var(--fg-1); font-size: 14px; font-weight: 500;
  background: transparent; border: 0; cursor: pointer;
  transition: color 120ms ease, background 120ms ease;
}
.hf-nav__item:hover, .hf-nav__item.is-open { color: var(--fg-0); background: var(--bg-3); }

.hf-status {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 10px; border-radius: 999px;
  background: var(--bg-2); border: 1px solid var(--line);
}
.hf-status__txt { font-size: 11px; color: var(--fg-2); }

.hf-iconbtn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px; background: transparent; color: var(--fg-1);
  border: 0; cursor: pointer; font-size: 12px;
}
.hf-iconbtn:hover { color: var(--fg-0); }

.hf-signin {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--fg-1); font-size: 14px; font-weight: 500;
  padding: 8px 10px;
  white-space: nowrap;
}
.hf-signin:hover { color: var(--fg-0); }

.hf-burger { display: none; }

@media (max-width: 1100px) {
  .hf-status { display: none; }
}
@media (max-width: 900px) {
  .hf-nav, .hf-iconbtn, .hf-signin { display: none; }
  .hf-burger {
    display: inline-flex; flex-direction: column; gap: 4px; padding: 8px;
    background: transparent; border: 1px solid var(--line-2); border-radius: var(--radius);
    cursor: pointer;
  }
  .hf-burger span { display: block; width: 16px; height: 1.5px; background: var(--fg-0); }
}

/* Mega menu */
.hf-mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--bg-1); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 32px 0;
}
.hf-mega__grid {
  display: grid; grid-template-columns: 320px 1fr; gap: 48px;
}
.hf-mega__pitch h3 { font-size: 20px; margin: 8px 0 6px; }
.hf-mega__pitch p { color: var(--fg-2); margin: 0 0 16px; }
.hf-mega__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.hf-mega__col { display: flex; flex-direction: column; gap: 4px; }
.hf-mega__col .eyebrow { margin-bottom: 8px; }
.hf-mega__link {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: var(--radius);
  color: var(--fg-1); font-size: 14px;
  transition: background 120ms ease, color 120ms ease;
}
.hf-mega__link:hover { background: var(--bg-3); color: var(--fg-0); }
.hf-mega__link .hf-flag { flex: 0 0 18px; }
.hf-mega__link > span:not(.hf-mega__ic):not(.hf-mega__lat):not(.hf-flag) { flex: 1; min-width: 0; }
.hf-mega__lat { margin-left: auto; color: var(--fg-3); font-size: 12px; }
.hf-mega__ic { width: 18px; text-align: center; color: var(--fg-3); font-family: var(--font-mono); }

/* Flag */
.hf-flag {
  display: inline-flex; flex-direction: column;
  width: 18px; height: 13px; border-radius: 2px; overflow: hidden;
  border: 1px solid var(--line-2); flex-shrink: 0;
  position: relative;
}
.hf-flag span { width: 100%; }

/* US flag — stripes + blue canton with star dots */
.hf-flag--us { display: inline-block; background: #fff; }
.hf-flag--us .hf-flag__stripes {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
}
.hf-flag--us .hf-flag__stripes span:nth-child(even) { background: #fff !important; }
.hf-flag--us .hf-flag__stripes span { flex: 1; width: 100%; }
.hf-flag--us .hf-flag__canton {
  position: absolute; left: 0; top: 0;
  width: 45%; height: 54%;
  background: #3C3B6E;
  background-image:
    radial-gradient(circle, #fff 0.5px, transparent 0.7px);
  background-size: 2.5px 2.5px;
}

/* Mobile drawer */
.hf-mobile {
  display: flex; flex-direction: column; gap: 4px; padding: 16px 24px 24px;
  background: var(--bg-1); border-top: 1px solid var(--line);
}
.hf-mobile a { padding: 12px 4px; color: var(--fg-1); }

/* ============== HERO ============== */
.hf-hero {
  position: relative; padding: 56px 0 0;
  background:
    radial-gradient(1200px 400px at 80% 0%, oklch(0.30 0.07 155 / 0.18), transparent 70%),
    radial-gradient(800px 400px at 0% 100%, oklch(0.30 0.04 250 / 0.4), transparent 70%);
  overflow: hidden;
}
.hf-hero__grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: -1px -1px;
  opacity: 0.18;
  mask-image: radial-gradient(ellipse 60% 80% at 50% 0%, #000 30%, transparent 80%);
  pointer-events: none;
}
.hf-hero__inner {
  position: relative;
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center;
  padding-bottom: 80px;
}
.hf-hero__copy .pill { margin-bottom: 20px; }
.hf-hero__title {
  font-size: clamp(36px, 4.6vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin: 0 0 20px;
  color: var(--fg-0);
}
.hf-hero__sub {
  margin: 0 0 28px; color: var(--fg-2); font-size: 17px; max-width: 540px; text-wrap: pretty;
}
.hf-hero__cta { display: flex; gap: 12px; margin-bottom: 28px; flex-wrap: wrap; }
.hf-hero__bullets { display: flex; flex-direction: column; gap: 8px; }
.hf-hero__bullets li {
  display: flex; align-items: center; gap: 10px;
  color: var(--fg-1); font-size: 14px;
}
.hf-hero__bullets svg { color: var(--accent); flex-shrink: 0; }

/* live panel */
.hf-panel {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
  overflow: hidden;
}
.hf-panel::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, oklch(1 0 0 / 0.04), transparent 30%);
}
.hf-panel__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; gap: 8px; flex-wrap: wrap; white-space: nowrap; }
.hf-panel__head .eyebrow, .hf-panel__head .mono { white-space: nowrap; }
.hf-panel__big {
  font-size: 56px; font-weight: 600; letter-spacing: -0.03em; line-height: 1;
  display: flex; align-items: baseline; gap: 8px;
  white-space: nowrap;
}
.hf-panel__unit { font-size: 18px; color: var(--fg-2); font-weight: 400; }
.hf-panel__sub { font-size: 13px; margin-top: 4px; }
.hf-graph {
  display: flex; align-items: flex-end; gap: 3px; height: 80px;
  margin: 24px 0 20px;
  border-bottom: 1px dashed var(--line-2);
  padding-bottom: 4px;
}
.hf-graph__bar {
  flex: 1; background: linear-gradient(180deg, var(--accent), oklch(from var(--accent) 0.5 c h));
  border-radius: 1px;
  animation: graph-rise 600ms ease-out backwards;
  opacity: 0.85;
}
@keyframes graph-rise { from { transform: scaleY(0.1); opacity: 0; transform-origin: bottom; } }
.hf-panel__rows { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 24px; }
.hf-panel__rows > div { display: flex; justify-content: space-between; font-size: 12px; gap: 8px; min-width: 0; white-space: nowrap; }

/* ticker */
.hf-hero__ticker {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--bg-0); overflow: hidden; padding: 12px 0;
}
.hf-ticker__row { display: flex; gap: 32px; white-space: nowrap; animation: ticker 40s linear infinite; }
.hf-ticker__cell { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--fg-2); }
.hf-ticker__city { color: var(--fg-1); }
.hf-ticker__sep { color: var(--fg-3); margin: 0 2px; }

/* ============== TRUST ============== */
.hf-trust { padding: 28px 0; border-bottom: 1px solid var(--line); }
.hf-trust__row { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.hf-trust__logos {
  display: flex; gap: 32px; flex-wrap: wrap; flex: 1;
  font-size: 13px; letter-spacing: 0.12em; color: var(--fg-2);
}
.hf-trust__logos span {
  padding: 4px 10px; border: 1px solid var(--line); border-radius: 3px;
}

/* ============== PRODUCTS ============== */
.hf-products {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr; grid-template-rows: auto auto;
  gap: 16px;
}
.hf-product {
  display: flex; flex-direction: column; gap: 12px;
  padding: 24px; background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  text-decoration: none; color: var(--fg-1);
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}
.hf-product:hover { border-color: var(--line-2); background: var(--bg-3); transform: translateY(-2px); }
.hf-product--feat {
  grid-row: span 2;
  background: linear-gradient(160deg, oklch(0.30 0.07 155 / 0.12), var(--bg-2) 60%);
}
.hf-product__head { display: flex; justify-content: space-between; align-items: center; }
.hf-product h3 { font-size: 22px; margin-top: 4px; }
.hf-product__metric { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; color: var(--fg-0); }
.hf-product p { margin: 0; font-size: 14px; }
.hf-product__locs { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.hf-product__flags { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.hf-flagpill { white-space: nowrap; }
.hf-flagpill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 8px; background: var(--bg-3); border: 1px solid var(--line-2);
  border-radius: 999px; font-size: 11px;
}
.hf-product__cta {
  margin-top: auto; padding-top: 12px;
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--line);
}
.hf-product__arrow { color: var(--accent); font-size: 18px; transition: transform 160ms ease; }
.hf-product:hover .hf-product__arrow { transform: translateX(4px); }

@media (max-width: 1000px) {
  .hf-hero__inner { grid-template-columns: 1fr; }
  .hf-products { grid-template-columns: 1fr 1fr; }
  .hf-product--feat { grid-row: span 1; grid-column: span 2; }
}
@media (max-width: 640px) {
  .hf-products { grid-template-columns: 1fr; }
  .hf-product--feat { grid-column: span 1; }
}

/* ============== NETWORK GRID ============== */
.hf-net__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (max-width: 900px) {
  .hf-net__grid { grid-template-columns: 1fr; }
}

.hf-net__card {
  padding: 24px;
  display: flex; flex-direction: column;
  gap: 18px;
  position: relative;
  transition: border-color .15s ease, transform .15s ease;
}
.hf-net__card.is-primary {
  border-color: color-mix(in oklab, var(--accent) 40%, var(--line));
  background: linear-gradient(180deg, color-mix(in oklab, var(--accent) 4%, transparent), transparent 40%);
}
.hf-net__card:hover {
  border-color: color-mix(in oklab, var(--accent) 30%, var(--line));
}

.hf-net__head {
  display: flex; align-items: center; gap: 14px;
}
.hf-net__head .hf-flag {
  width: 28px; height: 20px; flex-shrink: 0; border-radius: 3px;
}
.hf-net__title { flex: 1; min-width: 0; }
.hf-net__title h3 {
  margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -0.01em;
}
.hf-net__title .small { font-size: 11px; margin-top: 2px; letter-spacing: 0.04em; }
.hf-net__pill {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em;
  padding: 4px 8px; border-radius: 999px;
  background: color-mix(in oklab, var(--accent) 14%, transparent);
  color: var(--accent);
  border: 1px solid color-mix(in oklab, var(--accent) 30%, transparent);
}

.hf-net__cap {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 14px 16px;
  background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--radius);
}
.hf-net__capnum { display: flex; align-items: baseline; gap: 4px; }
.hf-net__capval {
  font-size: 38px; font-weight: 600; letter-spacing: -0.02em; line-height: 1;
  color: var(--fg-0); font-feature-settings: "tnum";
}
.hf-net__card.is-primary .hf-net__capval { color: var(--accent); }
.hf-net__cap .small { font-size: 11px; }

.hf-net__row {
  display: grid; grid-template-columns: 88px 1fr; gap: 12px; align-items: start;
}
.hf-net__row .eyebrow { padding-top: 2px; }
.hf-net__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.hf-net__chip {
  font-size: 11px; padding: 4px 8px; border-radius: 4px;
  background: var(--bg-1); border: 1px solid var(--line); color: var(--fg-1);
  letter-spacing: 0.02em;
}
.hf-net__chip--soft { background: transparent; color: var(--fg-2); }

.hf-net__lat { padding-top: 16px; border-top: 1px dashed var(--line); }
.hf-net__lat .eyebrow { margin-bottom: 8px; }
.hf-net__lat ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.hf-net__lat li {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px;
}
.hf-net__line {
  flex: 1; height: 1px;
  background: linear-gradient(90deg, var(--line), transparent);
}

.hf-net__footer {
  margin-top: 16px;
  display: flex; align-items: center; gap: 24px;
  padding: 20px 24px;
  flex-wrap: wrap;
}
.hf-net__sep { width: 1px; height: 32px; background: var(--line); }

.hf-stat { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.hf-stat__val { display: flex; align-items: baseline; gap: 4px; font-size: 24px; font-weight: 600; color: var(--fg-0); letter-spacing: -0.02em; white-space: nowrap; }
.hf-stat__unit { font-size: 13px; color: var(--fg-2); font-weight: 400; }
.hf-stat__label { font-size: 10px; }

/* ============== WHY ============== */
.hf-why__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.hf-why__item {
  background: var(--bg-1); padding: 28px 24px;
  display: flex; flex-direction: column; gap: 8px;
}
.hf-why__num { font-size: 11px; }
.hf-why__item h4 { font-size: 17px; }
.hf-why__item p { margin: 0; font-size: 14px; }
@media (max-width: 900px) { .hf-why__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .hf-why__grid { grid-template-columns: 1fr; } }

/* ============== DDoS BAND ============== */
.hf-ddos__inner {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center;
}
.hf-ddos__metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 24px; margin-top: 28px; max-width: 480px; }
.hf-ddos__viz { max-width: 420px; margin-left: auto; }
.hf-shield { display: block; }
@media (max-width: 900px) {
  .hf-ddos__inner { grid-template-columns: 1fr; }
  .hf-ddos__viz { max-width: 320px; margin: 0 auto; }
}

/* ============== QUOTES ============== */
.hf-quotes__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.hf-quote { padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.hf-quote__mark {
  font-family: var(--font-mono); font-size: 60px; line-height: 0.5; color: var(--accent);
  margin-bottom: -8px;
}
.hf-quote blockquote { margin: 0; font-size: 15px; color: var(--fg-1); line-height: 1.5; }
.hf-quote figcaption { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }
.hf-quote__avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), oklch(from var(--accent) 0.5 c h));
  border: 1px solid var(--line-2);
}
@media (max-width: 900px) { .hf-quotes__grid { grid-template-columns: 1fr; } }

/* ============== FINAL CTA ============== */
.hf-final__inner {
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 32px; align-items: center;
  padding: 40px;
  background: linear-gradient(135deg, oklch(0.30 0.07 155 / 0.12), var(--bg-2) 70%);
}
.hf-final__inner h2 { font-size: 28px; line-height: 1.15; }
.hf-final__inner p { margin: 8px 0 0; }
.hf-final__cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 800px) {
  .hf-final__inner { grid-template-columns: 1fr; padding: 28px; }
  .hf-final__cta { justify-content: flex-start; }
}

/* ============== FOOTER ============== */
.hf-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-0);
  padding: 64px 0 24px;
  margin-top: 80px;
}
.hf-footer__top { display: grid; grid-template-columns: 1.4fr 3fr; gap: 48px; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.hf-footer__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.hf-footer__cols .eyebrow { margin-bottom: 12px; }
.hf-footer__cols a { display: block; color: var(--fg-2); font-size: 14px; padding: 4px 0; }
.hf-footer__cols a:hover { color: var(--fg-0); }
.hf-footer__bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; flex-wrap: wrap; gap: 16px;
}
.hf-footer__legal { display: flex; gap: 20px; }
.hf-footer__legal a { color: var(--fg-2); font-size: 13px; }
.hf-footer__legal a:hover { color: var(--fg-0); }
@media (max-width: 800px) {
  .hf-footer__top { grid-template-columns: 1fr; }
  .hf-footer__cols { grid-template-columns: 1fr 1fr; }
}

/* =========================================================================
   DEDICATED PAGE
   ========================================================================= */
.hf-ded__hero {
  position: relative;
  padding: 32px 0 64px;
  background:
    radial-gradient(1000px 400px at 70% 0%, oklch(0.30 0.07 60 / 0.12), transparent 70%),
    radial-gradient(800px 400px at 0% 100%, oklch(0.30 0.04 250 / 0.4), transparent 70%);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hf-crumb { display: inline-flex; gap: 8px; font-size: 12px; color: var(--fg-2); padding: 8px 0 24px; }
.hf-crumb a { color: var(--fg-2); }
.hf-ded__herogrid {
  position: relative;
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center;
}
.hf-ded__herogrid .pill { margin-bottom: 20px; }
.hf-ded__title {
  font-size: clamp(34px, 4.4vw, 54px); line-height: 1.05; letter-spacing: -0.025em;
  margin: 0 0 24px;
}
.hf-ded__bullets { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.hf-ded__bullets li { display: flex; gap: 10px; font-size: 15px; color: var(--fg-1); }
.hf-tick {
  width: 18px; height: 18px; border-radius: 50%; background: var(--accent-soft);
  color: var(--accent); display: grid; place-items: center; flex-shrink: 0; margin-top: 2px;
}
.hf-ded__hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

@media (max-width: 1000px) { .hf-ded__herogrid { grid-template-columns: 1fr; } }

/* CONTROLS BAR */
.hf-ded__controls {
  position: sticky; top: 64px; z-index: 30;
  background: oklch(from var(--bg-1) l c h / 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}
.hf-ded__controlsrow { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.hf-locfilter { display: flex; gap: 4px; flex-wrap: wrap; }
.hf-locfilter__btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px; background: transparent;
  border: 1px solid transparent; border-radius: var(--radius);
  color: var(--fg-2); font-size: 13px; cursor: pointer;
  transition: background 120ms ease, color 120ms ease, border-color 120ms ease;
  white-space: nowrap;
}
.hf-locfilter__btn:hover { color: var(--fg-0); background: var(--bg-3); }
.hf-locfilter__btn.is-active { color: var(--fg-0); background: var(--bg-3); border-color: var(--line-2); }
.hf-locfilter__btn .dim { font-size: 11px; }

/* DDOS toggle */
.hf-toggle {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 6px 12px; background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--radius); cursor: pointer; flex-shrink: 0;
}
.hf-toggle__track {
  width: 36px; height: 20px; border-radius: 999px; background: var(--bg-4);
  position: relative; transition: background 160ms ease;
  border: 1px solid var(--line-2);
}
.hf-toggle__thumb {
  position: absolute; top: 1px; left: 1px;
  width: 16px; height: 16px; border-radius: 50%; background: var(--fg-1);
  transition: transform 160ms ease, background 160ms ease;
}
.hf-toggle.is-on .hf-toggle__track { background: var(--accent-soft); border-color: var(--accent); }
.hf-toggle.is-on .hf-toggle__thumb { transform: translateX(16px); background: var(--accent); }
.hf-toggle__label { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; line-height: 1.2; white-space: nowrap; }
.hf-toggle__label strong { font-size: 13px; font-weight: 500; color: var(--fg-0); white-space: nowrap; }
.hf-toggle__label .dim { font-size: 10px; }

/* CARD GRID */
.hf-ded__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
@media (max-width: 1100px) { .hf-ded__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .hf-ded__grid { grid-template-columns: 1fr; } }

.hf-server {
  display: flex; flex-direction: column;
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: border-color 160ms ease;
}
.hf-server:hover { border-color: var(--line-2); }
.hf-server.is-popular { border-color: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent-soft); }
.hf-server.is-oos { opacity: 0.85; }
.hf-server__head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 8px;
  padding: 16px 20px; border-bottom: 1px solid var(--line);
}
.hf-server__badges { display: flex; gap: 6px; flex-wrap: wrap; }
.hf-server__addon {
  background: transparent; border: 1px solid var(--line); border-radius: 999px;
  padding: 4px 10px; color: var(--fg-2); cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px; font-size: 11px;
}
.hf-server__addon:hover { color: var(--fg-0); border-color: var(--line-2); }

.hf-server__name { padding: 16px 20px 0; font-size: 18px; }
.hf-server__specs { padding: 12px 20px; display: flex; flex-direction: column; gap: 4px; }
.hf-spec {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0; border-bottom: 1px dashed var(--line);
  font-size: 14px;
}
.hf-spec:last-child { border-bottom: 0; }
.hf-spec__count {
  width: 56px; flex-shrink: 0; font-size: 11px; color: var(--fg-3);
  text-transform: uppercase; letter-spacing: 0.08em;
}
.hf-spec__txt { color: var(--fg-1); flex: 1; }
.hf-spec__txt strong { color: var(--fg-0); font-weight: 600; }
.hf-spec--chose { align-items: center; }

.hf-chose { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.hf-chose--inline { gap: 4px; }
.hf-chose__btn {
  background: var(--bg-3); border: 1px solid var(--line-2);
  border-radius: var(--radius-sm); padding: 6px 10px; font-size: 12px;
  color: var(--fg-1); cursor: pointer; font-family: var(--font-mono);
  transition: all 120ms ease;
  white-space: nowrap;
}
.hf-chose__btn:hover { background: var(--bg-4); color: var(--fg-0); }
.hf-chose__btn.is-active {
  background: var(--accent); color: var(--accent-fg);
  border-color: var(--accent); font-weight: 600;
}
.hf-chose__btn:disabled { opacity: 0.4; cursor: not-allowed; }

.hf-server__foot {
  padding: 16px 20px 20px;
  background: var(--bg-1);
  border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 12px;
}
.hf-server__install {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; color: var(--fg-2);
}
.hf-server__priceblock { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.hf-server__from { font-size: 11px; }
.hf-server__oldprice {
  color: var(--fg-3); text-decoration: line-through; font-size: 14px;
}
.hf-server__price {
  font-size: 28px; font-weight: 700; letter-spacing: -0.02em; line-height: 1;
}
.text-hot { color: var(--hot); }
.hf-server__per { font-size: 13px; color: var(--fg-2); font-weight: 400; }

/* FEATURES */
.hf-feature-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
@media (max-width: 900px) { .hf-feature-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .hf-feature-grid { grid-template-columns: 1fr; } }
.hf-feature {
  display: flex; gap: 16px; padding: 24px;
}
.hf-feature__num {
  font-size: 11px; color: var(--accent);
  border: 1px solid var(--accent-soft); padding: 4px 8px; border-radius: var(--radius-sm);
  height: max-content;
}
.hf-feature h4 { font-size: 16px; margin-bottom: 6px; }
.hf-feature p { margin: 0; font-size: 13px; }

/* FILE SERVER */
.hf-fileserver {
  display: grid; grid-template-columns: 1.1fr 2fr 1fr; gap: 32px;
  padding: 28px;
  background: linear-gradient(120deg, oklch(0.30 0.07 60 / 0.10), var(--bg-2) 60%);
}
.hf-fileserver__left h3 { font-size: 22px; margin: 12px 0 8px; }
.hf-fileserver__left p { margin: 0; font-size: 14px; }
.hf-fileserver__mid { display: flex; flex-direction: column; gap: 0; }
.hf-fileserver__spec {
  display: flex; align-items: center; gap: 16px;
  padding: 10px 0; border-bottom: 1px dashed var(--line);
  font-size: 14px;
}
.hf-fileserver__spec:last-child { border-bottom: 0; }
.hf-fileserver__spec > span:first-child {
  width: 64px; font-size: 11px; flex-shrink: 0;
}
.hf-fileserver__right { display: flex; flex-direction: column; justify-content: center; }
@media (max-width: 900px) {
  .hf-fileserver { grid-template-columns: 1fr; }
}

/* BUYBACK */
.hf-buyback__inner {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: center;
}
.hf-buyback__viz {
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 24px;
}
.hf-buyback__list { display: flex; flex-direction: column; gap: 8px; margin: 16px 0 24px; }
.hf-buyback__list li { display: flex; gap: 10px; font-size: 14px; color: var(--fg-1); }
@media (max-width: 800px) { .hf-buyback__inner { grid-template-columns: 1fr; } }

/* FAQ */
.hf-faq__wrap { max-width: 880px; margin: 0 auto; }
.hf-faqlist { display: flex; flex-direction: column; }
.hf-faqitem {
  border-top: 1px solid var(--line);
}
.hf-faqitem:last-child { border-bottom: 1px solid var(--line); }
.hf-faqitem__q {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  background: transparent; border: 0; padding: 20px 4px;
  color: var(--fg-0); font-size: 16px; font-weight: 500; text-align: left; cursor: pointer;
}
.hf-faqitem__q:hover { color: var(--accent); }
.hf-faqitem__chev {
  width: 24px; height: 24px; display: grid; place-items: center;
  font-size: 18px; color: var(--fg-2); font-family: var(--font-mono);
}
.hf-faqitem.is-open .hf-faqitem__chev { color: var(--accent); }
.hf-faqitem__a {
  padding: 0 4px 20px; font-size: 14px; max-width: 720px;
}

/* pill tones */
.pill--neutral { background: var(--bg-2); border-color: var(--line-2); color: var(--fg-1); }

/* responsive hero panel */
@media (max-width: 1000px) {
  .hf-ded__hero-card { max-width: 480px; }
}
