/* Solve Better — design system (dark, acento azul) */

:root{
  --bg: #0A0E14;
  --bg-alt: #0D131C;
  --surface: #121821;
  --surface-2: #1A2330;
  --border: #232D3A;
  --text: #E6ECF3;
  --text-muted: #8FA0B3;
  --accent: #3D7EFF;
  --accent-ink: #06101F;
  --accent-soft: rgba(61,126,255,0.14);
  --accent-2: #D99A3D;
  --accent-2-soft: rgba(217,154,61,0.14);

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.20);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.28);
  --shadow-lg: 0 20px 48px rgba(0,0,0,0.36);

  --transition-fast: 150ms;
  --transition-normal: 250ms;
  --transition-slow: 450ms;

  --font-display: 'Manrope', -apple-system, "Segoe UI", system-ui, sans-serif;
  --font-body: 'Public Sans', -apple-system, "Segoe UI", system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, "SF Mono", monospace;

  --container: 1120px;
}

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

html{ scroll-behavior: smooth; }

body{
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a{ color: var(--accent); text-decoration: none; transition: color var(--transition-fast) ease-out, opacity var(--transition-fast) ease-out; }
a:hover{ text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible{
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

::selection{ background: var(--accent-soft); }

h1, h2, h3, h4{
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin: 0;
}

h1{ font-size: clamp(32px, 5vw, 52px); line-height: 1.08; }
h2{ font-size: clamp(24px, 3.2vw, 34px); line-height: 1.15; }
h3{ font-size: 19px; line-height: 1.3; }

p{ margin: 0; max-width: 62ch; }

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

.eyebrow{
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before{
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
}

.muted{ color: var(--text-muted); }

/* Brand / logo */
.brand{
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--text);
  display: inline-flex;
  align-items: baseline;
  transition: opacity var(--transition-fast) ease-out;
}
.brand:hover{ text-decoration: none; opacity: .9; }
.brand .b-solve{ color: var(--text); }
.brand .b-dot{ color: var(--accent); padding: 0 2px; }
.brand .b-better{ color: var(--accent); }
.brand.small{ font-size: 16px; }

/* Header */
.site-header{
  position: sticky; top: 0; z-index: 40;
  background: rgba(10,14,20,0.82);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner{
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 18px 24px;
}
.site-nav{
  display: flex; align-items: center; gap: 28px;
}
.site-nav a{
  color: var(--text-muted);
  font-size: 14.5px;
  font-weight: 600;
  transition: color var(--transition-fast) ease-out;
}
.site-nav a:hover{ color: var(--text); text-decoration: none; }
.site-nav a.active{ color: var(--text); }
.site-nav a.nav-cta{
  color: var(--accent-ink);
  background: var(--accent);
  padding: 8px 16px;
  border-radius: 8px;
  transition: opacity var(--transition-fast) ease-out;
}
.site-nav a.nav-cta:hover{ opacity: .9; text-decoration: none; }

.nav-toggle{
  display: none;
  background: none; border: 1px solid var(--border); border-radius: 8px;
  color: var(--text); width: 40px; height: 40px; font-size: 18px;
  cursor: pointer;
}

.lang-switch{
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  white-space: nowrap;
  color: var(--text-muted);
}
.lang-switch a{
  color: var(--text-muted);
  transition: color var(--transition-fast) ease-out;
}
.lang-switch a:hover{ color: var(--text); text-decoration: none; }
.lang-switch a.active{ color: var(--text); }

@media (max-width: 780px){
  .nav-toggle{ display: block; }
  .site-nav{
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--surface); border-bottom: 1px solid var(--border);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 24px 18px;
    display: none;
  }
  .site-nav.open{ display: flex; }
  .site-nav a{ padding: 12px 0; border-bottom: 1px solid var(--border); }
  .site-nav a:last-child{ border-bottom: none; }
  .site-nav a.nav-cta{ margin-top: 12px; text-align: center; }
}

/* Sections / layout helpers */
section{ padding: 88px 0; }
section.tight{ padding: 56px 0; }
.section-head{ max-width: 640px; margin-bottom: 40px; }
.section-head .eyebrow{ margin-bottom: 14px; }
.section-head p{ margin-top: 14px; color: var(--text-muted); font-size: 17px; }

.grid{ display: grid; gap: 24px; }
.grid-2{ grid-template-columns: repeat(2, 1fr); }
.grid-3{ grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px){
  .grid-2, .grid-3{ grid-template-columns: 1fr; }
}

.app-screens img{ width: 100%; max-width: 210px; display: block; margin: 0 auto; border-radius: 12px; }

.card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-normal) ease-out, border-color var(--transition-normal) ease-out;
}
.card:hover{ box-shadow: var(--shadow-md); border-color: var(--accent); }

.divider{ border: none; border-top: 1px solid var(--border); margin: 0; }

/* Buttons */
.btn{
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-weight: 700; font-size: 15px;
  padding: 13px 22px; border-radius: 9px; border: 1px solid transparent;
  cursor: pointer;
  transition: background-color var(--transition-fast) ease-out, opacity var(--transition-fast) ease-out, border-color var(--transition-fast) ease-out;
}
.btn:hover{ text-decoration: none; }
.btn-primary{ background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover{ opacity: .92; }
.btn-secondary{ background: transparent; color: var(--text); border-color: var(--border); }
.btn-secondary:hover{ border-color: var(--accent); color: var(--text); }
.btn-row{ display: flex; gap: 14px; flex-wrap: wrap; }

/* Hero */
.hero{ padding: 96px 0 72px; }
.hero .eyebrow{ margin-bottom: 20px; }
.hero h1{ margin-bottom: 20px; }
.hero .lede{ font-size: 18px; color: var(--text-muted); margin-bottom: 32px; }

.stat-row{
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--border);
}
@media (max-width: 700px){ .stat-row{ grid-template-columns: 1fr; } }
.stat{ }
.stat .n{
  font-family: var(--font-mono); font-variant-numeric: tabular-nums;
  font-size: 28px; font-weight: 500; color: var(--accent); display: block; margin-bottom: 4px;
}
.stat .l{ font-size: 14px; color: var(--text-muted); }

/* Tags / pills */
.tag{
  display: inline-flex; align-items: center;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em;
  padding: 3px 9px; border-radius: 6px;
  background: var(--accent-soft); color: var(--accent);
}
.tag.tag-amber{ background: var(--accent-2-soft); color: var(--accent-2); }
.tag.tag-muted{ background: var(--surface-2); color: var(--text-muted); }

/* App cards */
.app-card{
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  overflow: hidden; display: flex; flex-direction: column; height: 100%;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-normal) ease-out, border-color var(--transition-normal) ease-out, transform var(--transition-normal) ease-out;
}
.app-card:hover{ border-color: var(--accent); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.app-card .shot{
  aspect-ratio: 16/10; background: var(--surface-2);
  display: flex; align-items: center; justify-content: center;
  padding: 32px;
}
.app-card .shot img{ width: 96px; height: 96px; object-fit: contain; border-radius: 22px; display: block; }
.app-card .body{ padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.app-card h3{ margin-top: 6px; }
.app-card p{ color: var(--text-muted); font-size: 14.5px; }
.app-card .foot{ margin-top: auto; padding-top: 6px; }
.app-card.disabled{ opacity: .55; }
.app-card.disabled:hover{ border-color: var(--border); box-shadow: var(--shadow-sm); transform: none; }

.btn.disabled{ opacity: .55; pointer-events: none; }

/* Service cards */
.service-card h3{ margin-bottom: 10px; }
.service-card p{ color: var(--text-muted); font-size: 15px; }
.service-card .tag{ margin-top: 14px; }
.service-card{ transition: box-shadow var(--transition-normal) ease-out, border-color var(--transition-normal) ease-out, transform var(--transition-normal) ease-out; }
.service-card:hover{ transform: translateY(-2px); }

/* Timeline / table-ish list */
.timeline{ display: flex; flex-direction: column; gap: 0; }
.timeline-item{
  display: grid; grid-template-columns: 160px 1fr; gap: 24px;
  padding: 24px 0; border-bottom: 1px solid var(--border);
}
.timeline-item:last-child{ border-bottom: none; }
.timeline-item .when{ font-family: var(--font-mono); font-size: 12.5px; color: var(--text-muted); padding-top: 3px; }
.timeline-item h3{ margin-bottom: 6px; }
.timeline-item .role{ color: var(--accent); font-size: 14px; font-weight: 600; margin-bottom: 8px; display: block; }
@media (max-width: 640px){
  .timeline-item{ grid-template-columns: 1fr; gap: 6px; }
}

.callout{
  border-left: 3px solid var(--accent); background: var(--accent-soft);
  padding: 20px 24px; border-radius: 0 12px 12px 0; margin: 28px 0;
}
.callout p{ font-style: italic; max-width: none; font-size: 17px; }

/* Lists */
ul.plain{ list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
ul.plain li{ padding-left: 22px; position: relative; color: var(--text-muted); }
ul.plain li::before{ content: "→"; position: absolute; left: 0; color: var(--accent); }

/* Footer */
.site-footer{ border-top: 1px solid var(--border); padding: 48px 0; background: var(--bg-alt); }
.footer-inner{
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.footer-links{ display: flex; gap: 22px; }
.footer-links a{ color: var(--text-muted); font-size: 14px; font-weight: 600; transition: color var(--transition-fast) ease-out; }
.footer-links a:hover{ color: var(--text); }
.footer-note{ font-family: var(--font-mono); font-size: 12.5px; color: var(--text-muted); }

/* WhatsApp floating button */
.whatsapp-float{
  position: fixed; right: 24px; bottom: 24px; z-index: 50;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition-fast) ease-out, box-shadow var(--transition-fast) ease-out;
}
.whatsapp-float:hover{ transform: scale(1.06); text-decoration: none; box-shadow: 0 22px 50px rgba(0,0,0,0.4); }
.whatsapp-float svg{ width: 30px; height: 30px; display: block; }
@media (max-width: 480px){
  .whatsapp-float{ right: 16px; bottom: 16px; width: 50px; height: 50px; }
  .whatsapp-float svg{ width: 26px; height: 26px; }
}

/* Simple content pages (termos/privacidade) */
.doc{ max-width: 68ch; }
.doc h2{ margin-top: 40px; margin-bottom: 12px; font-size: 20px; }
.doc h2:first-child{ margin-top: 0; }
.doc p, .doc li{ color: var(--text-muted); font-size: 15.5px; margin-bottom: 12px; }
.doc-notice{
  background: var(--accent-2-soft); border: 1px solid rgba(217,154,61,0.3);
  color: var(--accent-2); border-radius: 10px; padding: 14px 18px;
  font-size: 14px; margin-bottom: 36px;
}

/* Table used in Sobre */
.table-wrap{ overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; }
table{ width: 100%; border-collapse: collapse; min-width: 480px; }
th, td{ text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--border); font-size: 14.5px; vertical-align: top; }
th{ font-family: var(--font-mono); text-transform: uppercase; font-size: 10.5px; letter-spacing: .06em; color: var(--text-muted); background: var(--surface-2); }
tr:last-child td{ border-bottom: none; }
td{ color: var(--text-muted); }
td strong{ color: var(--text); }

/* Scroll reveal */
.fade-in, .slide-in{ opacity: 0; }
.slide-in{ transform: translateY(12px); }
.fade-in.in-view{ animation: fade-in var(--transition-slow) ease-out forwards; }
.slide-in.in-view{ animation: slide-in var(--transition-slow) ease-out forwards; }

@keyframes fade-in{
  from{ opacity: 0; }
  to{ opacity: 1; }
}
@keyframes slide-in{
  from{ opacity: 0; transform: translateY(12px); }
  to{ opacity: 1; transform: translateY(0); }
}

/* Stagger leve para grids de cards */
.grid > *:nth-child(2).in-view{ animation-delay: .08s; }
.grid > *:nth-child(3).in-view{ animation-delay: .16s; }
.grid > *:nth-child(4).in-view{ animation-delay: .24s; }
.grid > *:nth-child(5).in-view{ animation-delay: .32s; }
.grid > *:nth-child(6).in-view{ animation-delay: .4s; }

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