/* ============================================================
   RDCLOUD — Dark Corporate Minimalist / Swiss Brutalist
   ============================================================ */
:root {
  --bg: #050505;
  --surface: #0a0a0c;
  --surface-2: #121215;
  --border: #27272a;
  --border-bright: #3f3f46;
  --white: #ffffff;
  --text-2: #a1a1aa;
  --muted: #52525b;
  --glow: rgba(255, 255, 255, 0.05);
  --font-head: "Outfit", "Arial Narrow", sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --max: 1320px;
  --gutter: clamp(20px, 5vw, 72px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  cursor: default;
}

::selection { background: var(--white); color: #000; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* -------- Grain overlay -------- */
.grain {
  position: fixed; inset: 0; z-index: 9998; pointer-events: none;
  opacity: 0.035; mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* -------- Scroll progress -------- */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 9999; background: transparent; }
.scroll-progress span { display: block; height: 100%; width: 0%; background: var(--white); }

/* -------- Typography helpers -------- */
.overline {
  font-family: var(--font-body);
  font-size: 0.72rem; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--muted); font-weight: 500;
}
h1, h2, h3 { font-family: var(--font-head); font-weight: 800; letter-spacing: -0.03em; line-height: 0.95; }

/* -------- Buttons -------- */
.btn {
  --pad-y: 0.9rem; --pad-x: 1.6rem;
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: var(--pad-y) var(--pad-x);
  font-family: var(--font-body); font-weight: 600; font-size: 0.9rem;
  letter-spacing: 0.01em; border: 1px solid var(--white);
  position: relative; overflow: hidden; cursor: pointer;
  transition: color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; background: var(--white);
  transform: translateY(101%); transition: transform 0.45s var(--ease); z-index: -1;
}
.btn svg { transition: transform 0.4s var(--ease); }
.btn:hover::before { transform: translateY(0); }
.btn:hover svg { transform: translateX(4px); }
.btn--solid { background: var(--white); color: #000; border-color: var(--white); }
.btn--solid::before { background: transparent; }
.btn--solid:hover { color: #000; background: var(--text-2); border-color: var(--text-2); }
.btn--ghost { background: transparent; color: var(--white); border-color: var(--border-bright); }
.btn--ghost:hover { color: #000; border-color: var(--white); }
.btn--lg { --pad-y: 1.15rem; --pad-x: 2.2rem; font-size: 1rem; }

/* -------- Nav -------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  border-bottom: 1px solid transparent; transition: background 0.4s var(--ease), border-color 0.4s var(--ease), backdrop-filter 0.4s;
}
.nav.scrolled { background: rgba(5,5,5,0.72); backdrop-filter: blur(16px); border-bottom-color: var(--border); }
.nav__inner {
  max-width: var(--max); margin: 0 auto; padding: 1.1rem var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
}
.brand { font-family: var(--font-head); font-weight: 800; letter-spacing: -0.02em; font-size: 1.15rem; display: inline-flex; align-items: center; gap: 0.55rem; }
.brand__dot { width: 9px; height: 9px; background: var(--white); border-radius: 50%; display: inline-block; box-shadow: 0 0 14px var(--white); }
.nav__links { display: flex; gap: 2rem; }
.nav__links a { font-size: 0.85rem; color: var(--text-2); position: relative; transition: color 0.3s; }
.nav__links a::after { content: ""; position: absolute; left: 0; bottom: -4px; height: 1px; width: 0; background: var(--white); transition: width 0.35s var(--ease); }
.nav__links a:hover { color: var(--white); }
.nav__links a:hover::after { width: 100%; }

/* -------- Layout -------- */
section { position: relative; }
.section-head { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); margin-bottom: clamp(3rem, 6vw, 6rem); }
.section-head .overline { display: block; margin-bottom: 1.5rem; }
.section-head h2 { font-size: clamp(2rem, 5vw, 3.75rem); max-width: 20ch; color: var(--white); }

/* -------- Hero -------- */
.hero { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 8rem var(--gutter) 4rem; overflow: hidden; }
.hero__orb {
  position: absolute; right: -8%; top: 50%; transform: translateY(-50%);
  width: min(60vw, 720px); opacity: 0.55; mix-blend-mode: screen; pointer-events: none;
  filter: grayscale(0.2) contrast(1.05); will-change: transform;
}
.hero__grid { max-width: var(--max); margin: 0 auto; width: 100%; position: relative; z-index: 2; }
.hero .overline { margin-bottom: 2rem; }
.hero__title { font-size: clamp(3.2rem, 12vw, 9rem); letter-spacing: -0.045em; margin-bottom: 2rem; }
.hero__sub { max-width: 46ch; color: var(--text-2); font-size: clamp(1rem, 1.4vw, 1.2rem); margin-bottom: 2.6rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 4rem; }
.hero__stats { display: flex; flex-wrap: wrap; gap: clamp(2rem, 6vw, 5rem); border-top: 1px solid var(--border); padding-top: 2.2rem; max-width: 720px; }
.hero__stats dt { font-family: var(--font-head); font-weight: 800; font-size: clamp(2rem, 4vw, 3rem); color: var(--white); }
.hero__stats dd { color: var(--muted); font-size: 0.82rem; letter-spacing: 0.02em; margin-top: 0.2rem; }
.hero__scroll { position: absolute; bottom: 2rem; left: var(--gutter); font-size: 0.7rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); }
.hero__scroll::before { content: ""; display: inline-block; width: 40px; height: 1px; background: var(--muted); margin-right: 0.8rem; vertical-align: middle; animation: scrollLine 2s var(--ease) infinite; transform-origin: left; }
@keyframes scrollLine { 0%,100% { transform: scaleX(0.3); opacity: 0.4; } 50% { transform: scaleX(1); opacity: 1; } }

/* Masked line reveal */
.line { display: block; overflow: hidden; }
.line__inner { display: block; transform: translateY(0); }
html.js .line__inner { transform: translateY(105%); }

/* -------- Marquee -------- */
.marquee { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); overflow: hidden; padding: 1.6rem 0; background: var(--surface); }
.marquee__track { display: flex; white-space: nowrap; width: max-content; animation: marquee 32s linear infinite; }
.marquee__track span { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.4rem, 3vw, 2.4rem); letter-spacing: -0.01em; color: var(--muted); padding-right: 1rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* -------- Manifesto chapters -------- */
.manifesto { padding: clamp(6rem, 12vw, 12rem) 0; }
.chapter {
  max-width: var(--max); margin: 0 auto; padding: clamp(2.5rem,5vw,4rem) var(--gutter);
  display: grid; grid-template-columns: minmax(120px, 0.4fr) 1fr; gap: clamp(1.5rem, 5vw, 5rem);
  border-top: 1px solid var(--border); align-items: start;
}
.chapter__num { font-family: var(--font-head); font-weight: 300; font-size: clamp(3rem, 9vw, 7rem); color: var(--surface-2); line-height: 1; -webkit-text-stroke: 1px var(--border-bright); }
.chapter__body h3 { font-size: clamp(1.6rem, 3.4vw, 2.6rem); margin-bottom: 1.2rem; color: var(--white); }
.chapter__body p { color: var(--text-2); max-width: 52ch; font-size: 1.05rem; }

/* -------- Services -------- */
.services { padding: clamp(4rem, 8vw, 8rem) 0; }
.services__grid { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); }
.card { background: var(--surface); padding: clamp(2rem, 3vw, 3rem); transition: background 0.4s var(--ease); min-height: 260px; display: flex; flex-direction: column; }
.card:hover { background: var(--surface-2); }
.card__icon { font-size: 1.4rem; color: var(--white); margin-bottom: auto; opacity: 0.85; }
.card h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); margin: 2.5rem 0 0.9rem; color: var(--white); }
.card p { color: var(--text-2); font-size: 0.98rem; }

/* -------- Showcase -------- */
.showcase { padding: clamp(4rem, 8vw, 8rem) 0 clamp(6rem,12vw,12rem); }
.showcase__grid { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.2rem, 2.5vw, 2rem); }
.shot { position: relative; border: 1px solid var(--border); overflow: hidden; background: var(--surface); }
.shot--wide { grid-column: span 2; }
.shot img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16/10; filter: grayscale(0.55) contrast(1.05) brightness(0.9); transition: filter 0.6s var(--ease), transform 0.9s var(--ease); transform: scale(1.06); }
.shot:hover img { filter: grayscale(0) contrast(1) brightness(1); }
.shot::after { content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity 0.4s; background: radial-gradient(320px circle at var(--mx,50%) var(--my,50%), rgba(255,255,255,0.14), transparent 60%); pointer-events: none; }
.shot[data-spotlight]:hover::after { opacity: 1; }
.shot figcaption { position: absolute; left: 0; bottom: 0; right: 0; padding: 1.4rem; display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; background: linear-gradient(0deg, rgba(5,5,5,0.9), transparent); }
.shot figcaption span { font-family: var(--font-head); font-weight: 700; font-size: 1rem; letter-spacing: -0.01em; }
.shot figcaption em { font-style: normal; color: var(--muted); font-size: 0.8rem; text-align: right; }

/* -------- Final CTA -------- */
.cta { text-align: left; padding: clamp(6rem, 12vw, 12rem) var(--gutter); border-top: 1px solid var(--border); max-width: var(--max); margin: 0 auto; }
.cta .overline { margin-bottom: 1.5rem; }
.cta__title { font-size: clamp(3rem, 11vw, 9rem); letter-spacing: -0.045em; color: var(--white); margin-bottom: 2rem; }
.cta__sub { color: var(--text-2); max-width: 44ch; font-size: 1.1rem; margin-bottom: 2.6rem; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* -------- Footer -------- */
.footer { border-top: 1px solid var(--border); background: var(--surface); padding: clamp(3rem,6vw,5rem) var(--gutter) 2.5rem; }
.footer__grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid var(--border); }
.footer__brand p { color: var(--muted); margin-top: 1rem; max-width: 30ch; font-size: 0.9rem; }
.footer__label { display: block; font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.2rem; }
.footer__col a { display: block; color: var(--text-2); font-size: 0.9rem; margin-bottom: 0.7rem; transition: color 0.3s; }
.footer__col a:hover { color: var(--white); }
.footer__legal { max-width: var(--max); margin: 2.5rem auto 0; color: var(--muted); font-size: 0.82rem; line-height: 1.7; }
.footer__legal strong { color: var(--text-2); }
.footer__copy { margin-top: 1rem; color: var(--border-bright); }

/* -------- Reveal states -------- */
.reveal { opacity: 1; }
html.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
html.js .reveal.in { opacity: 1; transform: none; }
.is-in .line__inner, .line__inner.is-in { transform: translateY(0); }

/* -------- Prova social -------- */
.proof { padding: clamp(2.5rem, 5vw, 4rem) 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface); }
.proof__inner { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 4vw, 3rem); }
.proof__item { display: flex; flex-direction: column; gap: 0.4rem; text-align: left; }
.proof__item:not(:first-child) { padding-left: clamp(1.5rem, 4vw, 3rem); border-left: 1px solid var(--border); }
.proof__num { font-family: var(--font-head); font-weight: 800; font-size: clamp(2.4rem, 6vw, 4rem); color: var(--white); letter-spacing: -0.04em; line-height: 1; }
.proof__label { color: var(--muted); font-size: 0.85rem; letter-spacing: 0.02em; }

/* -------- Plans -------- */
.plans { padding: clamp(4rem, 8vw, 8rem) 0; }
.plans__grid { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.2rem, 2.5vw, 2rem); }
.plan { position: relative; background: var(--surface); border: 1px solid var(--border); padding: clamp(2rem, 3vw, 3rem); display: flex; flex-direction: column; transition: border-color 0.4s var(--ease), transform 0.4s var(--ease); }
.plan:hover { border-color: var(--border-bright); transform: translateY(-4px); }
.plan--featured { background: var(--surface-2); border-color: var(--white); }
.plan__badge { position: absolute; top: -1px; right: -1px; background: var(--white); color: #000; font-family: var(--font-body); font-weight: 700; font-size: 0.65rem; letter-spacing: 0.16em; text-transform: uppercase; padding: 0.45rem 0.9rem; }
.plan__name { font-family: var(--font-head); font-weight: 700; font-size: 1.4rem; color: var(--white); }
.plan__price { margin: 1.4rem 0 0; display: flex; flex-direction: column; gap: 0.2rem; }
.plan__old { color: var(--muted); font-size: 0.95rem; text-decoration: line-through; }
.plan__price strong { font-family: var(--font-head); font-weight: 800; font-size: clamp(2.4rem, 5vw, 3.4rem); color: var(--white); letter-spacing: -0.03em; line-height: 1; }
.plan__features { list-style: none; margin: 2rem 0; padding-top: 1.6rem; border-top: 1px solid var(--border); flex: 1; }
.plan__features li { color: var(--text-2); padding: 0.7rem 0 0.7rem 1.6rem; position: relative; font-size: 0.98rem; }
.plan__features li::before { content: "→"; position: absolute; left: 0; color: var(--white); }
.plan__features em { color: var(--white); font-style: normal; font-weight: 600; }
.plan__cta { width: 100%; justify-content: center; }

/* -------- Addons -------- */
.addons { max-width: var(--max); margin: clamp(3rem, 6vw, 5rem) auto 0; padding: 0 var(--gutter); }
.addons__title { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.4rem, 2.5vw, 2rem); color: var(--white); margin-bottom: 1.5rem; }
.addons__list { list-style: none; border: 1px solid var(--border); }
.addons__list li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.2rem clamp(1.2rem, 2vw, 2rem); border-bottom: 1px solid var(--border); transition: background 0.3s var(--ease); }
.addons__list li:last-child { border-bottom: none; }
.addons__list li:hover { background: var(--surface); }
.addons__list span { color: var(--text-2); }
.addons__list b { font-family: var(--font-head); font-weight: 700; color: var(--white); white-space: nowrap; }

/* -------- Empresa brasileira strip -------- */
.br-strip { max-width: var(--max); margin: clamp(3rem, 6vw, 5rem) auto 0; padding: clamp(2rem, 3vw, 3rem) var(--gutter); display: flex; gap: clamp(1.5rem, 3vw, 2.5rem); align-items: center; border: 1px solid var(--border); background: var(--surface); }
.br-strip__flag { display: grid; grid-template-columns: repeat(3, 8px); gap: 4px; flex-shrink: 0; }
.br-strip__flag span { width: 8px; height: 40px; }
.br-strip__flag span:nth-child(1) { background: #1b9e3e; }
.br-strip__flag span:nth-child(2) { background: #f7d117; }
.br-strip__flag span:nth-child(3) { background: #2a3f9e; }
.br-strip__text h3 { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.3rem, 2.4vw, 1.9rem); color: var(--white); margin-bottom: 0.7rem; }
.br-strip__text p { color: var(--text-2); max-width: 60ch; font-size: 0.98rem; }
.br-strip__text strong { color: var(--white); }
.br-strip__link { display: inline-block; margin-top: 1.2rem; color: var(--white); font-weight: 600; font-size: 0.9rem; border-bottom: 1px solid var(--border-bright); padding-bottom: 2px; transition: border-color 0.3s; }
.br-strip__link:hover { border-color: var(--white); }

/* -------- Floating WhatsApp -------- */
.wa-float { position: fixed; right: clamp(16px, 3vw, 32px); bottom: clamp(16px, 3vw, 32px); z-index: 9997; width: 60px; height: 60px; border-radius: 50%; background: #25d366; color: #052e16; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 30px rgba(37,211,102,0.35); transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.wa-float:hover { transform: scale(1.08); box-shadow: 0 10px 40px rgba(37,211,102,0.55); }
.wa-float svg { position: relative; z-index: 2; }
.wa-float__pulse { position: absolute; inset: 0; border-radius: 50%; background: #25d366; animation: waPulse 2.4s ease-out infinite; z-index: 1; }
@keyframes waPulse { 0% { transform: scale(1); opacity: 0.6; } 100% { transform: scale(1.9); opacity: 0; } }

/* -------- Legal document (contract page) -------- */
.legal { max-width: 860px; margin: 0 auto; padding: clamp(7rem, 12vw, 10rem) var(--gutter) clamp(4rem, 8vw, 7rem); }
.legal__back { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--muted); font-size: 0.85rem; letter-spacing: 0.02em; margin-bottom: 2.5rem; transition: color 0.3s; }
.legal__back:hover { color: var(--white); }
.legal h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); color: var(--white); margin-bottom: 1rem; letter-spacing: -0.03em; }
.legal__meta { color: var(--muted); font-size: 0.85rem; border-bottom: 1px solid var(--border); padding-bottom: 2rem; margin-bottom: 2.5rem; line-height: 1.8; }
.legal h2 { font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; color: var(--white); margin: 2.6rem 0 1rem; letter-spacing: -0.01em; }
.legal p, .legal li { color: var(--text-2); font-size: 0.98rem; line-height: 1.8; margin-bottom: 0.9rem; }
.legal ul { padding-left: 1.3rem; margin-bottom: 1rem; }
.legal li { margin-bottom: 0.5rem; }
.legal strong { color: var(--white); }
.legal__box { border: 1px solid var(--border); background: var(--surface); padding: 1.5rem clamp(1.2rem, 2vw, 2rem); margin: 1.5rem 0; }
.legal__sign { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; margin-top: 4rem; padding-top: 2.5rem; border-top: 1px solid var(--border); }
.legal__sign div { border-top: 1px solid var(--border-bright); padding-top: 0.8rem; color: var(--muted); font-size: 0.82rem; }

/* -------- Responsive -------- */
@media (max-width: 860px) {
  .nav__links { display: none; }
  .services__grid { grid-template-columns: 1fr; }
  .showcase__grid { grid-template-columns: 1fr; }
  .shot--wide { grid-column: span 1; }
  .chapter { grid-template-columns: 1fr; gap: 1rem; }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero__orb { opacity: 0.3; right: -30%; }
  .plans__grid { grid-template-columns: 1fr; }
  .proof__inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .proof__item:not(:first-child) { padding-left: 0; border-left: none; padding-top: 1.5rem; border-top: 1px solid var(--border); }
  .br-strip { flex-direction: column; align-items: flex-start; }
  .br-strip__flag { flex-direction: row; grid-template-columns: repeat(3, 24px); }
  .br-strip__flag span { height: 24px; width: 24px; }
  .legal__sign { grid-template-columns: 1fr; gap: 2rem; }
  .addons__list li { flex-direction: column; align-items: flex-start; gap: 0.3rem; }
}

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