/* ==========================================================================
   omarcelomenezes.com — Marcelo Menezes | Consultoria de SEO
   HTML5 + CSS + JS puro. Sem framework, sem build.
   ========================================================================== */

/* --- Tokens ------------------------------------------------------------- */
:root {
  --bg:            #ffffff;
  --bg-alt:        #f6f6f4;
  --surface:       #ffffff;
  --text:          #12140f;
  --text-soft:     #55584f;
  --line:          #e3e3de;
  --accent:        #1f5f3f;
  --accent-soft:   #e8f2ec;
  --accent-text:   #ffffff;

  --wrap:      1160px;
  --wrap-narrow: 780px;
  --radius:    14px;
  --radius-sm: 8px;

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 28px rgba(0,0,0,.06);
  --ease: cubic-bezier(.22,.61,.36,1);
}

:root[data-theme="dark"] {
  --bg:          #0d0f0d;
  --bg-alt:      #141712;
  --surface:     #171a15;
  --text:        #eef0ea;
  --text-soft:   #a2a89b;
  --line:        #2a2e27;
  --accent:      #7fd6a3;
  --accent-soft: #17281f;
  --accent-text: #0d0f0d;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 34px rgba(0,0,0,.5);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:          #0d0f0d;
    --bg-alt:      #141712;
    --surface:     #171a15;
    --text:        #eef0ea;
    --text-soft:   #a2a89b;
    --line:        #2a2e27;
    --accent:      #7fd6a3;
    --accent-soft: #17281f;
    --accent-text: #0d0f0d;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 34px rgba(0,0,0,.5);
  }
}

/* --- Reset -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background .25s var(--ease), color .25s var(--ease);
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

code {
  font-family: var(--font-mono);
  font-size: .88em;
  background: var(--accent-soft);
  color: var(--accent);
  padding: .1em .38em;
  border-radius: 5px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--accent-text);
  padding: .7rem 1.1rem;
  z-index: 200;
}
.skip:focus { left: 8px; top: 8px; }

/* --- Typography --------------------------------------------------------- */
h1, h2, h3 {
  line-height: 1.12;
  letter-spacing: -.025em;
  font-weight: 640;
  text-wrap: balance;
}
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.25rem; letter-spacing: -.015em; }
p  { text-wrap: pretty; }
p + p { margin-top: 1rem; }

.eyebrow {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .85rem;
}

/* --- Layout ------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 24px;
}
.wrap-narrow { max-width: var(--wrap-narrow); }

.section { padding-block: clamp(64px, 9vw, 118px); }
.section-alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--line);
}

.section-head { max-width: 640px; margin-bottom: 3rem; }
.section-sub { color: var(--text-soft); margin-top: 1rem; }

.grid-2 {
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .grid-2 { grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); }
}

/* --- Header ------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.site-header.is-stuck { border-bottom-color: var(--line); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
}

.brand {
  font-weight: 680;
  letter-spacing: -.03em;
  text-decoration: none;
  font-size: 1.02rem;
  white-space: nowrap;
}
.brand-dot { color: var(--accent); }

.nav ul {
  display: flex;
  align-items: center;
  gap: 1.7rem;
  list-style: none;
  padding: 0;
}
.nav a {
  text-decoration: none;
  font-size: .93rem;
  color: var(--text-soft);
  position: relative;
  padding-block: 4px;
  transition: color .18s var(--ease);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s var(--ease);
}
.nav a:hover { color: var(--text); }
.nav a.is-active { color: var(--text); }
.nav a.is-active::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: .4rem; }

.icon-btn {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background .18s var(--ease), border-color .18s var(--ease);
}
.icon-btn:hover { background: var(--bg-alt); border-color: var(--text-soft); }

.icon-moon { display: none; }
:root[data-theme="dark"] .icon-sun  { display: none; }
:root[data-theme="dark"] .icon-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-sun  { display: none; }
  :root:not([data-theme="light"]) .icon-moon { display: block; }
}

.nav-toggle { display: none; }
.bars, .bars::before, .bars::after {
  display: block;
  width: 16px; height: 1.7px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .22s var(--ease), opacity .18s var(--ease);
}
.bars { position: relative; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -5px; }
.bars::after  { top: 5px; }

.nav-open .bars { background: transparent; }
.nav-open .bars::before { transform: translateY(5px) rotate(45deg); }
.nav-open .bars::after  { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: grid; }
  .nav {
    position: fixed;
    inset: 68px 0 auto 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 1rem 24px 1.6rem;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s var(--ease), transform .2s var(--ease);
  }
  .nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav ul { flex-direction: column; align-items: flex-start; gap: .35rem; }
  .nav a { font-size: 1.05rem; padding-block: .6rem; display: block; }
}

/* --- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .82rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: .95rem;
  font-weight: 550;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s var(--ease), background .18s var(--ease),
              border-color .18s var(--ease), opacity .18s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--accent); color: var(--accent-text); }
.btn-primary:hover { opacity: .9; }

.btn-ghost { border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--text); background: var(--bg-alt); }

.btn-ext {
  font-size: .9em;
  line-height: 1;
  transition: transform .18s var(--ease);
}
.btn:hover .btn-ext { transform: translate(2px, -2px); }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* --- Hero --------------------------------------------------------------- */
.hero { padding-top: clamp(56px, 9vw, 104px); padding-bottom: 0; }

.hero-title {
  font-size: clamp(2.5rem, 6.5vw, 4.4rem);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1;
  margin-bottom: 1.3rem;
}

.hero-tagline {
  font-size: clamp(1.15rem, 2.6vw, 1.75rem);
  font-weight: 550;
  letter-spacing: -.02em;
  line-height: 1.3;
  max-width: 720px;
  margin-bottom: 1.4rem;
  text-wrap: balance;
}

.rotator {
  display: inline-grid;
  vertical-align: bottom;
}
.rotator-item {
  grid-area: 1 / 1;
  color: var(--accent);
  opacity: 0;
  transform: translateY(.35em);
  transition: opacity .38s var(--ease), transform .38s var(--ease);
}
.rotator-item.is-active { opacity: 1; transform: none; }

.hero-lead {
  max-width: 640px;
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
  color: var(--text-soft);
}
.hero-lead strong { color: var(--text); font-weight: 600; }

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 2.2rem;
}

/* Marquee */
.marquee {
  margin-top: clamp(56px, 8vw, 96px);
  border-block: 1px solid var(--line);
  padding-block: 1rem;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 2rem;
  width: max-content;
  animation: marquee 34s linear infinite;
  font-size: .9rem;
  font-weight: 550;
  letter-spacing: .02em;
  color: var(--text-soft);
  white-space: nowrap;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* --- Stats -------------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 2.6rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.stat-num {
  display: block;
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  font-weight: 660;
  letter-spacing: -.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat-label {
  display: block;
  margin-top: .5rem;
  font-size: .84rem;
  color: var(--text-soft);
  line-height: 1.35;
}
@media (max-width: 520px) {
  .stats { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* --- Cards -------------------------------------------------------------- */
.cards {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 780px)  { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .cards { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease),
              border-color .22s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
}
.card-num {
  font-family: var(--font-mono);
  font-size: .8rem;
  color: var(--accent);
  letter-spacing: .1em;
}
.card h3 { margin: .9rem 0 .75rem; }
.card > p { color: var(--text-soft); font-size: .95rem; }

.card-list {
  list-style: none;
  padding: 0;
  margin: 1.4rem 0 0;
  border-top: 1px solid var(--line);
  padding-top: 1.1rem;
  display: grid;
  gap: .5rem;
  font-size: .89rem;
}
.card-list li { position: relative; padding-left: 1.15rem; color: var(--text-soft); }
.card-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* --- Feature (Método) --------------------------------------------------- */
.feature {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 940px) {
  .feature { grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); }
}

.feature-card {
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line));
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  aspect-ratio: 4 / 3;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.feature-badge {
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
}
.feature-card-title {
  font-size: clamp(1.6rem, 3.2vw, 2.1rem);
  color: var(--text);
}
.feature-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  counter-reset: fs;
}
.feature-steps li {
  font-size: .82rem;
  font-weight: 550;
  padding: .3rem .75rem;
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  border-radius: 999px;
  color: var(--accent);
}

.steps { margin: 2rem 0; display: grid; gap: 1.25rem; }
.steps dt {
  font-weight: 620;
  font-size: .95rem;
  letter-spacing: -.01em;
}
.steps dd {
  margin: .3rem 0 0;
  color: var(--text-soft);
  font-size: .93rem;
}

/* --- Accordion ---------------------------------------------------------- */
.accordion { border-top: 1px solid var(--line); }

.acc-item { border-bottom: 1px solid var(--line); }
.acc-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.25rem 2.5rem 1.25rem 0;
  font-weight: 550;
  font-size: 1.02rem;
  position: relative;
  transition: color .18s var(--ease);
}
.acc-item summary::-webkit-details-marker { display: none; }
.acc-item summary:hover { color: var(--accent); }

.acc-item summary::after {
  content: "";
  position: absolute;
  right: .35rem;
  top: 50%;
  width: 11px; height: 11px;
  border-right: 1.8px solid currentColor;
  border-bottom: 1.8px solid currentColor;
  transform: translateY(-70%) rotate(45deg);
  transition: transform .24s var(--ease);
}
.acc-item[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.acc-item[open] summary { color: var(--accent); }

.acc-body {
  padding-bottom: 1.4rem;
  color: var(--text-soft);
  max-width: 62ch;
  font-size: .96rem;
  animation: accIn .28s var(--ease);
}
@keyframes accIn {
  from { opacity: 0; transform: translateY(-5px); }
  to   { opacity: 1; transform: none; }
}

/* --- Contato ------------------------------------------------------------ */
.link-list {
  list-style: none;
  padding: 0;
  margin: 2.5rem 0 0;
  border-top: 1px solid var(--line);
}
.link-list li { border-bottom: 1px solid var(--line); }
.link-list a {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem .5rem 1.1rem 0;
  text-decoration: none;
  transition: padding-left .22s var(--ease), color .18s var(--ease);
}
.link-list a:hover { padding-left: .6rem; color: var(--accent); }
.ll-label {
  font-family: var(--font-mono);
  font-size: .76rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.ll-value { font-weight: 500; }
.ll-arrow { transition: transform .22s var(--ease); }
.link-list a:hover .ll-arrow { transform: translateX(5px); }

@media (max-width: 560px) {
  .link-list a { grid-template-columns: 1fr auto; }
  .ll-label { grid-column: 1 / -1; margin-bottom: -.5rem; }
}

/* --- Footer ------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
  padding-block: 2.2rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  justify-content: space-between;
  font-size: .86rem;
  color: var(--text-soft);
}

/* --- Reveal on scroll --------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}
