/* Emerging Ascent: main stylesheet */
:root {
  --navy: #121429;
  --navy-2: #1a1d3b;
  --ink: #2a2e4a;
  --muted: #5d6384;
  --line: #e5e8f3;
  --bg: #ffffff;
  --bg-soft: #f6f7fc;
  --purple: #7f2191;
  --indigo: #3b49a3;
  --sky: #50aee4;
  --grad: linear-gradient(135deg, #7f2191 0%, #3b49a3 52%, #50aee4 100%);
  --radius: 18px;
  --shadow: 0 10px 30px rgba(18, 20, 41, .08);
  --shadow-lg: 0 24px 60px rgba(18, 20, 41, .16);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.65; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; display: block; }
a { color: var(--indigo); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }

.container { width: min(1180px, 100% - 48px); margin-inline: auto; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 200; }
.skip-link:focus { left: 8px; }
.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .88); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--navy); }
.brand:hover { text-decoration: none; }
.brand img { width: 44px; height: 44px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-weight: 800; font-size: 1.12rem; letter-spacing: .02em; text-transform: uppercase; }
.brand-sub { font-weight: 600; font-size: .64rem; letter-spacing: .5em; text-transform: uppercase; margin-top: 5px; color: var(--muted); }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a { color: var(--ink); font-weight: 500; font-size: .95rem; padding: 9px 14px; border-radius: 10px; }
.nav a:hover { background: var(--bg-soft); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--indigo); font-weight: 600; }
.nav .btn { margin-left: 8px; color: #fff; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; width: 44px; height: 44px; cursor: pointer; color: var(--navy); align-items: center; justify-content: center; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; font: 600 .98rem var(--font); padding: 13px 24px; border-radius: 12px; border: 1px solid transparent; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s; }
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn .icon { width: 18px; height: 18px; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 24px rgba(59, 73, 163, .35); }
.btn-primary:hover { box-shadow: 0 14px 30px rgba(59, 73, 163, .45); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); }
.btn-outline { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-outline:hover { border-color: var(--indigo); }
.btn-light { background: #fff; color: var(--navy); }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--navy); color: #fff; overflow: hidden; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2;
  background: radial-gradient(700px 420px at 12% 18%, rgba(127, 33, 145, .55), transparent 60%),
              radial-gradient(760px 480px at 92% 12%, rgba(80, 174, 228, .40), transparent 60%),
              radial-gradient(700px 500px at 60% 110%, rgba(59, 73, 163, .55), transparent 60%); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%); }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; padding: 96px 0 104px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #cfd6f7; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); padding: 7px 14px; border-radius: 999px; margin-bottom: 24px; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 4px rgba(74, 222, 128, .2); }
.hero h1 { color: #fff; font-size: clamp(2.3rem, 5vw, 3.7rem); font-weight: 800; margin-bottom: 20px; }
.gradient-text { background: linear-gradient(90deg, #d08be0, #50aee4); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.hero p.lead { font-size: 1.15rem; color: #c9cfee; max-width: 560px; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.hero-tags span { font-size: .85rem; color: #cfd6f7; border: 1px solid rgba(255, 255, 255, .16); padding: 6px 14px; border-radius: 999px; }

/* hero visual: pipeline card */
.pipeline { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .16); border-radius: 20px; box-shadow: var(--shadow-lg); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); overflow: hidden; }
.pipeline-bar { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.pipeline-bar i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255, 255, 255, .25); }
.pipeline-bar span { margin-left: 10px; font: 500 .8rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: #aeb7e6; }
.pipeline-body { padding: 22px 22px 14px; display: grid; gap: 12px; }
.step { display: flex; align-items: center; gap: 14px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); border-radius: 12px; padding: 13px 16px; font-size: .95rem; color: #eef1ff; }
.step .tick { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(74, 222, 128, .18); color: #4ade80; flex: none; }
.step .tick .icon { width: 15px; height: 15px; stroke-width: 3; }
.step small { margin-left: auto; color: #9aa3d6; font-size: .78rem; }
.step.live { background: rgba(74, 222, 128, .1); border-color: rgba(74, 222, 128, .35); }
.pipeline-note { padding: 0 22px 18px; font-size: .75rem; color: #8f98cc; }
.js .pipeline .step { opacity: 0; transform: translateX(14px); animation: stepIn .5s ease forwards; }
.js .pipeline .step:nth-child(1) { animation-delay: .3s; } .js .pipeline .step:nth-child(2) { animation-delay: .8s; }
.js .pipeline .step:nth-child(3) { animation-delay: 1.3s; } .js .pipeline .step:nth-child(4) { animation-delay: 1.8s; }
.js .pipeline .step:nth-child(5) { animation-delay: 2.3s; }
@keyframes stepIn { to { opacity: 1; transform: none; } }

/* page hero (inner pages) */
.page-hero { background: var(--navy); color: #fff; position: relative; overflow: hidden; isolation: isolate; padding: 84px 0 76px; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(600px 300px at 10% 10%, rgba(127, 33, 145, .5), transparent 60%), radial-gradient(600px 320px at 95% 0%, rgba(80, 174, 228, .35), transparent 60%); }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4.4vw, 3rem); margin-bottom: 14px; }
.page-hero p { color: #c9cfee; font-size: 1.1rem; max-width: 680px; margin: 0; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-soft); }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
.section-head p { color: var(--muted); font-size: 1.08rem; margin: 0; }
.kicker { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--purple); margin-bottom: 12px; }

.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; transition: transform .25s, box-shadow .25s, border-color .25s; }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: #d3d8ee; }
.card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.card p { color: var(--muted); margin: 0; font-size: .98rem; }
.badge { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--grad); color: #fff; margin-bottom: 20px; box-shadow: 0 8px 18px rgba(59, 73, 163, .3); }
.badge .icon { width: 26px; height: 26px; }
.card-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-weight: 600; font-size: .95rem; }
.card-link .icon { width: 16px; height: 16px; transition: transform .2s; }
.card-link:hover .icon { transform: translateX(4px); }
.card-link:hover { text-decoration: none; }

/* split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split h2 { font-size: clamp(1.75rem, 3.2vw, 2.4rem); }
.split p.lead { color: var(--muted); font-size: 1.08rem; }
.feature-list { display: grid; gap: 14px; margin-top: 26px; }
.feature-list li { display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
.feature-list .mini { width: 40px; height: 40px; border-radius: 11px; background: rgba(59, 73, 163, .1); color: var(--indigo); display: grid; place-items: center; flex: none; }
.feature-list strong { display: block; color: var(--navy); margin-bottom: 2px; }
.feature-list span { color: var(--muted); font-size: .94rem; }
.panel { background: var(--navy); border-radius: 24px; padding: 34px; color: #fff; position: relative; overflow: hidden; box-shadow: var(--shadow-lg); }
.panel::before { content: ""; position: absolute; inset: 0; background: radial-gradient(400px 260px at 100% 0%, rgba(80, 174, 228, .3), transparent 60%), radial-gradient(400px 260px at 0% 100%, rgba(127, 33, 145, .4), transparent 60%); }
.panel > * { position: relative; }
.flow { display: grid; gap: 0; }
.flow-item { display: flex; align-items: center; gap: 16px; padding: 14px 0; }
.flow-item + .flow-item { border-top: 1px dashed rgba(255, 255, 255, .18); }
.flow-num { width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); display: grid; place-items: center; font-weight: 700; font-size: .9rem; flex: none; }
.flow-item strong { display: block; color: #fff; }
.flow-item span { color: #aeb7e6; font-size: .9rem; }

/* process */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; counter-reset: s; }
.process-step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; }
.process-step .num { width: 40px; height: 40px; border-radius: 12px; background: var(--grad); color: #fff; font-weight: 700; display: grid; place-items: center; margin-bottom: 16px; }
.process-step h3 { font-size: 1.05rem; }
.process-step p { font-size: .92rem; color: var(--muted); margin: 0; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 14px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 4px 22px; transition: border-color .2s, box-shadow .2s; }
.faq details[open] { border-color: #cfd5ee; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; font-weight: 600; color: var(--navy); padding: 18px 28px 18px 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 400; color: var(--indigo); transition: transform .2s; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--muted); padding-bottom: 18px; margin: 0; }

/* CTA band */
.cta { background: var(--grad); color: #fff; border-radius: 28px; padding: 64px 48px; text-align: center; position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(500px 240px at 15% 0%, rgba(255, 255, 255, .18), transparent 60%); }
.cta > * { position: relative; }
.cta h2 { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.cta p { color: rgba(255, 255, 255, .88); font-size: 1.1rem; max-width: 600px; margin: 0 auto 30px; }
.cta .actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* services detail */
.service-block { display: grid; grid-template-columns: 340px 1fr; gap: 48px; padding: 56px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 100px; }
.service-block:last-child { border-bottom: 0; }
.service-block h2 { font-size: 1.6rem; }
.service-block .lead { color: var(--muted); }
.checklist { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-size: .98rem; }
.checklist .icon { width: 20px; height: 20px; color: var(--indigo); margin-top: 2px; stroke-width: 2.6; }
.fit { margin-top: 22px; background: var(--bg-soft); border-radius: 12px; padding: 14px 18px; font-size: .94rem; color: var(--muted); }
.fit strong { color: var(--navy); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 8px; }
.chips span { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: .9rem; font-weight: 500; color: var(--ink); }

/* contact */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 48px; align-items: start; }
.contact-card { display: flex; gap: 16px; align-items: flex-start; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: #fff; margin-bottom: 16px; color: inherit; transition: border-color .2s, box-shadow .2s; }
a.contact-card:hover { text-decoration: none; border-color: #cfd5ee; box-shadow: var(--shadow); }
.contact-card .mini { width: 46px; height: 46px; border-radius: 12px; background: var(--grad); color: #fff; display: grid; place-items: center; flex: none; }
.contact-card strong { display: block; color: var(--navy); }
.contact-card span { color: var(--muted); font-size: .96rem; word-break: break-word; }
.form { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 36px; box-shadow: var(--shadow); }
.form h2 { font-size: 1.5rem; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .9rem; color: var(--navy); margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; font: 400 1rem var(--font); color: var(--navy); background: #fff; border: 1px solid #d6dbee; border-radius: 12px; padding: 13px 14px; transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--indigo); box-shadow: 0 0 0 4px rgba(59, 73, 163, .15); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.form-note { font-size: .85rem; color: var(--muted); margin: 14px 0 0; }
.form-error { color: #b42318; font-size: .9rem; margin: 0 0 14px; display: none; }
.btn-whatsapp { background: #25d366; color: #fff; }
.btn-whatsapp:hover { background: #1fbd5b; }

/* about */
.values .card .badge { width: 46px; height: 46px; }
.person { display: flex; gap: 22px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 28px; max-width: 640px; margin: 0 auto; box-shadow: var(--shadow); }
.avatar { width: 84px; height: 84px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 1.6rem; flex: none; }
.person h3 { margin-bottom: 2px; }
.person .role { color: var(--purple); font-weight: 600; font-size: .92rem; margin-bottom: 8px; }
.person p { color: var(--muted); margin: 0; font-size: .96rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #aeb7e6; padding: 72px 0 28px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .8fr 1fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.site-footer h4 { color: #fff; font-size: .95rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 18px; }
.site-footer a { color: #aeb7e6; }
.site-footer a:hover { color: #fff; }
.site-footer li { margin-bottom: 10px; }
.footer-brand img { height: 92px; width: auto; margin-bottom: 18px; }
.footer-brand p { max-width: 340px; font-size: .95rem; }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; }
.footer-contact .icon { width: 18px; height: 18px; margin-top: 4px; color: var(--sky); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 26px; font-size: .88rem; }

/* 404 */
.not-found { text-align: center; padding: 130px 0; }
.not-found h1 { font-size: clamp(4rem, 12vw, 7rem); margin-bottom: 0; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.visible { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: .08s; } .js .reveal.d2 { transition-delay: .16s; } .js .reveal.d3 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .js .pipeline .step { opacity: 1 !important; transform: none !important; transition: none !important; animation: none !important; }
  .btn, .card { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero-inner, .split, .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-inner { padding: 72px 0 80px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .service-block { grid-template-columns: 1fr; gap: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .nav { position: absolute; top: 76px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 14px 24px 22px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 14px; }
  .nav .btn { margin: 8px 0 0; justify-content: center; }
}
@media (max-width: 640px) {
  .section { padding: 72px 0; }
  .grid-3, .grid-2, .grid-4, .steps, .checklist, .field-row, .footer-grid { grid-template-columns: 1fr; }
  .cta { padding: 48px 24px; border-radius: 22px; }
  .form { padding: 24px; }
  .person { flex-direction: column; text-align: center; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .brand-sub { letter-spacing: .4em; }
}
