/* =========================================================
   Karppa — site institucional
   Paleta extraída da marca: laranja #E63905 + escuro #16161d
   ========================================================= */

:root {
  --brand: #e63905;
  --brand-ink: #c2310a;       /* laranja escuro p/ texto/contraste */
  --brand-soft: #fff1eb;
  --ink: #16161d;             /* fundo escuro / texto principal */
  --ink-2: #23232e;
  --ink-soft: #2c2c39;
  --text: #2a2a33;
  --muted: #61616f;
  --muted-light: #9a9aab;
  --line: #ececf1;
  --bg: #ffffff;
  --bg-soft: #faf9f8;
  --white: #ffffff;

  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 26px;
  --shadow-sm: 0 1px 2px rgba(22,22,29,.06), 0 4px 14px rgba(22,22,29,.05);
  --shadow: 0 10px 30px rgba(22,22,29,.10);
  --shadow-brand: 0 14px 34px rgba(230,57,5,.30);

  --container: 1140px;
  --font-display: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

/* ---------- reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; color: var(--ink); font-weight: 800; letter-spacing: -.02em; }
ul { list-style: none; padding: 0; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 22px; }
.section { padding: 88px 0; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- eyebrow / headings helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-display); font-weight: 700; font-size: .82rem;
  letter-spacing: .04em; text-transform: uppercase; color: var(--muted-light);
}
.eyebrow--ink { color: var(--brand-ink); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px rgba(230,57,5,.18); }
.hl { color: var(--brand); }
.hl-ink { color: var(--brand); }

.section-head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin: 14px 0 0; }
.section-head .lead, .lead { color: var(--muted); font-size: 1.08rem; margin-top: 14px; }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--brand);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  padding: 13px 22px; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .16s ease, box-shadow .16s ease, background .16s ease, color .16s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--sm { padding: 9px 16px; font-size: .92rem; }
.btn--lg { padding: 16px 28px; font-size: 1.05rem; }

.btn--primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-brand); }
.btn--primary:hover { background: #ff4910; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #000; }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: #f2f2f5; }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.28); }
.btn--ghost:hover { background: rgba(255,255,255,.10); }
.btn--outline-dark { background: transparent; color: var(--ink); border-color: rgba(22,22,29,.25); }
.btn--outline-dark:hover { background: rgba(22,22,29,.06); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(22,22,29,.86); backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.site-header__inner { display: flex; align-items: center; gap: 20px; height: 70px; }
.brand { display: flex; align-items: center; }
.brand__logo { height: 30px; width: auto; }
.nav { display: flex; gap: 28px; margin-left: 14px; margin-right: auto; }
.nav a { color: rgba(255,255,255,.82); font-weight: 500; font-size: .98rem; transition: color .15s; }
.nav a:hover { color: #fff; }
.header-actions { display: flex; gap: 10px; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 44px; height: 40px; align-items: center; justify-content: center; background: transparent; border: 0; cursor: pointer; }
.nav-toggle span { width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: transform .25s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { position: relative; background: var(--ink); color: #fff; overflow: hidden; padding: 72px 0 84px; }
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__chart { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .5; }
.hero__chart polyline { fill: none; stroke: rgba(230,57,5,.55); stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.hero__glow { position: absolute; top: -120px; right: -80px; width: 540px; height: 540px; border-radius: 50%;
  background: radial-gradient(circle, rgba(230,57,5,.35), transparent 62%); filter: blur(8px); }

.hero__inner { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 54px; align-items: center; }
.hero__content { max-width: 620px; }
.hero .eyebrow { color: rgba(255,255,255,.72); }
.hero__title { font-size: clamp(2.3rem, 5.2vw, 3.7rem); color: #fff; margin: 18px 0 0; }
.hero__lead { color: rgba(255,255,255,.78); font-size: 1.18rem; margin-top: 20px; max-width: 560px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 34px; color: rgba(255,255,255,.7); font-size: .96rem; }
.hero__trust strong { color: #fff; font-family: var(--font-display); font-weight: 800; }

/* hero art card */
.hero__art { display: flex; justify-content: center; }
.art-card {
  width: 100%; max-width: 380px; background: linear-gradient(180deg, #20202b, #191921);
  border: 1px solid rgba(255,255,255,.09); border-radius: var(--radius-lg);
  padding: 22px; box-shadow: 0 30px 60px rgba(0,0,0,.4);
}
.art-card__head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.art-card__head img { border-radius: 9px; }
.art-card__title { display: block; font-family: var(--font-display); font-weight: 700; color: #fff; font-size: .98rem; }
.art-card__sub { display: block; color: rgba(255,255,255,.5); font-size: .8rem; }
.art-card__chart { width: 100%; height: 150px; }
.art-card__line { fill: none; stroke: var(--brand); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.art-card__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip { font-size: .76rem; font-weight: 600; color: rgba(255,255,255,.78); background: rgba(255,255,255,.08); padding: 6px 11px; border-radius: 999px; }
.chip--up { color: #ffd9c8; background: rgba(230,57,5,.22); }

/* ---------- stats ---------- */
.stats { background: var(--brand); color: #fff; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding: 34px 22px; text-align: center; }
.stat__num { display: block; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.8rem, 3.5vw, 2.5rem); line-height: 1; }
.stat__label { display: block; margin-top: 8px; font-size: .95rem; color: rgba(255,255,255,.9); }

/* ---------- caminhos ---------- */
.paths { background: var(--bg-soft); }
.paths__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.path-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 38px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
}
.path-card--brand { background: linear-gradient(180deg, #fff, #fff7f3); border-color: #ffd9c8; }
.path-card__tag { font-family: var(--font-display); font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--brand-ink); }
.path-card h3 { font-size: 1.6rem; margin: 12px 0 10px; }
.path-card > p { color: var(--muted); }
.ticks { margin: 22px 0 28px; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 32px; color: var(--text); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e63905' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/12px no-repeat;
}
.path-card .btn { margin-top: auto; align-self: flex-start; }

/* ---------- sobre ---------- */
.sobre__grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 56px; align-items: center; }
.sobre__text h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); margin: 14px 0 18px; }
.sobre__text > p { color: var(--muted); margin-bottom: 16px; }
.sobre__quote { border-left: 3px solid var(--brand); padding-left: 18px; color: var(--text) !important; font-size: 1.06rem; }
.sobre__ecosystem { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.badge { font-family: var(--font-display); font-weight: 600; font-size: .85rem; color: var(--ink); background: var(--bg-soft); border: 1px solid var(--line); padding: 8px 14px; border-radius: 999px; }
.sobre__visual { display: flex; justify-content: center; }
.koi-badge {
  width: 240px; height: 240px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 30% 30%, #2a2a37, var(--ink));
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255,255,255,.05);
}
.koi-badge img { width: 120px; height: auto; }

/* ---------- método ---------- */
.metodo { background: var(--ink); color: #fff; }
.metodo h2 { color: #fff; }
.metodo .eyebrow { color: #ff8a5e; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: s; }
.step { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius); padding: 26px 22px; }
.step__num { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--brand); color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; margin-bottom: 16px; }
.step h3 { color: #fff; font-size: 1.18rem; margin-bottom: 8px; }
.step p { color: rgba(255,255,255,.7); font-size: .98rem; }

/* ---------- diferenciais ---------- */
.features__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); transition: transform .18s, box-shadow .18s; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature__icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--brand-soft); font-size: 1.5rem; margin-bottom: 16px; }
.feature h3 { font-size: 1.2rem; margin-bottom: 8px; }
.feature p { color: var(--muted); }

/* ---------- depoimentos ---------- */
.depoimentos { background: var(--bg-soft); }
.depoimentos__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.depo { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.depo blockquote { font-size: 1.05rem; color: var(--text); }
.depo blockquote::before { content: "“"; color: var(--brand); font-family: var(--font-display); font-size: 2.4rem; line-height: 0; vertical-align: -.35em; margin-right: 4px; }
.depo figcaption { display: flex; align-items: center; gap: 10px; margin-top: 18px; font-family: var(--font-display); font-weight: 600; color: var(--ink); font-size: .95rem; }
.depo__avatar { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; }

/* ---------- cta final ---------- */
.cta-final { background: var(--brand); color: #fff; padding: 76px 0; }
.cta-final__inner { text-align: center; max-width: 720px; }
.cta-final h2 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.cta-final p { color: rgba(255,255,255,.92); margin-top: 14px; font-size: 1.1rem; }
.cta-final__btns { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 30px; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.72); padding: 64px 0 30px; }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 36px; }
.site-footer__brand img { height: 32px; width: auto; margin-bottom: 16px; }
.site-footer__brand p { font-size: .95rem; max-width: 320px; margin-bottom: 14px; }
.social { color: var(--brand); font-weight: 600; }
.site-footer__col h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.site-footer__col a { display: block; color: rgba(255,255,255,.7); padding: 5px 0; font-size: .95rem; transition: color .15s; }
.site-footer__col a:hover { color: #fff; }
.site-footer__addr { font-size: .9rem; line-height: 1.6; margin-top: 6px; }
.site-footer__legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.09); font-size: .85rem; color: rgba(255,255,255,.5); }

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

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  .nav, .header-actions { display: none; }
  .nav-toggle { display: flex; }
  .site-header.is-open .nav {
    display: flex; flex-direction: column; gap: 4px; position: absolute; top: 70px; left: 0; right: 0;
    background: var(--ink); padding: 14px 22px 20px; border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .site-header.is-open .nav a { padding: 10px 0; font-size: 1.05rem; }
  .site-header.is-open .header-actions { display: flex; position: absolute; top: 220px; left: 0; right: 0; flex-direction: column; background: var(--ink); padding: 0 22px 20px; }
  .site-header.is-open .header-actions .btn { width: 100%; }

  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero__art { order: 2; }
  .sobre__grid { grid-template-columns: 1fr; gap: 36px; }
  .sobre__visual { order: -1; }
  .steps { grid-template-columns: 1fr 1fr; }
  .features__grid, .depoimentos__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .section { padding: 60px 0; }
  .stats__grid { grid-template-columns: 1fr 1fr; gap: 26px 12px; }
  .paths__grid { grid-template-columns: 1fr; }
  .steps, .features__grid, .depoimentos__grid, .site-footer__grid { grid-template-columns: 1fr; }
  .path-card { padding: 28px; }
  .hero__cta .btn, .cta-final__btns .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover { transform: none; }
}
