/* ELP Consulting · elpcons.com.br · v7 · Theme 6a "Flow" (slate + amber + blue signal) */
:root {
  --bg: #171C22;
  --surface: #202832;
  --line: #36414E;
  --text: #EEF1F4;
  --soft: #8797A8;   /* second tone in headlines */
  --muted: #A5B4C3;  /* body copy, labels */
  --blue: #65A9FF;   /* product signal: flow, phase labels, lens labels */
  --flow: #4E5D6E;   /* background flow lines */
  --accent: #FFB23F; /* fills only: buttons, logo bar, cursor, active step */
  --accent-text: #FFB23F; /* accent as text (numbers) */
  --on-accent: #161B21;
  --nav-bg: rgba(32, 40, 50, 0.78);
  --glow: rgba(120, 150, 190, 0.14);
  --font: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --container: 1240px;
  --pad-x: clamp(20px, 4vw, 48px);
  --section-y: clamp(72px, 8vw, 130px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #F3F6F8;
  --surface: #FFFFFF;
  --line: #D9E1E8;
  --text: #18212B;
  --soft: #617181;
  --muted: #56636F;
  --accent: #FFAA32;
  --accent-text: #8A5100;
  --blue: #3977D4;
  --flow: #93A3B4;
  --nav-bg: rgba(255, 255, 255, 0.82);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
* { transition: background-color 600ms ease, color 600ms ease, border-color 600ms ease; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; color: inherit; }
::selection { background: rgba(255, 178, 63, 0.35); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 10px;
  background: var(--accent); color: var(--on-accent); font-weight: 600;
}
.skip-link:focus { top: 12px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 clamp(0px, 1.2vw, 22px); }
.soft { color: var(--soft); }

/* Nav */
.nav-wrap { position: sticky; top: 0; z-index: 50; padding: 14px clamp(12px, 3vw, 32px) 0; }
.nav {
  max-width: var(--container); margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px;
  padding: 10px 12px 10px 22px;
  background: var(--nav-bg);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid var(--line); border-radius: 16px;
}
.logo { display: inline-flex; align-items: center; }
.logo-svg { display: block; }
.logo-ink-stroke { stroke: var(--text); }
.logo-ink { fill: var(--text); }
.logo-bar { fill: var(--accent); }
.blue { color: var(--blue); }
.nav-links { display: flex; align-items: center; gap: 26px; font-size: 14px; color: var(--muted); }
.nav-links a { white-space: nowrap; }
.nav-links a:hover { color: var(--text); }
.nav-tools { display: flex; align-items: center; gap: 14px; }

.lang-switch { display: flex; gap: 4px; }
.lang-btn {
  font-family: var(--mono); font-size: 12px;
  background: transparent; border: 0; border-bottom: 2px solid transparent;
  color: var(--muted); padding: 4px 4px 3px; cursor: pointer;
}
.lang-btn:hover { color: var(--text); }
.lang-btn[aria-pressed="true"] { color: var(--text); border-bottom-color: var(--accent); }

.theme-toggle {
  width: 36px; height: 36px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 50%;
  background: transparent; color: var(--text); cursor: pointer;
}
.theme-toggle:hover { border-color: var(--accent); }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: block; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  font-weight: 600; font-size: 14px; padding: 10px 18px; border-radius: 11px;
  transition: transform 180ms var(--ease), background-color 600ms ease, color 600ms ease, border-color 180ms ease;
}
.btn-lg { font-size: 15px; padding: 14px 24px; border-radius: 12px; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { transform: translateY(-2px); }
.btn-ghost { border: 1px solid var(--line); font-weight: 500; }
.btn-lg.btn-ghost { padding: 13px 24px; }
.btn-ghost:hover { border-color: var(--accent); }

/* Hero */
.hero { position: relative; overflow: hidden; margin-top: -80px; padding: calc(80px + clamp(80px, 9vw, 150px)) var(--pad-x) 0; }
.hero-glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 55% 70% at 78% 30%, var(--glow), transparent 70%); }
/* Flow art: legible size, shown only when there is room beside the copy */
.hero-flow {
  position: absolute; right: 2vw; top: 96px;
  width: clamp(300px, 26vw, 440px); height: auto; pointer-events: none;
  stroke: var(--flow); stroke-width: 1.2;
}
.hero-flow text { font-family: var(--mono); font-size: 9px; letter-spacing: 1px; fill: var(--soft); stroke: none; }
.hero-flow .flow-blue { stroke: var(--blue); }
.hero-flow .flow-blue-text { fill: var(--blue); }
.hero-flow .flow-return { stroke-dasharray: 4 5; opacity: 0.6; }
.hero-flow .flow-dot { fill: var(--blue); stroke: none; }
.hero-flow .flow-end { fill: var(--accent); stroke: none; }
@media (max-width: 1279px) { .hero-flow { display: none; } }
.hero-inner { position: relative; }
.eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
}
.dot { width: 7px; height: 7px; border-radius: 2px; background: var(--accent); flex-shrink: 0; }
h1 {
  font-weight: 500; font-size: clamp(44px, calc(5.4vw + 6px), 96px);
  line-height: 1; letter-spacing: -0.05em; margin-top: 30px; max-width: 12em;
}
.cursor { display: inline-block; width: 0.42em; height: 0.09em; background: var(--accent); margin-left: 0.08em; animation: blink 1.15s step-end infinite; }
.lead { font-size: clamp(17px, calc(0.4vw + 13px), 20px); line-height: 1.6; color: var(--muted); max-width: 32em; margin-top: 30px; text-wrap: pretty; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }

.cycle {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 20px 36px;
  margin-top: clamp(72px, 8vw, 120px); padding-bottom: clamp(56px, 6vw, 88px);
}
.cycle-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); line-height: 1.6; padding-top: 14px; }
.phase { display: flex; flex-direction: column; gap: 10px; text-align: left; background: transparent; border: 0; cursor: pointer; padding: 0; }
.phase-bar { display: block; width: 100%; height: 2px; background: var(--line); }
.phase[aria-pressed="true"] .phase-bar { background: var(--accent); }
.phase-key { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue); }
.num { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.phase-title { font-weight: 500; font-size: 21px; line-height: 1.25; letter-spacing: -0.02em; }

.lenses { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 28px 36px; margin-top: 36px; }
.lens { display: flex; flex-direction: column; gap: 12px; }
.lens-key { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue); }
.lens-dot { width: 7px; height: 7px; border-radius: 2px; background: transparent; }
.lens-product .lens-key { color: var(--text); }
.lens-product .lens-dot { background: var(--accent); }
.lens-q { font-weight: 500; font-size: 22px; line-height: 1.25; letter-spacing: -0.02em; text-wrap: balance; }
.phase-desc { font-size: 14px; line-height: 1.5; color: var(--muted); }

/* Sections */
.section { padding: var(--section-y) var(--pad-x); scroll-margin-top: 90px; }
.section-tight { padding-top: 0; }
.rule-top { border-top: 1px solid var(--line); padding-top: clamp(48px, 5vw, 72px); }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr)); gap: 40px 72px; }
.label { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.label-num { color: var(--accent-text); }
h2 { font-weight: 500; font-size: clamp(32px, calc(2.2vw + 14px), 52px); line-height: 1.05; letter-spacing: -0.04em; margin-top: 22px; max-width: 18em; text-wrap: balance; }
.body { font-size: 17px; line-height: 1.7; color: var(--muted); text-wrap: pretty; }
.body + .body { margin-top: 18px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.tag { font-family: var(--mono); font-size: 12px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.tag-accent { border-color: var(--accent); color: var(--text); }

.principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 28px 40px; margin-top: 52px; }
.principle { border-top: 1px solid var(--line); padding-top: 22px; }
.principle-key { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; }
.principle p + p { font-size: 16px; line-height: 1.65; color: var(--muted); margin-top: 12px; text-wrap: pretty; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, max(420px, calc(50% - 10px))), 1fr)); gap: 20px; margin-top: 52px; }
.card { display: flex; flex-direction: column; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 30px; }
.card:hover { border-color: var(--accent); }
.card h3 { font-weight: 600; font-size: 21px; letter-spacing: -0.02em; }
.card p { font-size: 16px; line-height: 1.65; color: var(--muted); text-wrap: pretty; }

.statement-bar { display: block; width: 40px; height: 4px; border-radius: 2px; background: var(--accent); margin-bottom: 36px; }
blockquote { font-weight: 500; font-size: clamp(28px, calc(2.4vw + 12px), 54px); line-height: 1.18; letter-spacing: -0.035em; max-width: 20em; text-wrap: pretty; }
figcaption { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-top: 30px; }
.contact-title { font-size: clamp(40px, calc(4vw + 8px), 80px); line-height: 1; letter-spacing: -0.05em; max-width: none; }

.footer { padding: 0 var(--pad-x) 48px; }
.footer-inner { border-top: 1px solid var(--line); padding-top: 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.footer p { font-family: var(--mono); font-size: 12px; line-height: 1.6; color: var(--muted); text-align: right; }

/* Motion */
@keyframes blink { 0%, 55% { opacity: 1; } 56%, 100% { opacity: 0; } }
@keyframes enter { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.enter { animation: enter 0.5s var(--ease) both; }
.enter-1 { animation-delay: 0.05s; } .enter-2 { animation-delay: 0.15s; } .enter-3 { animation-delay: 0.25s; } .enter-4 { animation-delay: 0.35s; }

/* Responsive */
@media (max-width: 760px) {
  .nav-links { display: none; }
}
@media (max-width: 480px) {
  .btn-nav { display: none; }
  .nav { padding-left: 16px; }
  .footer p { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
