/* ── FAQ TERMINAL ── */
#faq {
  background: #000;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 100px max(40px, 5vw);
  position: relative;
  z-index: 3;
}

.fq-w {
  max-width: 1200px;
  margin: 0 auto;
}

.fq-term {
  background: #000;
  border: 1px solid rgba(200, 255, 0, 0.2);
  margin-top: 52px;
}

.fq-bar {
  background: #000;
  padding: 11px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.fqdd {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.fqdd.r {
  background: #ff5f57;
}

.fqdd.y {
  background: #febc2e;
}

.fqdd.g {
  background: var(--acid);
}

.fq-ttl {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.85);
  margin-left: 8px;
  letter-spacing: 2px;
  flex: 1;
}

.fq-ping {
  font-size: 9px;
  color: #00ff88;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.fq-ping::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #00ff88;
  animation: bl 2s infinite;
}

.fq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.fq-q {
  padding: 16px 22px;
  cursor: none;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  transition: background .2s;
}

.fq-q:hover {
  background: rgba(200, 255, 0, 0.025);
}

.fq-pre {
  color: var(--acid);
  flex-shrink: 0;
  font-size: 11px;
  transition: color .2s;
}

.fq-item.open .fq-pre {
  color: #00d4ff;
}

.fq-qt {
  font-size: 13px;
  color: var(--text);
  flex: 1;
  line-height: 1.5;
}

.fq-arrow {
  color: rgba(255, 255, 255, 0.80);
  font-size: 10px;
  transition: transform .3s;
  flex-shrink: 0;
  margin-top: 2px;
}

.fq-item.open .fq-arrow {
  transform: rotate(90deg);
  color: var(--acid);
}

.fq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease;
}

.fq-item.open .fq-a {
  max-height: 320px;
}

.fq-a-in {
  padding: 0 22px 18px 46px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 2;
  font-weight: 300;
}

.fq-ping-line {
  color: #00d4ff;
  font-size: 9px;
  letter-spacing: 1px;
  margin-top: 8px;
}

/* FAQ terminal cursor line */
.fq-cursor-line {
  padding: 14px 22px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.fq-shell {
  color: var(--acid);
  font-size: 12px;
  flex-shrink: 0;
}

.fq-cmd {
  color: var(--acid);
  font-size: 11px;
  letter-spacing: 1px;
  min-width: 1ch;
}

.fq-blink {
  color: var(--acid);
  font-size: 12px;
  animation: fq-blink .7s step-end infinite;
}

/* ── STATS ── */
#stats {
  padding: 100px max(40px, 5vw);
  position: relative;
  z-index: 3;
}

.stw {
  max-width: 1800px;
  margin: 0 auto;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 52px;
}

.stat-b {
  background: var(--bg);
  padding: 52px 24px;
  text-align: center;
  cursor: none;
  transition: background .3s;
  position: relative;
  overflow: hidden;
}

.stat-b:hover {
  background: #080810;
}

.stat-b::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--acid), transparent);
  transform: scaleX(0);
  transition: transform .5s;
}

.stat-b:hover::after {
  transform: scaleX(1);
}

.stat-n {
  font-family: 'Bebas Neue', monospace;
  font-size: 88px;
  color: var(--acid);
  line-height: 1;
  text-shadow: 0 0 40px rgba(200, 255, 0, .18);
}

.stat-u {
  font-size: 36px;
  color: rgba(255, 255, 255, 0.55);
}

.stat-l {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.25);
  letter-spacing: 4px;
  margin-top: 8px;
}

/* ── CTA ── */
#cta {
  background: #000;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 140px max(40px, 5vw);
  position: relative;
  z-index: 3;
  text-align: center;
  overflow: hidden;
}

.cta-gl {
  position: absolute;
  left: -150px;
  top: 50%;
  transform: translateY(-50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(200, 255, 0, 0.055) 0%, transparent 65%);
  pointer-events: none;
}

.cta-gr {
  position: absolute;
  right: -150px;
  top: 50%;
  transform: translateY(-50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.035) 0%, transparent 65%);
  pointer-events: none;
}

.cta-c {
  position: relative;
  z-index: 2;
  max-width: 880px;
  margin: 0 auto;
}

.cta-tag {
  font-size: 9px;
  letter-spacing: 6px;
  color: var(--acid);
  margin-bottom: 20px;
}

.cta-h {
  font-family: 'Bebas Neue', monospace;
  font-size: clamp(48px, 7vw, 96px);
  line-height: .9;
  letter-spacing: 2px;
  margin-bottom: 28px;
  color: var(--text);
}

.cta-h em {
  color: var(--acid);
  font-style: normal;
}

.cta-p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.88);
  max-width: 560px;
  margin: 0 auto 48px;
  line-height: 2;
  font-weight: 300;
}

.cta-d {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.60);
  letter-spacing: 5px;
  margin-top: 36px;
  overflow-wrap: break-word;
  word-break: break-word;
}

.cta-d em {
  color: var(--acid);
  font-style: normal;
}

.cta-comp {
  color: var(--purple);
  display: inline-block;
  max-width: 100%;
}

/* ── FOOTER ── */
footer {
  padding: 26px max(40px, 5vw);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.82);
  letter-spacing: 3px;
  position: relative;
  z-index: 3;
}

.f-left {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.f-email {
  color: #fff;
  text-decoration: none;
  letter-spacing: 1px;
  font-size: 12px;
  transition: opacity .2s;
}

.f-email:hover {
  color: var(--acid);
  opacity: 1;
}

.f-socials {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
  padding: 0;
  background: transparent;
  border: none;
}

.f-soc {
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s, transform 0.2s, filter 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
}

.f-soc svg {
  width: 18px;
  height: 18px;
  display: block;
}

/* HuggingFace icon content fills only ~80% of its viewBox; scale up to
   visually match GitHub. */
.f-soc[title="HuggingFace"] svg {
  transform: scale(1.22);
  transform-origin: center;
}

.f-soc:hover {
  transform: scale(1.15);
}

.f-soc[title="GitHub"]:hover {
  color: #fff;
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.4));
}

.f-soc[title="HuggingFace"]:hover {
  color: #FFD21E !important;
  filter: drop-shadow(0 0 5px rgba(255, 210, 30, 0.4));
}

.f-soc[title="LinkedIn"]:hover {
  color: #0a66c2;
  filter: drop-shadow(0 0 5px rgba(10, 102, 194, 0.4));
}

.f-wa {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--acid);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 1px;
  transition: opacity .2s, color .2s;
}

.f-wa-num {
  color: #fff;
  transition: color .2s;
}

.f-wa:hover,
.f-wa:hover .f-wa-num {
  color: #00ff41;
  /* bright green for WhatsApp context */
}

/* RIGHT SIDE — logo stacked above system stable */
.f-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.f-logo {
  font-family: 'Bebas Neue', monospace;
  font-size: 28px;
  letter-spacing: 4px;
  color: var(--text);
}

.f-logo em {
  color: var(--acid);
  font-style: normal;
}

.f-status {
  font-size: 9px;
  letter-spacing: 2px;
  color: rgba(200, 255, 0, 0.4);
}

.f-status em {
  color: rgba(200, 255, 0, 0.7);
  font-style: normal;
}

/* LIGHT MODE footer */
.f-privacy {
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 1px;
  transition: color .2s;
}

.f-privacy:hover {
  color: var(--acid);
}

body.light-mode footer {
  background: #d8d8d8;
  border-top-color: rgba(0, 0, 0, 0.1);
  color: rgba(0, 0, 0, 1);
}

body.light-mode .f-email,
body.light-mode .f-privacy {
  color: rgba(0, 0, 0, 0.8);
}

body.light-mode .f-logo {
  color: #0a0a0a;
}

body.light-mode .f-status {
  color: rgba(255, 107, 0, 0.5);
}

body.light-mode .f-status em {
  color: rgba(255, 107, 0, 0.85);
}

body.light-mode .f-privacy {
  color: rgba(0, 0, 0, 0.35);
}

body.light-mode .f-privacy:hover {
  color: var(--acid);
}

/* LIGHT MODE sections — grey bg, FAQ terminal stays dark */
body.light-mode #faq {
  background: #e2e2e2;
  border-top-color: rgba(0, 0, 0, 0.08);
}

/* fq-term — force dark bg so white text stays readable in light mode */
body.light-mode .fq-term {
  background: #111118;
  border-color: rgba(200, 255, 0, 0.15);
}

body.light-mode .fq-bar {
  background: rgba(0, 0, 0, 0.6);
}

body.light-mode .fq-qt {
  color: rgba(255, 255, 255, 0.9);
}

body.light-mode .fq-a-in {
  color: rgba(255, 255, 255, 0.75);
}

body.light-mode .fq-item {
  border-bottom-color: rgba(255, 255, 255, 0.05);
}

body.light-mode .fq-q:hover {
  background: rgba(255, 107, 0, 0.04);
}

/* FAQ terminal orange prompt colors (inside dark terminal) */
body.light-mode .fq-item.open .fq-pre {
  color: var(--acid);
}

body.light-mode .fq-item.open .fq-arrow {
  color: var(--acid);
}

body.light-mode .fq-ping {
  color: var(--acid);
}

body.light-mode .fq-ping::before {
  background: var(--acid);
}

body.light-mode .fq-shell {
  color: var(--acid);
}

body.light-mode .fq-cmd {
  color: var(--acid);
}

body.light-mode .fq-blink {
  color: var(--acid);
}

body.light-mode .fq-ping-line {
  color: var(--acid);
}

body.light-mode #stats {
  background: #ebebeb;
}

body.light-mode .stat-grid {
  background: rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.08);
}

body.light-mode .stat-b {
  background: #ebebeb;
}

body.light-mode .stat-b:hover {
  background: #e2e2e2;
}

body.light-mode .stat-n {
  color: var(--acid);
  text-shadow: none;
}

body.light-mode .stat-u {
  color: rgba(0, 0, 0, 0.4);
}

body.light-mode .stat-l {
  color: rgba(0, 0, 0, 0.35);
}

body.light-mode #cta {
  background: #e2e2e2;
  border-top-color: rgba(0, 0, 0, 0.08);
}

body.light-mode .cta-tag {
  color: var(--acid);
}

body.light-mode .cta-h {
  color: #0a0a0a;
}

body.light-mode .cta-h em {
  color: var(--acid);
}

body.light-mode .cta-p {
  color: rgba(0, 0, 0, 0.75);
}

body.light-mode .cta-d {
  color: rgba(0, 0, 0, 0.45);
}

/* CTA secondary button — dark text on grey CTA bg in light mode */
body.light-mode #cta .hbtn.s {
  color: rgba(0, 0, 0, 0.70);
  border-color: rgba(0, 0, 0, 0.25);
}

body.light-mode #cta .hbtn.s:hover {
  color: var(--acid);
  border-color: var(--acid);
}

@media(max-width:960px) {

  #faq,
  #stats,
  #cta {
    padding: 72px 20px;
  }

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

  footer {
    padding: 20px;
    flex-direction: column-reverse;
    gap: 1.2rem;
    text-align: center;
    align-items: center;
  }

  .f-left {
    align-items: center;
  }

  .f-right {
    align-items: center;
  }

  .cta-h {
    font-size: clamp(48px, 10vw, 90px);
  }
}

@media(max-width:640px) {

  #faq,
  #stats,
  #cta {
    padding: 56px 16px;
  }

  .fq-term {
    margin-top: 32px;
  }

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

  .stat-n {
    font-size: 64px;
  }

  .stat-b {
    padding: 36px 16px;
  }

  .cta-h {
    font-size: clamp(40px, 10vw, 72px);
  }

  .cta-p {
    font-size: 12px;
  }
}

@media(max-width:480px) {
  .stat-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stat-n {
    font-size: 52px;
  }

  footer {
    padding: 16px;
  }

  .cta-d {
    font-size: 11px;
    letter-spacing: 2px;
  }
}