/* FightBackCyber Client Portal. Dark only. Brand colours from fightbackcyber.com. */
:root {
  --bg: #0a0303;
  --panel: #1a1010;
  --panel-2: #301d20;
  --red: #bd171d;
  --red-bright: #e0262d;
  --amber: #fbb040;
  --text: #f5eeee;
  --text-soft: #dbc9c9;
  --muted: #937878;
  --line: rgba(255, 255, 255, 0.1);
  --radius: 16px;
  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1180px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 6px; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  border: 0; border-radius: 8px; cursor: pointer;
  font: inherit; font-weight: 600; text-decoration: none; white-space: nowrap;
  padding: 10px 20px;
  transition: background-color .2s, box-shadow .2s, transform .2s;
}
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-bright); box-shadow: 0 0 24px rgba(189, 23, 29, .55); }
.btn--ghost { background: rgba(255, 255, 255, .08); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.btn--ghost:hover { background: rgba(255, 255, 255, .14); }
.btn--muted { background: rgba(255, 255, 255, .1); color: var(--text); }
.btn--muted:hover { background: rgba(255, 255, 255, .18); }
.btn--small { padding: 8px 16px; font-size: .9rem; }
.btn--large { padding: 14px 28px; font-size: 1.15rem; }
.btn--large span { font-size: 1.4em; line-height: 0; }

/* Top bar, over the hero */
.topbar {
  position: absolute; inset: 0 0 auto; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: var(--maxw); margin: 0 auto; padding: 24px var(--gutter);
}
.topbar__logo img { width: clamp(160px, 22vw, 220px); }
.topbar__actions { display: flex; align-items: center; gap: 12px; }
.topbar__actions form { margin: 0; }

/* Hero */
.hero {
  position: relative; min-height: min(760px, 92vh);
  display: grid; place-items: center; text-align: center;
  padding: 140px var(--gutter) 96px;
  background:
    radial-gradient(ellipse at center, rgba(10, 3, 3, .35) 0%, rgba(10, 3, 3, .8) 70%),
    linear-gradient(to bottom, rgba(10, 3, 3, .85) 0%, rgba(10, 3, 3, .35) 35%, rgba(10, 3, 3, .55) 70%, var(--bg) 100%),
    url("../img/hero.170f53376b66.jpg") center / cover no-repeat,
    var(--bg);
}
.hero__content { max-width: 760px; }
.notice {
  display: inline-block; margin: 0 0 24px; padding: 8px 16px; border-radius: 999px;
  background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px var(--line);
  color: var(--text-soft); font-size: .95rem;
}
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 900; }
.hero__lead { font-size: clamp(1.05rem, 2vw, 1.35rem); color: var(--text-soft); margin: 20px auto 32px; max-width: 560px; }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.hero__secondary { margin: 22px 0 0; color: var(--text-soft); }
.hero__secondary a { color: var(--amber); font-weight: 600; text-underline-offset: 3px; }

/* Glowing arc under the hero (Netflix-style divider) */
.arc {
  position: relative; height: 90px; margin-top: -45px; overflow: hidden; pointer-events: none;
}
.arc::before {
  content: ""; position: absolute; left: -10%; right: -10%; top: 0; height: 200px;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  border-top: 4px solid var(--red);
  background: radial-gradient(ellipse at top, rgba(189, 23, 29, .35) 0%, rgba(10, 3, 3, 0) 55%), var(--bg);
  box-shadow: 0 -18px 50px rgba(189, 23, 29, .45), inset 0 18px 40px -20px rgba(251, 176, 64, .35);
}

/* Promo strip */
.promo {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  padding: 20px 24px; margin-top: 8px;
  border-radius: var(--radius);
  background: linear-gradient(120deg, var(--panel-2), #1d0f12 60%, #2a0d10);
  box-shadow: inset 0 0 0 1px var(--line);
}
.promo__icon { width: 44px; height: 44px; flex: none; fill: rgba(189, 23, 29, .25); stroke: var(--amber); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.promo__text { flex: 1 1 260px; display: grid; gap: 2px; }
.promo__text strong { font-size: 1.15rem; }
.promo__text span { color: var(--text-soft); }

/* Sections */
.section { margin-top: 72px; }
.section h2 { font-size: clamp(1.35rem, 2.6vw, 1.75rem); margin-bottom: 20px; }
.section__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.section__head h2 { margin: 0; }

/* Services row (Netflix "Trending now") */
.row {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 240px); gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 4px;
  padding: 6px 4px 18px; margin: 0 -4px;
  scrollbar-width: none;
}
.row::-webkit-scrollbar { display: none; }
.tile {
  position: relative; scroll-snap-align: start;
  aspect-ratio: 3 / 4; border-radius: 12px; overflow: hidden;
  display: flex; align-items: flex-end; padding: 18px;
  text-decoration: none;
  background: linear-gradient(160deg, var(--panel-2) 0%, #200b0d 55%, #120607 100%);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: transform .25s, box-shadow .25s;
}
.tile::after {
  content: ""; position: absolute; inset: auto -30% -40% auto; width: 80%; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(189, 23, 29, .45), transparent 65%);
}
.tile:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px rgba(189, 23, 29, .6), 0 12px 30px rgba(189, 23, 29, .25); }
.tile__num {
  position: absolute; top: 6px; left: 14px;
  font-size: 5rem; font-weight: 900; line-height: 1;
  color: transparent; -webkit-text-stroke: 2px rgba(251, 176, 64, .55);
}
.tile__name { position: relative; z-index: 1; font-size: 1.2rem; font-weight: 700; }
.row-nav { display: flex; gap: 8px; }
.row-nav__btn {
  width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .08); color: var(--text); font-size: 1.5rem; line-height: 1;
  transition: background-color .2s;
}
.row-nav__btn:hover { background: rgba(255, 255, 255, .18); }

/* "What's inside" cards (Netflix "More reasons to join") */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.card {
  position: relative; min-height: 220px; padding: 24px 24px 80px;
  border-radius: var(--radius);
  background: linear-gradient(150deg, #2b1417 0%, #1b0c0e 55%, #140708 100%);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow .25s, transform .25s;
}
.card:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px rgba(189, 23, 29, .5), 0 14px 34px rgba(0, 0, 0, .4); }
.card h3 { font-size: 1.3rem; margin-bottom: 10px; }
.card p { margin: 0; color: var(--text-soft); }
.card__icon {
  position: absolute; right: 20px; bottom: 20px; width: 56px; height: 56px;
  display: grid; place-items: center; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ff6b6b, var(--red) 55%, #6d0b0f);
  box-shadow: 0 6px 24px rgba(189, 23, 29, .55);
}
.card__icon svg { width: 28px; height: 28px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Trust strip */
.trust {
  margin-top: 56px; padding: 18px 24px;
  display: flex; align-items: center; justify-content: center; gap: 12px; text-align: center;
  border-block: 1px solid var(--line); color: var(--text-soft);
}
.trust svg { width: 30px; height: 30px; flex: none; fill: none; stroke: var(--amber); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.trust strong { color: var(--text); }

/* FAQ accordion */
.faq { display: grid; gap: 8px; }
.faq details { background: #2a1d1f; border-radius: 4px; }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 24px; font-size: clamp(1.05rem, 2vw, 1.3rem);
  transition: background-color .2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 2rem; font-weight: 300; line-height: 1; transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { background: #352527; }
.faq details p { margin: 0; padding: 0 24px 24px; color: var(--text-soft); font-size: 1.05rem; border-top: 1px solid var(--bg); padding-top: 20px; }
.faq details::details-content { block-size: 0; overflow: hidden; transition: block-size .3s, content-visibility .3s allow-discrete; }
.faq details[open]::details-content { block-size: auto; }
@supports (interpolate-size: allow-keywords) { :root { interpolate-size: allow-keywords; } }

/* Closing call to action */
.closing { margin: 72px 0 24px; text-align: center; }
.closing p { font-size: 1.15rem; color: var(--text-soft); margin: 0 0 20px; }

/* Footer */
.footer { margin-top: 72px; padding: 48px 0 40px; border-top: 1px solid var(--line); color: var(--muted); }
.footer__inner { display: grid; gap: 20px; }
.footer__inner img { width: 160px; opacity: .85; }
.footer__links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px 24px; }
.footer__links a, .footer__small a { color: var(--text-soft); text-underline-offset: 3px; }
.footer__links a:hover, .footer__small a:hover { color: var(--text); }
.footer__small { margin: 0; font-size: .85rem; }

/* Subtle reveal on scroll (JS adds .is-visible; without JS everything shows) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 600px) {
  .topbar { padding-top: 16px; }
  .hero { padding-top: 110px; min-height: 80vh; }
  .btn--large { width: 100%; justify-content: center; }
  .row-nav { display: none; }
  .promo { padding: 18px; }
  .promo .btn { width: 100%; justify-content: center; }
  /* Bigger tap areas for text links (about 44px tall) without moving the layout */
  .topbar__logo { padding: 10px 0; margin: -10px 0; }
  .hero__secondary a { display: inline-block; padding: 12px 4px; margin: -12px -4px; }
  .footer__links { gap: 0 24px; }
  .footer__links a { display: block; padding: 11px 0; }
  .footer__small a { padding: 12px 0; }
}

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