/* ================================================================
   ASTRA — Design System
   Tokens, componentes e utilitários
   Importar em todas as páginas do site
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:wght@300;400;500&family=DM+Mono:wght@400;500&display=swap');

/* ============================================================
   DESIGN SYSTEM TOKENS + COMPONENTS
   (all original DS styles)
============================================================ */

/* ============================================================
   ASTRA DESIGN SYSTEM — CSS TOKENS
============================================================ */
:root {
  --f:      #1A2B1C;   /* Forest Dark — headings, CTAs */
  --fm:     #2D4B38;   /* Forest Mid  — accent, links  */
  --fm2:    #435A4A;   /* Forest      — body text      */
  --fl:     #5A7A62;   /* Forest Light — secondary     */
  --mu:     #7A8E7D;   /* Muted       — labels, hints  */
  --bg:     #FAFBF9;   /* Background  — page           */
  --bg2:    #EEF3EE;   /* Surface     — cards, sections*/
  --line:   #D8E4D8;   /* Border      — dividers       */
  --wh:     #ffffff;   /* White                        */

  --font-head:  'DM Serif Display', Georgia, serif;
  --font-body:  'DM Sans', system-ui, sans-serif;
  --font-mono:  'DM Mono', monospace;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --radius-sm: 3px;
  --radius-md: 6px;
  --radius-lg: 10px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background: var(--bg); color: var(--fm2); font-weight: 300; line-height: 1.7; overflow-x: hidden; }

/* ============================================================
   TOP DS NAV
============================================================ */
.ds-top-nav {
  position: sticky; top: 0; z-index: 200;
  background: var(--f);
  padding: 0 5%;
  height: 52px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 0.5px solid rgba(255,255,255,.1);
}
.ds-top-nav .logo { display: flex; align-items: center; gap: 10px; }
.ds-top-nav .logo img { height: 26px; width: auto; }
.ds-top-nav .logo span { font-size: .75rem; color: rgba(255,255,255,.4); letter-spacing: .08em; text-transform: uppercase; }
.ds-top-nav ul { display: flex; gap: 0; list-style: none; }
.ds-top-nav ul a {
  display: block; padding: 0 16px; height: 52px; line-height: 52px;
  font-size: .72rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
  color: rgba(255,255,255,.45); text-decoration: none;
  border-left: 0.5px solid rgba(255,255,255,.08);
  transition: color .2s, background .2s;
}
.ds-top-nav ul a:hover { color: #fff; background: rgba(255,255,255,.05); }

/* ============================================================
   SITE NAV (hero clone)
============================================================ */
nav {
  position: sticky; top: 52px; z-index: 100;
  height: 64px; padding: 0 5%;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(250,251,249,.92);
  backdrop-filter: blur(12px);
  border-bottom: 0.5px solid var(--line);
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo img { height: 30px; width: auto; }
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a { font-size: .875rem; color: var(--mu); text-decoration: none; font-weight: 400; transition: color .2s; }
.nav-links a:hover { color: var(--f); }
.btn-nav { padding: 9px 20px; border-radius: var(--radius-sm); background: var(--f); color: #fff; font-size: .8rem; font-weight: 500; text-decoration: none; letter-spacing: .03em; transition: background .2s; }
.btn-nav:hover { background: var(--fm); }

/* ============================================================
   HERO
============================================================ */
#hero {
  min-height: calc(100vh - 116px);
  display: flex; align-items: center;
  padding: 80px 5% 60px;
  background: var(--wh);
  border-bottom: 0.5px solid var(--line);
}
.hero-inner { max-width: 1160px; margin: 0 auto; width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 48px; }
.hero-left { flex: 1; max-width: 540px; }
.hero-tag { display: inline-flex; align-items: center; gap: 6px; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--fm); font-weight: 600; margin-bottom: 20px; }
.hero-tag-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--fm); }
.hero-h1 { font-family: var(--font-head); font-size: clamp(2.4rem, 4.5vw, 3.5rem); font-weight: 400; line-height: 1.1; color: var(--f); letter-spacing: -.02em; margin-bottom: 20px; }
.hero-body { font-size: 1rem; line-height: 1.7; color: var(--fm2); max-width: 440px; margin-bottom: 36px; font-weight: 300; }
.hero-ctas { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.btn-primary { padding: 13px 24px; border-radius: var(--radius-sm); background: var(--f); color: #fff; font-size: .875rem; font-weight: 500; text-decoration: none; letter-spacing: .03em; transition: background .2s; display: inline-block; cursor: pointer; border: none; font-family: var(--font-body); }
.btn-primary:hover { background: var(--fm); }
.btn-secondary { padding: 12px 22px; border-radius: var(--radius-sm); border: 0.5px solid var(--line); color: var(--fm2); font-size: .875rem; text-decoration: none; transition: border-color .2s, color .2s; display: inline-block; cursor: pointer; background: none; font-family: var(--font-body); }
.btn-secondary:hover { border-color: var(--fm2); color: var(--f); }
.hero-right { display: flex; align-items: center; gap: 24px; flex-shrink: 0; }
.hero-divider { width: 1px; height: 140px; background: var(--line); }
.hero-metrics { display: flex; flex-direction: column; gap: 10px; }
.m-card { background: var(--wh); border: 0.5px solid var(--line); border-radius: var(--radius-md); padding: 14px 18px; min-width: 160px; }
.m-val { font-family: var(--font-mono); font-size: 1.5rem; font-weight: 500; line-height: 1; color: var(--f); }
.m-val.acc { color: var(--fm); }
.m-lbl { font-size: .65rem; color: var(--mu); margin-top: 5px; letter-spacing: .06em; text-transform: uppercase; }

/* ============================================================
   DS SECTIONS
============================================================ */
.ds-section { padding: 80px 5%; border-bottom: 0.5px solid var(--line); }
.ds-section:nth-child(odd) { background: var(--wh); }
.ds-section:nth-child(even) { background: var(--bg); }
.ds-section-inner { max-width: 1160px; margin: 0 auto; }
.ds-tag { font-size: .65rem; letter-spacing: .14em; text-transform: uppercase; color: var(--fm); font-weight: 600; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.ds-tag::before { content: ''; width: 20px; height: 1px; background: var(--fm); display: inline-block; }
.ds-h2 { font-family: var(--font-head); font-size: clamp(1.6rem, 2.5vw, 2.2rem); font-weight: 400; line-height: 1.15; color: var(--f); letter-spacing: -.02em; margin-bottom: 8px; }
.ds-sub { font-size: .9rem; color: var(--mu); max-width: 560px; line-height: 1.7; font-weight: 300; margin-bottom: 48px; }

/* ============================================================
   TYPOGRAPHY TABLE
============================================================ */
.typo-table { width: 100%; border-collapse: collapse; }
.typo-table tr { border-bottom: 0.5px solid var(--line); transition: background .15s; }
.typo-table tr:hover { background: var(--bg2); }
.typo-table td { padding: 20px 16px; vertical-align: middle; }
.typo-name { font-family: var(--font-mono); font-size: .7rem; font-weight: 500; color: var(--mu); text-transform: uppercase; letter-spacing: .08em; width: 14%; white-space: nowrap; }
.typo-preview { width: 66%; }
.typo-specs { font-family: var(--font-mono); font-size: .7rem; color: var(--mu); text-align: right; width: 20%; white-space: nowrap; }
.typo-token { font-family: var(--font-mono); font-size: .65rem; background: var(--bg2); color: var(--fm); padding: 2px 6px; border-radius: 3px; margin-left: 8px; }

/* ============================================================
   COLOR GRID
============================================================ */
.color-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.color-swatch { border: 0.5px solid var(--line); border-radius: var(--radius-md); overflow: hidden; background: var(--wh); }
.color-box { height: 80px; width: 100%; }
.color-info { padding: 12px 14px; }
.color-name { display: block; font-size: .8rem; font-weight: 500; color: var(--f); margin-bottom: 3px; }
.color-meta { display: flex; flex-direction: column; gap: 2px; }
.color-hex { font-family: var(--font-mono); font-size: .7rem; color: var(--mu); }
.color-token { font-family: var(--font-mono); font-size: .65rem; color: var(--fm); }

.surface-row { display: flex; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.surface-item { border: 0.5px solid var(--line); border-radius: var(--radius-md); overflow: hidden; flex: 1; min-width: 160px; }
.surface-box { height: 60px; }
.surface-label { padding: 10px 12px; font-size: .75rem; color: var(--mu); font-family: var(--font-mono); }

/* ============================================================
   COMPONENT STATES
============================================================ */
.comp-group { margin-bottom: 40px; }
.comp-label { font-family: var(--font-mono); font-size: .65rem; color: var(--mu); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px; padding-bottom: 8px; border-bottom: 0.5px solid var(--line); }
.states-row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.state-item { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.state-name { font-size: .65rem; color: var(--mu); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .06em; }

/* Metric card variants */
.m-card-lg { background: var(--wh); border: 0.5px solid var(--line); border-radius: var(--radius-md); padding: 20px 24px; min-width: 180px; }
.m-card-lg .m-val { font-size: 2rem; }

/* Input */
.field-group { display: flex; flex-direction: column; gap: 6px; max-width: 280px; }
.field-label { font-size: .75rem; font-weight: 500; color: var(--fm2); }
.field-input {
  width: 100%; padding: 10px 14px;
  border: 0.5px solid var(--line); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: .875rem; background: var(--wh);
  color: var(--f); outline: none;
  transition: border-color .2s;
}
.field-input:focus { border-color: var(--fm); }
.field-input.error { border-color: #C44B4B; }
.field-input:disabled { background: var(--bg2); color: var(--mu); cursor: not-allowed; }

/* Tag / Badge */
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: .6rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 2px; }
.badge-forest { background: var(--bg2); color: var(--fm); }
.badge-muted { background: var(--bg); color: var(--mu); border: 0.5px solid var(--line); }
.badge-dark { background: var(--f); color: #fff; }

/* ============================================================
   SERVICES TABLE (pattern)
============================================================ */
.services-table { width: 100%; border-collapse: collapse; margin-top: 24px; }
.services-table th { font-family: var(--font-mono); font-size: .65rem; text-transform: uppercase; letter-spacing: .08em; color: var(--mu); font-weight: 500; padding: 10px 16px; text-align: left; border-bottom: 0.5px solid var(--line); }
.services-table td { padding: 18px 16px; border-bottom: 0.5px solid var(--line); vertical-align: top; font-size: .875rem; }
.services-table tr:hover td { background: var(--bg2); }
.svc-name { font-weight: 500; color: var(--f); }
.svc-sub { font-size: .75rem; color: var(--mu); margin-top: 4px; line-height: 1.5; }
.svc-tags { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 8px; }

/* ============================================================
   CASES TABLE
============================================================ */
.cases-table { width: 100%; border-collapse: collapse; margin-top: 24px; }
.cases-table th { font-family: var(--font-mono); font-size: .65rem; text-transform: uppercase; letter-spacing: .08em; color: var(--mu); font-weight: 500; padding: 10px 16px; text-align: left; border-bottom: 1px solid var(--line); background: var(--bg2); }
.cases-table td { padding: 16px; border-bottom: 0.5px solid var(--line); font-size: .875rem; vertical-align: middle; }
.cases-table tr:hover td { background: var(--bg2); }
.metric-inline { font-family: var(--font-mono); font-size: 1.1rem; font-weight: 500; color: var(--fm); }
.bar-track { background: var(--line); border-radius: 2px; height: 4px; margin-top: 6px; overflow: hidden; width: 100px; }
.bar-fill { height: 100%; border-radius: 2px; background: var(--fm); }

/* ============================================================
   LAYOUT PATTERNS
============================================================ */
.layout-demo { border: 0.5px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 24px; }
.layout-label { font-family: var(--font-mono); font-size: .65rem; color: var(--mu); letter-spacing: .08em; text-transform: uppercase; padding: 10px 14px; background: var(--bg2); border-bottom: 0.5px solid var(--line); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); }
.grid-cell { background: var(--wh); padding: 20px; }
.grid-cell .num { font-family: var(--font-mono); font-size: .7rem; color: var(--mu); margin-bottom: 8px; }
.grid-cell .title { font-family: var(--font-head); font-size: 1rem; color: var(--f); }
.grid-cell .body { font-size: .8rem; color: var(--mu); margin-top: 6px; font-weight: 300; }

.split-demo { display: flex; background: var(--wh); }
.split-left { flex: 1; padding: 28px; }
.split-right { width: 200px; flex-shrink: 0; background: var(--bg2); padding: 20px; border-left: 0.5px solid var(--line); }

/* ============================================================
   MOTION GALLERY
============================================================ */
.motion-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-top: 24px; }
.motion-card { border: 0.5px solid var(--line); border-radius: var(--radius-md); padding: 24px 20px; background: var(--wh); display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.motion-title { font-size: .8rem; font-weight: 500; color: var(--f); }
.motion-desc { font-size: .75rem; color: var(--mu); line-height: 1.5; }
.motion-token { font-family: var(--font-mono); font-size: .65rem; color: var(--fm); background: var(--bg2); padding: 2px 6px; border-radius: 3px; }
.hover-lift { transition: transform .25s var(--ease); }
.hover-lift:hover { transform: translateY(-4px); }
.hover-border { transition: border-color .2s; }
.hover-border:hover { border-color: var(--fm); }
.hover-bg { transition: background .2s; }
.hover-bg:hover { background: var(--bg2); }

/* ============================================================
   DATA VIZ
============================================================ */
.chart-card { border: 0.5px solid var(--line); border-radius: var(--radius-lg); background: var(--wh); overflow: hidden; }
.chart-header { padding: 20px 24px; border-bottom: 0.5px solid var(--line); display: flex; align-items: flex-start; justify-content: space-between; }
.chart-title { font-family: var(--font-head); font-size: 1.1rem; color: var(--f); }
.chart-sub { font-family: var(--font-mono); font-size: .65rem; color: var(--mu); text-transform: uppercase; letter-spacing: .06em; margin-top: 2px; }
.chart-body { padding: 24px; }
.chart-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 24px; }
.stat-badges { display: flex; gap: 16px; }
.stat-b { }
.stat-b-val { font-family: var(--font-mono); font-size: 1.4rem; font-weight: 500; color: var(--f); }
.stat-b-lbl { font-size: .65rem; color: var(--mu); text-transform: uppercase; letter-spacing: .05em; margin-top: 2px; }

/* Sparkline bars */
.spark-bars { display: flex; align-items: flex-end; gap: 3px; height: 48px; }
.spark-bar { border-radius: 2px 2px 0 0; flex: 1; transition: opacity .2s; }
.spark-bar:hover { opacity: .7; }

/* ============================================================
   STEP / PROCESS
============================================================ */
.step-list { border: 0.5px solid var(--line); border-radius: var(--radius-md); overflow: hidden; }
.step-row { display: flex; align-items: flex-start; gap: 24px; padding: 22px 24px; border-bottom: 0.5px solid var(--line); background: var(--wh); transition: background .15s; }
.step-row:last-child { border-bottom: none; }
.step-row:hover { background: var(--bg); }
.step-n { font-family: var(--font-mono); font-size: .7rem; color: var(--mu); padding-top: 2px; min-width: 20px; }
.step-title { font-size: .9rem; font-weight: 500; color: var(--f); }
.step-body { font-size: .8rem; color: var(--mu); line-height: 1.6; margin-top: 4px; font-weight: 300; }
.step-chip { display: inline-block; margin-top: 8px; font-size: .6rem; letter-spacing: .06em; text-transform: uppercase; padding: 2px 8px; background: var(--bg2); color: var(--fm); border-radius: 2px; }

/* ============================================================
   FOOTER
============================================================ */
footer { padding: 32px 5%; background: var(--f); border-top: 0.5px solid rgba(255,255,255,.08); }
.footer-inner { max-width: 1160px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-logo img { height: 50px; filter: brightness(0) invert(1); opacity: .4; }
.footer-copy { font-size: .7rem; color: rgba(255,255,255,.25); }


/* ============================================================
   HERO OVERRIDES — sticky nav floats above DS top nav
============================================================ */

:root {
  --f:#1A2B1C; --fm:#2D4B38; --fm2:#435A4A; --fl:#5A7A62;
  --mu:#7A8E7D; --bg:#FAFBF9; --bg2:#EEF3EE; --line:#D8E4D8; --wh:#ffffff;
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{font-family:'DM Sans',system-ui,sans-serif;background:var(--wh);color:var(--fm2);font-weight:300;line-height:1.7;overflow-x:hidden}

/* NAV */
nav{
  position:sticky;top:0;z-index:100;
  height:84px;padding:0 5%;
  display:flex;align-items:center;justify-content:space-between;
  background:rgba(250,251,249,.95);backdrop-filter:blur(12px);
  border-bottom:0.5px solid var(--line);
}
.nav-logo{display:flex;align-items:center;gap:10px;margin-left:12%}
.nav-logo img{height:100px;width:auto}
.nav-links{display:flex;gap:28px;list-style:none}
.nav-links a{font-size:1rem;color:var(--mu);text-decoration:none;font-weight:400;transition:color .2s}
.nav-links a:hover{color:var(--f)}
.btn-nav{padding:11px 24px;border-radius:3px;background:var(--f);color:#fff;font-size:.9rem;font-weight:500;text-decoration:none;letter-spacing:.03em;transition:background .2s;}
.btn-nav:hover{background:var(--fm)}

/* HERO */
#hero{
  min-height:calc(100vh - 64px);
  display:flex;flex-direction:column;
  background:var(--wh);
  border-bottom:0.5px solid var(--line);
  overflow:hidden;
  position:relative;
}
.hero-main{
  flex:1;
  display:flex;align-items:center;
  padding:60px 5% 40px;
  gap:48px;
  max-width:1240px;margin:0 auto;width:100%;
  position:relative;z-index:2;
}

/* LEFT */
.hero-left{flex:1;max-width:520px;display:flex;flex-direction:column;gap:0}
.hero-badge{
  display:inline-flex;align-items:center;gap:6px;
  font-size:.68rem;letter-spacing:.1em;text-transform:uppercase;
  color:var(--fm);font-weight:600;
  background:var(--bg2);border:0.5px solid var(--line);
  padding:5px 12px;border-radius:20px;
  margin-bottom:20px;width:fit-content;
}
.badge-dot{width:6px;height:6px;border-radius:50%;background:var(--fm);flex-shrink:0}
.badge-dot.live{animation:pulse 2s infinite}
@keyframes pulse{0%,100%{opacity:1}50%{opacity:.4}}
.hero-h1{
  font-family:'DM Serif Display',Georgia,serif;
  font-size:clamp(2.6rem,4.8vw,3.8rem);
  font-weight:400;line-height:1.05;
  color:var(--f);letter-spacing:-.02em;
  margin-bottom:18px;
}
.hero-body{
  font-size:1rem;line-height:1.72;color:var(--fm2);
  max-width:420px;margin-bottom:28px;font-weight:300;
}
.hero-ctas{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-bottom:32px}
.btn-primary{
  padding:13px 24px;border-radius:3px;background:var(--f);color:#fff;
  font-size:.875rem;font-weight:500;text-decoration:none;letter-spacing:.03em;
  transition:background .2s;display:inline-block;cursor:pointer;border:none;
  font-family:'DM Sans',sans-serif;
}
.btn-primary:hover{background:var(--fm)}
.btn-secondary{
  padding:12px 22px;border-radius:3px;border:0.5px solid var(--line);
  color:var(--fm2);font-size:.875rem;text-decoration:none;
  transition:border-color .2s,color .2s;display:inline-block;
}
.btn-secondary:hover{border-color:var(--fm2);color:var(--f)}

/* TRUST STRIP */
.trust-strip{
  display:flex;align-items:center;gap:20px;
  padding-top:20px;border-top:0.5px solid var(--line);
  flex-wrap:wrap;
}
.trust-label{font-size:.65rem;letter-spacing:.1em;text-transform:uppercase;color:var(--mu);font-weight:500;white-space:nowrap}
.trust-names{display:flex;gap:16px;flex-wrap:wrap}
.trust-name{font-size:.8rem;color:var(--mu);opacity:.55;font-weight:400}

/* RIGHT — brain canvas */
.hero-right{
  position:absolute;
  right:0;top:0;bottom:0;
  width:58%;
  pointer-events:none;
}
#brain-canvas-wrap{
  position:absolute;
  inset:0;
  background:radial-gradient(circle at 55% 48%, rgba(45,75,56,.04), transparent 45%);
}
#brain-loading{
  position:absolute;top:50%;left:50%;
  transform:translate(-50%,-50%);
  font-size:.7rem;color:var(--mu);letter-spacing:.08em;
  text-transform:uppercase;pointer-events:none;
  transition:opacity .8s;
}

/* TOAST */
.toast{
  position:absolute;
  bottom:80px;left:-10px;
  background:var(--wh);border:0.5px solid var(--line);
  border-radius:10px;padding:10px 14px;
  box-shadow:0 8px 24px rgba(26,43,28,.10);
  display:flex;align-items:center;gap:10px;
  min-width:220px;
  animation:floatUp 3s ease-in-out infinite;
  z-index:10;pointer-events:auto;
}
@keyframes floatUp{
  0%,100%{transform:translateY(0)}
  50%{transform:translateY(-6px)}
}
.toast-icon{
  width:32px;height:32px;border-radius:8px;
  background:var(--bg2);display:flex;align-items:center;justify-content:center;
  flex-shrink:0;font-size:1rem;
}
.toast-title{font-size:.75rem;font-weight:500;color:var(--f);line-height:1.2}
.toast-sub{font-size:.65rem;color:var(--mu);margin-top:2px}
.toast-val{font-family:'DM Mono',monospace;font-size:.8rem;font-weight:500;color:var(--fm)}

/* BOTTOM BAR */
.hero-bottom{
  border-top:0.5px solid var(--line);
  padding:18px 5%;
  background:var(--bg);
  display:flex;align-items:center;
  gap:40px;flex-wrap:wrap;
  position:relative;z-index:2;
}
.hero-bottom-inner{
  max-width:1240px;margin:0 auto;width:100%;
  display:flex;align-items:center;gap:48px;flex-wrap:wrap;
}
.hb-stat{display:flex;align-items:baseline;gap:8px}
.hb-val{font-family:'DM Mono',monospace;font-size:1.1rem;font-weight:500;color:var(--f)}
.hb-lbl{font-size:.7rem;color:var(--mu);letter-spacing:.04em}
.hb-div{width:1px;height:24px;background:var(--line)}
.hb-cfm{
  display:flex;align-items:center;gap:8px;
  font-size:.7rem;color:var(--mu);margin-left:auto;
}
.cfm-badge{
  font-size:.62rem;font-weight:600;letter-spacing:.06em;text-transform:uppercase;
  padding:3px 10px;border-radius:20px;
  background:var(--bg2);color:var(--fm);
  border:0.5px solid var(--line);
}


/* DS top nav sits at very top, hero site-nav below it */
.ds-top-nav {
  position: sticky;
  top: 0;
  z-index: 200;
}
nav {
  position: sticky;
  top: 52px;    /* height of ds-top-nav */
  z-index: 100;
}
#hero {
  min-height: calc(100vh - 136px); /* 52px ds-nav + 84px site-nav */
}


/* ── NOVOS COMPONENTES (trafego-medico page) ─────────────── */

.toast-av {width:32px;height:32px;border-radius:8px;background:var(--bg2);display:flex;align-items:center;justify-content:center;flex-shrink:0;font-size:.7rem;font-weight:600;color:var(--fm)}

.hb-inner {max-width:1240px;margin:0 auto;display:flex;align-items:center;flex-wrap:wrap;gap:0}

.hb-badges {display:flex;gap:8px}

.hb-badge {font-size:.6rem;font-weight:600;letter-spacing:.06em;text-transform:uppercase;padding:3px 10px;border-radius:20px;background:var(--bg2);color:var(--fm);border:.5px solid var(--line)}
/* ── SECTION BASE ─────────────────────────────────────────── */
.section {padding:96px 5%}

.section-inner {max-width:1160px;margin:0 auto}

.section--alt {background:var(--bg)}

.section--dark {background:var(--f);border-top:.5px solid rgba(255,255,255,.08);border-bottom:.5px solid rgba(255,255,255,.08)}

.section-tag {font-size:.65rem;letter-spacing:.14em;text-transform:uppercase;color:var(--fm);font-weight:600;margin-bottom:12px;display:flex;align-items:center;gap:8px}

.section-tag::before {content:'';width:20px;height:1px;background:var(--fm);display:inline-block}

.section-h2 {font-family:var(--font-head);font-size:clamp(1.8rem,3vw,2.4rem);font-weight:400;line-height:1.15;color:var(--f);letter-spacing:-.02em;margin-bottom:14px}

.section-sub {font-size:.95rem;color:var(--mu);max-width:560px;line-height:1.7;font-weight:300;margin-bottom:52px}

.section--dark .section-tag {color:var(--fl)}

.section--dark .section-tag::before {background:var(--fl)}

.section--dark .section-h2 {color:var(--wh)}

.section--dark .section-sub {color:var(--fl)}
/* ── POR QUE FUNCIONA (grid de vantagens) ─────────────────── */
.features-grid {display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:1px;background:var(--line);border:.5px solid var(--line);border-radius:8px;overflow:hidden;margin-top:0}

.feature-card {background:var(--wh);padding:32px 28px;transition:background .2s}

.feature-card:hover {background:var(--bg)}

.feature-num {font-family:var(--font-mono);font-size:.7rem;color:var(--mu);margin-bottom:16px;letter-spacing:.06em}

.feature-title {font-family:var(--font-head);font-size:1.1rem;color:var(--f);margin-bottom:10px}

.feature-body {font-size:.875rem;color:var(--mu);line-height:1.6;font-weight:300}
/* ── PLATAFORMAS ──────────────────────────────────────────── */
.platforms-grid {display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-top:0}

.platform-card {border:.5px solid var(--line);border-radius:8px;padding:28px 24px;background:var(--wh);transition:border-color .2s,background .2s}

.platform-card:hover {background:var(--bg2);border-color:var(--fm)}

.platform-icon {font-size:1.5rem;margin-bottom:14px}

.platform-title {font-family:var(--font-head);font-size:1.2rem;color:var(--f);margin-bottom:10px}

.platform-body {font-size:.875rem;color:var(--mu);line-height:1.6;font-weight:300;margin-bottom:16px}

.platform-link {font-size:.78rem;font-weight:500;color:var(--fm);text-decoration:none;letter-spacing:.04em}
/* ── SPLIT (foto + texto) ─────────────────────────────────── */
.split {display:grid;grid-template-columns:1fr 1fr;gap:64px;align-items:center}

.split--reverse .split-img {order:2}

.split--reverse .split-text {order:1}

.split-img {border-radius:8px;overflow:hidden;border:.5px solid var(--line);background:var(--bg2);aspect-ratio:4/3;display:flex;align-items:center;justify-content:center}

.split-img img {width:100%;height:100%;object-fit:cover}

.split-img-placeholder {display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;color:var(--mu);font-size:.75rem;letter-spacing:.08em;text-transform:uppercase;padding:40px}

.split-img-icon {font-size:2.5rem;opacity:.3}

.split-text .section-tag {margin-bottom:14px}

.split-text .section-h2 {margin-bottom:14px}

.split-stat-row {display:flex;gap:32px;margin-top:28px;padding-top:24px;border-top:.5px solid var(--line)}

.split-stat-val {font-family:var(--font-mono);font-size:1.4rem;font-weight:500;color:var(--f)}

.split-stat-lbl {font-size:.68rem;color:var(--mu);text-transform:uppercase;letter-spacing:.05em;margin-top:3px}
/* ── CASE DE SUCESSO ─────────────────────────────────────────*/
.case-card {border:.5px solid var(--line);border-radius:10px;overflow:hidden;background:var(--wh)}

.case-header {padding:24px 28px;border-bottom:.5px solid var(--line);background:var(--bg2);display:flex;align-items:center;justify-content:space-between}

.case-header-title {font-size:.8rem;font-weight:500;color:var(--f)}

.case-header-tag {font-size:.62rem;font-weight:600;letter-spacing:.06em;text-transform:uppercase;padding:3px 10px;border-radius:20px;background:var(--bg2);color:var(--fm);border:.5px solid var(--line)}

.case-body {padding:28px;display:grid;grid-template-columns:1fr 1fr 1fr;gap:24px;align-items:start}

.case-metric-val {font-family:var(--font-mono);font-size:1.8rem;font-weight:500;color:var(--f);line-height:1}

.case-metric-lbl {font-size:.65rem;color:var(--mu);text-transform:uppercase;letter-spacing:.06em;margin-top:4px}

.case-metric-acc {color:var(--fm)}

.case-quote {border-left:2px solid var(--fm);padding-left:18px;grid-column:span 2}

.case-quote p {font-size:.9rem;color:var(--fm2);line-height:1.65;font-style:italic;font-weight:300}

.case-cta-wrap {margin-top:28px;display:flex;align-items:center;gap:16px}

.case-cta-text {font-size:.875rem;color:var(--mu)}
/* ── TESTEMUNHOS ──────────────────────────────────────────── */
.testimonials-grid {display:grid;grid-template-columns:repeat(3,1fr);gap:20px}

.testi-card {border:.5px solid var(--line);border-radius:8px;padding:24px 22px;background:var(--wh);transition:background .2s}

.testi-card:hover {background:var(--bg2)}

.testi-stars {display:flex;gap:3px;margin-bottom:14px}

.testi-star {color:var(--fm);font-size:.85rem}

.testi-text {font-size:.9rem;color:var(--fm2);line-height:1.65;font-style:italic;font-weight:300;margin-bottom:16px}

.testi-author {font-size:.8rem;font-weight:500;color:var(--f)}

.testi-role {font-size:.72rem;color:var(--mu);margin-top:2px}
/* ── FAQ ──────────────────────────────────────────────────── */
.faq-list {border:.5px solid var(--line);border-radius:8px;overflow:hidden}

.faq-item {border-bottom:.5px solid var(--line)}

.faq-item:last-child {border-bottom:none}

.faq-q {
  width:100%;text-align:left;background:none;border:none;
  padding:20px 24px;cursor:pointer;
  display:flex;align-items:center;justify-content:space-between;
  font-family:var(--font-body);font-size:.95rem;font-weight:500;color:var(--f);
  transition:background .15s;
}

.faq-q:hover {background:var(--bg2)}

.faq-icon {flex-shrink:0;width:20px;height:20px;border-radius:50%;border:.5px solid var(--line);display:flex;align-items:center;justify-content:center;font-size:.75rem;color:var(--mu);transition:transform .25s,background .2s;margin-left:16px}

.faq-item.open .faq-icon {transform:rotate(45deg);background:var(--bg2)}

.faq-a {max-height:0;overflow:hidden;transition:max-height .35s ease,padding .25s;padding:0 24px;font-size:.875rem;color:var(--mu);line-height:1.7;font-weight:300}

.faq-item.open .faq-a {max-height:400px;padding:0 24px 20px}
/* ── CTA FINAL ───────────────────────────────────────────── */
.cta-section {padding:96px 5%;background:var(--f)}

.cta-inner {max-width:720px;margin:0 auto;text-align:center}

.cta-tag {font-size:.65rem;letter-spacing:.12em;text-transform:uppercase;color:var(--fl);font-weight:600;margin-bottom:18px;display:flex;align-items:center;justify-content:center;gap:8px}

.cta-tag::before,.cta-tag::after {content:'';width:20px;height:1px;background:var(--fl);display:inline-block}

.cta-h2 {font-family:var(--font-head);font-size:clamp(1.8rem,3.5vw,2.8rem);font-weight:400;line-height:1.15;color:var(--wh);letter-spacing:-.02em;margin-bottom:14px}

.cta-body {font-size:.95rem;color:var(--fl);line-height:1.7;margin-bottom:36px;font-weight:300}

.cta-actions {display:flex;gap:12px;justify-content:center;flex-wrap:wrap}

.btn-cta-p {padding:14px 28px;border-radius:3px;background:var(--wh);color:var(--f);font-size:.875rem;font-weight:500;text-decoration:none;letter-spacing:.03em;transition:background .2s;display:inline-block}

.btn-cta-p:hover {background:var(--bg2)}

.btn-cta-g {padding:13px 26px;border-radius:3px;border:.5px solid rgba(255,255,255,.25);color:rgba(255,255,255,.7);font-size:.875rem;text-decoration:none;transition:all .2s;display:inline-block}

.btn-cta-g:hover {border-color:rgba(255,255,255,.6);color:#fff}

.footer-links {display:flex;gap:24px}

.footer-links a {font-size:.75rem;color:rgba(255,255,255,.3);text-decoration:none;transition:color .2s}

.footer-links a:hover {color:rgba(255,255,255,.6)}

/* Ajustes de posicionamento (preservados do DS final) */
.ds-top-nav {
  position: sticky;
  top: 0;
  z-index: 200;
}
nav {
  position: sticky;
  top: 52px;
  z-index: 100;
}
#hero {
  min-height: calc(100vh - 136px);
}


/* ── Desktop: esconde elementos apenas mobile ─────────────── */
@media (min-width: 769px) {
  .nav-right-mobile { display: none !important; }
  .nav-dropdown { display: none !important; }
  .nav-right-desktop { display: flex; align-items: center; gap: 16px; margin-right: 7%; }
  .nav-right-desktop .btn-nav {
  align-self: center;
  height: auto;
  line-height: normal;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
}

/* ============================================================
   RESPONSIVE — Mobile (max-width: 768px)
   Breakpoint: 768px
   Estratégia:
   - Nav: hambúrguer + dropdown, mantém CTA + social icons
   - Hero: cérebro atrás do H1 com blur, layout empilhado
   - Seções: grid → coluna única, split → coluna única
   - Bottom bar: scroll horizontal em vez de wrap
============================================================ */

@media (max-width: 768px) {

  /* ── NAV ──────────────────────────────────────────────── */
  nav {
    height: 64px;
    padding: 0 5%;
    position: relative;  /* para o dropdown se posicionar abaixo */
  }

  /* Esconde os links no nav principal */
  .nav-links {
    display: none;
  }

  /* Logo menor no mobile */
  .nav-logo { margin-left: 0; }
  .nav-logo img { height: 52px; }

  /* Agrupa CTA + social + hambúrguer à direita — só mobile */
  .nav-right-mobile {
    display: flex !important;
    align-items: center;
    gap: 12px;
    margin-left: auto;
  }

  /* Botão CTA menor */
  .btn-nav {
    padding: 8px 14px;
    font-size: .78rem;
    margin-right: 0;
  }


  /* Esconde wrapper desktop no mobile */
  .nav-right-desktop { display: none !important; }

  /* Hambúrguer */
  .nav-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
    flex-shrink: 0;
  }
  .nav-hamburger span {
    display: block;
    width: 100%;
    height: 1.5px;
    background: var(--f);
    border-radius: 2px;
    transition: transform .25s, opacity .2s;
  }
  /* Hambúrguer → X quando aberto */
  .nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav-hamburger.open span:nth-child(2) { opacity: 0; }
  .nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

  /* Dropdown menu */
  .nav-dropdown {
    display: none;
    position: absolute;
    top: 64px;
    left: 0; right: 0;
    background: rgba(250,251,249,.98);
    backdrop-filter: blur(12px);
    border-bottom: .5px solid var(--line);
    padding: 8px 0;
    z-index: 99;
    flex-direction: column;
  }
  .nav-dropdown.open { display: flex; }
  .nav-dropdown a {
    padding: 14px 5%;
    font-size: .95rem;
    color: var(--fm2);
    text-decoration: none;
    font-weight: 400;
    border-bottom: .5px solid var(--line);
    transition: background .15s, color .15s;
  }
  .nav-dropdown a:last-child { border-bottom: none; }
  .nav-dropdown a:hover { background: var(--bg2); color: var(--f); }

  /* ── HERO ──────────────────────────────────────────────── */
  #hero {
    min-height: 100svh;
  }

  .hero-main {
    flex-direction: column;
    padding: 40px 5% 32px;
    gap: 0;
    position: relative;
  }

  /* Cérebro: posição absoluta atrás do H1 */
  .hero-right {
    position: absolute;
    top: 40px;
    left: 0; right: 0;
    width: 100%;
    height: 380px;
    pointer-events: none;
    z-index: 0;
  }
  #brain-canvas-wrap {
    position: absolute;
    inset: 0;
  }

  /* Hero-left: em cima do cérebro */
  .hero-left {
    position: relative;
    z-index: 2;
    max-width: 100%;
    padding-right: 0;
  }

  /* Badge menor */
  .hero-badge {
    font-size: .6rem;
    padding: 4px 10px;
    margin-bottom: 16px;
  }

  /* H1 mobile — sem blur, apenas tamanho ajustado */
  .hero-h1 {
    font-size: clamp(2.2rem, 8vw, 3rem);
    margin-bottom: 14px;
  }

  /* Gradiente suave sobre o cérebro para criar contraste com o texto */
  .hero-right::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
      to right,
      rgba(250,251,249,1) 0%,
      rgba(250,251,249,0.7) 40%,
      rgba(250,251,249,0) 100%
    );
    z-index: 1;
    pointer-events: none;
  }

  /* Body, CTAs e trust abaixo — fundo limpo */
  .hero-body {
    font-size: .9rem;
    margin-bottom: 20px;
    max-width: 100%;
    margin-top: 200px; /* empurra para baixo do cérebro */
    background: var(--wh);
    padding: 0;
  }

  .hero-ctas {
    margin-bottom: 24px;
  }
  .hero-ctas .btn-primary,
  .hero-ctas .btn-secondary {
    width: 100%;
    text-align: center;
    padding: 14px 20px;
  }

  /* Toast escondido no mobile */
  .toast { display: none; }

  /* Trust strip */
  .trust-strip {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .trust-names {
    gap: 10px;
  }

  /* ── BOTTOM BAR ──────────────────────────────────────── */
  .hero-bottom {
    padding: 14px 5%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .hb-inner {
    gap: 0;
    flex-wrap: nowrap;
    min-width: max-content;
  }
  .hb-stat {
    padding-right: 20px;
    margin-right: 20px;
    white-space: nowrap;
  }
  .hb-badges { display: none; }

  /* ── SEÇÕES GERAIS ───────────────────────────────────── */
  .section { padding: 64px 5%; }
  .section-inner { max-width: 100%; }
  .section-h2 { font-size: clamp(1.5rem, 5vw, 2rem); }
  .section-sub { margin-bottom: 32px; }

  /* ── FEATURES GRID → 1 coluna ────────────────────────── */
  .features-grid {
    grid-template-columns: 1fr;
  }

  /* ── PLATFORMS GRID → 1 coluna ───────────────────────── */
  .platforms-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* ── SPLIT → empilhado ───────────────────────────────── */
  .split {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .split--reverse .split-img { order: 0; }
  .split--reverse .split-text { order: 1; }
  .split-stat-row {
    gap: 16px;
  }

  /* ── TESTIMONIALS → 1 coluna ─────────────────────────── */
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* ── CASE CARD ───────────────────────────────────────── */
  .case-body {
    grid-template-columns: 1fr 1fr;
  }
  .case-quote {
    grid-column: 1 / -1;
  }

  /* ── FOOTER ──────────────────────────────────────────── */
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .footer-links {
    flex-wrap: wrap;
    gap: 12px 20px;
  }

  /* ── MODAL ───────────────────────────────────────────── */
  #modal {
    padding: 32px 24px;
  }
}
