/* ---------- Munick Portfolio — V2 (elegant + innovative) with Light Mode ---------- */
:root {
  /* === Base === */
  --bg: #0b0e13;           /* fundo profundo — deep space navy */
  --bg-2: #10141f;         /* variação mais suave */
  --surface: rgba(255,255,255,.06);
  /* === Texto === */
  --text: #f2f5f9;         /* branco suave */
  --muted: #9aa4b6;        /* cinza azulado leve */
  /* === Cores principais (extraídas das imagens do portfólio) === */
  --brand: #fa5a64;         /* coral vibrante (logo mark) */
  --brand-2: #14dcdc;       /* cyan vibrante (logo mark) */
  --accent: #f08246;        /* laranja quente (GetFood4Less) */
  --teal: #328c8c;          /* teal suave (Business Admin) */
  /* === Destaques e bordas === */
  --ring: rgba(250,90,100,.35);
  --radius: 18px;
}

/* === Tema claro correspondente === */
:root.light {
  --bg: #f7f8fb;           /* branco suave */
  --bg-2: #eef1f7;
  --surface: rgba(0,0,0,.04);
  --text: #0c1220;          /* preto azulado */
  --muted: #49546b;
  --brand: #e23a57;         /* coral adaptado ao claro */
  --brand-2: #0fa8a8;       /* cyan claro (baseado em #14dcdc) */
  --accent: #d46b2a;        /* laranja adaptado ao claro */
  --teal: #2a7a7a;          /* teal adaptado ao claro */
  --ring: rgba(250,90,100,.22);
}

* { box-sizing: border-box; }

html, body { height: 100%; }

/* === Fundo Gradiente (Hero / Body) === */
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 800px at 80% -10%, rgba(250,90,100,.08), transparent 60%),
    radial-gradient(800px 500px at 0% 110%, rgba(20,220,220,.08), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
}

/* Tipografia moderna para títulos */
h1, h2, h3, h4, h5, h6 {
  font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
  letter-spacing: -0.02em;
}

/* === Alternativa para seções hero ou destaque === */
.hero-section {
  background: linear-gradient(135deg, rgba(250,90,100,.18), rgba(20,220,220,.12), rgba(11,14,19,1));
  backdrop-filter: blur(12px);
  border-radius: var(--radius);
  box-shadow: 0 0 40px rgba(0,0,0,.35);
  padding: 3rem 2rem;
}

/* subtle noise for luxury finish */
body::before {
  content: "";
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.7" numOctaves="2" stitchTiles="stitch"/></filter><rect width="100" height="100" filter="url(%23n)" opacity="0.035"/></svg>');
  background-size: 200px 200px; mix-blend-mode: overlay;
}

.container { width: min(1180px, 92%); margin: 0 auto; position: relative; z-index: 1; }
.small { font-size: .9rem; color: var(--muted); }
.subtle { color: var(--muted); }
.badge { 
  font-size: .85rem; 
  padding: .2rem .5rem; 
  background: color-mix(in oklab, var(--brand-2) 12%, transparent); 
  border: 1px solid color-mix(in oklab, var(--brand-2) 30%, transparent); 
  border-radius: .5rem; 
  color: var(--brand-2); 
}

/* nav */
.site-header { position: sticky; top: 0; backdrop-filter: blur(16px); background: color-mix(in oklab, var(--bg), transparent 40%); border-bottom: 1px solid rgba(0,0,0,.08); z-index: 5; }
.nav { display: flex; align-items: center; justify-content: space-between; padding: .9rem 0; }
.brand { color: var(--text); text-decoration: none; font-weight: 800; font-size: 1.1rem; letter-spacing: .3px; display: inline-flex; align-items: center; gap: .6rem; }
.brand-img{ display:inline-block; height:42px; width:auto; vertical-align:middle; }
.logo-light{ display:none; }
:root.light .logo-dark{ display:none; }
:root.light .logo-light{ display:inline-block; }
nav a { color: var(--muted); text-decoration: none; margin-left: .6rem; padding: .5rem .7rem; border-radius: .7rem; transition: .2s ease; }
nav a:hover, nav a.active { color: var(--text); background: rgba(0,0,0,.06); }
.lang { position: relative; display: inline-block; margin-left: .6rem; }
#lang-toggle { border:1px solid rgba(0,0,0,.12); background:rgba(255,255,255,.04); border-radius:.7rem; padding:.45rem .6rem; cursor:pointer; color:var(--text); font-size: .9rem; }
:root.light #lang-toggle { background: rgba(0,0,0,.04); }
.lang-menu { position:absolute; right:0; top:115%; background:var(--bg-2); border:1px solid rgba(0,0,0,.15); border-radius:.7rem; padding:.4rem; min-width: 140px; box-shadow: 0 18px 40px rgba(0,0,0,.25); z-index: 10; }
.lang-menu a { display:block; padding:.45rem .6rem; color:var(--text); text-decoration:none; border-radius:.5rem; margin: 0; }
.lang-menu a:hover { background: rgba(0,0,0,.08); }
.theme-toggle{ border:1px solid rgba(0,0,0,.12); background:rgba(255,255,255,.04); border-radius:.7rem; padding:.45rem .6rem; cursor:pointer; color:var(--text); }
:root.light .theme-toggle{ background: rgba(0,0,0,.04); }

/* hero */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.2rem; align-items: center; padding: 3.5rem 0 2.2rem; }
.hero h1 { font-size: clamp(2rem, 1.3rem + 2.5vw, 3.2rem); line-height: 1.05; letter-spacing: .2px; }
.hero h1 span { 
  background: linear-gradient(135deg, var(--brand), var(--accent), var(--brand-2)); 
  -webkit-background-clip: text; 
  background-clip: text; 
  color: transparent; 
  filter: drop-shadow(0 0 8px color-mix(in oklab, var(--brand) 30%, transparent));
}
.hero p { color: var(--muted); font-size: 1.07rem; line-height: 1.75; }
.hero-media { display: flex; justify-content: center; align-items: center; }
.hero-media img { width: 100%; max-width: 400px; border-radius: var(--radius); box-shadow: 0 14px 50px rgba(0,0,0,.55); transform: translateZ(0); will-change: transform; }
:root.light .hero-media img{ box-shadow: 0 10px 26px rgba(0,0,0,.18); }

/* floating blob */
.blob { position:absolute; inset:auto auto -120px -120px; width:360px; height:360px; background: radial-gradient(circle at 30% 30%, color-mix(in oklab, var(--brand) 35%, transparent), color-mix(in oklab, var(--brand-2) 22%, transparent)); filter: blur(40px); border-radius: 50%; opacity:.7; z-index:0; animation: float 14s ease-in-out infinite; }
@keyframes float { 0%,100%{ transform:translate(0,0) scale(1);} 50%{ transform:translate(30px,-20px) scale(1.05);} }

/* sections */
h2 { font-size: 1.7rem; margin: 2rem 0 1rem; }

/* ===== Grids utilitárias ===== */
.grid-2 { display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap:2.8rem; align-items: start; }
.grid-3 { display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap:2.4rem; align-items: stretch; }
@media (max-width: 980px){ .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* ===== Cards base ===== */
.card {
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 1rem;
  overflow: hidden;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color .25s ease;
  box-shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 6px 24px rgba(0,0,0,.25);
  transform-style: preserve-3d;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 230px;               /* mais compacto e moderno */
}
:root.light .card{
  background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,.7));
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
}
.card::after{
  content:"";
  position:absolute; inset:0;
  background: radial-gradient(600px 200px at var(--mx,50%) var(--my,50%), color-mix(in oklab, var(--brand-2) 25%, transparent), transparent 35%);
  opacity:0; transition:.3s;
  pointer-events: none; /* permite clicar nos links */
  z-index: 1;
}
.card:hover{ 
  transform: translateY(-8px) scale(1.02); 
  border-color: color-mix(in oklab, var(--brand-2) 45%, rgba(0,0,0,.15)); 
  box-shadow: 0 18px 40px rgba(0,0,0,.3);
}
:root.light .card:hover{ box-shadow: 0 18px 40px rgba(0,0,0,.16); }
.card:hover::after{ opacity:1; }

/* Variação de cor por categoria (opcional - usar data-attribute) */
.card[data-category="teal"]::after {
  background: radial-gradient(600px 200px at var(--mx,50%) var(--my,50%), color-mix(in oklab, var(--teal) 25%, transparent), transparent 35%);
}
.card[data-category="accent"]::after {
  background: radial-gradient(600px 200px at var(--mx,50%) var(--my,50%), color-mix(in oklab, var(--accent) 25%, transparent), transparent 35%);
}

.card-body { padding: 0.75rem 0.9rem 0.85rem; flex: 1; display: flex; flex-direction: column; justify-content: space-between; min-height: 0; }
.card h3 { margin: 0 0 .4rem; font-size: 1.03rem; }
.card h3 a { color: var(--text); text-decoration: none; transition: color 0.2s; }
.card h3 a:hover { 
  color: var(--brand); 
  text-shadow: 0 0 8px color-mix(in oklab, var(--brand) 40%, transparent);
}
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: .7rem 0 0; }
.tags li { 
  font-size: .8rem; 
  color: var(--brand-2); 
  background: color-mix(in oklab, var(--brand-2) 12%, transparent); 
  border: 1px solid color-mix(in oklab, var(--brand-2) 30%, transparent); 
  padding: .25rem .5rem; 
  border-radius: .5rem; 
  transition: all .2s ease;
}
.tags li:hover {
  background: color-mix(in oklab, var(--brand-2) 20%, transparent);
  border-color: color-mix(in oklab, var(--brand-2) 45%, transparent);
  transform: translateY(-1px);
}

/* ===== Capas dos cards (padronizadas) ===== */
.card-media {
  position: relative;
  aspect-ratio: 16 / 9;            /* RECOMENDADO: 16:9 para grid de portfólios */
    overflow: hidden;
  border-radius: .8rem .8rem 0 0;
  background: rgba(0,0,0,.03);
  display: flex; align-items: center; justify-content: center;
  z-index: 2; /* garante que o link fica acima do ::after do card */
}
:root.light .card-media { background: rgba(0,0,0,.02); }

.card-media > img {
  display: block; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  transition: transform .3s ease;
}
.card:hover .card-media > img { 
  transform: scale(1.05); 
  filter: brightness(1.1) saturate(1.1);
}

/* Quando for logotipo (não cortar) */
.card-media--contain > img { object-fit: contain; transform: none !important; }

/* Destaques (wide) */
.card--featured .card-media { aspect-ratio: 21 / 9; }

/* ===== Splits 50/50 (texto x imagem) ===== */
.split { display:grid; grid-template-columns: 1.05fr .95fr; gap:1.5rem; align-items:stretch; margin-top: 2.2rem; margin-bottom: 3.2rem; }
.split--reverse { grid-template-columns: .95fr 1.05fr; }
.split .panel {
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border:1px solid rgba(0,0,0,.12); border-radius: var(--radius);
  padding:1.1rem 1.1rem 1.3rem; display:flex; flex-direction:column;
  min-height: 420px; height: 100%;
}
:root.light .split .panel { background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,.7)); }
.split .panel h3 { margin: 0 0 .45rem; font-size: 1.4rem; }
.split .panel h3 a { color: var(--text); text-decoration: none; transition: color 0.2s; }
.split .panel h3 a:hover { color: var(--brand); }
.split .panel p.subtle { font-size: 0.95rem; margin-bottom: 0.8rem; line-height: 1.6; }
.split .panel .tags { margin-top: auto; }
.split .panel .tags li { padding: .25rem .5rem; font-size: 0.8rem; }
.split .media { border-radius: var(--radius); overflow:hidden; box-shadow: 0 10px 30px rgba(0,0,0,.28); display:flex; align-items:center; min-height: 420px; height: 100%; }
.split .media img { display:block; width:100%; height:100%; object-fit:cover; }

/* ===== Intro Work Section ===== */
.intro-work { 
  margin-top: 4rem; 
  margin-bottom: 4rem; 
  text-align: left; 
  line-height: 1.9;
}
.intro-work h1 { 
  font-size: 2.8rem; 
    font-weight: 700;
  margin-bottom: 0.8rem;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.intro-work p { 
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.9;
  max-width: 820px; 
    margin-bottom: 1rem;
}
.intro-work .small { font-size: 0.95rem; opacity: 0.95; }

.work-intro { padding-top: 1.2rem; padding-bottom: .6rem; position: relative; }
.work-intro::after {
  content: ""; display: block; height: 1px; width: 100%;
  margin: 1.25rem 0 .25rem;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent);
}
:root.light .work-intro::after {
  background: linear-gradient(90deg, transparent, rgba(0,0,0,.12), transparent);
}
.work-intro__head { max-width: 72ch; }
.eyebrow { letter-spacing: .12em; text-transform: uppercase; font-weight: 700; font-size: .75rem; color: var(--muted); margin: 0 0 .35rem; }
.work-intro h1 { font-size: clamp(1.8rem, 1.2rem + 2vw, 2.4rem); margin: 0 0 .6rem; }
.lede { font-size: 1.05rem; color: color-mix(in oklab, var(--muted) 90%, var(--text)); margin: 0 0 1.2rem; }
.work-intro__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 2.4rem; align-items: start; margin-top: .4rem; }
.prose { max-width: 70ch; line-height: 1.7; color: var(--text); }
.prose p + p { margin-top: .9rem; }
.prose strong { color: var(--text); }
.prose em { color: var(--muted); }
.defs { margin: 1rem 0 1.1rem; display: grid; gap: .6rem; }
.defs dt { font-weight: 800; }
.defs dd { margin: .2rem 0 0; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .8rem; }
.chips span { 
  font-size: .82rem; 
  padding: .28rem .55rem; 
  background: color-mix(in oklab, var(--brand-2) 12%, transparent); 
  border: 1px solid color-mix(in oklab, var(--brand-2) 30%, transparent); 
  color: var(--brand-2); 
  border-radius: .6rem; 
}
.note { margin-top: 1rem; padding: .75rem .9rem; border-radius: .8rem; border: 1px dashed rgba(0,0,0,.18); background: color-mix(in oklab, var(--bg-2) 85%, transparent); color: var(--muted); max-width: 72ch; }
:root.light .note { border-color: rgba(0,0,0,.12); background: color-mix(in oklab, var(--bg-2) 90%, transparent); }

/* ===== Botões ===== */
.btn { 
  display: inline-block; 
  background: linear-gradient(135deg, var(--brand), var(--accent), var(--brand-2)); 
  color: #0b0e13; 
    font-weight: 700;
  padding: .75rem 1.05rem; 
  border-radius: .9rem; 
  text-decoration: none; 
  border: 1px solid rgba(0,0,0,.08); 
  box-shadow: 0 12px 24px var(--ring); 
  transition: .2s ease;
  animation: glow-pulse 3s ease-in-out infinite;
}
@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 12px 24px var(--ring); }
  50% { box-shadow: 0 12px 24px var(--ring), 0 0 25px color-mix(in oklab, var(--brand) 40%, transparent); }
}
.btn:hover { 
  transform: translateY(-1px); 
  box-shadow: 0 18px 36px var(--ring), 0 0 30px color-mix(in oklab, var(--brand) 50%, transparent);
  animation: none; /* para o hover */
}
.btn.secondary {
  background: linear-gradient(90deg, color-mix(in oklab, var(--brand) 35%, transparent), color-mix(in oklab, var(--brand-2) 30%, transparent));
  border: 1px solid color-mix(in oklab, var(--brand-2) 50%, transparent);
  color: var(--text);
  font-weight: 600;
  box-shadow: 0 8px 20px color-mix(in oklab, var(--brand-2) 25%, transparent);
  transition: .2s ease;
}
.btn.secondary:hover {
  background: linear-gradient(90deg, color-mix(in oklab, var(--brand) 45%, transparent), color-mix(in oklab, var(--brand-2) 40%, transparent));
  border-color: color-mix(in oklab, var(--brand-2) 60%, transparent);
  box-shadow: 0 12px 28px color-mix(in oklab, var(--brand-2) 35%, transparent);
  transform: translateY(-1px);
}
:root.light .btn.secondary {
  background: linear-gradient(90deg, color-mix(in oklab, var(--brand) 28%, rgba(255,255,255,.95)), color-mix(in oklab, var(--brand-2) 25%, rgba(255,255,255,.95)));
  border-color: color-mix(in oklab, var(--brand-2) 45%, rgba(0,0,0,.2));
  box-shadow: 0 8px 20px color-mix(in oklab, var(--brand-2) 20%, transparent);
}
:root.light .btn.secondary:hover {
  background: linear-gradient(90deg, color-mix(in oklab, var(--brand) 38%, rgba(255,255,255,.98)), color-mix(in oklab, var(--brand-2) 35%, rgba(255,255,255,.98)));
  border-color: color-mix(in oklab, var(--brand-2) 55%, rgba(0,0,0,.25));
  box-shadow: 0 12px 28px color-mix(in oklab, var(--brand-2) 30%, transparent);
}

/* footer */
.site-footer { border-top: 1px solid rgba(0,0,0,.08); padding: 2.2rem 0; margin-top: 3rem; text-align: center; }

.site-footer .container.small {
  display: block !important;
  white-space: nowrap;
  flex-direction: row !important;
  text-align: center;
}

.site-footer .container.small strong {
  display: inline !important;
}

/* contact */
.contact { list-style: none; padding: 0; display: grid; gap: .5rem; }
.contact a { color: var(--text); text-decoration: none; }

/* SaaS & AI section */
.saas-ai { margin-top: 4rem; }
.saas-ai h2 { font-size: 1.8rem; margin-bottom: 1rem; }
.saas-ai p { max-width: 750px; margin-bottom: 1.5rem; color: var(--muted); }
.saas-ai ul.contact { gap: 0.8rem; }
.saas-ai li { margin-bottom: 0; font-size: 1rem; line-height: 1.6; }

/* contact form */
.form { display:grid; gap: .9rem; max-width: 640px; }
.form label { font-weight: 600; }
.input, .textarea { width:100%; padding:.9rem 1rem; border-radius: .8rem; border:1px solid rgba(0,0,0,.15); background: color-mix(in oklab, var(--bg-2) 70%, transparent); color: var(--text); }
.textarea{ min-height: 160px; resize: vertical; }
.form .row{ display:grid; grid-template-columns: 1fr 1fr; gap:.9rem; }

/* accessibility */
:focus-visible{ outline: 2px solid var(--brand-2); outline-offset: 2px; border-radius: 8px; }

/* === Melhorar espaçamento entre títulos e cards === */
section {
  margin-top: clamp(2.5rem, 6vw, 5rem);
  margin-bottom: clamp(2.5rem, 6vw, 5rem);
}

.category-title {
  margin-top: 2.5rem;
  margin-bottom: 1.6rem; /* espaço entre título e grid */
  font-size: 1.4rem;
  font-weight: 700;
  border-left: 4px solid var(--brand);
  padding-left: 0.7rem;
}

.subcategory-title {
  margin-top: 1.5rem;
    margin-bottom: 1rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--muted);
}

/* === HERO HORIZONTAL (Case Study) === */
.hero-horizontal {
  background: linear-gradient(180deg, color-mix(in oklab, var(--bg-2) 95%, var(--bg)), var(--bg));
  padding: 6rem 4rem;
  border-radius: 1.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  margin-bottom: 5rem;
}

:root.light .hero-horizontal {
  background: linear-gradient(180deg, #f7f8fa 0%, #ffffff 100%);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

:root:not(.light) .hero-horizontal {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.hero-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4rem;
  max-width: 1300px;
  margin: 0 auto;
}

/* Lado esquerdo */
.hero-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-left h1 {
  font-size: 3.2rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--text);
}

.hero-left .highlight {
  background: linear-gradient(90deg, var(--brand), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

:root.light .hero-left .highlight {
  background: linear-gradient(90deg, #fa5a64, #f08246);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-left .subtitle {
  font-size: 1.2rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  max-width: 580px;
}

:root.light .hero-left .subtitle {
  color: #444;
}

.hero-left .saas-tagline {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 1.5rem;
  max-width: 580px;
  font-style: italic;
}

:root.light .hero-left .saas-tagline {
  color: #666;
}

/* Bubbles alinhados horizontalmente */
.hero-bubbles {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.2rem;
  margin-bottom: 2.5rem;
  max-width: 550px;
}

.bubble {
  background: color-mix(in oklab, var(--brand) 10%, transparent);
  border: 1px solid color-mix(in oklab, var(--brand) 25%, transparent);
  border-radius: 2rem;
  padding: 0.6rem 1.2rem;
  color: var(--text);
  font-weight: 500;
  transition: all 0.25s ease;
  font-size: 0.95rem;
}

.bubble:hover {
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  color: #fff;
  transform: translateY(-2px);
  border-color: transparent;
}

:root.light .bubble {
  background: rgba(250, 90, 100, 0.1);
  border-color: rgba(250, 90, 100, 0.25);
  color: #333;
}

:root.light .bubble:hover {
  background: linear-gradient(90deg, #fa5a64, #14dcdc);
  color: #fff;
}

/* Botões */
.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary {
  background: linear-gradient(90deg, var(--brand), var(--accent));
  color: white;
  border-radius: 0.6rem;
  padding: 0.8rem 1.6rem;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 4px 14px color-mix(in oklab, var(--brand) 30%, transparent);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px color-mix(in oklab, var(--brand) 40%, transparent);
}

:root.light .btn-primary {
  background: linear-gradient(90deg, #fa5a64, #f08246);
  box-shadow: 0 4px 14px rgba(250, 90, 100, 0.3);
}

:root.light .btn-primary:hover {
  box-shadow: 0 8px 18px rgba(250, 90, 100, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--brand-2);
  border: 1.5px solid var(--brand-2);
  border-radius: 0.6rem;
  padding: 0.8rem 1.6rem;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: var(--brand-2);
  color: var(--bg);
  transform: translateY(-2px);
}

:root.light .btn-secondary {
  color: #14dcdc;
  border-color: #14dcdc;
}

:root.light .btn-secondary:hover {
  background: #14dcdc;
  color: white;
}

/* Lado direito (imagem) */
.hero-right {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-right img {
  width: 100%;
  max-width: 430px;
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

:root:not(.light) .hero-right img {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Responsivo */
@media (max-width: 992px) {
  .hero-horizontal {
    padding: 4rem 2rem;
  }

  .hero-container {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }

  .hero-left {
    align-items: center;
  }

  .hero-left .subtitle {
    max-width: 100%;
  }

  .hero-bubbles {
    justify-content: center;
    max-width: 100%;
  }

  .hero-right img {
    margin-top: 2rem;
    max-width: 320px;
  }
}

/* === HERO MODERN (Premium Style) === */
.hero-modern {
  background: linear-gradient(135deg, rgba(250,90,100,.12), rgba(20,220,220,.12), rgba(11,14,19,1));
  padding: 5rem 0 3rem;
  border-radius: 1.8rem;
  box-shadow: 0 0 40px rgba(0,0,0,.35);
  margin-bottom: 3rem;
  position: relative;
  overflow: hidden;
}

:root.light .hero-modern {
  background: linear-gradient(135deg, rgba(250,90,100,.08), rgba(20,220,220,.08), rgba(247,248,251,1));
  box-shadow: 0 0 40px rgba(0,0,0,.15);
}

.hero-flex {
  display: flex;
  gap: 3rem;
  align-items: center;
  justify-content: space-between;
}

.hero-text {
  flex: 1;
  max-width: 600px;
}

.hero-text h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.hero-text p {
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 2rem;
}

.hero-visual {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.hero-visual .mockup {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.4);
}

.hero-visual .mockup img {
  max-width: 100%;
  height: auto;
  display: block;
}

.hero-tags {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.hero-tags li {
  background: color-mix(in oklab, var(--brand-2) 15%, transparent);
  border: 1px solid color-mix(in oklab, var(--brand-2) 30%, transparent);
  padding: 0.5rem 1rem;
  border-radius: 0.7rem;
  font-size: 0.9rem;
  color: var(--text);
}

@media (max-width: 940px) {
  .hero-flex {
    flex-direction: column;
    gap: 2rem;
  }
  .hero-text {
    max-width: 100%;
  }
  .hero-text h1 {
    font-size: 2.2rem;
  }
}

.hero-content h1 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text);
}

.hero-content .lead {
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  color: var(--muted);
}

.hero-highlights {
  list-style: none;
  padding: 0;
    margin-bottom: 2rem;
}

.hero-highlights li {
  margin: 0.5rem 0;
  font-size: 1rem;
  background: var(--surface);
  border: 1px solid rgba(0,0,0,.12);
  padding: 0.6rem 1rem;
  border-radius: 12px;
  display: inline-block;
  margin-right: 0.5rem;
  color: var(--text);
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-buttons .btn.primary {
  background: linear-gradient(90deg, var(--brand), var(--accent));
  color: #fff;
  padding: 0.8rem 1.6rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 10px 20px rgba(250,90,100,.35);
  animation: glow-pulse 3s ease-in-out infinite;
}

.hero-buttons .btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(250,90,100,.45), 0 0 30px color-mix(in oklab, var(--brand) 50%, transparent);
  animation: none;
}

.hero-buttons .btn.secondary {
  border: 2px solid var(--brand-2);
  color: var(--brand-2);
  background: transparent;
  padding: 0.8rem 1.6rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: none;
  animation: none;
}

.hero-buttons .btn.secondary:hover {
  background: color-mix(in oklab, var(--brand-2) 12%, transparent);
  border-color: var(--brand-2);
  transform: translateY(-1px);
}

.hero-image {
  position: relative;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image::before {
  content: "";
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle at 50% 50%, rgba(250,90,100,.18), rgba(20,220,220,.12));
  filter: blur(40px);
  z-index: -1;
  border-radius: 50%;
  animation: pulse-glow 4s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.05); }
}

.hero-image img {
  max-width: 360px;
  height: auto;
  border-radius: 1rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.hero-caption {
  margin-top: 1rem;
  color: var(--muted);
  font-size: .95rem;
  letter-spacing: .3px;
  text-align: center;
}

.logo-overlay {
  position: absolute;
  bottom: -30px;
  right: 20px;
  width: 140px;
  opacity: 0.9;
}

/* RESPONSIVE - Case Hero */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-image {
    text-align: center;
    margin-top: 2rem;
  }

  .logo-overlay {
    position: static;
    margin-top: 1rem;
  }

  .case-hero-section {
    padding: 4rem 0;
  }

  .hero-content h1 {
    font-size: 2.2rem;
  }
}

/* case study pages */
.case { padding-top: 2rem; padding-bottom: 3rem; }
.case h1 { font-size: clamp(1.8rem, 1.2rem + 2vw, 2.6rem); margin-bottom: .8rem; }
.case .hero { 
  width: 100%; 
  max-width: 650px; 
  height: auto;
  border-radius: var(--radius); 
  margin: 1.5rem auto 2rem;
  display: block;
}
.case .meta { display: flex; gap: 1rem; flex-wrap: wrap; color: var(--muted); margin-bottom: 1rem; }
.case section { 
  margin-top: 2.5rem;
  margin-bottom: 4rem;
}

.case section + section {
  border-top: 1px solid rgba(255,255,255,.05);
  padding-top: 3rem;
}

:root.light .case section + section {
  border-top: 1px solid rgba(0,0,0,.08);
}

/* === ARCHITECTURE SECTION === */
.architecture {
  margin-top: 4rem;
}

/* .role-grid - já definido abaixo na seção "Garante que todas as colunas fiquem iguais" */

.role {
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: transform .25s ease, box-shadow .25s ease;
}

:root.light .role {
  background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,.7));
  border-color: rgba(0,0,0,.08);
}

.role:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
}

.role h3 {
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
  color: var(--text);
}

.role p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* === HERO MODERN ===== */
.hero-modern {
  background: linear-gradient(135deg, rgba(250,90,100,0.12), rgba(20,220,220,0.12), rgba(11,14,19,1));
  padding: 5rem 0 3rem;
  border-radius: 1.8rem;
  box-shadow: 0 0 40px rgba(0,0,0,.35);
  position: relative;
  overflow: hidden;
  margin: 2rem auto;
  max-width: 1180px;
}

:root.light .hero-modern {
  background: linear-gradient(135deg, rgba(250,90,100,0.1), rgba(20,220,220,0.1), #fff);
  box-shadow: 0 0 40px rgba(0,0,0,.12);
}

/* glowing orb */
.hero-modern::before {
  content: "";
  position: absolute;
  width: 480px;
  height: 480px;
  top: -120px;
  right: -120px;
  background: radial-gradient(circle at 30% 30%, var(--brand), transparent 70%);
  opacity: 0.3;
  filter: blur(80px);
  animation: floatGlow 8s ease-in-out infinite;
}

@keyframes floatGlow {
  0%,100% { transform: translate(0,0); opacity: 0.3; }
  50% { transform: translate(-20px,10px); opacity: 0.5; }
}

.hero-flex {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  position: relative;
  z-index: 1;
}

.hero-text {
  flex: 1 1 460px;
}

.hero-text h1 {
  font-size: 3rem;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
}

.hero-text .lead {
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.7;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1.5rem 0;
  list-style: none;
  padding: 0;
}

.hero-tags li {
  background: var(--surface);
  border-radius: 2rem;
  padding: 0.4rem 1rem;
  font-size: 0.9rem;
  border: 1px solid rgba(255,255,255,.08);
  color: var(--text);
}

:root.light .hero-tags li {
  border-color: rgba(0,0,0,.08);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.hero-visual {
  flex: 1 1 400px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-visual img {
  max-width: 420px;
  width: 100%;
  border-radius: 1rem;
  box-shadow: 0 12px 32px rgba(0,0,0,.4);
  transition: transform .3s ease;
}

.hero-visual img:hover {
  transform: scale(1.02);
}

:root.light .hero-visual img {
  box-shadow: 0 12px 32px rgba(0,0,0,.2);
}

/* === CORE EXPERIENCE - HORIZONTAL ROLE CARDS === */
.core-experience.horizontal {
  margin-top: 5rem;
}

.core-experience.horizontal h2 {
  font-size: 2rem;
  text-align: center;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
}

.core-experience.horizontal .intro {
  text-align: center;
  color: var(--muted);
  margin-bottom: 3rem;
  max-width: 70ch;
  margin-left: auto;
  margin-right: auto;
}

/* ===== GRID DE COLUNAS PRINCIPAIS (já definido abaixo no bloco de correção final) ===== */

/* ===== CARD PRINCIPAL ===== */
.role-card {
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 8px 30px rgba(0,0,0,.25);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 100%;
  transition: 0.3s ease;
}

:root.light .role-card {
  background: linear-gradient(180deg, #ffffff, #f8f9fb);
  border-color: rgba(0,0,0,.08);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.role-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 40px rgba(0,0,0,.3);
}

:root.light .role-card:hover {
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.15);
}

.role-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.6rem;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.role-card[data-category="accent"] h3 {
  background: linear-gradient(90deg, var(--accent), var(--brand));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.role-card[data-category="teal"] h3 {
  background: linear-gradient(90deg, var(--teal), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.role-card[data-category="brand-2"] h3 {
  background: linear-gradient(90deg, var(--brand-2), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.role-card p {
  color: var(--muted);
  margin-bottom: 1.5rem;
  line-height: 1.5;
  font-size: 0.95rem;
}

:root.light .role-card p {
  color: #555;
}

.tech-card p {
  color: var(--muted);
  margin-bottom: 1.5rem;
  line-height: 1.5;
  font-size: 0.95rem;
}

:root.light .tech-card p {
  color: #555;
}

/* === CORREÇÃO FINAL — ALINHAMENTO GLOBAL ENTRE COLUNAS === */
.grid-4,
.role-grid,
.technical-highlights .tech-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  align-items: start;
}

/* Empilha as linhas de forma nivelada */
.feature-stack,
.stack {
  display: grid;
  grid-template-rows: repeat(3, minmax(150px, auto)); /* altura uniforme por linha */
  gap: 1rem;
  align-items: stretch;
  margin-top: auto;
}

/* Subcards perfeitamente alinhados e nivelados */
.mini-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 1rem;
  padding: 1.3rem 1.4rem;
  box-shadow: 0 4px 14px rgba(0,0,0,.12);
  min-height: 150px;
  transition: all 0.25s ease;
  text-align: left;
  height: 100%;
}

:root.light .mini-card {
  background: #fff;
  border-color: rgba(0,0,0,0.08);
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

/* evita que texto empurre o card */
.mini-card h4, 
.mini-card p {
  margin: 0;
  line-height: 1.4;
}

.mini-card h4 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
  color: var(--brand-2);
}

:root.light .mini-card h4 {
  color: #222;
}

.mini-card p {
  font-size: 0.9rem;
  color: var(--muted);
}

.mini-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,.15);
}

:root.light .mini-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,.15);
}

/* Mantém responsivo */
@media (max-width: 992px) {
  .grid-4,
  .role-grid,
  .technical-highlights .tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-stack, .stack {
    grid-template-rows: repeat(3, minmax(130px, auto));
  }
}

@media (max-width: 600px) {
  .grid-4,
  .role-grid,
  .technical-highlights .tech-grid {
    grid-template-columns: 1fr;
  }
}

/* === KEY FEATURES === */
.key-features {
  margin-top: 5rem;
}

.key-features h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 2rem;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.key-features .feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 992px) {
  .key-features .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .key-features .feature-grid {
    grid-template-columns: 1fr;
  }
}

/* === SYSTEM FLOW (GetFood4Less) === */
.system-flow {
  background: linear-gradient(180deg, rgba(250,90,100,.04), rgba(20,220,220,.04));
  border-radius: 16px;
  padding: 4rem 2rem;
  margin-top: 5rem;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
}

:root.light .system-flow {
  background: linear-gradient(180deg, rgba(250,90,100,.03), rgba(20,220,220,.03));
  box-shadow: 0 8px 24px rgba(0,0,0,.03);
}

.system-flow .section-title {
  font-size: 2rem;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.system-flow .intro {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 700px;
  margin: 0 auto 2.5rem auto;
  line-height: 1.7;
}

/* Flow layout */
.flow-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.flow-step {
  background: var(--surface);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 16px;
  padding: 1.5rem 1.2rem;
  width: 200px;
  box-shadow: 0 4px 14px rgba(0,0,0,.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

:root.light .flow-step {
  background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,.7));
  border-color: rgba(0,0,0,.08);
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
}

.flow-step:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0,0,0,.15);
  border-color: var(--brand-2);
}

.flow-step .icon {
  font-size: 1.8rem;
  margin-bottom: 0.6rem;
}

.flow-step h3 {
  color: var(--brand);
  margin-bottom: 0.3rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.flow-step p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
  margin: 0;
}

/* Animated arrows */
.system-flow .arrow {
  font-size: 1.8rem;
  color: var(--brand-2);
  opacity: 0.7;
  animation: pulseArrow 1.6s infinite;
}

@keyframes pulseArrow {
  0% { opacity: 0.5; transform: translateX(0); }
  50% { opacity: 1; transform: translateX(6px); }
  100% { opacity: 0.5; transform: translateX(0); }
}

/* Flow summary boxes */
.flow-summary {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-top: 3rem;
}

.summary-box {
  background: var(--surface);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  padding: 1rem 1.4rem;
  font-size: 0.95rem;
  color: var(--text);
  box-shadow: 0 3px 10px rgba(0,0,0,.1);
  transition: 0.25s ease;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

:root.light .summary-box {
  background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,.7));
  border-color: rgba(0,0,0,.08);
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
}

.summary-box span:first-child {
  font-size: 1.2rem;
}

.summary-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,.15);
  border-color: var(--brand-2);
}

/* Responsive */
@media (max-width: 768px) {
  .system-flow {
    padding: 3rem 1.5rem;
  }
  
  .flow-container {
    flex-direction: column;
  }
  
  .system-flow .arrow {
    transform: rotate(90deg);
    animation: none;
  }
  
  .flow-step {
    width: 100%;
    max-width: 280px;
  }
  
  .flow-summary {
    flex-direction: column;
    align-items: stretch;
  }
  
  .summary-box {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
  }
}

/* === SECURITY & COMPLIANCE === */
.security {
  margin-top: 5rem;
}

.security h2 {
  font-size: 1.8rem;
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.security .inline-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 2rem;
  margin: 0;
}

.security .inline-list li {
  color: var(--muted);
  font-size: 1rem;
  padding: 0.6rem 1.2rem;
  background: var(--surface);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 0.7rem;
  transition: all 0.2s ease;
}

:root.light .security .inline-list li {
  background: rgba(255,255,255,.9);
  border-color: rgba(0,0,0,.08);
  color: #555;
}

.security .inline-list li:hover {
  transform: translateY(-2px);
  border-color: var(--brand-2);
  box-shadow: 0 4px 12px rgba(0,0,0,.1);
}

@media (max-width: 768px) {
  .security .inline-list {
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
  }
}

/* === TECHNICAL HIGHLIGHTS === */
.technical-highlights {
  margin-top: 6rem;
}

.technical-highlights h2 {
  font-size: 2rem;
  text-align: center;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
}

.technical-highlights .intro {
  text-align: center;
  color: var(--muted);
  margin-bottom: 3rem;
  max-width: 700px;
  margin-inline: auto;
}

/* layout principal — 4 colunas horizontais - já definido acima na seção "Garante que todas as colunas fiquem iguais" */

/* cards principais (Backend, Frontend, etc.) */
.tech-card {
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 8px 30px rgba(0,0,0,.25);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 100%;
  transition: 0.3s ease;
}

:root.light .tech-card {
  background: linear-gradient(180deg, #ffffff, #f8f9fb);
  border-color: rgba(0,0,0,.08);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.tech-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(0,0,0,.3);
}

:root.light .tech-card:hover {
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.tech-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tech-card[data-category="accent"] h3 {
  background: linear-gradient(90deg, var(--accent), var(--brand));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tech-card[data-category="teal"] h3 {
  background: linear-gradient(90deg, var(--teal), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tech-card[data-category="brand-2"] h3 {
  background: linear-gradient(90deg, var(--brand-2), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tech-card p {
  color: var(--muted);
  margin-bottom: 1.5rem;
  line-height: 1.5;
  min-height: 3em;
}

/* subcards verticais - já definido acima na seção "CORREÇÃO FINAL PARA ALINHAMENTO DE SUBCARDS" */

/* === CASE LINKS === */
.case-links {
  background: linear-gradient(90deg, rgba(250,90,100,.08), rgba(20,220,220,.08));
  padding: 3rem 0;
  text-align: center;
  border-radius: 1.5rem;
  margin-top: 4rem;
}

:root.light .case-links {
  background: linear-gradient(90deg, rgba(250,90,100,.06), rgba(20,220,220,.06));
}

.case-links h2 {
  margin-bottom: 1.2rem;
  color: var(--brand-2);
  font-size: 1.8rem;
}

.case-links ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.case-links a {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  transition: .2s;
  font-size: 1rem;
}

.case-links a:hover {
  color: var(--brand);
  text-decoration: underline;
}

/* === FOOTER — versão refinada === */
.site-footer {
  background: linear-gradient(180deg, rgba(250,90,100,0.08), rgba(20,220,220,0.08));
  padding: 2.5rem 0 1.5rem;
  margin-top: 4rem;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.08);
}

:root.light .site-footer {
  background: linear-gradient(180deg, rgba(250,90,100,0.06), rgba(20,220,220,0.06));
  border-top-color: rgba(0,0,0,0.08);
}

/* Container central */
.site-footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem; /* reduz o espaço entre as seções */
  color: var(--muted);
  font-size: 0.9rem;
}

/* Bloco "Explore More" */
.site-footer .explore {
  margin-bottom: 0.5rem;
}

.site-footer .explore h4 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Links */
.site-footer .links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 0.8rem;
}

.site-footer .links a {
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
  transition: 0.2s ease;
}

.site-footer .links a:hover {
  color: var(--brand);
  text-decoration: underline;
}

/* Linha final (nome) */
.site-footer .credits {
  font-size: 0.85rem;
  color: var(--muted);
  opacity: 0.9;
  margin-top: 0.5rem;
}

:root.light .site-footer .credits {
  color: #555;
}

/* Responsivo */
@media (max-width: 768px) {
  .site-footer .links {
    flex-direction: column;
    gap: 0.8rem;
  }
}
.case h2 { font-size: 1.5rem; margin-top: 2rem; margin-bottom: 1rem; }
.case ul.links { list-style: none; padding: 0; }
.case ul.links li { margin-bottom: .6rem; }
.case ul.links a { color: var(--brand-2); text-decoration: none; }
.case ul.links a:hover { text-decoration: underline; }

/* playground specific */
.playground { padding-top: 2rem; }
.playground h1 { font-size: 2.4rem; margin-bottom: 1.2rem; }
.playground .demo { background: rgba(0,0,0,.12); border-radius: var(--radius); padding: 1.5rem; margin: 1.5rem 0; }
.playground .demo h3 { margin-top: 0; }

/* === PAYFLOW LITE INTEGRATION STYLES === */

/* HERO layout harmonized with GetFood4Less */
.hero-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
  padding-top: 2rem;
}

.hero-section .hero-text h1 {
  font-size: 2.4rem;
  color: var(--text);
  margin-bottom: 1rem;
  font-weight: 800;
}

.hero-section .hero-text h1 .highlight {
  background: linear-gradient(90deg, var(--brand), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-section .hero-text p {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.hero-section .hero-image img {
  max-width: 420px;
  border-radius: 1rem;
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
}

:root.light .hero-section .hero-image img {
  box-shadow: 0 6px 20px rgba(0,0,0,.1);
}

/* Buttons consistent with site palette */
.btn-demo,
.simulation button {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border: none;
  color: #fff;
  font-weight: 600;
  padding: 0.9rem 1.8rem;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-demo:hover,
.simulation button:hover {
  transform: translateY(-2px);
  opacity: 0.9;
  box-shadow: 0 8px 20px var(--ring);
}

/* FLOW UI cards */
.demo-section {
  margin-top: 5rem;
}

.demo-section h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.demo-section > p {
  text-align: center;
  color: var(--muted);
  margin-bottom: 2rem;
}

/* === PAYMENT FLOW (NEW DESIGN) === */
.payment-flow {
  text-align: center;
  margin: 6rem auto;
  padding: 4rem 1.5rem;
  max-width: 1100px;
  border-radius: 2rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.75), rgba(240,245,255,0.5));
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(12px);
  overflow: hidden;
}

:root.light .payment-flow {
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(250,252,255,0.9));
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.03);
}

:root:not(.light) .payment-flow {
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(240,245,255,0.02));
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.15);
}

.payment-flow h2 {
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 700;
  font-size: 2rem;
  margin-bottom: 0.5rem;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.payment-flow .subtitle {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 3rem;
}

.flow-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 1.5rem;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 190px;
  background: var(--bg-2);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 1.5rem;
  padding: 1.5rem;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

:root.light .step {
  background: #ffffff;
  border-color: rgba(0,0,0,.06);
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
}

:root:not(.light) .step {
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
  border-color: rgba(255,255,255,.1);
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.2);
}

.step:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

:root:not(.light) .step:hover {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.num {
  background: linear-gradient(120deg, var(--brand), var(--brand-2));
  color: white;
  font-weight: 600;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.arrow {
  font-size: 1.6rem;
  color: var(--muted);
  align-self: center;
  transition: 0.3s;
}

.arrow:hover {
  color: var(--brand-2);
  transform: scale(1.2);
}

.step h3 {
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
  color: var(--text);
}

.step p {
  font-size: 0.93rem;
  color: var(--muted);
  line-height: 1.4;
}

/* === Animation === */
@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(25px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-up {
  opacity: 0;
  animation: fadeUp 0.7s ease forwards;
  animation-delay: var(--delay, 0s);
}

/* === Responsive Layout === */
@media (max-width: 768px) {
  .payment-flow {
    padding: 3rem 1rem;
  }
  
  .flow-line {
    flex-direction: column;
    align-items: center;
  }
  
  .arrow {
    transform: rotate(90deg);
    font-size: 1.3rem;
  }
  
  .step {
    max-width: 100%;
    width: 100%;
  }
}

/* Legacy .flow-ui (keep for compatibility) */
.flow-ui {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.flow-step {
  background: var(--surface);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 4px 14px rgba(0,0,0,.1);
  transition: 0.25s ease;
}

:root.light .flow-step {
  background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,.7));
  border-color: rgba(0,0,0,.08);
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
}

.flow-step:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0,0,0,.15);
  border-color: var(--brand-2);
}

.flow-step strong {
  display: block;
  color: var(--brand);
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

.flow-step {
  color: var(--text);
  line-height: 1.6;
}

/* Simulation box alignment */
.simulation {
  background: var(--surface);
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,.1);
  margin-top: 2.5rem;
  text-align: center;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  border: 1px solid rgba(0,0,0,.08);
}

:root.light .simulation {
  background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,.7));
  border-color: rgba(0,0,0,.08);
}

.simulation input {
  width: 220px;
  padding: 0.7rem;
  font-size: 1rem;
  border-radius: 6px;
  border: 1px solid rgba(0,0,0,.15);
  margin-bottom: 1rem;
  text-align: center;
  background: var(--bg-2);
  color: var(--text);
  transition: border-color 0.2s ease;
}

:root.light .simulation input {
  background: #fff;
  border-color: #ccc;
}

.simulation input:focus {
  outline: none;
  border-color: var(--brand-2);
  box-shadow: 0 0 0 3px rgba(128,255,234,.1);
}

.simulation .result {
  margin-top: 1.4rem;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text);
}

/* === CHECKOUT SIMULATION === */
.checkout-simulation {
  background: var(--surface);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 16px;
  padding: 2.5rem;
  margin: 3rem 0;
  text-align: center;
  box-shadow: 0 6px 24px rgba(0,0,0,.1);
}

:root.light .checkout-simulation {
  background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,.7));
  border-color: rgba(0,0,0,.08);
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
}

.checkout-simulation h2 {
  font-size: 1.8rem;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}

.checkout-simulation .subtle {
  color: var(--muted);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.cart-preview {
  background: var(--bg-2);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  text-align: left;
  font-size: 1rem;
}

:root.light .cart-preview {
  background: #f8fafc;
  border-color: #e0e6ed;
}

.cart-item, .cart-total {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  color: var(--text);
}

.cart-total {
  border-top: 1px solid rgba(0,0,0,.1);
  margin-top: 0.5rem;
  padding-top: 0.8rem;
  font-weight: 600;
}

:root.light .cart-total {
  border-top-color: #e0e6ed;
}

.payment-methods {
  margin: 1.5rem 0;
}

.payment-methods > label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.payment-methods .options {
  display: flex;
  justify-content: center;
  gap: 1rem;
  font-size: 1rem;
}

.payment-methods .options label {
  display: flex;
  align-items: center;
  cursor: pointer;
  color: var(--text);
  font-weight: normal;
}

.payment-methods input[type="radio"] {
  margin-right: 0.4rem;
  cursor: pointer;
}

.checkout-simulation .btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: white;
  border: none;
  border-radius: 8px;
  padding: 0.8rem 1.8rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  font-size: 1rem;
}

.checkout-simulation .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px var(--ring);
  opacity: 0.9;
}

/* Loader */
.checkout-status {
  margin-top: 1.5rem;
  color: var(--muted);
  font-weight: 500;
}

.checkout-status.hidden { display: none; }

.checkout-status .loader {
  border: 3px solid rgba(0,0,0,.1);
  border-top: 3px solid var(--brand);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  margin: 0 auto 0.8rem;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Result */
.checkout-result {
  margin-top: 2rem;
  text-align: left;
  background: var(--bg-2);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 12px;
  padding: 1.5rem;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 4px 18px rgba(0,0,0,.1);
}

:root.light .checkout-result {
  background: #f9fafb;
  border-color: rgba(0,0,0,.08);
}

.checkout-result.hidden { display: none; }

.checkout-result h3 {
  color: #10b981;
  margin-bottom: 0.8rem;
  font-size: 1.3rem;
}

.checkout-result p {
  margin: 0.5rem 0;
  color: var(--text);
  font-size: 0.95rem;
}

.checkout-result strong {
  color: var(--brand);
}

.checkout-result .success-message {
  background: rgba(16,185,129,.1);
  color: #047857;
  font-weight: 600;
  padding: 0.6rem;
  border-radius: 6px;
  margin-top: 1rem;
  text-align: center;
}

:root.light .checkout-result .success-message {
  background: #ecfdf5;
}

.checkout-result .success-message {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  align-items: center;
}

.invoice-link {
  font-weight: 600;
  color: var(--brand);
  text-decoration: underline;
  cursor: pointer;
  transition: 0.25s ease;
}

.invoice-link:hover {
  color: var(--brand-2);
  text-shadow: 0 0 8px rgba(0,0,0,.1);
}

/* === Invoice Modal (Animated Version) === */
.invoice-modal.hidden { 
  display: none; 
}

.invoice-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(2px);
}

.invoice-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
  animation: fadeOverlay 0.4s ease forwards;
}

@keyframes fadeOverlay {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

.invoice-content {
  position: relative;
  background: var(--bg-2);
  color: var(--text);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 12px;
  box-shadow: 0 10px 36px rgba(0,0,0,.25);
  padding: 2rem 2.2rem;
  width: 420px;
  max-width: 90vw;
  max-height: 90vh;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 1001;
  transform: scale(0.92) translateY(15px);
  opacity: 0;
  animation: invoicePop 0.45s ease-out forwards;
}

:root.light .invoice-content {
  background: #ffffff;
  color: #1f2937;
  border-color: rgba(0,0,0,.08);
}

@keyframes invoicePop {
  0% {
    opacity: 0;
    transform: scale(0.92) translateY(15px);
    filter: blur(3px);
  }
  70% {
    opacity: 1;
    transform: scale(1.02) translateY(-4px);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* === Invoice Details === */
.invoice-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(0,0,0,.1);
  padding-bottom: 0.8rem;
}

:root.light .invoice-header {
  border-bottom-color: #e5e7eb;
}

.invoice-header-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.invoice-header img {
  height: 40px;
  width: auto;
}

.invoice-header h3 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--brand);
  font-weight: 600;
}

/* === Invoice Download Button === */
.invoice-download {
  background: var(--brand);
  border: none;
  color: white;
  font-size: 1.1rem;
  border-radius: 6px;
  cursor: pointer;
  padding: 0.3rem 0.6rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
}

:root.light .invoice-download {
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
}

.invoice-download:hover {
  background: var(--brand-2);
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(0,0,0,.25);
}

.invoice-download:active {
  transform: scale(0.98);
}

/* === Compact cards & responsive flow grid ===
   Colar no final de assets/css/styles.css
*/

.container.case { max-width: 1180px; margin-left: auto; margin-right: auto; }

/* grid padrão para seções com cartões (role-grid, tech-grid, flow-grid, grid-2) */
.role-grid,
.technical-highlights .tech-grid,
.grid-2,
.flow-grid,
.cards,
.card-row {
  display: grid;
  gap: 18px;                /* gap menor: antes tava bem maior */
  grid-template-columns: repeat(2, 1fr);
  align-items: stretch;
}

/* em telas médias e pequenas, reduzir colunas e gaps */
@media (max-width: 1100px) {
  .role-grid,
  .technical-highlights .tech-grid,
  .grid-2,
  .flow-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 820px) {
  .role-grid,
  .technical-highlights .tech-grid,
  .grid-2,
  .flow-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

@media (max-width: 520px) {
  .role-grid,
  .technical-highlights .tech-grid,
  .grid-2,
  .flow-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    padding-left: 18px;
    padding-right: 18px;
  }
}

/* cartões: largura, padding e sombras mais contidos */
.role-card,
.tech-card,
.card,
.card[data-glow],
.card .card-body,
.role,
.mini-card {
  padding: 18px 16px;      /* padding reduzido */
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(8,10,14,0.25);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* título dos cards — compacta o espaçamento */
.role-card h3,
.tech-card h3,
.card h3 {
  margin-top: 0;
  margin-bottom: 10px;
  line-height: 1.15;
  font-size: 1.05rem;
}

/* parágrafos dentro dos cards */
.role-card p,
.tech-card p,
.card p,
.mini-card p {
  margin: 0 0 8px 0;
  font-size: 0.95rem;
}

/* mini-cards dentro dos stacks (pequenas infos) */
.feature-stack,
.stack {
  display: grid;
  gap: 10px;
  grid-template-rows: repeat(3, minmax(150px, auto));
  align-items: stretch;
  height: 100%;
  margin-top: auto;
}

.mini-card {
  background: rgba(255,255,255,0.02);
  padding: 10px;
  border-radius: 8px;
  min-width: 160px;
  box-shadow: none;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  overflow: hidden;
}

/* Seção do título e subtítulo — reduz distância para os cards */
.hero-horizontal + main .container > section:first-of-type,
section.architecture,
section.core-experience {
  margin-top: 18px;
  padding-top: 8px;
}

/* Visual Payment Flow: centralizar e limitar altura do painel */
.visual-flow,
.flow-ui,
.flow-panel {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding: 28px 20px;
}

/* botão de simular: posicionamento e largura reduzida */
.btn-simulate,
.btn-primary.simulate {
  padding: 12px 18px;
  font-size: 1rem;
  border-radius: 10px;
}

/* Footer explore links — compactar */
.site-footer .container {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  padding-top: 22px;
  padding-bottom: 18px;
}

/* Ajuste final: evitar espaçamentos grandes colocados por headings */
h2 { margin-top: 20px; margin-bottom: 14px; }

section { margin-bottom: 26px; }

.invoice-body {
  margin: 1rem 0;
  font-size: 0.96rem;
  animation: textFade 0.5s ease 0.3s forwards;
  opacity: 0;
}

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

.invoice-body p {
  margin: 0.5rem 0;
  color: var(--text);
}

:root.light .invoice-body p {
  color: #1f2937;
}

.invoice-body hr {
  border: none;
  border-top: 1px solid rgba(0,0,0,.1);
  margin: 1rem 0;
}

:root.light .invoice-body hr {
  border-top-color: #e5e7eb;
}

.invoice-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.8rem 0;
  font-size: 0.92rem;
}

.invoice-table th, 
.invoice-table td {
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(0,0,0,.1);
  text-align: left;
  color: var(--text);
}

:root.light .invoice-table th,
:root.light .invoice-table td {
  border-bottom-color: #e5e7eb;
  color: #1f2937;
}

.invoice-table th {
  font-weight: 600;
  color: var(--brand);
}

.invoice-table td[align="right"] {
  text-align: right;
}

.invoice-footer {
  text-align: right;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0,0,0,.1);
}

:root.light .invoice-footer {
  border-top-color: #e5e7eb;
}

.invoice-footer .btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(0,0,0,.15);
  border-radius: 8px;
  padding: 0.6rem 1.2rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
}

:root.light .invoice-footer .btn-secondary {
  color: #1f2937;
  border-color: #d1d5db;
}

.invoice-footer .btn-secondary:hover {
  background: var(--surface);
  border-color: var(--brand-2);
}

:root.light .invoice-footer .btn-secondary:hover {
  background: #f9fafb;
}

/* Print simulation glow */
.invoice-content::after {
  content: "";
  position: absolute;
  top: -40%;
  left: -80%;
  width: 300%;
  height: 200%;
  background: linear-gradient(120deg, rgba(255,255,255,0) 40%, rgba(255,255,255,0.8) 50%, rgba(255,255,255,0) 60%);
  transform: rotate(15deg);
  opacity: 0;
  animation: shinePrint 2.5s ease-out 0.6s forwards;
  pointer-events: none;
}

:root.light .invoice-content::after {
  background: linear-gradient(120deg, rgba(255,255,255,0) 40%, rgba(255,255,255,0.9) 50%, rgba(255,255,255,0) 60%);
}

@keyframes shinePrint {
  0% { 
    opacity: 0; 
    transform: translateX(-100%) rotate(15deg); 
  }
  20% { 
    opacity: 1; 
  }
  80% { 
    opacity: 1; 
    transform: translateX(100%) rotate(15deg); 
  }
  100% { 
    opacity: 0; 
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-section {
    flex-direction: column;
    text-align: center;
  }
  
  .hero-section .hero-text {
    text-align: center;
  }
  
  .hero-section .hero-image img {
    max-width: 300px;
  }
  
  .flow-ui {
    grid-template-columns: 1fr;
  }
  
  .simulation {
    padding: 1.8rem;
  }
  
  .simulation input {
    width: 100%;
  }
  
  .checkout-simulation {
    padding: 1.8rem;
  }
  
  .checkout-result {
    max-width: 100%;
  }
}

/* responsive */
@media (max-width: 940px) {
  .hero { grid-template-columns: 1fr; }
  .form .row{ grid-template-columns: 1fr; }
  .split, .split--reverse { grid-template-columns: 1fr; }
  .split .panel, .split .media { min-height: 360px; }
}

/* === FEATURE BLOCK (Guest Orders) === */
.feature-block {
  margin-top: 4rem;
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

:root.light .feature-block {
  background: linear-gradient(180deg, rgba(255,247,243,.9), rgba(255,255,255,.95));
  border-color: rgba(0,0,0,.08);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.feature-block h3 {
  font-size: 1.8rem;
  color: var(--brand);
  margin-bottom: 1rem;
}

.feature-block p {
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.feature-points {
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
}

.feature-points li {
  background: color-mix(in oklab, var(--accent) 15%, transparent);
  border: 1px solid color-mix(in oklab, var(--accent) 30%, transparent);
  padding: 0.6rem 1rem;
  border-radius: 12px;
  margin: 0.4rem 0.4rem 0.4rem 0;
  font-size: 0.95rem;
  color: var(--text);
  display: inline-block;
}

:root.light .feature-points li {
  background: color-mix(in oklab, var(--accent) 20%, rgba(255,255,255,.95));
  border-color: color-mix(in oklab, var(--accent) 35%, rgba(0,0,0,.1));
  color: var(--text);
}

.feature-image {
  width: 25%;
  max-width: 25%;
  height: auto;
  border-radius: 12px;
  margin-top: 1.5rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

:root.light .feature-image {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* === Tech badges === */
.tech-badges {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 1.2rem;
}

.tech-badges span {
  font-size: .85rem;
  color: var(--brand-2);
  background: color-mix(in oklab, var(--brand-2) 15%, transparent);
  padding: .3rem .6rem;
  border-radius: .6rem;
  border: 1px solid color-mix(in oklab, var(--brand-2) 30%, transparent);
  transition: all 0.2s ease;
}

.tech-badges span:hover {
  background: color-mix(in oklab, var(--brand-2) 25%, transparent);
  border-color: color-mix(in oklab, var(--brand-2) 45%, transparent);
  transform: translateY(-1px);
}

/* === Cards do ecossistema - hover effects === */
.case .card:hover {
  transform: translateY(-6px) scale(1.02);
  background: linear-gradient(180deg, rgba(20,220,220,.1), rgba(250,90,100,.05));
}

.case .card h3 a {
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* === Fade-up animation para seções === */
.case section:not(.case-hero-section) {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.case section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === ECOSYSTEM SECTIONS (Food4Less visual identity) === */
.ecosystem-section {
  text-align: center;
  margin: 5rem auto;
  padding: 3rem 1rem;
  color: var(--text);
}

.ecosystem-header h2 {
  font-size: 2rem;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.ecosystem-header .subtle {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 2.5rem;
}

.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  justify-content: center;
  align-items: stretch;
  max-width: 1100px;
  margin: 0 auto;
}

.ecosystem-card {
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 1.2rem;
  padding: 2rem 1.4rem;
  text-align: left;
  box-shadow: 0 6px 16px rgba(0,0,0,.25);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  position: relative;
  overflow: hidden;
}

:root.light .ecosystem-card {
  background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,.7));
  border-color: rgba(0,0,0,.08);
  box-shadow: 0 6px 16px rgba(0,0,0,.08);
}

.ecosystem-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ecosystem-card p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.ecosystem-card:hover {
  transform: translateY(-4px);
}

/* === Hover glow by category === */
.ecosystem-card[data-color="brand"]:hover {
  border-color: var(--brand);
  box-shadow: 0 12px 30px color-mix(in oklab, var(--brand) 35%, transparent);
}

.ecosystem-card[data-color="accent"]:hover {
  border-color: var(--accent);
  box-shadow: 0 12px 30px color-mix(in oklab, var(--accent) 35%, transparent);
}

.ecosystem-card[data-color="teal"]:hover {
  border-color: var(--teal);
  box-shadow: 0 12px 30px color-mix(in oklab, var(--teal) 35%, transparent);
}

.ecosystem-card[data-color="brand-2"]:hover {
  border-color: var(--brand-2);
  box-shadow: 0 12px 30px color-mix(in oklab, var(--brand-2) 35%, transparent);
}

@media (max-width: 800px) {
  .ecosystem-header h2 {
    font-size: 1.6rem;
  }
  .ecosystem-card {
    padding: 1.5rem 1.2rem;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .card:hover, .card:hover .card-media > img { transition: none !important; transform: none !important; }
  [data-glow]::after { display: none !important; }
  .card.magnetic, .tilt-stack .tile { transition: none !important; transform: none !important; }
}

/* === WORK: compact overrides === */
/* Tuning rápido por variável */
:root {
  --card-ratio: 16/9;     /* use 2/1 para ficar ainda mais "baixinho" */
  --card-min-h: 220px;    /* altura mínima do card */
  --card-pad: .65rem .8rem .75rem;
  --card-title-size: 1rem;
  --card-gap: 2rem;       /* espaçamento entre cards nas grids */
  --tag-font: .76rem;
}

/* Deixa as grids mais "respiráveis" */
.grid-2, .grid-3 { gap: var(--card-gap); }

/* Cards menores e com menos "respiro" interno */
.card {
  min-height: var(--card-min-h);
}

.card-body {
  padding: var(--card-pad);
}

.card h3 {
  font-size: var(--card-title-size);
  margin-bottom: .35rem;
}

.tags li {
  font-size: var(--tag-font);
  padding: .22rem .45rem;
}

/* Capas mais baixas e SEM zoom no hover */
.card-media {
  aspect-ratio: var(--card-ratio);
}

.card-media > img {
  object-fit: cover;           /* preenche a capa; pode cortar a borda */
  object-position: center;     /* ajuste pontual: top/left/right se precisar */
  transition: none;            /* remove anim de zoom */
}

/* Remover o "zoom" no hover */
.card:hover .card-media > img {
  transform: none;
}

/* Se alguma imagem NÃO puder ser cortada (logo/ilustração),
   use a classe .card-media--contain no HTML */
.card-media--contain > img {
  object-fit: contain !important;  /* não corta, pode aparecer "letterbox" */
  background: rgba(0,0,0,.03);
}

/* Opção: deixar os cards ainda menores no mobile */
@media (max-width: 940px) {
  :root {
    --card-min-h: 200px;
    --card-gap: 1.4rem;
  }
}
