:root {
  --red: #D50037;
  --red-dark: #8A0E2D;
  --dark: #101820;
  --dark-2: #161f29;
  --dark-3: #1c2732;
  --yellow: #FFC524;
  --green: #1EA273;
  --turquoise: #49E2A8;
  --blue: #04ADBF;
  --text: #F4F5F7;
  --text-muted: #9BA6B0;
  --border: rgba(255,255,255,0.08);
  --radius: 16px;
  --maxw: 1180px;
}

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

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--red), var(--blue));
  z-index: 100;
  transition: width 0.1s linear;
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

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

body {
  margin: 0;
  background: var(--dark);
  color: var(--text);
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  line-height: 1.5;
}

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

a { color: inherit; }

img { max-width: 100%; display: block; }

/* ---------- Header ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(16, 24, 32, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.nav img.logo { height: 28px; width: auto; }

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14px;
  font-weight: 600;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

.nav-cta {
  background: var(--red);
  color: #fff;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s, transform 0.2s;
}
.nav-cta:hover { background: var(--red-dark); transform: translateY(-1px); }

.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  padding: 28px 0;
  min-height: calc(100vh - 73px);
  display: flex;
  align-items: center;
  text-align: left;
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse 70% 60% at 15% 20%, rgba(213,0,55,0.12), transparent 70%), var(--dark);
}

.hero .wrap { width: 100%; }

.hero-inner {
  display: grid;
  grid-template-columns: minmax(300px, 440px) 1fr;
  gap: 40px;
  align-items: center;
}

.hero-copy { text-align: left; }

.hero .tag {
  display: inline-block;
  background: rgba(213,0,55,0.15);
  border: 1px solid rgba(213,0,55,0.4);
  color: #ff5c85;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 24px;
  position: relative;
}

.hero .tag .pulse {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #ff5c85;
  margin-right: 6px;
  box-shadow: 0 0 0 0 rgba(255,92,133,0.6);
  animation: pulse 1.8s ease-out infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255,92,133,0.6); }
  70% { box-shadow: 0 0 0 8px rgba(255,92,133,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,92,133,0); }
}

.hero h1 {
  font-size: clamp(1.9rem, 2.9vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  position: relative;
}

.hero h1 .line {
  display: block;
  overflow: hidden;
}

.hero h1 .line span {
  display: inline-block;
  animation: riseIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero h1 .line:nth-child(2) span { animation-delay: 0.12s; }

.hero h1 em { color: var(--red); font-style: normal; }

@keyframes riseIn {
  from { transform: translateY(110%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.hero p.lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 460px;
  margin: 0 0 30px;
  position: relative;
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: flex-start;
  flex-wrap: wrap;
  position: relative;
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.42s both;
}

@keyframes fadeUp {
  from { transform: translateY(16px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform 0.2s, background 0.2s, border-color 0.2s;
}

.btn-primary {
  background: var(--red);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.btn-primary:hover { background: var(--red-dark); transform: translateY(-2px); }
.btn-primary::before {
  content: "";
  position: absolute;
  top: 0; left: -60%;
  width: 40%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}
.btn-primary:hover::before { left: 130%; }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.3); transform: translateY(-2px); }

/* ---------- Section shell ---------- */
section { padding: 100px 0; }
section.alt { background: var(--dark-2); }

.section-head {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}

.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
}

.section-head p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin: 0;
}

.section-cta {
  text-align: center;
  margin-top: 56px;
}

.section-cta p {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 8px;
}

.section-cta p.sub {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 24px;
}

/* ---------- Processo (client -> code -> app) ---------- */
.process-flow {
  display: flex;
  align-items: center;
  gap: 8px;
}

.process-stage {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* Compact horizontal flow used in the hero (client -> code -> app, side by side) */
.flow-compact {
  gap: 6px;
  animation: fadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
}

.flow-compact .stage-label {
  font-size: 11.5px;
  margin-bottom: 10px;
}

.flow-compact .process-connector {
  flex: 0 0 28px;
  margin-top: 0;
}

.stage-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.stage-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--dc, var(--red));
  box-shadow: 0 0 10px 1px var(--dc, var(--red));
  flex-shrink: 0;
}

/* connector */
.process-connector {
  position: relative;
  flex: 0 0 56px;
  align-self: center;
  height: 2px;
  margin-top: 34px;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,0.18) 0 6px, transparent 6px 13px);
  overflow: visible;
}

.flow-dot {
  position: absolute;
  top: 50%;
  left: -6px;
  transform: translateY(-50%);
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--turquoise);
  box-shadow: 0 0 10px 2px rgba(73, 226, 168, 0.8);
  opacity: 0;
  animation: flowDot 2.2s linear infinite;
}

@keyframes flowDot {
  0% { left: -4px; opacity: 0; }
  8% { opacity: 1; }
  92% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

@keyframes flowDotV {
  0% { top: -4px; opacity: 0; }
  8% { opacity: 1; }
  92% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* stage 1: chat */
.chat-mock {
  background: var(--dark-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--turquoise), var(--blue));
  flex-shrink: 0;
}

.chat-who { font-size: 13px; line-height: 1.3; }
.chat-who small { color: var(--text-muted); display: flex; align-items: center; gap: 5px; }

.live-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--turquoise);
  display: inline-block;
  animation: pulse 1.8s ease-out infinite;
}

.chat-bubble {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 14px 14px 14px 4px;
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.5;
  min-height: 76px;
}

.caret {
  display: inline-block;
  width: 2px;
  height: 14px;
  background: var(--turquoise);
  vertical-align: middle;
  margin-left: 2px;
  animation: caretBlink 0.9s step-end infinite;
}

@keyframes caretBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* stage 2: code */
.code-mock {
  background: var(--dark-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.code-mock .browser-bar { background: #0a0e13; }

.code-body {
  flex: 1;
  padding: 16px 18px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 12.5px;
  line-height: 1.9;
  color: #c7d0d9;
  white-space: pre;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.code-line {
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.code-line.is-in {
  opacity: 1;
  transform: translateX(0);
}

.tok-kw { color: #ff5c85; }
.tok-fn { color: var(--turquoise); }
.tok-tag { color: var(--blue); }
.tok-attr { color: var(--yellow); }

.code-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 11.5px;
}

/* the coding screen and the solution screen share one target height */
.flow-compact .chat-mock { padding: 14px; gap: 12px; }
.flow-compact .chat-avatar { width: 28px; height: 28px; }
.flow-compact .chat-bubble { padding: 11px 13px; font-size: 12.5px; line-height: 1.45; min-height: 54px; }

.flow-compact .code-mock { height: 322px; }
.flow-compact .code-body { padding: 14px 16px; font-size: 11px; line-height: 1.7; }
.flow-compact .code-status { margin-top: 10px; font-size: 10.5px; }

/* app "screen" matches the coding screen's box exactly, width and height */
.flow-compact .device-phone { width: 100%; }
.flow-compact .device-phone-frame {
  height: 322px;
  display: flex;
  flex-direction: column;
  border-radius: 20px;
}
.flow-compact .device-phone-screen {
  aspect-ratio: auto;
  flex: 1;
  border-radius: 15px;
}
.flow-compact .device-phone-island { top: 10px; }
.flow-compact .device-phone-home { bottom: 8px; }
.flow-compact .build-screen { padding: 24px 16px 12px; gap: 7px; }
.flow-compact .app-title { font-size: 13px; }
.flow-compact .app-bell { font-size: 13px; }
.flow-compact .date-pill { font-size: 9px; padding: 5px 0 6px; }
.flow-compact .appt-row { padding: 7px 10px; gap: 8px; border-radius: 12px; }
.flow-compact .appt-avatar { width: 21px; height: 21px; }
.flow-compact .appt-info strong { font-size: 10.5px; }
.flow-compact .appt-info small { font-size: 9px; }
.flow-compact .appt-status { font-size: 11px; }
.flow-compact .build-button { height: 30px; font-size: 11px; border-radius: 9px; }

.dot-flash {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 8px 1px var(--blue);
  animation: pulse 1.4s ease-out infinite;
}

/* stage 3: app assembling */
.build-phone { margin: 0 auto; }

.build-screen {
  background: #F9F7F3;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 40px 12px 16px;
  justify-content: flex-start;
}

.build-block {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  border-radius: 8px;
}

.build-block.is-in {
  opacity: 1;
  transform: translateY(0);
}

.app-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(16,24,32,0.08);
}

.app-logo {
  width: 16px;
  height: 16px;
  border-radius: 5px;
  background: var(--red);
  flex-shrink: 0;
}

.app-title {
  font-size: 11.5px;
  font-weight: 800;
  color: #1c2732;
}

.app-bell {
  margin-left: auto;
  font-size: 11px;
  opacity: 0.55;
}

.app-dates {
  display: flex;
  gap: 5px;
}

.date-pill {
  flex: 1;
  text-align: center;
  font-size: 7.5px;
  font-weight: 700;
  line-height: 1.5;
  color: #7a8087;
  background: rgba(16,24,32,0.06);
  padding: 4px 0 5px;
  border-radius: 7px;
}

.date-pill.active {
  background: var(--red);
  color: #fff;
}

.appt-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid rgba(16,24,32,0.06);
  border-radius: 10px;
  padding: 7px 9px;
  box-shadow: 0 3px 10px rgba(16,24,32,0.05);
}

.appt-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  flex-shrink: 0;
}

.appt-info { line-height: 1.35; min-width: 0; overflow: hidden; }
.appt-info strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 9.5px;
  color: #1c2732;
}
.appt-info small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 8px;
  color: #8a8f95;
}

.appt-status {
  margin-left: auto;
  font-size: 10px;
  font-weight: 800;
  color: var(--green);
  flex-shrink: 0;
}

.build-button {
  margin-top: 4px;
  height: 32px;
  background: var(--red);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px rgba(213,0,55,0.35);
}

@media (prefers-reduced-motion: reduce) {
  .code-line, .build-block { opacity: 1; transform: none; }
  .flow-dot, .caret, .live-dot, .dot-flash { animation: none; opacity: 0.6; }
}

/* ---------- Sites (browser mockups) ---------- */
.site-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.site-grid,
.app-grid,
.dept-grid { perspective: 1200px; }

.browser-card {
  background: var(--dark-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s ease-out, border-color 0.25s;
  will-change: transform;
}
.browser-card:hover { border-color: rgba(255,255,255,0.18); }

.browser-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #0c1116;
  border-bottom: 1px solid var(--border);
}

.browser-dots { display: flex; gap: 6px; }
.browser-dots span {
  width: 9px; height: 9px; border-radius: 50%;
  background: rgba(255,255,255,0.15);
}

.browser-url {
  flex: 1;
  background: rgba(255,255,255,0.05);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.browser-frame-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #05080b;
  overflow: hidden;
}

.browser-frame-wrap iframe {
  width: 250%;
  height: 250%;
  transform: scale(0.4);
  transform-origin: top left;
  border: none;
  pointer-events: none;
}

.browser-frame-wrap .frame-link {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 12px;
  text-decoration: none;
  opacity: 0;
  transition: opacity 0.2s;
  background: linear-gradient(to top, rgba(0,0,0,0.55), transparent 40%);
}
.browser-frame-wrap:hover .frame-link { opacity: 1; }

.frame-link .visit-btn {
  background: var(--red);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 999px;
}

.site-info { padding: 18px 20px 22px; }
.site-info h3 { margin: 0 0 4px; font-size: 1.05rem; }
.site-info p { margin: 0; color: var(--text-muted); font-size: 13px; }

/* ---------- Apps (phone mockups) ---------- */
.app-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 22px;
}

.phone-card {
  text-align: center;
}

.phone-shell {
  background: #0c1116;
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: 10px;
  aspect-ratio: 9 / 18;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease-out, border-color 0.25s;
  will-change: transform;
}
.phone-card:hover .phone-shell { border-color: rgba(255,255,255,0.18); }

.phone-screen {
  flex: 1;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
}

.phone-screen .app-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,0.35);
}

.phone-screen .app-name {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.92);
  letter-spacing: 0.01em;
}

.phone-card .caption {
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
}

/* app brand backgrounds */
.bg-ifood { background: linear-gradient(160deg, #EA1D2C, #8a0e17); }
.bg-globoplay { background: linear-gradient(160deg, #ffffff, #cfd3d8); }
.bg-globoplay .app-name { color: #16181c; }
.bg-itau { background: linear-gradient(160deg, #EC7000, #7a3800); }
.bg-next { background: linear-gradient(160deg, #00FF6A, #00301a); }
.bg-next .app-name { color: #06210f; }
.bg-disney { background: linear-gradient(160deg, #0d1a4b, #041030); }

/* ---------- AI Agents ---------- */
.dept-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.dept-card {
  background: var(--dark-3);
  border: 1px solid var(--border);
  border-top: 3px solid var(--dept-color, var(--red));
  border-radius: var(--radius);
  padding: 24px 24px 20px;
  transition: transform 0.2s ease-out, border-color 0.25s;
  will-change: transform;
}

.dept-card h3 {
  margin: 0 0 14px;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.dept-card h3 .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--dept-color, var(--red));
  flex-shrink: 0;
}

.dept-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.dept-card li {
  font-size: 13.5px;
  color: var(--text-muted);
  padding-left: 16px;
  position: relative;
}
.dept-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--dept-color, var(--red));
  opacity: 0.7;
}

/* Merkos AI spotlight */
.spotlight {
  margin-top: 64px;
  background: linear-gradient(135deg, rgba(213,0,55,0.12), rgba(4,173,191,0.08));
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 48px;
}

.spotlight-text {
  max-width: 560px;
  margin: 0 auto 40px;
  text-align: center;
}
.spotlight-text .eyebrow { margin-bottom: 10px; }
.spotlight-text h3 {
  font-size: 1.7rem;
  font-weight: 800;
  margin: 0 0 14px;
}
.spotlight-text p {
  color: var(--text-muted);
  margin: 0 0 24px;
  font-size: 1rem;
}

.device-stage {
  background: linear-gradient(180deg, #EFEAE1 0%, #E2DACB 100%);
  border-radius: 24px;
  padding: 48px 32px 34px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}

.device { text-align: center; position: relative; }

.device-shadow {
  margin: 10px auto 0;
  width: 70%;
  height: 14px;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.28), transparent 75%);
}

.device-caption {
  margin-top: 12px;
  font-size: 12.5px;
  font-weight: 700;
  color: #6b6255;
}

/* iPhone device mockup */
.device-phone { width: 168px; }

.device-phone-frame {
  background: linear-gradient(155deg, #3d3d40, #111113);
  border-radius: 40px;
  padding: 7px;
  position: relative;
  box-shadow:
    0 30px 50px -18px rgba(0,0,0,0.45),
    inset 0 0 0 1.5px rgba(255,255,255,0.08);
}

.device-phone-island {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 62px;
  height: 18px;
  background: #000;
  border-radius: 12px;
  z-index: 3;
}

.device-phone-screen {
  border-radius: 33px;
  overflow: hidden;
  aspect-ratio: 9 / 19.3;
  background: #050708;
  position: relative;
}

.device-phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.device-phone-home {
  position: absolute;
  bottom: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 84px;
  height: 4px;
  background: rgba(255,255,255,0.65);
  border-radius: 3px;
  z-index: 3;
}

/* Laptop / notebook device mockup */
.device-laptop { width: 400px; }

.device-laptop-body {
  background: linear-gradient(180deg, #e6e6e8, #c7c7ca);
  border-radius: 14px 14px 4px 4px;
  padding: 11px 11px 0;
  box-shadow: 0 30px 55px -20px rgba(0,0,0,0.4);
}

.device-laptop-screen-inner {
  background: #000;
  border-radius: 5px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  position: relative;
}

.device-laptop-camera {
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #2a2a2a;
  z-index: 3;
}

.device-laptop-screen-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.device-laptop-hinge {
  height: 12px;
  background: linear-gradient(180deg, #d7d7da, #aeaeb1);
}

.device-laptop-base {
  height: 9px;
  background: linear-gradient(180deg, #cacacd, #9c9c9f);
  border-radius: 0 0 10px 10px;
  position: relative;
}

.device-laptop-base::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: #8c8c8f;
  border-radius: 0 0 6px 6px;
}

/* ---------- Diferenciais ---------- */
.diff-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.diff-card {
  background: var(--dark-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}

.diff-card .num {
  font-size: 13px;
  font-weight: 800;
  color: var(--red);
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}

.diff-card h3 {
  font-size: 1.25rem;
  margin: 0 0 12px;
}

.diff-card p {
  color: var(--text-muted);
  margin: 0;
}

/* ---------- Final CTA ---------- */
.final-cta {
  text-align: center;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  border-radius: 28px;
  padding: 64px 40px;
  margin: 0 auto;
}

.final-cta h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  margin: 0 0 12px;
  font-weight: 800;
}

.final-cta p {
  color: rgba(255,255,255,0.85);
  margin: 0 0 32px;
  font-size: 1.05rem;
}

.final-cta .btn-primary {
  background: #fff;
  color: var(--red-dark);
}
.final-cta .btn-primary:hover { background: #f0f0f0; }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-inner img { height: 22px; }

.footer-inner .copy {
  font-size: 13px;
  color: var(--text-muted);
}

/* ---------- WhatsApp floating button ---------- */
.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 26px rgba(0,0,0,0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float svg { width: 30px; height: 30px; }

.whatsapp-float::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55);
  animation: whatsappPulse 2.4s ease-out infinite;
}

@keyframes whatsappPulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55); }
  70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 14px 32px rgba(0,0,0,0.4);
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-float::before { animation: none; }
}

@media (max-width: 640px) {
  .whatsapp-float { right: 16px; bottom: 16px; width: 52px; height: 52px; }
  .whatsapp-float svg { width: 26px; height: 26px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .site-grid { grid-template-columns: 1fr; }
  .app-grid { grid-template-columns: repeat(3, 1fr); }
  .spotlight { padding: 32px; }
  .device-stage { gap: 28px; padding: 36px 20px 26px; }
  .device-laptop { width: 300px; }
  .device-phone { width: 130px; }
  .diff-grid { grid-template-columns: 1fr; }

  .hero { min-height: auto; padding: 56px 0 44px; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-copy { text-align: center; }
  .hero p.lead { margin: 0 auto 30px; }
  .hero-actions { justify-content: center; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .app-grid { grid-template-columns: repeat(2, 1fr); }
  section { padding: 64px 0; }
  .device-stage { flex-direction: column; align-items: center; }
  .device-laptop { width: 260px; }
  .device-phone { width: 120px; }

  .flow-compact {
    flex-direction: column;
    align-items: stretch;
    max-width: 280px;
    margin: 0 auto;
  }
  .flow-compact .process-stage { max-width: 100%; }
  .flow-compact .process-connector {
    flex: 0 0 30px;
    width: 2px;
    align-self: center;
    background: repeating-linear-gradient(180deg, rgba(255,255,255,0.18) 0 5px, transparent 5px 11px);
  }
  .flow-compact .flow-dot {
    left: 50%;
    top: -4px;
    transform: translateX(-50%);
    animation-name: flowDotV;
  }
}
