/* ============================================================
   Optivise Consulting — modern design system
   ============================================================ */
:root {
  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --surface-alt: #F6F8FB;
  --ink: #0F172A;
  --muted: #475569;
  --faint: #94A3B8;
  --line: #E2E8F0;
  --line-strong: #CBD5E1;

  --accent: #2563EB;
  --accent-dark: #1D4ED8;
  --accent-soft: #EFF6FF;
  --on-accent: #FFFFFF;

  --accent-2: #7C3AED;
  --accent-2-dark: #6D28D9;
  --accent-2-soft: #F5F3FF;

  --navy: #0B1220;
  --gradient: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);

  --font-heading: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --max: 1120px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 12px 32px rgba(15, 23, 42, .06);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, .12);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }

h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: 700; line-height: 1.12; letter-spacing: -.025em; margin: 0 0 14px; text-wrap: balance; }
h1 { font-size: 54px; font-weight: 800; letter-spacing: -.035em; }
h2 { font-size: 36px; letter-spacing: -.03em; }
h3 { font-size: 21px; }
h4 { font-size: 17px; }
p { margin: 0 0 14px; color: var(--muted); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: var(--accent-soft); }

.wrap { max-width: var(--max); margin: 0 auto; padding-inline: 24px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); padding: 6px 12px; border-radius: 999px; margin-bottom: 16px; }
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.eyebrow.accent-2 { color: var(--accent-2); background: var(--accent-2-soft); }
.eyebrow.accent-2::before { background: var(--accent-2); }
.lead { font-size: 19px; line-height: 1.65; color: var(--muted); max-width: 60ch; }

/* — buttons — */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 15px; letter-spacing: -.005em;
  padding: 14px 26px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none; transition: background .18s ease, border-color .18s ease, color .18s ease, transform .15s ease, box-shadow .18s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 8px 20px rgba(37, 99, 235, .25); }
.btn-primary:hover { background: var(--accent-dark); box-shadow: 0 10px 24px rgba(37, 99, 235, .32); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--ink); }
.btn-text { padding: 0; color: var(--accent); font-weight: 600; font-size: 15px; }
.btn-text:hover { text-decoration: underline; transform: none; }
.btn-sm { padding: 10px 20px; font-size: 14px; }

/* — forms — */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink); }
.input {
  width: 100%; min-height: 48px; padding: 12px 16px; font: inherit; font-size: 15px;
  color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input:hover { border-color: var(--line-strong); }
.input:focus-visible { border-color: var(--accent); outline: none; box-shadow: 0 0 0 4px var(--accent-soft); }
textarea.input { min-height: 120px; resize: vertical; }

/* — cards — */
.card {
  position: relative; display: flex; flex-direction: column; gap: 10px; padding: 28px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.card-title { margin: 0; font-size: 20px; }
.card p { margin: 0; flex: 1; }
.card-icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 6px; }
.card-icon svg { width: 20px; height: 20px; }
.grid-4 .card:nth-child(2n) .card-icon, .grid-3 .card:nth-child(2n) .card-icon, .grid-2 .card:nth-child(2n) .card-icon { background: var(--accent-2-soft); color: var(--accent-2); }

/* — tags — */
.tag { display: inline-flex; align-self: flex-start; font-size: 13px; font-weight: 600; padding: 6px 14px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.tag:nth-of-type(2n) { background: var(--accent-2-soft); color: var(--accent-2); }

/* — layout / header / footer — */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.85); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 28px; padding: 16px 0; }
.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-right: auto; font-weight: 800; font-size: 18px; letter-spacing: -.02em; }
.nav-brand:hover { text-decoration: none; }
.nav-brand img { height: 30px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; padding: 8px 14px; border-radius: 999px; transition: background .15s ease, color .15s ease; }
.nav-links a.btn { color: var(--on-accent); margin-left: 8px; }
.nav-links a:not(.btn):hover, .nav-links a:not(.btn)[aria-current="page"] { color: var(--ink); background: var(--surface-alt); text-decoration: none; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 12px; background: transparent; align-items: center; justify-content: center; cursor: pointer; flex: none; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { content: ""; display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); position: relative; }
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

section.section { padding: 64px 0; }
section.section-alt { background: var(--surface-alt); }
section.section-alt + section.section-alt { padding-top: 0; }
.section-head { max-width: 640px; margin-bottom: 36px; }
.section-head.center { margin-inline: auto; text-align: center; }

.hero {
  position: relative; padding: 64px 0 56px; overflow: hidden;
  background:
    radial-gradient(900px 500px at 8% -10%, rgba(37, 99, 235, .14), transparent 60%),
    radial-gradient(700px 480px at 95% 10%, rgba(124, 58, 237, .14), transparent 60%),
    linear-gradient(180deg, #FFFFFF 0%, var(--surface-alt) 100%);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero-grid.hero-aside { grid-template-columns: 1.5fr .9fr; }
.hero .card { box-shadow: var(--shadow-lg); border-color: rgba(226, 232, 240, .8); }
.hero .card:hover { transform: none; }

.fact-list { display: flex; flex-direction: column; }
.fact-list > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 14px; }
.fact-list > div:first-child { border-top: 0; padding-top: 0; }
.fact-list > div:last-child { padding-bottom: 0; }
.fact-list span { color: var(--muted); }
.fact-list b { color: var(--ink); font-weight: 700; text-align: right; }
.fact-list a { font-weight: 600; white-space: nowrap; }

.check-list { display: flex; flex-direction: column; gap: 10px; }
.check-list li { position: relative; padding-left: 28px; font-size: 15px; color: var(--muted); }
.check-list li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563EB' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 10px no-repeat; }

.sector-row { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; padding: 14px 0; border-top: 1px solid var(--line); }
.sector-row:first-child { border-top: 0; padding-top: 0; }
.sector-row:last-child { padding-bottom: 0; }
.sector-row h4 { margin: 0 0 2px; font-size: 16px; }
.sector-row p { margin: 0; font-size: 14px; }
.sector-row .card-icon { margin: 0; width: 44px; height: 44px; }
.sector-row:nth-child(2) .card-icon { background: var(--accent-2-soft); color: var(--accent-2); }
.sector-row:nth-child(3) .card-icon { background: #ECFEFF; color: #0E7490; }

.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }

.step-list { display: flex; flex-direction: column; }
.step-item { display: grid; grid-template-columns: 56px 1fr; gap: 20px; padding: 26px 0; border-top: 1px solid var(--line); }
.step-item:last-child { border-bottom: 1px solid var(--line); }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; font-size: 14px; font-weight: 700; color: var(--accent); background: var(--accent-soft); }
.step-list .step-item:nth-child(2n) .step-num { color: var(--accent-2); background: var(--accent-2-soft); }
.step-item h4 { margin: 0 0 4px; }
.step-item p { margin: 0; }

.stat-row { display: flex; gap: 40px; flex-wrap: wrap; }
.stat-row .stat b { display: block; font-size: 34px; font-weight: 800; letter-spacing: -.03em; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-row .stat span { font-size: 13px; color: var(--muted); }

.quote-block { position: relative; border-left: 0; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.quote-block::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 3px; background: var(--gradient); }
.quote-block p { font-size: 15px; font-style: italic; color: var(--muted); margin: 0; }

.cta-band { position: relative; overflow: hidden; background: var(--navy); color: #fff; padding: 72px 24px; text-align: center; border-radius: 24px; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 20% 0%, rgba(37,99,235,.45), transparent 60%), radial-gradient(500px 300px at 90% 100%, rgba(124,58,237,.4), transparent 60%); pointer-events: none; }
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.78); max-width: 500px; margin: 0 auto; }
.cta-band .btn-primary { background: #fff; color: var(--ink); box-shadow: none; }
.cta-band .btn-primary:hover { background: var(--accent-soft); }
.cta-band .btn-secondary { background: transparent; border-color: rgba(255,255,255,.3); color: #fff; }
.cta-band .btn-secondary:hover { border-color: #fff; }

.footer { background: var(--navy); color: #fff; padding: 52px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; max-width: var(--max); margin: 0 auto; padding: 0 24px 36px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; text-decoration: none; color: #fff; }
.footer-brand:hover { text-decoration: none; }
.footer-brand img { height: 28px; width: auto; }
.footer-brand span { font-weight: 800; font-size: 17px; letter-spacing: -.02em; }
.footer p { color: rgba(255,255,255,.62); font-size: 14px; max-width: 290px; }
.footer-col h6 { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.5); margin: 0 0 14px; font-weight: 700; }
.footer-col a, .footer-col .dialog-link { display: block; font-size: 14px; color: rgba(255,255,255,.8); text-decoration: none; padding: 5px 0; border: 0; background: none; cursor: pointer; text-align: left; font-family: var(--font); transition: color .15s ease; }
.footer-col a:hover, .footer-col .dialog-link:hover { color: #fff; text-decoration: none; }
.footer-whatsapp { color: #fff; font-weight: 600; text-decoration: none; font-size: 14px; }
.footer-whatsapp:hover { text-decoration: underline; }
.footer-legal { max-width: var(--max); margin: 20px auto 0; padding-inline: 24px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12px; color: rgba(255,255,255,.45); }

.cookie-note { position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 40; max-width: 520px; display: none; align-items: center; gap: 14px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.cookie-note.is-visible { display: flex; }
.cookie-note p { margin: 0; font-size: 13px; line-height: 1.45; color: var(--muted); }
.cookie-note .btn { flex: none; padding: 9px 18px; }

.floating-whatsapp { position: fixed; right: 20px; bottom: 20px; z-index: 39; display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; background: var(--ink); color: #fff; text-decoration: none; font-weight: 600; font-size: 14px; border-radius: 999px; box-shadow: var(--shadow-lg); transition: transform .15s ease, background .15s ease; }
.floating-whatsapp:hover { background: var(--navy); text-decoration: none; transform: translateY(-2px); }

/* — dialog — */
dialog { border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 0; width: min(560px, calc(100% - 40px)); }
dialog::backdrop { background: rgba(15,23,42,.5); backdrop-filter: blur(4px); }
.dialog-inner { padding: 28px; }
.dialog-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.dialog-top h2 { margin: 0; font-size: 22px; }
.dialog-close { border: 0; background: transparent; font-size: 22px; line-height: 1; cursor: pointer; color: var(--ink); padding: 4px; }
.dialog-inner p, .dialog-inner li { font-size: 14px; line-height: 1.6; color: var(--muted); }

/* — accessibility & motion — */
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--ink); color: #fff; border-radius: 999px; font-weight: 600; font-size: 14px; text-decoration: none; transition: top .15s ease; }
.skip-link:focus { top: 12px; outline: 2px solid #fff; outline-offset: 2px; }
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .card:hover, .floating-whatsapp:hover { transform: none; }
  html { scroll-behavior: auto; }
}

/* — breadcrumbs — */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--faint); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent); }
.crumbs span { color: var(--ink); font-weight: 600; }

/* — card accent bar on hover — */
.card::before { content: ""; position: absolute; left: 24px; right: 24px; top: -1px; height: 3px; border-radius: 0 0 4px 4px; background: var(--gradient); opacity: 0; transition: opacity .2s ease; pointer-events: none; }
.card:hover::before { opacity: 1; }
.hero .card::before, .article .card::before { display: none; }

/* — home hero extras — */
.hero-checks { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 22px; font-size: 14px; color: var(--muted); }
.hero-checks span { display: inline-flex; align-items: center; gap: 8px; }
.hero-checks span::before { content: ""; flex: none; width: 16px; height: 16px; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563EB' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 9px no-repeat; }
.timeline { display: flex; flex-direction: column; }
.timeline > div { display: grid; grid-template-columns: 36px 1fr; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.timeline > div:first-child { border-top: 0; padding-top: 0; }
.timeline > div:last-child { padding-bottom: 0; }
.timeline .dot { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: var(--accent); background: var(--accent-soft); }
.timeline > div:nth-child(2) .dot { color: var(--accent-2); background: var(--accent-2-soft); }
.timeline > div:nth-child(3) .dot { color: #0E7490; background: #ECFEFF; }
.timeline > div:nth-child(4) .dot { color: #B45309; background: #FFFBEB; }
.timeline h4 { margin: 0 0 2px; font-size: 15px; }
.timeline p { margin: 0; font-size: 13.5px; line-height: 1.5; }
.timeline small { display: block; font-size: 12px; color: var(--faint); margin-top: 4px; }
.stats-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); }
.stats-strip b { display: block; font-size: 28px; font-weight: 800; letter-spacing: -.03em; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats-strip span { font-size: 13px; color: var(--muted); }
.card .pkg-for { flex: 0 0 auto; font-size: 13px; color: var(--ink); font-weight: 600; margin-top: 2px; }
.floating-whatsapp svg { width: 16px; height: 16px; }

/* — long-form articles — */
.article { max-width: 780px; }
.article h2 { font-size: 27px; margin-bottom: 12px; scroll-margin-top: 90px; }
.article p { font-size: 16.5px; line-height: 1.75; }
.article ul, .article ol { display: grid; gap: 8px; margin: 0 0 16px; padding-left: 22px; color: var(--muted); font-size: 16px; line-height: 1.65; }
.article ul { list-style: disc; }
.article ol { list-style: decimal; }
.article li strong, .article p strong { color: var(--ink); font-weight: 600; }
.article table { width: 100%; border-collapse: collapse; margin: 8px 0 20px; font-size: 14.5px; line-height: 1.5; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.article th, .article td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); color: var(--muted); }
.article th { background: var(--surface-alt); color: var(--ink); font-weight: 700; font-size: 13px; letter-spacing: .02em; }
.article tr:last-child td { border-bottom: 0; }
.article td strong { color: var(--ink); }
.article .card { gap: 8px; }
.article a.card:hover { text-decoration: none; }
@media (max-width: 680px) {
  .article table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .article table thead, .article table tbody { display: table; width: 100%; min-width: 600px; }
  .article h2 { font-size: 23px; }
}

/* — FAQ rows — */
.faq-row { display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding: 22px 0; border-top: 1px solid var(--line); }
.faq-row:last-child { border-bottom: 1px solid var(--line); }
.faq-row h4 { margin: 0 0 6px; }
.faq-row p { margin: 0; }

@media (max-width: 900px) {
  h1 { font-size: 42px; }
  h2 { font-size: 31px; }
  .hero-grid, .hero-grid.hero-aside, .footer-grid { grid-template-columns: 1fr; }
  .hero-grid.hero-aside .card { max-width: 560px; }
  .grid-4, .grid-3 { grid-template-columns: 1fr 1fr; }
  .faq-row, .step-item { grid-template-columns: 1fr; gap: 8px; }
}

@media (max-width: 680px) {
  .wrap { padding-inline: 18px; }
  .nav-links { position: fixed; top: 70px; left: 12px; right: 12px; display: none; flex-direction: column; align-items: stretch; gap: 2px; padding: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); max-height: calc(100vh - 92px); overflow: auto; }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 12px 14px; border-radius: var(--radius-sm); }
  .nav-links .btn { margin: 6px 0 0; width: 100%; }
  .nav-toggle { display: flex; }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .stats-strip { grid-template-columns: 1fr 1fr; gap: 16px; }
  h1 { font-size: 34px; }
  h2 { font-size: 27px; }
  .hero { padding: 52px 0 56px; }
  section.section { padding: 60px 0; }
  .cta-band { padding: 52px 20px; border-radius: 20px; }
  .footer-legal { flex-direction: column; }
  [style*="grid-template-columns:1fr 1fr"] { grid-template-columns: 1fr !important; }
  [style*="grid-column:span 2"] { grid-column: auto !important; }
}
