:root {
  /* "Floodlit Storm" brand palette — matches the Chuva Fatiada wordmark */
  --ink: #12222B;
  --ink-soft: #4b5f68;
  --bg: #ffffff;
  --bg-alt: #F2F6F7;
  --line: #dfe8ea;
  --brand: #0F2E33;       /* pitch */
  --brand-deep: #0A1E28;  /* storm */
  --brand-light: #E4F2F5;
  --accent: #1899B4;      /* rain */
  --accent-bright: #3EC6E0;
  --accent-light: #E4F2F5;
  --volt: #C8F55A;
  --volt-deep: #7FA82B;
  --radius: 14px;
  --max: 1120px;
  font-size: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

a { color: inherit; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -0.01em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; color: var(--ink-soft); }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand);
  margin: 0 0 0.6em;
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform;
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo img { height: 34px; width: auto; display: block; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { text-decoration: none; font-size: 0.95rem; color: var(--ink-soft); position: relative; }
.nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--volt-deep));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.nav a:not(.nav-cta):hover::after { transform: scaleX(1); }
.nav a:hover { color: var(--ink); }
.nav-cta {
  background: var(--brand);
  color: #fff !important;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 600;
  transition: background 0.25s ease, transform 0.25s ease;
}
.nav-cta:hover { background: var(--brand-deep); transform: translateY(-1px); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 100px 0 84px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--brand-light), #fff 78%);
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
  animation: drift 16s ease-in-out infinite alternate;
}
.b1 { width: 420px; height: 420px; background: #bfe3ec; top: -140px; right: -80px; }
.b2 { width: 320px; height: 320px; background: #eaf7cd; bottom: -120px; left: -90px; animation-delay: -5s; animation-duration: 20s; }
.b3 { width: 240px; height: 240px; background: #d4ecf2; top: 40%; left: 42%; animation-delay: -10s; animation-duration: 24s; }
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(46px, -34px) scale(1.12); }
}
.grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(15,46,51,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,46,51,0.05) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 20%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 20%, #000 30%, transparent 75%);
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}
.grad-text {
  background: linear-gradient(90deg, var(--accent), var(--volt-deep), var(--accent));
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradSlide 6s linear infinite;
}
@keyframes gradSlide {
  from { background-position: 0% 0; }
  to   { background-position: 200% 0; }
}
.hero-type {
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--brand);
  min-height: 1.7em;
  margin-bottom: 0.9em;
}
.typed { color: var(--accent); }
.caret {
  display: inline-block;
  width: 2px; height: 1.05em;
  background: var(--accent);
  vertical-align: text-bottom;
  margin-left: 2px;
  animation: blinkCaret 0.9s step-end infinite;
}
@keyframes blinkCaret { 50% { opacity: 0; } }
.hero-sub { font-size: 1.1rem; max-width: 620px; }
.hero-actions { display: flex; gap: 14px; margin-top: 26px; flex-wrap: wrap; }
.hero-chips {
  list-style: none;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 0;
  margin: 26px 0 0;
}
.hero-chips li {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--brand);
  background: rgba(255,255,255,0.75);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  backdrop-filter: blur(4px);
}

/* Hero orbit visual */
.hero-visual { display: flex; justify-content: center; }
.orbit-svg { width: 100%; max-width: 400px; height: auto; }
.orbit {
  fill: none;
  stroke: rgba(15,46,51,0.18);
  stroke-dasharray: 5 7;
  transform-origin: 210px 210px;
}
.o1 { animation: spin 42s linear infinite; }
.o2 { animation: spin 30s linear infinite reverse; }
.o3 { animation: spin 20s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.hub circle { filter: drop-shadow(0 8px 18px rgba(15,46,51,0.35)); }
.hub { animation: hubPulse 3.4s ease-in-out infinite; transform-origin: 210px 210px; }
@keyframes hubPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.06); }
}
.hub-label { fill: #fff; font-weight: 800; font-size: 20px; letter-spacing: 0.05em; }
.sat circle {
  fill: #fff;
  stroke: var(--brand);
  stroke-width: 1.4;
  filter: drop-shadow(0 4px 10px rgba(20,24,31,0.14));
}
.sat text { fill: var(--brand); font-size: 9.5px; font-weight: 700; }
.sat { transform-origin: 210px 210px; }
.s1 { animation: orbitA 42s linear infinite; }
.s2 { animation: orbitA 42s linear infinite; animation-delay: -21s; }
.s3 { animation: orbitB 30s linear infinite; }
.s4 { animation: orbitB 30s linear infinite; animation-delay: -15s; }
.s5 { animation: orbitC 20s linear infinite; }
@keyframes orbitA {
  from { transform: rotate(0deg)   translateX(150px) rotate(0deg); }
  to   { transform: rotate(360deg) translateX(150px) rotate(-360deg); }
}
@keyframes orbitB {
  from { transform: rotate(0deg)   translateX(105px) rotate(0deg); }
  to   { transform: rotate(-360deg) translateX(105px) rotate(360deg); }
}
@keyframes orbitC {
  from { transform: rotate(0deg)   translateX(60px) rotate(0deg); }
  to   { transform: rotate(360deg) translateX(60px) rotate(-360deg); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(15,46,51,0.28); }
.btn-primary:hover { background: var(--brand-deep); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(15,46,51,0.34); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: rgba(255,255,255,0.8); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--brand); box-shadow: 0 6px 18px rgba(0,0,0,0.18); }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,0.22); }
.btn-sm { padding: 10px 18px; font-size: 0.88rem; }

/* ---------- Marquee ---------- */
.marquee {
  background: var(--brand-deep);
  overflow: hidden;
  padding: 13px 0;
  border-top: 1px solid var(--brand-deep);
  border-bottom: 1px solid var(--brand-deep);
}
.marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 34px;
  white-space: nowrap;
  animation: marquee 26s linear infinite;
  will-change: transform;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  color: rgba(255,255,255,0.92);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.marquee-track span:nth-child(even) { color: var(--volt); font-size: 0.7rem; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- Sections ---------- */
.section { padding: 92px 0; }
.section-alt { background: var(--bg-alt); }
.section-sub { max-width: 640px; font-size: 1.05rem; }

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--volt-deep));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(20,24,31,0.10);
  border-color: transparent;
}
.card:hover::before { transform: scaleX(1); }
.card-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand-light), #fff);
  border: 1px solid var(--line);
  color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}
.card:hover .card-icon {
  transform: translateY(-3px) rotate(-4deg) scale(1.06);
  background: var(--brand);
  color: #fff;
}
.card-icon svg { width: 22px; height: 22px; }
.card p { margin-bottom: 0; font-size: 0.95rem; }
.card ol, .card ul {
  margin: 12px 0 0;
  padding-left: 20px;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.card ol li, .card ul li { margin-bottom: 4px; }
.card ol li::marker, .card ul li::marker { color: var(--accent); font-weight: 700; }
.card-cta {
  background: linear-gradient(150deg, var(--brand), var(--brand-deep));
  border-color: var(--brand-deep);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 4px;
}
.card-cta h3 { color: #fff; }
.card-cta p { color: rgba(255,255,255,0.82); margin-bottom: 14px; }
.card-cta::before { background: linear-gradient(90deg, var(--accent-bright), var(--volt)); }
.card-cta .btn-primary { background: #fff; color: var(--brand); box-shadow: none; }
.card-cta .btn-primary:hover { background: var(--accent-light); transform: translateY(-2px); }

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 28px; position: relative; }
.steps::before {
  content: "";
  position: absolute;
  left: 18px; top: 20px; bottom: 20px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), var(--volt-deep));
  opacity: 0.25;
}
.steps li { display: flex; gap: 20px; align-items: flex-start; position: relative; }
.step-num {
  flex: 0 0 auto;
  width: 37px; height: 37px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 0 0 5px var(--bg-alt), 0 4px 10px rgba(15,46,51,0.3);
}
.steps h3 { margin-bottom: 4px; }
.steps p { margin-bottom: 0; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: start;
}
.about-facts { display: grid; gap: 16px; }
.fact {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-left: 3px solid var(--accent);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.fact:hover { transform: translateX(5px); box-shadow: 0 8px 20px rgba(20,24,31,0.07); }
.fact-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); }
.fact-value { font-weight: 700; }

/* ---------- FAQ ---------- */
.faq-list { margin-top: 32px; display: grid; gap: 12px; max-width: 760px; }
.faq-list details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.faq-list details:hover { border-color: var(--brand); }
.faq-list details[open] { box-shadow: 0 10px 24px rgba(20,24,31,0.06); border-color: var(--brand); }
.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  float: right;
  font-weight: 700;
  color: var(--brand);
  transition: transform 0.25s ease;
}
.faq-list details[open] summary::after { content: "\2212"; }
.faq-list details p { margin: 12px 0 0; animation: faqIn 0.35s ease; }
@keyframes faqIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  padding: 72px 0;
  overflow: hidden;
}
.cta-band::before, .cta-band::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
}
.cta-band::before { width: 340px; height: 340px; top: -160px; right: -80px; animation: drift 18s ease-in-out infinite alternate; }
.cta-band::after  { width: 240px; height: 240px; bottom: -130px; left: -60px; animation: drift 22s ease-in-out infinite alternate-reverse; }
.cta-inner { position: relative; text-align: center; max-width: 640px; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.85); margin-bottom: 26px; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: start;
}
.contact-form {
  display: grid;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 16px 40px rgba(20,24,31,0.07);
}
.contact-form label { font-size: 0.85rem; font-weight: 600; margin-top: 6px; }
.contact-form input,
.contact-form textarea {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 13px;
  font: inherit;
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(15,46,51,0.15);
}
.contact-form button { margin-top: 10px; justify-self: start; border: none; cursor: pointer; }

/* ---------- Footer ---------- */
.site-footer { padding: 34px 0; background: var(--brand-deep); color: #9DB4BC; }
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}
.footer-brand { display: flex; flex-direction: column; gap: 10px; }
.footer-logo img { height: 32px; width: auto; display: block; }
.footer-inner p { margin: 0; font-size: 0.85rem; color: #9DB4BC; }
.footer-legal { display: flex; gap: 22px; }
.footer-legal a {
  color: #cfdde2;
  text-decoration: none;
  font-size: 0.85rem;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.footer-legal a:hover { color: var(--volt); border-color: var(--volt); }

/* ---------- Gliding AI agent ---------- */
#ai-agent {
  position: fixed;
  top: 0; left: 0;
  z-index: 90;
  pointer-events: none;
  will-change: transform;
}
.agent-body { position: relative; width: 64px; height: 64px; }
.agent-core {
  position: absolute;
  inset: 8px;
  border-radius: 50% 50% 50% 12%;
  background: linear-gradient(140deg, var(--brand-deep) 15%, var(--brand) 45%, var(--accent-bright));
  box-shadow:
    0 10px 24px rgba(15,46,51,0.38),
    inset 0 -6px 12px rgba(0,0,0,0.18),
    inset 0 4px 8px rgba(255,255,255,0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: agentBob 3.2s ease-in-out infinite;
}
@keyframes agentBob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-7px) rotate(3deg); }
}
.agent-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px dashed rgba(15,46,51,0.35);
  animation: spinRing 10s linear infinite;
}
@keyframes spinRing { to { transform: rotate(360deg); } }
.agent-eyes { display: flex; gap: 8px; }
.agent-eye {
  width: 7px; height: 11px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 0 6px rgba(255,255,255,0.8);
  animation: agentBlink 4.6s infinite;
}
@keyframes agentBlink {
  0%, 91%, 100% { transform: scaleY(1); }
  94%, 97%      { transform: scaleY(0.1); }
}
.agent-trail {
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--volt-deep);
  opacity: 0;
}
#ai-agent.moving .agent-trail { animation: trail 0.9s ease-out infinite; }
#ai-agent.moving .t2 { animation-delay: 0.18s; }
#ai-agent.moving .t3 { animation-delay: 0.36s; }
@keyframes trail {
  0%   { opacity: 0.7; transform: translate(-50%, 0) scale(1); }
  100% { opacity: 0;   transform: translate(-50%, 26px) scale(0.2); }
}
.agent-bubble {
  position: absolute;
  bottom: 72px;
  left: 10px;
  transform: translateY(8px) scale(0.94);
  transform-origin: bottom left;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px 14px 14px 4px;
  box-shadow: 0 12px 28px rgba(20,24,31,0.16);
  padding: 10px 14px;
  width: max-content;
  max-width: 230px;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--ink);
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.agent-bubble::after {
  content: "";
  position: absolute;
  bottom: -7px; left: 18px;
  width: 12px; height: 12px;
  background: #fff;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transform: rotate(45deg);
}
#ai-agent.talking .agent-bubble {
  opacity: 1;
  transform: translateY(0) scale(1);
}
#ai-agent.bubble-right .agent-bubble {
  left: auto;
  right: 10px;
  transform-origin: bottom right;
  border-radius: 14px 14px 4px 14px;
}
#ai-agent.bubble-right .agent-bubble::after { left: auto; right: 18px; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .blob, .grid-lines, .hub, .orbit, .sat,
  .marquee-track, .agent-core, .agent-ring, .agent-trail,
  .cta-band::before, .cta-band::after { animation: none !important; }
  .caret { animation: none; }
  #ai-agent { display: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .orbit-svg { max-width: 280px; }
}
@media (max-width: 860px) {
  .nav { gap: 16px; }
  .nav a:not(.nav-cta) { display: none; }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  #ai-agent { transform: scale(0.8); }
  .agent-bubble { max-width: 180px; }
}
@media (max-width: 560px) {
  .card-grid { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 48px; }
  .section { padding: 56px 0; }
}

/* ---------- Legal pages ---------- */
.legal-wrap { max-width: 780px; }
.legal h1 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
.legal h2 { font-size: 1.2rem; margin-top: 2.2em; }
.legal-updated {
  font-size: 0.85rem;
  color: var(--ink-soft);
  border-left: 3px solid var(--accent);
  padding-left: 12px;
  margin-bottom: 2.2em;
}
.legal a { color: var(--accent); font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(24,153,180,0.35); }
.legal a:hover { border-color: var(--accent); }
