/* ============================================================
   FyCore Tecnologia — styles (TEMA CLARO)
   Marca: ∞ (infinito) com glow azul. Fundo claro, acento azul KontFy.
   ============================================================ */

:root {
  --bg:        #ECF2F9;
  --bg-2:      #FFFFFF;
  --panel:     #FFFFFF;
  --panel-2:   #F3F7FD;

  --cyan:      #22D3EE;
  --sky:       #38BDF8;
  --blue:      #72B6FF;
  --blue-deep: #2F93D6;

  --text-1:    #0C1424;
  --text-2:    #46536B;
  --text-3:    #8A94A8;

  --line:      rgba(20,50,90,0.12);
  --line-soft: rgba(20,50,90,0.06);

  --grad:       linear-gradient(100deg, #22D3EE 0%, #38BDF8 42%, #72B6FF 100%);
  --grad-text:  linear-gradient(100deg, #0EA5E9 0%, #2F93D6 100%);
  --grad-soft:  linear-gradient(135deg, rgba(34,211,238,0.16), rgba(114,182,255,0.12));

  --radius:    18px;
  --shadow:    0 30px 70px -30px rgba(20,50,90,0.4);
  --card:      0 14px 40px -22px rgba(20,50,90,0.28);
  --glow:      0 20px 50px -22px rgba(56,189,248,0.55);

  --font-display: 'Sora', system-ui, sans-serif;
  --font-body:    'Manrope', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;

  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--text-1);
  background: linear-gradient(180deg, #F5F9FD 0%, #E9F0F9 100%) fixed;
  font-family: var(--font-body); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.1; margin: 0; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

/* ============================================================ BACKGROUND */
.bg-grid {
  position: fixed; inset: 0; z-index: -3; pointer-events: none;
  background-image:
    linear-gradient(to right, var(--line-soft) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line-soft) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 25%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 25%, transparent 75%);
}
.bg-glow { position: fixed; z-index: -2; pointer-events: none; border-radius: 50%; filter: blur(90px); opacity: 0.5; }
.bg-glow--1 { top: -180px; left: 50%; width: 760px; height: 500px; transform: translateX(-50%) translateY(var(--par, 0));
  background: radial-gradient(circle, rgba(56,189,248,0.4), transparent 70%); }
.bg-glow--2 { top: 720px; right: -180px; width: 560px; height: 560px; transform: translateY(var(--par, 0));
  background: radial-gradient(circle, rgba(114,182,255,0.32), transparent 70%); }

/* ============================================================ HELPERS */
.section { max-width: var(--maxw); margin: 0 auto; padding: 104px 24px; }
.section__head { max-width: 640px; margin: 0 auto 58px; text-align: center; }
.section__head h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); margin: 14px 0 12px; }
.section__head p { color: var(--text-2); font-size: 1.05rem; }

.kicker {
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--blue-deep);
  display: inline-flex; align-items: center; gap: 8px;
}
.kicker::before { content: ''; width: 22px; height: 1px; background: var(--blue-deep); opacity: 0.6; }

/* ============================================================ BRAND (logo transparente, sem placa) */
.brand { display: inline-flex; align-items: center; }
.brand__img { height: 40px; width: auto; display: block; }
.brand__img--lg { height: 62px; }

/* ============================================================ BOTÕES */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-display); font-weight: 600; font-size: 0.92rem;
  padding: 12px 22px; border-radius: 999px; cursor: pointer; border: 1px solid transparent; white-space: nowrap;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease, color .25s ease;
}
.btn--lg { padding: 15px 30px; font-size: 1rem; }
.btn--primary { color: #04121e; background: var(--grad); box-shadow: 0 14px 30px -12px rgba(56,189,248,0.6); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 20px 44px -12px rgba(56,189,248,0.75); }
.btn--ghost { color: var(--text-1); background: rgba(47,147,214,0.06); border-color: var(--line); }
.btn--ghost:hover { border-color: rgba(47,147,214,0.45); background: rgba(47,147,214,0.12); transform: translateY(-2px); }
.btn--text { color: var(--blue-deep); background: transparent; padding: 12px 8px; }
.btn--text:hover { color: #1E6FA8; }

.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sky); box-shadow: 0 0 0 0 rgba(56,189,248,0.6); animation: pulse-dot 2s infinite; }
@keyframes pulse-dot { 0% { box-shadow: 0 0 0 0 rgba(56,189,248,0.5); } 70% { box-shadow: 0 0 0 8px rgba(56,189,248,0); } 100% { box-shadow: 0 0 0 0 rgba(56,189,248,0); } }

/* ============================================================ NAV */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; transition: background .3s ease, border-color .3s ease, box-shadow .3s ease; border-bottom: 1px solid transparent; }
.nav.is-scrolled { background: rgba(255,255,255,0.82); backdrop-filter: blur(16px); border-bottom-color: var(--line); box-shadow: 0 8px 30px -18px rgba(20,50,90,0.35); }
.nav__inner { max-width: var(--maxw); margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; gap: 24px; }
.nav__links { display: flex; gap: 30px; margin-left: auto; }
.nav__links a { font-size: 0.92rem; color: var(--text-2); font-weight: 500; position: relative; transition: color .2s ease; }
.nav__links a::after { content: ''; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: var(--grad); border-radius: 2px; transition: width .25s ease; }
.nav__links a:hover { color: var(--text-1); }
.nav__links a:hover::after { width: 100%; }
.nav__cta { padding: 10px 18px; font-size: 0.88rem; }

.nav__burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav__burger span { width: 24px; height: 2px; background: var(--text-1); border-radius: 2px; transition: transform .3s ease, opacity .3s ease; }
.nav__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile { display: none; flex-direction: column; gap: 4px; padding: 8px 24px 22px; background: rgba(255,255,255,0.97); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.nav__mobile.is-open { display: flex; }
.nav__mobile a { padding: 12px 6px; color: var(--text-2); font-weight: 500; border-bottom: 1px solid var(--line-soft); }
.nav__mobile a.btn { margin-top: 12px; border-bottom: none; color: #04121e; }

/* ============================================================ HERO */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 130px 24px 90px; overflow: hidden; text-align: center; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: 0.7; }

.hero__content { position: relative; z-index: 2; max-width: 880px; }

/* Logo real no hero (transparente, flutuando, sem placa) */
.hero__logo { display: block; width: 100%; margin: 0 auto 34px; transform: translateY(var(--par, 0)); }
.hero__logo img { width: min(470px, 86vw); height: auto; margin: 0 auto; display: block; animation: float 6.5s ease-in-out infinite;
  filter: drop-shadow(0 20px 34px rgba(20,50,90,0.16)); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Letras do título surgindo de lado (só escondem quando o JS confirma: .letters-ready) */
.hero__title[data-letters] .word { display: inline-block; white-space: nowrap; } /* palavra não quebra no meio */
.letters-ready .hero__title[data-letters] .ltr { display: inline-block; opacity: 0; transform: translateX(-0.9em) translateY(0.15em) scale(0.82); }
.letters-ready .hero__title[data-letters] .grad { display: inline-block; opacity: 0; transform: translateX(-0.6em) scale(0.9); }
.letters-ready .hero__title[data-letters].lit .ltr,
.letters-ready .hero__title[data-letters].lit .grad { opacity: 1; transform: none; transition: opacity .55s ease, transform .7s cubic-bezier(.2,.8,.25,1); }

.hero__title { font-size: clamp(1.5rem, 3.4vw, 2.5rem); font-weight: 800; margin-bottom: 26px; }
.grad { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; background-size: 200% auto; animation: shimmer 6s linear infinite; }
@keyframes shimmer { to { background-position: 200% center; } }

.hero__lead { max-width: 640px; margin: 0 auto 38px; color: var(--text-2); font-size: clamp(1.02rem, 2vw, 1.2rem); }
.hero__lead strong { color: var(--text-1); font-weight: 700; }
.hero__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 56px; }

.hero__stats { display: flex; align-items: center; justify-content: center; gap: 30px; flex-wrap: wrap; }
.hero__stats li:not(.hero__stats-sep) { display: flex; flex-direction: column; align-items: center; }
.hero__stats strong { font-family: var(--font-display); font-size: 1.7rem; font-weight: 800; color: var(--text-1); }
.hero__stats .inf-glyph { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; font-size: 2rem; line-height: 1.3; }
.hero__stats span { font-size: 0.82rem; color: var(--text-3); }
.hero__stats-sep { width: 1px; height: 34px; background: var(--line); }

.hero__scroll { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 2; width: 26px; height: 42px; border: 2px solid var(--line); border-radius: 14px; display: grid; place-items: start center; }
.hero__scroll span { width: 4px; height: 8px; border-radius: 3px; background: var(--blue-deep); margin-top: 7px; animation: scroll 1.8s ease-in-out infinite; }
@keyframes scroll { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* ============================================================ MARQUEE (faixa "filme") */
.marquee { overflow: hidden; padding: 16px 0; background: linear-gradient(180deg, #ffffff, #eef4fc);
  border-top: 1px solid rgba(47,147,214,0.22); border-bottom: 1px solid rgba(47,147,214,0.22);
  box-shadow: 0 10px 30px -18px rgba(20,50,90,0.25); }
.marquee__track { display: inline-flex; align-items: center; gap: 36px; white-space: nowrap; animation: marquee 24s linear infinite; will-change: transform; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.05rem, 2.2vw, 1.6rem); color: #0C1424; letter-spacing: -0.02em; }
.marquee__logo { height: 40px; width: auto; display: block; flex-shrink: 0; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================================================ PRODUTOS */
.products { display: grid; grid-template-columns: 1.5fr 1fr; gap: 26px; }
.product-card { position: relative; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(160deg, #ffffff, #f4f8fe); overflow: hidden; box-shadow: var(--card); transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease; }
.product-card:hover { transform: translateY(-4px); border-color: rgba(47,147,214,0.35); box-shadow: var(--glow); }
.product-card__body { position: relative; z-index: 1; padding: 38px; }
.product-card__glow { position: absolute; top: -40%; right: -20%; width: 420px; height: 420px; z-index: 0; background: radial-gradient(circle, rgba(56,189,248,0.18), transparent 65%); filter: blur(20px); transform: translateY(var(--par, 0)); }
.product-card--featured { box-shadow: var(--shadow); }
.product-card__brand { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.product-card__logo { height: 46px; width: auto; }
.badge { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2); padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: rgba(47,147,214,0.06); white-space: nowrap; }
.badge--live { color: var(--blue-deep); border-color: rgba(47,147,214,0.4); }
.product-card__title { font-size: 1.5rem; margin-bottom: 14px; }
.product-card__desc { color: var(--text-2); margin-bottom: 24px; font-size: 1rem; }
.product-card__feats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; margin-bottom: 30px; }
.product-card__feats li { position: relative; padding-left: 22px; font-size: 0.92rem; color: var(--text-2); }
.product-card__feats li::before { content: ''; position: absolute; left: 0; top: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 8px rgba(56,189,248,0.5); }
.product-card__actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.product-card--soon { display: flex; align-items: center; }
.product-card--soon .product-card__body { opacity: 0.95; }
.soon-mark { color: var(--text-3); display: inline-flex; }

/* ============================================================ FEATURES */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature { border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(165deg, #ffffff, #f4f8fe); padding: 30px 26px; box-shadow: var(--card); transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease; }
.feature:hover { transform: translateY(-5px); border-color: rgba(47,147,214,0.35); box-shadow: var(--glow); }
.feature__icon { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 14px; margin-bottom: 20px; background: var(--grad-soft); border: 1px solid var(--line); color: var(--blue-deep); }
.feature__icon svg { width: 26px; height: 26px; }
.feature h3 { font-size: 1.12rem; margin-bottom: 10px; }
.feature p { color: var(--text-2); font-size: 0.94rem; }

/* ============================================================ STEPS */
.steps { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 0 18px; }
.step { border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(165deg, #ffffff, #f4f8fe); padding: 34px 30px; height: 100%; box-shadow: var(--card); transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease; }
.step:hover { transform: translateY(-6px); border-color: rgba(47,147,214,0.4); box-shadow: var(--glow); }
.step:hover .step__num { color: #1E6FA8; }
.step__num { font-family: var(--font-mono); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.12em; color: var(--blue-deep); transition: color .3s ease; }
.step h3 { margin: 16px 0 10px; font-size: 1.2rem; }
.step p { color: var(--text-2); font-size: 0.95rem; }
.step__link { height: 2px; background: linear-gradient(90deg, transparent, var(--blue), transparent); position: relative; opacity: 0.8; }
.step__link::after { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 52px; height: 34px; background: url('fycore-mark.png') center/contain no-repeat, var(--bg); }

/* ============================================================ SPLIT */
.section--split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split__text h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin: 14px 0 18px; }
.split__text p { color: var(--text-2); font-size: 1.05rem; margin-bottom: 24px; }
.split__text strong { color: var(--text-1); }
.split__list { display: grid; gap: 14px; }
.split__list li { display: flex; align-items: center; gap: 12px; color: var(--text-1); font-weight: 500; }
.check { width: 22px; height: 22px; border-radius: 50%; background: var(--grad-soft); border: 1px solid rgba(47,147,214,0.4); position: relative; flex-shrink: 0; }
.check::after { content: ''; position: absolute; left: 7px; top: 4px; width: 5px; height: 9px; border: solid var(--blue-deep); border-width: 0 2px 2px 0; transform: rotate(45deg); }

.split__visual { display: grid; place-items: center; }
.orbit { position: relative; width: 340px; height: 340px; display: grid; place-items: center; }
.orbit__center { position: absolute; z-index: 3; display: grid; place-items: center; }
.orbit__center img { width: 132px; height: auto; display: block; filter: drop-shadow(0 12px 24px rgba(20,50,90,0.18)); }
.orbit__ring { position: absolute; border-radius: 50%; border: 1px dashed rgba(47,147,214,0.28); }
.orbit__ring--a { width: 260px; height: 260px; animation: spin 32s linear infinite; }
.orbit__ring--b { width: 340px; height: 340px; animation: spin 48s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }

/* chips girando ao redor do centro; o container gira e a pílula contra-gira (texto sempre reto) */
.orbit__spin { position: absolute; inset: 0; animation: spin 34s linear infinite; }
.orbit__chip { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(var(--deg)) translateY(-130px); }
.orbit__chip--1 { --deg: 0deg; }
.orbit__chip--2 { --deg: 90deg; }
.orbit__chip--3 { --deg: 180deg; }
.orbit__chip--4 { --deg: 270deg; }
.orbit__pill { display: inline-block; font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--text-2); white-space: nowrap; box-shadow: var(--card);
  transform: rotate(calc(-1 * var(--deg))); animation: orbit-upright 34s linear infinite; }
.orbit__chip--1 .orbit__pill { color: var(--blue-deep); border-color: rgba(47,147,214,0.4); }
@keyframes orbit-upright { from { transform: rotate(calc(-1 * var(--deg))); } to { transform: rotate(calc(-1 * var(--deg) - 360deg)); } }
.orbit:hover .orbit__spin, .orbit:hover .orbit__pill { animation-play-state: paused; }

/* ============================================================ CTA */
.cta { max-width: var(--maxw); margin: 0 auto; padding: 40px 24px 110px; }
.cta__inner { position: relative; overflow: hidden; text-align: center; border: 1px solid var(--line); border-radius: 28px;
  background: radial-gradient(ellipse 60% 120% at 50% 0%, rgba(56,189,248,0.16), transparent 60%), linear-gradient(160deg, #ffffff, #eef5fd); padding: 72px 32px; box-shadow: var(--shadow); }
.cta__inner h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 14px; }
.cta__inner p { color: var(--text-2); font-size: 1.08rem; max-width: 560px; margin: 0 auto 34px; }
.cta__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ============================================================ FOOTER */
.footer { border-top: 1px solid var(--line); background: #ffffff; }
.footer__inner { max-width: var(--maxw); margin: 0 auto; padding: 64px 24px 40px; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer__brand p { color: var(--text-3); font-size: 0.92rem; margin-top: 18px; max-width: 300px; }
.footer__col h4 { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3); margin-bottom: 16px; font-weight: 600; }
.footer__col a { display: block; color: var(--text-2); font-size: 0.94rem; padding: 5px 0; transition: color .2s ease; }
.footer__col a:hover { color: var(--blue-deep); }
.footer__soon { display: block; color: var(--text-3); font-size: 0.94rem; padding: 5px 0; }
.footer__bottom { max-width: var(--maxw); margin: 0 auto; padding: 24px; border-top: 1px solid var(--line-soft); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer__bottom p { color: var(--text-3); font-size: 0.84rem; }

/* ============================================================
   ANIMAÇÃO LIGADA AO SCROLL
   JS adiciona .anim no <html> e atualiza --p (0..1) por elemento.
   ============================================================ */
.anim [data-anim] { will-change: opacity, transform; }
.anim [data-anim="up"]    { opacity: var(--p, 0); transform: translateY(calc((1 - var(--p, 0)) * 46px)); }
.anim [data-anim="left"]  { opacity: var(--p, 0); transform: translateX(calc((1 - var(--p, 0)) * -64px)); }
.anim [data-anim="right"] { opacity: var(--p, 0); transform: translateX(calc((1 - var(--p, 0)) * 64px)); }
.anim [data-anim="scale"] { opacity: var(--p, 0); transform: scale(calc(0.92 + 0.08 * var(--p, 0))); }
.anim [data-anim="fade"]  { opacity: var(--p, 0); }

/* ============================================================ RESPONSIVE */
@media (max-width: 940px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; margin-left: auto; }
  .products { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; gap: 16px; }
  .step__link { display: none; }
  .section--split { grid-template-columns: 1fr; gap: 48px; }
  .split__visual { order: -1; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .section { padding: 76px 20px; }
  .cards { grid-template-columns: 1fr; }
  .product-card__body { padding: 28px 24px; }
  .product-card__feats { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .hero__stats { gap: 18px; }
  .footer__bottom { flex-direction: column; }
  .anim [data-anim="left"], .anim [data-anim="right"] { transform: translateY(calc((1 - var(--p, 0)) * 40px)); }
}
