/* ===================================================================
   APEX CARD — Premium Tech Website
   =================================================================== */

:root {
  /* Brand palette */
  --ciano:        #12CFF4;
  --azul:         #1E88FF;
  --roxo:         #6A2CFF;
  --roxo-escuro:  #2F1AFF;
  --branco:       #FFFFFF;
  --cinza-claro:  #F5F7FA;
  --cinza-escuro: #1A1A1A;

  /* Dark UI surfaces */
  --bg:        #07070f;
  --bg-2:      #0b0b18;
  --surface:   rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border:    rgba(255, 255, 255, 0.09);
  --border-2:  rgba(255, 255, 255, 0.14);

  /* Text */
  --text:    #EAEDF7;
  --muted:   #9aa3bf;
  --muted-2: #6f7794;

  /* Gradients */
  --grad-brand: linear-gradient(120deg, var(--ciano) 0%, var(--azul) 45%, var(--roxo) 100%);
  --grad-soft:  linear-gradient(135deg, rgba(18,207,244,.16), rgba(106,44,255,.16));
  --grad-text:  linear-gradient(100deg, #38e0ff 0%, #4b9bff 45%, #9a6bff 100%);

  /* Shape */
  --radius:    18px;
  --radius-lg: 28px;
  --radius-sm: 12px;

  /* Motion */
  --ease: cubic-bezier(.22, 1, .36, 1);

  --maxw: 1180px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Ambient background */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(900px 600px at 12% -5%, rgba(30,136,255,.18), transparent 60%),
    radial-gradient(800px 600px at 95% 8%, rgba(106,44,255,.18), transparent 60%),
    radial-gradient(900px 700px at 50% 110%, rgba(18,207,244,.10), transparent 60%),
    var(--bg);
}

h1, h2, h3, h4 { font-family: "Sora", "Plus Jakarta Sans", sans-serif; line-height: 1.12; letter-spacing: -.02em; }
a { color: inherit; text-decoration: none; }
img, svg, canvas { display: block; max-width: 100%; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }

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

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--azul); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  --pad-y: 12px; --pad-x: 22px;
  display: inline-flex; align-items: center; gap: 9px;
  padding: var(--pad-y) var(--pad-x);
  border-radius: 999px; font-weight: 600; font-size: .95rem;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
}
.btn:focus-visible { outline: 2px solid var(--ciano); outline-offset: 3px; }
.btn-sm { --pad-y: 9px; --pad-x: 16px; font-size: .875rem; }
.btn-lg { --pad-y: 15px; --pad-x: 30px; font-size: 1rem; }

.btn-primary {
  background: var(--grad-brand); color: #fff;
  box-shadow: 0 8px 30px -10px rgba(30,136,255,.7), inset 0 0 0 1px rgba(255,255,255,.12);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 44px -12px rgba(106,44,255,.85), inset 0 0 0 1px rgba(255,255,255,.2); }
.btn-primary svg { transition: transform .25s var(--ease); }
.btn-primary:hover svg { transform: translateX(3px); }

.btn-ghost {
  background: var(--surface); color: var(--text); border-color: var(--border-2);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { transform: translateY(-2px); background: var(--surface-2); border-color: var(--ciano); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(7,7,15,.72);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-family: "Sora"; font-weight: 800; }
.brand-mark { display: grid; place-items: center; filter: drop-shadow(0 4px 12px rgba(30,136,255,.4)); }
.brand-name { font-size: 1.2rem; letter-spacing: .04em; }
.brand-name span { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

.nav-list { display: flex; gap: 6px; list-style: none; }
.nav-list a {
  display: block; padding: 9px 14px; border-radius: 10px; color: var(--muted);
  font-weight: 500; font-size: .94rem; transition: color .2s, background .2s;
}
.nav-list a:hover { color: var(--text); background: var(--surface); }

.header-actions { display: flex; align-items: center; gap: 12px; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 42px; height: 42px; border: 1px solid var(--border-2); background: var(--surface); border-radius: 12px; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle span { width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s var(--ease), opacity .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); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  padding: 140px 0 90px; overflow: hidden;
}
.hero-particles { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: .85; }
.hero-grid {
  position: absolute; inset: 0; z-index: 0; opacity: .35;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 35%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 35%, #000 30%, transparent 75%);
}
.hero-glow { position: absolute; border-radius: 50%; filter: blur(90px); z-index: 0; opacity: .6; animation: float 14s var(--ease) infinite alternate; }
.hero-glow-1 { width: 480px; height: 480px; background: radial-gradient(circle, rgba(30,136,255,.55), transparent 70%); top: -120px; left: -60px; }
.hero-glow-2 { width: 520px; height: 520px; background: radial-gradient(circle, rgba(106,44,255,.5), transparent 70%); bottom: -160px; right: -80px; animation-delay: -5s; }
@keyframes float { to { transform: translate(40px, 30px) scale(1.08); } }

.hero-inner { position: relative; z-index: 2; text-align: center; max-width: 880px; margin-inline: auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 16px; border-radius: 999px; font-size: .85rem; font-weight: 600;
  color: var(--text); background: var(--surface); border: 1px solid var(--border-2);
  backdrop-filter: blur(8px); margin-bottom: 26px;
}
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ciano); box-shadow: 0 0 12px var(--ciano); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .35; transform: scale(.75); } }

.hero-title { font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 800; margin-bottom: 22px; }
.hero-subtitle { font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--muted); max-width: 660px; margin: 0 auto 38px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 54px; }

.hero-badges { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.hero-badge {
  display: flex; flex-direction: column; align-items: center;
  padding: 14px 26px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--border); backdrop-filter: blur(8px);
}
.hero-badge strong { font-family: "Sora"; font-size: 1.2rem; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-badge span { font-size: .8rem; color: var(--muted-2); }

.hero-fade { position: absolute; bottom: 0; left: 0; right: 0; height: 140px; background: linear-gradient(transparent, var(--bg)); z-index: 1; }

/* ---------- Trust marquee ---------- */
.trust { padding: 26px 0 10px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: rgba(0,0,0,.2); }
.trust-label { text-align: center; color: var(--muted-2); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; }
.trust-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.trust-track { display: flex; gap: 64px; width: max-content; animation: marquee 26s linear infinite; }
.trust-track span { font-family: "Sora"; font-weight: 700; font-size: 1.4rem; color: var(--muted-2); opacity: .55; letter-spacing: .1em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(70px, 10vw, 130px) 0; position: relative; }
.section-alt { background: linear-gradient(180deg, rgba(255,255,255,.012), transparent); }
.section-head { max-width: 720px; margin: 0 auto clamp(40px, 6vw, 64px); text-align: center; }
.section-tag {
  display: inline-block; padding: 6px 15px; border-radius: 999px;
  font-size: .8rem; font-weight: 700; letter-spacing: .04em;
  color: var(--ciano); background: rgba(18,207,244,.1); border: 1px solid rgba(18,207,244,.25);
  margin-bottom: 18px;
}
.section-title { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 800; margin-bottom: 18px; }
.section-lead { color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.15rem); }

/* ---------- Pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 70px; }
.pillar {
  padding: 26px; border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--border); transition: transform .35s var(--ease), border-color .35s, background .35s;
}
.pillar:hover { transform: translateY(-5px); border-color: var(--border-2); background: var(--surface-2); }
.pillar-ico { font-size: 1.6rem; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: var(--grad-soft); border: 1px solid var(--border); margin-bottom: 16px; }
.pillar h3 { font-size: 1.12rem; margin-bottom: 8px; }
.pillar p { color: var(--muted); font-size: .94rem; }

/* ---------- Timeline ---------- */
.timeline { padding: 40px; border-radius: var(--radius-lg); background: var(--grad-soft); border: 1px solid var(--border); position: relative; overflow: hidden; }
.timeline-title { text-align: center; font-size: 1.4rem; margin-bottom: 36px; }
.timeline-list { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; }
.timeline-list::before { content: ""; position: absolute; top: 20px; left: 6%; right: 6%; height: 2px; background: linear-gradient(90deg, var(--ciano), var(--roxo)); opacity: .5; }
.timeline-item { position: relative; padding-top: 56px; text-align: center; }
.timeline-num {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%;
  background: var(--bg-2); border: 2px solid var(--azul); color: var(--ciano);
  font-family: "Sora"; font-weight: 700; font-size: .9rem; box-shadow: 0 0 20px rgba(30,136,255,.5);
}
.timeline-item h4 { font-size: 1.02rem; margin-bottom: 6px; }
.timeline-item p { color: var(--muted); font-size: .88rem; }

/* ---------- Solution cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  position: relative; padding: 30px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border); overflow: hidden;
  transition: transform .4s var(--ease), border-color .4s, background .4s;
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: var(--grad-brand);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .4s;
}
.card:hover { transform: translateY(-6px); background: var(--surface-2); }
.card:hover::before { opacity: 1; }
.card-ico { font-size: 1.7rem; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 16px; background: var(--grad-soft); border: 1px solid var(--border); margin-bottom: 20px; }
.card h3 { font-size: 1.22rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .96rem; margin-bottom: 18px; }
.card-link { font-weight: 600; font-size: .9rem; color: var(--ciano); transition: letter-spacing .2s; }
.card:hover .card-link { letter-spacing: .02em; }

/* ---------- Diferenciais ---------- */
.diff-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.diff {
  display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center;
  padding: 30px 18px; border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--border); transition: transform .35s var(--ease), border-color .35s, background .35s;
}
.diff:hover { transform: translateY(-5px); border-color: var(--ciano); background: var(--surface-2); }
.diff-ico { display: grid; place-items: center; color: var(--ciano); }
.diff h4 { font-size: 1rem; font-weight: 600; }

/* ---------- Lucide icon sizing ---------- */
.pillar-ico { color: var(--ciano); }
.card-ico   { color: var(--ciano); }
[data-lucide], .pillar-ico svg, .card-ico svg, .diff-ico svg {
  stroke-width: 1.75; stroke: currentColor;
}
.pillar-ico svg { width: 26px; height: 26px; }
.card-ico svg   { width: 28px; height: 28px; }
.diff-ico svg   { width: 30px; height: 30px; }
.diff:hover .diff-ico { color: #fff; }
.card:hover .card-ico { color: var(--branco); }

/* ---------- Stats ---------- */
.stats-section { overflow: hidden; }
.stats-glow { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 700px; height: 380px; background: radial-gradient(ellipse, rgba(106,44,255,.18), transparent 70%); filter: blur(40px); z-index: 0; }
.stats-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat {
  text-align: center; padding: 34px 20px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border); backdrop-filter: blur(6px);
}
.stat-num { font-family: "Sora"; font-weight: 800; font-size: clamp(2.2rem, 5vw, 3.4rem); background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; line-height: 1; margin-bottom: 8px; }
.stat p { color: var(--muted); font-size: .92rem; }

/* ---------- Process ---------- */
.process { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.process-line { position: absolute; top: 28px; left: 8%; right: 8%; height: 2px; background: linear-gradient(90deg, var(--ciano), var(--azul), var(--roxo)); opacity: .45; }
.process-step { position: relative; text-align: center; padding-top: 76px; }
.process-dot {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%;
  font-family: "Sora"; font-weight: 800; font-size: 1.05rem; color: #fff;
  background: var(--grad-brand); box-shadow: 0 10px 30px -8px rgba(106,44,255,.7), inset 0 0 0 4px rgba(7,7,15,.5);
}
.process-step h3 { font-size: 1.15rem; margin-bottom: 10px; }
.process-step p { color: var(--muted); font-size: .92rem; }

/* ---------- Testimonials ---------- */
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.testimonial {
  padding: 30px; border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--border); display: flex; flex-direction: column; gap: 18px;
  transition: transform .35s var(--ease), border-color .35s;
}
.testimonial:hover { transform: translateY(-5px); border-color: var(--border-2); }
.stars { color: #ffc34d; letter-spacing: 2px; font-size: 1.05rem; }
.testimonial blockquote { font-size: 1.02rem; color: var(--text); }
.testimonial-author { display: flex; align-items: center; gap: 13px; margin-top: auto; }
.avatar { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .9rem; color: #fff; background: linear-gradient(135deg, var(--a), var(--b)); }
.testimonial-author strong { display: block; font-size: .98rem; }
.testimonial-author small { color: var(--muted-2); font-size: .84rem; }

/* ---------- CTA ---------- */
.cta-section { padding: clamp(60px, 8vw, 100px) 0; }
.cta-card {
  position: relative; text-align: center; padding: clamp(44px, 7vw, 80px) 30px;
  border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(135deg, rgba(30,136,255,.16), rgba(106,44,255,.18));
  border: 1px solid var(--border-2);
}
.cta-glow { position: absolute; top: -40%; left: 50%; transform: translateX(-50%); width: 600px; height: 600px; background: radial-gradient(circle, rgba(18,207,244,.25), transparent 65%); filter: blur(50px); }
.cta-card > * { position: relative; z-index: 1; }
.cta-card h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 16px; }
.cta-card p { color: var(--muted); font-size: 1.1rem; max-width: 560px; margin: 0 auto 32px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: rgba(0,0,0,.3); padding-top: 64px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 50px; }
.footer-brand p { color: var(--muted); font-size: .94rem; margin: 16px 0 20px; max-width: 320px; }
.socials { display: flex; gap: 10px; }
.social { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); color: var(--muted); font-weight: 700; text-transform: lowercase; transition: all .25s var(--ease); }
.social:hover { color: #fff; border-color: var(--ciano); background: var(--grad-soft); transform: translateY(-3px); }
.footer-col h4 { font-size: .95rem; margin-bottom: 18px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer-col a, .footer-col li { color: var(--muted); font-size: .92rem; transition: color .2s; }
.footer-col a:hover { color: var(--ciano); }
.footer-bottom { border-top: 1px solid var(--border); padding: 22px 0; }
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.footer-bottom p, .footer-legal a { color: var(--muted-2); font-size: .86rem; }
.footer-legal a:hover { color: var(--ciano); }

/* ---------- To-top ---------- */
.to-top {
  position: fixed; bottom: 26px; right: 26px; z-index: 40;
  width: 48px; height: 48px; border-radius: 50%; cursor: pointer;
  background: var(--grad-brand); color: #fff; border: none; font-size: 1.2rem;
  box-shadow: 0 10px 30px -8px rgba(106,44,255,.7);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .3s, transform .3s, visibility .3s;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { transform: translateY(-3px) scale(1.05); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-reveal]:nth-child(2) { transition-delay: .06s; }
.reveal[data-reveal]:nth-child(3) { transition-delay: .12s; }
.reveal[data-reveal]:nth-child(4) { transition-delay: .18s; }
.reveal[data-reveal]:nth-child(5) { transition-delay: .24s; }
.reveal[data-reveal]:nth-child(6) { transition-delay: .30s; }

/* ===================================================================
   Responsive
   =================================================================== */
@media (max-width: 980px) {
  .pillars, .cards, .testimonials { grid-template-columns: repeat(2, 1fr); }
  .diff-grid, .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline-list, .process { grid-template-columns: repeat(2, 1fr); gap: 30px 20px; }
  .timeline-list::before, .process-line { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .nav { position: fixed; inset: 72px 0 auto 0; background: rgba(7,7,15,.97); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); transform: translateY(-130%); transition: transform .35s var(--ease); padding: 16px 0 24px; }
  .nav.open { transform: translateY(0); }
  .nav-list { flex-direction: column; gap: 4px; padding-inline: 24px; }
  .nav-list a { padding: 13px 14px; font-size: 1rem; }
  .nav-toggle { display: flex; }
  .header-actions .btn-sm { display: none; }
}

@media (max-width: 560px) {
  .pillars, .cards, .testimonials, .diff-grid, .stats-grid, .timeline-list, .process { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-badges { gap: 12px; }
  .hero-badge { padding: 12px 20px; }
  .timeline { padding: 28px 20px; }
  .container { padding-inline: 18px; }
}
