/* ═══════════════════════════════════════════════════════════════
   Quantora — Design System
   Paleta extraída da logomarca:
     Navy profundo  #0D1B4B  (texto QUANTORA, fundo header)
     Cobalt         #1545C8  (corpo do Q)
     Ciano elétrico #00C8F8  (destaque do Q, tagline dots)
   ═══════════════════════════════════════════════════════════════ */

:root {
  --q-navy:     #0D1B4B;
  --q-cobalt:   #1545C8;
  --q-blue:     #1E40AF;
  --q-electric: #00C8F8;
  --q-cyan:     #00D4F5;
  --q-light:    #E8F4FF;
  --q-off:      #F4F7FC;
  --q-slate:    #64748B;
  --q-white:    #FFFFFF;
  --q-border:   #E2E8F0;

  --q-grad:     linear-gradient(135deg, #0D1B4B 0%, #1545C8 55%, #00C8F8 100%);
  --q-grad-v:   linear-gradient(180deg, #0D1B4B 0%, #0F2A8C 100%);

  --radius:     12px;
  --radius-lg:  20px;
  --shadow-sm:  0 1px 8px rgba(13,27,75,.08);
  --shadow:     0 2px 16px rgba(13,27,75,.12);
  --shadow-md:  0 6px 32px rgba(13,27,75,.18);
  --shadow-lg:  0 12px 56px rgba(13,27,75,.26);

  --font-head:  'Montserrat', sans-serif;
  --font-body:  'Inter', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: #1E293B;
  background: var(--q-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  margin: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

img { max-width: 100%; }

/* ── Navbar ──────────────────────────────────────────────────── */
#quantora-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.1rem 0;
  transition: background .3s ease, padding .3s ease, box-shadow .3s ease;
}

#quantora-nav.scrolled {
  background: rgba(13, 27, 75, .97);
  backdrop-filter: blur(14px);
  padding: .65rem 0;
  box-shadow: 0 2px 28px rgba(0,0,0,.35);
}

.q-nav-brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
}

.q-nav-logo-svg { flex-shrink: 0; }

.q-nav-wordmark {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: .1em;
  color: #fff;
  line-height: 1;
}

.q-nav-link {
  color: rgba(255,255,255,.75);
  font-size: .88rem;
  font-weight: 500;
  text-decoration: none;
  padding: .4rem .8rem;
  border-radius: 6px;
  transition: color .2s, background .2s;
}
.q-nav-link:hover { color: #fff; background: rgba(255,255,255,.09); }

.q-nav-cta {
  background: var(--q-electric) !important;
  color: var(--q-navy) !important;
  font-weight: 700 !important;
  padding: .45rem 1.15rem !important;
  border-radius: 7px;
  transition: transform .15s, box-shadow .15s !important;
  font-size: .88rem !important;
}
.q-nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(0,200,248,.45);
  background: var(--q-cyan) !important;
  color: var(--q-navy) !important;
}

.navbar-toggler {
  border: 1px solid rgba(255,255,255,.3);
  padding: .35rem .6rem;
}
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,.85)' stroke-linecap='round' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ── Hero ────────────────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  background: var(--q-grad);
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hero-glow.g1 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(0,200,248,.16) 0%, transparent 68%);
  top: -200px; right: -180px;
  animation: hfloat 9s ease-in-out infinite;
}
.hero-glow.g2 {
  width: 450px; height: 450px;
  background: radial-gradient(circle, rgba(255,255,255,.06) 0%, transparent 70%);
  bottom: -100px; left: -80px;
  animation: hfloat 11s ease-in-out infinite reverse;
}
.hero-glow.g3 {
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(0,200,248,.12) 0%, transparent 70%);
  top: 35%; right: 22%;
  animation: hfloat 7s ease-in-out infinite;
  animation-delay: -3s;
}

@keyframes hfloat {
  0%, 100% { transform: translateY(0) translateX(0); }
  33%       { transform: translateY(-28px) translateX(10px); }
  66%       { transform: translateY(14px) translateX(-8px); }
}

.hero-inner { position: relative; z-index: 1; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.22);
  color: rgba(255,255,255,.9);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: .4rem 1rem;
  border-radius: 100px;
  backdrop-filter: blur(8px);
  margin-bottom: 1.75rem;
}
.hero-badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--q-electric);
  box-shadow: 0 0 8px var(--q-electric);
  animation: bpulse 2.2s ease-in-out infinite;
}
@keyframes bpulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .4; transform: scale(.7); }
}

.hero-title {
  font-size: clamp(2.25rem, 5vw, 3.85rem);
  color: #fff;
  margin-bottom: 1.25rem;
  letter-spacing: -0.03em;
}
.hero-title .accent {
  background: linear-gradient(90deg, #fff 20%, var(--q-electric) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,.72);
  max-width: 580px;
  margin: 0 auto 2.5rem;
  line-height: 1.75;
}

.btn-q-white {
  background: #fff;
  color: var(--q-navy);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .92rem;
  padding: .9rem 2rem;
  border-radius: 8px;
  border: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  transition: transform .2s, box-shadow .2s;
  cursor: pointer;
  line-height: 1;
}
.btn-q-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,.28);
  color: var(--q-navy);
  text-decoration: none;
}

.btn-q-outline {
  background: transparent;
  color: rgba(255,255,255,.85);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .92rem;
  padding: .9rem 1.75rem;
  border-radius: 8px;
  border: 1.5px solid rgba(255,255,255,.32);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  transition: background .2s, color .2s, border-color .2s;
  cursor: pointer;
  line-height: 1;
}
.btn-q-outline:hover {
  background: rgba(255,255,255,.1);
  color: #fff;
  border-color: rgba(255,255,255,.55);
  text-decoration: none;
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  color: rgba(255,255,255,.45);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  animation: scrolldown 2s ease-in-out infinite;
}
@keyframes scrolldown {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: .6; }
  50%       { transform: translateX(-50%) translateY(6px); opacity: .3; }
}

/* ── Stats Strip ─────────────────────────────────────────────── */
#stats {
  background: var(--q-navy);
  padding: 2.25rem 0;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat-item {
  text-align: center;
  padding: .75rem 1rem;
  border-right: 1px solid rgba(255,255,255,.08);
}
.stat-item:last-child { border-right: none; }

.stat-num {
  font-family: var(--font-head);
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--q-electric);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: .3rem;
  display: block;
}

.stat-label {
  font-size: .75rem;
  font-weight: 600;
  color: rgba(255,255,255,.5);
  text-transform: uppercase;
  letter-spacing: .1em;
}

/* ── Section base ────────────────────────────────────────────── */
section { padding: 5.5rem 0; }

.section-tag {
  font-family: var(--font-head);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--q-electric);
  margin-bottom: .6rem;
  display: block;
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  color: var(--q-navy);
  margin-bottom: .85rem;
  letter-spacing: -0.025em;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--q-slate);
  line-height: 1.75;
  max-width: 600px;
}

/* ── Ecosystem Section ───────────────────────────────────────── */
#ecosystem { background: var(--q-off); }

.eco-feature {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  padding: 1.5rem;
  background: var(--q-white);
  border-radius: var(--radius);
  border: 1px solid var(--q-border);
  box-shadow: var(--shadow-sm);
  transition: transform .22s, box-shadow .22s;
  height: 100%;
}
.eco-feature:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.eco-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(21,69,200,.12), rgba(0,200,248,.12));
  color: var(--q-cobalt);
}

.eco-title {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--q-navy);
  margin-bottom: .3rem;
}
.eco-desc {
  font-size: .88rem;
  color: var(--q-slate);
  line-height: 1.6;
  margin: 0;
}

/* ── Products Section ────────────────────────────────────────── */
#produtos { background: var(--q-white); }

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.4rem;
}

.product-card {
  background: var(--q-white);
  border: 1px solid var(--q-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
  transition: transform .25s, box-shadow .25s, border-color .25s;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.product-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: var(--pc-color, var(--q-cobalt));
  opacity: 0;
  transition: opacity .25s;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(21,69,200,.15);
  color: inherit;
  text-decoration: none;
}
.product-card:hover::after { opacity: 1; }

.product-icon {
  width: 54px; height: 54px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  margin-bottom: 1.2rem;
  flex-shrink: 0;
  background: var(--pc-bg, rgba(21,69,200,.08));
  color: var(--pc-color, var(--q-cobalt));
}

.product-name {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--q-navy);
  margin-bottom: .2rem;
}

.product-category {
  font-size: .73rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--q-slate);
  margin-bottom: .8rem;
}

.product-desc {
  font-size: .89rem;
  color: var(--q-slate);
  line-height: 1.65;
  flex: 1;
  margin: 0;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--q-border);
}

.product-action {
  font-size: .84rem;
  font-weight: 600;
  color: var(--pc-color, var(--q-cobalt));
  display: flex;
  align-items: center;
  gap: .35rem;
  transition: gap .2s;
}
.product-card:hover .product-action { gap: .6rem; }

.badge-soon {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  background: var(--q-off);
  color: var(--q-slate);
  padding: .2rem .65rem;
  border-radius: 100px;
  border: 1px solid var(--q-border);
}

.badge-live {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  background: rgba(0,200,248,.1);
  color: #0891B2;
  padding: .2rem .65rem;
  border-radius: 100px;
  border: 1px solid rgba(0,200,248,.3);
}

/* ── Por que Quantora ────────────────────────────────────────── */
#porque {
  background: var(--q-navy);
  position: relative;
  overflow: hidden;
}
#porque::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
}

.porque-item {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.06);
  background: rgba(255,255,255,.03);
  transition: background .22s, border-color .22s;
}
.porque-item:hover {
  background: rgba(255,255,255,.06);
  border-color: rgba(0,200,248,.2);
}

.porque-icon {
  width: 50px; height: 50px;
  border-radius: 12px;
  background: rgba(0,200,248,.1);
  border: 1px solid rgba(0,200,248,.2);
  color: var(--q-electric);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.porque-title {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: .3rem;
}
.porque-desc {
  font-size: .88rem;
  color: rgba(255,255,255,.6);
  line-height: 1.65;
  margin: 0;
}

/* ── CTA Section ─────────────────────────────────────────────── */
#cta { background: var(--q-off); }

.cta-box {
  background: var(--q-grad);
  border-radius: 24px;
  padding: 5rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-box::after {
  content: 'Q';
  position: absolute;
  right: -1.5rem;
  bottom: -4rem;
  font-family: var(--font-head);
  font-size: 20rem;
  font-weight: 900;
  color: rgba(255,255,255,.04);
  line-height: 1;
  pointer-events: none;
  letter-spacing: -0.05em;
  user-select: none;
}

.cta-title {
  font-size: clamp(1.75rem, 3.5vw, 2.6rem);
  color: #fff;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}
.cta-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,.72);
  max-width: 480px;
  margin: 0 auto 2.25rem;
  line-height: 1.75;
  position: relative;
  z-index: 1;
}
.cta-actions { position: relative; z-index: 1; }

/* ── Footer ──────────────────────────────────────────────────── */
#site-footer {
  background: #080F2E;
  color: rgba(255,255,255,.55);
  padding: 4.5rem 0 2rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  margin-bottom: .75rem;
}
.footer-brand-word {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: .1em;
  color: #fff;
}
.footer-tagline {
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  margin-bottom: 1.25rem;
}
.footer-about {
  font-size: .87rem;
  color: rgba(255,255,255,.5);
  line-height: 1.7;
  max-width: 280px;
}

.footer-col-title {
  font-family: var(--font-head);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.8);
  margin-bottom: 1rem;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .5rem; }
.footer-links a {
  color: rgba(255,255,255,.45);
  text-decoration: none;
  font-size: .86rem;
  transition: color .2s;
  display: flex;
  align-items: center;
  gap: .4rem;
}
.footer-links a .dot-live {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--q-electric);
  display: inline-block;
  box-shadow: 0 0 6px var(--q-electric);
}
.footer-links a:hover { color: var(--q-electric); }

.footer-hr { border-color: rgba(255,255,255,.07); margin: 2.5rem 0 1.5rem; }
.footer-copy { font-size: .8rem; color: rgba(255,255,255,.3); }
.footer-legal a {
  color: rgba(255,255,255,.35);
  font-size: .8rem;
  text-decoration: none;
  transition: color .2s;
}
.footer-legal a:hover { color: rgba(255,255,255,.65); }

/* ── Utilities ───────────────────────────────────────────────── */
.text-electric { color: var(--q-electric) !important; }
.text-navy { color: var(--q-navy) !important; }
.gap-hero { gap: 1rem; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 991px) {
  #quantora-nav { background: rgba(13,27,75,.97); backdrop-filter: blur(14px); }
  .navbar-collapse { padding: 1rem 0; }
  .q-nav-link { display: block; padding: .55rem .5rem; }
  .q-nav-cta { display: inline-flex; margin-top: .5rem; }
}

@media (max-width: 767px) {
  section { padding: 3.75rem 0; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item { border-bottom: 1px solid rgba(255,255,255,.08); }
  .stat-item:nth-child(3),
  .stat-item:nth-child(4) { border-bottom: none; }
  .cta-box { padding: 3rem 1.5rem; }
  .cta-box::after { display: none; }
  .products-grid { grid-template-columns: 1fr; }
  .hero-sub { font-size: 1rem; }
}
