/* ===================================================================
   Foltap Labs — institutional site
   Minimal, dark, network-inspired.
=================================================================== */

:root {
  --bg:        #070b16;
  --bg-soft:   #0b1120;
  --surface:   #0e1626;
  --surface-2: #121c30;
  --line:      rgba(148, 163, 210, 0.14);
  --text:      #eef2fb;
  --muted:     #9aa6c4;
  --faint:     #6b7699;

  --cyan:   #22d3ee;
  --blue:   #2563ff;
  --indigo: #3b5bff;
  --purple: #7c3aed;
  --lilac:  #a5b4fc;

  --grad: linear-gradient(100deg, #22d3ee 0%, #2563ff 45%, #7c3aed 100%);

  --max: 1120px;
  --radius: 18px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, .brand__name {
  font-family: "Sora", system-ui, sans-serif;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 700;
}

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

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---- animated background canvas ---- */
#bg-network {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
}

main, .nav, .footer { position: relative; z-index: 1; }

/* ---- radial glow behind hero ---- */
body::before {
  content: "";
  position: fixed;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, rgba(37,99,255,0.18) 0%, rgba(124,58,237,0.10) 35%, transparent 65%);
  z-index: 0;
  pointer-events: none;
}

/* ===================== NAV ===================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 48px);
  transition: background 0.3s var(--ease), backdrop-filter 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(7, 11, 22, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.brand { display: flex; align-items: center; gap: 11px; }
.brand__mark { display: block; }
.brand__name { font-size: 1.15rem; font-weight: 800; letter-spacing: -0.03em; }
.brand__accent { color: var(--muted); font-weight: 600; }

.nav__links { display: flex; align-items: center; gap: 8px; }
.nav__links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}
.nav__links a:hover { color: var(--text); }
.nav__cta {
  color: var(--text) !important;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
}
.nav__cta:hover { border-color: rgba(148,163,210,0.4); }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav__toggle span {
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 26px;
  border-radius: 999px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s, background 0.25s, border-color 0.25s;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn--primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 30px -8px rgba(37,99,255,0.55);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -8px rgba(124,58,237,0.6); }
.btn--ghost {
  border-color: var(--line);
  color: var(--text);
  background: rgba(255,255,255,0.02);
}
.btn--ghost:hover { border-color: rgba(148,163,210,0.45); transform: translateY(-2px); }
.btn--lg { padding: 16px 34px; font-size: 1.02rem; }

/* ===================== HERO ===================== */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 120px clamp(20px, 5vw, 48px) 60px;
  position: relative;
}
.hero__inner { max-width: 860px; }
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 7px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  margin-bottom: 28px;
  background: rgba(255,255,255,0.02);
}
.hero__title {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  font-weight: 800;
  margin-bottom: 26px;
}
.hero__title .grad { display: inline; }
.hero__lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto 38px;
}
.hero__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.hero__scroll {
  position: absolute;
  bottom: 34px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
}
.hero__line {
  width: 1px; height: 46px;
  background: linear-gradient(var(--faint), transparent);
  animation: pulse 2.2s var(--ease) infinite;
}
@keyframes pulse { 0%,100% { opacity: 0.3; } 50% { opacity: 1; } }

/* ===================== STATEMENT ===================== */
.statement {
  text-align: center;
  padding: clamp(70px, 12vw, 130px) clamp(20px, 5vw, 48px);
  max-width: 900px;
  margin: 0 auto;
}
.statement p {
  font-family: "Sora", sans-serif;
  font-size: clamp(1.6rem, 4.5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

/* ===================== SECTIONS ===================== */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(60px, 9vw, 110px) clamp(20px, 5vw, 48px);
}
.section__head { max-width: 640px; margin-bottom: 54px; }
.section__kicker {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 600;
  margin-bottom: 16px;
}
.section__head h2 { font-size: clamp(1.9rem, 4.5vw, 3rem); }
.section__sub { color: var(--muted); margin-top: 16px; font-size: 1.08rem; }

/* ---- Company ---- */
.about__lead {
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  color: var(--text);
  max-width: 780px;
  font-weight: 400;
  line-height: 1.5;
}
.about__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
}
.stat {
  padding: 30px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-soft) 100%);
}
.stat__num {
  display: block;
  font-family: "Sora", sans-serif;
  font-size: 2.6rem;
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}
.stat__label { color: var(--muted); font-size: 0.95rem; margin-top: 8px; display: block; }

/* ---- Products ---- */
.products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.product {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 28px 24px 24px;
  min-height: 180px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-soft) 100%);
  overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}
.product::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(400px circle at var(--mx,50%) var(--my,0%), rgba(37,99,255,0.12), transparent 55%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.product:hover {
  transform: translateY(-4px);
  border-color: rgba(148,163,210,0.35);
  box-shadow: 0 20px 50px -20px rgba(37,99,255,0.4);
}
.product:hover::after { opacity: 1; }
.product__dot {
  width: 42px; height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  box-shadow: 0 6px 18px -6px var(--c2);
  margin-bottom: 14px;
}
.product h3 { font-size: 1.2rem; margin-top: auto; }
.product p { color: var(--muted); font-size: 0.95rem; }
.product__tag {
  margin-top: 12px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}
.product--ghost {
  border-style: dashed;
  background: transparent;
}
.product__plus {
  width: 42px; height: 42px;
  border-radius: 14px;
  border: 1px dashed rgba(148,163,210,0.4);
  display: grid; place-items: center;
  font-size: 1.6rem; font-weight: 300;
  color: var(--muted);
  margin-bottom: 14px;
}

/* ---- Abordagem ---- */
.values {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.value {
  padding: 32px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-soft) 100%);
  transition: border-color 0.3s, transform 0.3s var(--ease);
}
.value:hover { border-color: rgba(148,163,210,0.3); transform: translateY(-3px); }
.value__idx {
  font-family: "Sora", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.1em;
}
.value h3 { font-size: 1.3rem; margin: 12px 0 8px; }
.value p { color: var(--muted); }

/* ===================== CTA ===================== */
.cta {
  text-align: center;
  padding: clamp(80px, 12vw, 150px) clamp(20px, 5vw, 48px);
  position: relative;
}
.cta__inner { max-width: 640px; margin: 0 auto; }
.cta h2 { font-size: clamp(1.9rem, 4.5vw, 2.6rem); margin: 14px 0 22px; }
.cta__email {
  font-family: "Sora", sans-serif;
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  font-weight: 600;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  border-bottom: 1px solid var(--line);
  padding-bottom: 3px;
  transition: border-color 0.25s;
}
.cta__email:hover { border-color: rgba(148,163,210,0.5); }

/* ===================== FOOTER ===================== */
.footer {
  border-top: 1px solid var(--line);
  padding: 46px clamp(20px, 5vw, 48px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: var(--max);
  margin: 0 auto;
}
.footer__brand { display: flex; align-items: center; gap: 10px; font-family: "Sora", sans-serif; font-weight: 800; }
.footer__links { display: flex; gap: 22px; }
.footer__links a { color: var(--muted); font-size: 0.92rem; transition: color 0.2s; }
.footer__links a:hover { color: var(--text); }
.footer__copy { color: var(--faint); font-size: 0.85rem; width: 100%; padding-top: 6px; }

/* ===================== REVEAL ANIMATION ===================== */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 900px) {
  .products { grid-template-columns: repeat(2, 1fr); }
  .about__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: fixed;
    top: 0; right: 0;
    height: 100svh;
    width: min(78vw, 320px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 6px;
    padding: 40px;
    background: rgba(9, 14, 26, 0.96);
    backdrop-filter: blur(18px);
    border-left: 1px solid var(--line);
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
  }
  .nav__links.is-open { transform: translateX(0); }
  .nav__links a { font-size: 1.15rem; width: 100%; }
  .values { grid-template-columns: 1fr; }
  .about__grid { grid-template-columns: 1fr; gap: 14px; }
}
@media (max-width: 480px) {
  .products { grid-template-columns: 1fr; }
}

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