/* =========================================================
   RightR — site institucional (dark premium)
   Design inspirado em Up Digital · identidade RightR (brand/BRAND.md)
   ========================================================= */

:root {
  --red: #F43B47;
  --red-dark: #D8313C;
  --indigo: #6048D8;

  --bg: #0A0F12;           /* near-black slate */
  --bg-2: #0E1519;         /* alt section */
  --panel: #131C22;        /* card surface */
  --panel-2: #18242B;      /* hover/raised */
  --line: rgba(255,255,255,.09);
  --line-2: rgba(255,255,255,.14);

  --white: #FFFFFF;
  --text: rgba(255,255,255,.74);
  --text-dim: rgba(255,255,255,.5);

  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1180px;
  --ease: cubic-bezier(.22,.61,.36,1);

  --font-head: 'Raleway', system-ui, sans-serif;
  --font-body: 'Open Sans', system-ui, sans-serif;
  --font-mono: 'Space Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--text); background: var(--bg);
  line-height: 1.65; font-size: 17px; overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-head); color: #fff; line-height: 1.05; font-weight: 800; letter-spacing: -0.01em; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.accent { color: var(--red); }

/* mono micro-labels */
.mono-label { font-family: var(--font-mono); font-weight: 700; text-transform: uppercase; letter-spacing: .18em; font-size: .72rem; color: var(--red); margin-bottom: 22px; display: inline-flex; align-items: center; gap: 9px; }
.mono-label .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 12px var(--red); animation: pulse 2s infinite; }
.mono-label.small { font-size: .68rem; color: var(--text-dim); letter-spacing: .2em; margin-bottom: 14px; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.35} }

:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 4px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; font-family: var(--font-head); font-weight: 700; font-size: 1rem; padding: 15px 30px; border-radius: 999px; cursor: pointer; border: 2px solid transparent; transition: transform .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; white-space: nowrap; }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 0 0 0 rgba(244,59,71,.5); }
.btn-primary:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(244,59,71,.9); }
.btn-ghost { color: #fff; border-color: var(--line-2); }
.btn-ghost:hover { background: rgba(255,255,255,.06); border-color: #fff; transform: translateY(-2px); }
.btn-sm { padding: 11px 22px; font-size: .92rem; }
.btn-lg { padding: 17px 36px; font-size: 1.08rem; }

.link-arrow { font-family: var(--font-head); font-weight: 700; color: var(--red); display: inline-block; margin-top: 6px; transition: transform .2s var(--ease); }
.link-arrow:hover { transform: translateX(5px); }

/* grid texture for hero/cta */
.hero-grid { position: absolute; inset: 0; z-index: 0; pointer-events: none;
  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: 64px 64px; mask-image: radial-gradient(ellipse 80% 70% at 50% 35%, #000 30%, transparent 75%); }

/* =========================================================
   PRELOADER
   ========================================================= */
.preloader { position: fixed; inset: 0; z-index: 999; background: var(--bg); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px; transition: opacity .6s var(--ease), visibility .6s; }
.preloader.done { opacity: 0; visibility: hidden; }
.pre-symbol { width: 64px; animation: floaty 1.6s ease-in-out infinite; }
.pre-count { font-family: var(--font-mono); font-weight: 700; font-size: 1.4rem; color: #fff; }
.pre-count .pre-pct { color: var(--red); }
@keyframes floaty { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }

/* =========================================================
   HEADER
   ========================================================= */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 100; padding: 20px 0; transition: background .3s var(--ease), padding .3s var(--ease), border-color .3s; border-bottom: 1px solid transparent; }
.site-header.scrolled { background: rgba(10,15,18,.82); backdrop-filter: blur(14px); padding: 13px 0; border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand-logo { height: 32px; width: auto; }
.nav { display: flex; align-items: center; gap: 32px; }
.nav > a { font-family: var(--font-head); font-weight: 600; color: rgba(255,255,255,.82); font-size: .96rem; position: relative; transition: color .2s; }
.nav > a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: var(--red); transition: width .25s var(--ease); }
.nav > a:not(.nav-cta):hover { color: #fff; }
.nav > a:not(.nav-cta):hover::after { width: 100%; }

.nav-toggle { display: none; background: none; border: 0; width: 42px; height: 42px; cursor: pointer; flex-direction: column; gap: 5px; justify-content: center; align-items: center; z-index: 110; }
.nav-toggle span { width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s var(--ease), opacity .3s; }
.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; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(circle at 78% 22%, rgba(244,59,71,.42), transparent 46%),
    radial-gradient(circle at 12% 88%, rgba(96,72,216,.28), transparent 46%),
    linear-gradient(180deg, rgba(10,15,18,.65), rgba(10,15,18,.92)),
    url("../img/hero-studio-bw.png") center/cover no-repeat;
  background-color: var(--bg); }
.hero-inner { position: relative; z-index: 2; max-width: 940px; }
.hero-title { font-size: clamp(2.6rem, 7vw, 5.6rem); font-weight: 900; color: #fff; text-transform: uppercase; letter-spacing: -0.02em; line-height: .98; margin-bottom: 30px; overflow-wrap: break-word; }
.hero-sub { font-family: var(--font-body); font-size: clamp(1.05rem, 1.8vw, 1.3rem); color: rgba(255,255,255,.82); max-width: 640px; margin-bottom: 40px; }
.hero-sub strong { color: #fff; font-weight: 700; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-scroll { position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid var(--line-2); border-radius: 14px; z-index: 2; }
.hero-scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; background: var(--red); border-radius: 2px; transform: translateX(-50%); animation: scrolly 1.8s infinite; }
@keyframes scrolly { 0%{opacity:0; transform:translate(-50%,0)} 30%{opacity:1} 100%{opacity:0; transform:translate(-50%,14px)} }

/* =========================================================
   STATS STRIP
   ========================================================= */
.stats-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.stats-inner { display: grid; grid-template-columns: repeat(4,1fr); }
.stat { padding: 38px 28px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat-num { display: block; font-family: var(--font-head); font-weight: 900; font-size: clamp(1.8rem,3vw,2.6rem); color: #fff; line-height: 1; margin-bottom: 8px; }
.stat:first-child .stat-num { color: var(--red); }
.stat-label { font-size: .9rem; color: var(--text-dim); }

/* =========================================================
   SECTIONS
   ========================================================= */
.section { padding: 110px 0; position: relative; }
.section-alt { background: var(--bg-2); }
.section-head { max-width: 820px; margin: 0 auto 60px; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 4.2vw, 3.1rem); }
.section-lead { margin-top: 20px; font-size: 1.08rem; color: var(--text-dim); }

/* ---------- Produtos ---------- */
.cards-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 26px; }
.product-card { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 42px 38px 38px; overflow: hidden; transition: transform .35s var(--ease), border-color .35s, background .35s; }
.product-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; transform: scaleY(0); transform-origin: top; transition: transform .4s var(--ease); }
.product-card[data-accent="red"]::before { background: var(--red); }
.product-card[data-accent="indigo"]::before { background: var(--indigo); }
.product-card:hover { transform: translateY(-6px); background: var(--panel-2); border-color: var(--line-2); }
.product-card:hover::before { transform: scaleY(1); }
.product-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.product-icon { width: 46px; height: 46px; }
.product-num { font-family: var(--font-mono); font-weight: 700; font-size: 1.1rem; color: var(--text-dim); }
.product-card h3 { font-size: 1.55rem; margin-bottom: 10px; }
.product-tag { display: inline-block; font-family: var(--font-mono); font-weight: 700; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--red); background: rgba(244,59,71,.12); padding: 6px 13px; border-radius: 999px; margin-bottom: 20px; }
.product-tag.tag-indigo { color: #a99bf0; background: rgba(96,72,216,.18); }
.product-card > p { color: var(--text); margin-bottom: 22px; }
.ticks { margin-bottom: 24px; }
.ticks li { position: relative; padding-left: 28px; margin-bottom: 12px; color: rgba(255,255,255,.78); font-size: .97rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 5px; width: 16px; height: 16px; background: var(--red); border-radius: 50%;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") center/12px no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") center/12px no-repeat; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; }
.steps li { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 26px; transition: transform .3s var(--ease), border-color .3s; }
.steps li:hover { transform: translateY(-5px); border-color: var(--line-2); }
.step-n { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,.08); color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; margin-bottom: 18px; }
.steps li:nth-child(2) .step-n, .steps li:nth-child(3) .step-n { background: rgba(96,72,216,.9); }
.steps li:nth-child(4) .step-n { background: var(--red); }
.steps h4 { font-size: 1.18rem; margin-bottom: 8px; }
.steps p { color: var(--text-dim); font-size: .95rem; }

/* ---------- Diferenciais ---------- */
.diff-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.diff-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 30px; transition: transform .3s var(--ease), border-color .3s, background .3s; }
.diff-card:hover { transform: translateY(-5px); border-color: rgba(244,59,71,.45); background: var(--panel-2); }
.diff-mark { display: inline-flex; align-items: center; justify-content: center; width: 50px; height: 50px; border-radius: 12px; background: rgba(244,59,71,.13); color: var(--red); font-size: 1.5rem; margin-bottom: 18px; }
.diff-card h4 { font-size: 1.22rem; margin-bottom: 10px; }
.diff-card p { color: var(--text-dim); font-size: .96rem; }

/* ---------- Cases ---------- */
.cases-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.case-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 26px; transition: transform .3s var(--ease), border-color .3s, background .3s; }
.case-card:hover { transform: translateY(-5px); border-color: rgba(244,59,71,.5); background: var(--panel-2); }
.case-mark { color: var(--red); font-size: 1.2rem; display: block; margin-bottom: 14px; }
.case-card h3 { font-size: 1.3rem; margin-bottom: 6px; }
.case-card p { color: var(--text-dim); font-size: .93rem; }
.case-more { background: var(--red); border-color: var(--red); display: flex; flex-direction: column; justify-content: center; }
.case-more-num { font-family: var(--font-head); font-weight: 900; font-size: 2.4rem; color: #fff; line-height: 1; margin-bottom: 6px; }
.case-more p { color: rgba(255,255,255,.92); }
.cases-note { text-align: center; margin-top: 30px; font-size: .82rem; color: var(--text-dim); }

/* ---------- eMotion ---------- */
.emotion { background: linear-gradient(180deg, var(--bg) 0%, #0c1217 100%); }
.emotion-stats { display: grid; grid-template-columns: repeat(5,1fr); gap: 18px; margin-bottom: 56px; }
.estat { text-align: center; padding: 30px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.estat strong { display: block; font-family: var(--font-head); font-weight: 900; font-size: clamp(1.5rem,2.4vw,2.1rem); color: #fff; line-height: 1; margin-bottom: 8px; }
.estat:nth-child(odd) strong { color: var(--red); }
.estat span { font-size: .82rem; color: var(--text-dim); }
.emotion-portfolio { text-align: center; }
.portfolio-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 30px; }
.portfolio-chips li { font-family: var(--font-head); font-weight: 700; font-size: .95rem; color: #fff; border: 1px solid var(--line-2); border-radius: 999px; padding: 9px 20px; }
.portfolio-chips.muted li { font-weight: 600; font-size: .85rem; color: var(--text-dim); border-color: var(--line); }

/* ---------- Liderança ---------- */
.leaders { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; max-width: 940px; margin: 0 auto; }
.leader-card { display: flex; align-items: center; gap: 26px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; }
.leader-photo { flex: 0 0 104px; width: 104px; height: 104px; border-radius: 50%; background: linear-gradient(135deg, var(--panel-2), var(--red)); display: flex; align-items: center; justify-content: center; }
.leader-photo span { font-family: var(--font-head); font-weight: 800; font-size: 2rem; color: #fff; }
.leader-photo.emotion-logo-wrap { background: var(--bg); border: 1px solid var(--line-2); padding: 20px; }
.leader-photo.emotion-logo-wrap img { width: 100%; height: auto; }
.leader-info h3 { font-size: 1.5rem; }
.leader-role { font-family: var(--font-mono); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--red); margin: 6px 0 12px; }
.leader-bio { color: var(--text-dim); font-size: .95rem; }
.leader-bio em { opacity: .75; }

/* ---------- CTA ---------- */
.cta { position: relative; padding: 130px 0; text-align: center; overflow: hidden; background: var(--bg); isolation: isolate; }
.cta::before { content: ""; position: absolute; inset: 0; z-index: 0; background: radial-gradient(circle at 30% 120%, rgba(96,72,216,.4), transparent 52%), radial-gradient(circle at 70% 120%, rgba(244,59,71,.5), transparent 52%); }
.cta-inner { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; }
.cta h2 { font-size: clamp(2.4rem, 7vw, 5rem); text-transform: uppercase; letter-spacing: -0.02em; line-height: .98; margin-bottom: 18px; }
.cta p { color: rgba(255,255,255,.78); font-size: 1.15rem; margin-bottom: 34px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--line); padding: 64px 0 30px; }
.footer-inner { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; padding-bottom: 40px; }
.footer-logo { height: 30px; margin-bottom: 16px; }
.footer-brand p { font-size: .95rem; max-width: 240px; color: var(--text-dim); }
.footer-nav { display: flex; flex-direction: column; gap: 11px; }
.footer-nav a { font-family: var(--font-head); font-weight: 600; color: rgba(255,255,255,.8); transition: color .2s; }
.footer-nav a:hover { color: var(--red); }
.footer-powered { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.footer-emotion { height: 26px; opacity: .9; }
.footer-mail { font-family: var(--font-head); font-weight: 700; color: #fff; }
.footer-mail:hover { color: var(--red); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 26px; font-size: .85rem; color: var(--text-dim); }
.footer-bottom .mono-label { margin: 0; }

/* =========================================================
   REVEAL
   ========================================================= */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  html { scroll-behavior: auto; }
  .pre-symbol, .mono-label .dot, .hero-scroll span { animation: none; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 980px) {
  .cards-2 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2,1fr); }
  .diff-grid { grid-template-columns: repeat(2,1fr); }
  .cases-grid { grid-template-columns: repeat(2,1fr); }
  .stats-inner { grid-template-columns: repeat(2,1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
  .emotion-stats { grid-template-columns: repeat(2,1fr); }
  .leaders { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav { position: fixed; inset: 0 0 auto 0; flex-direction: column; align-items: flex-start; background: rgba(10,15,18,.98); backdrop-filter: blur(14px); padding: 104px 32px 42px; gap: 22px; transform: translateY(-100%); transition: transform .4s var(--ease); border-bottom: 1px solid var(--line); }
  .nav.open { transform: translateY(0); }
  .nav > a { font-size: 1.25rem; }
  .nav-cta { margin-top: 6px; }
  .nav-toggle { display: flex; }
  .section { padding: 76px 0; }
  .footer-inner { flex-direction: column; gap: 30px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .hero-title { font-size: clamp(2rem, 9vw, 3rem); }
  .hero-title .brk { display: none; }
  .steps, .diff-grid, .cases-grid, .emotion-stats { grid-template-columns: 1fr; }
  .leader-card { flex-direction: column; text-align: center; }
  .footer-powered { align-items: center; }
}
