/* =========================================================
   MD Technosoft — site stylesheet (2026 redesign)
   Brand: navy #333055 · red #E6363D
   ========================================================= */
:root {
  --navy: #333055;
  --navy-900: #12112a;
  --navy-800: #1b1a3a;
  --navy-700: #26244a;
  --red: #e6363d;
  --red-600: #cc2a31;
  --violet: #6d5efc;
  --ink: #17162b;
  --body: #4a4966;
  --muted: #6e6d88;
  --line: #e6e5ef;
  --soft: #f6f6fb;
  --white: #ffffff;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(18, 17, 42, .06), 0 8px 24px rgba(18, 17, 42, .06);
  --shadow-lg: 0 24px 60px rgba(18, 17, 42, .18);
  --max: 1200px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: hidden; scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.65; color: var(--body); background: var(--white); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-600); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.2; margin: 0 0 .6em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 200; }
.skip-link:focus { top: 12px; color: #fff; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 6px; }
.icon { width: 24px; height: 24px; flex: none; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: .55em; padding: .85em 1.4em; border-radius: 999px; font-weight: 600; font-size: .98rem; border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease; line-height: 1.2; font-family: var(--font); }
.btn .icon { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 8px 20px rgba(230, 54, 61, .3); }
.btn-primary:hover { background: var(--red-600); color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,.3); color: #fff; }
.btn-ghost:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.06); }
.btn-outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-outline:hover { border-color: var(--navy); color: var(--ink); }
.btn-sm { padding: .6em 1.1em; font-size: .9rem; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.88); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.scrolled { border-color: var(--line); box-shadow: 0 6px 20px rgba(18,17,42,.06); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 48px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav > a, .nav .dd > button { color: var(--ink); font-weight: 600; font-size: .95rem; padding: 10px 14px; border-radius: 10px; background: none; border: 0; cursor: pointer; font-family: var(--font); display: inline-flex; align-items: center; gap: 4px; }
.nav > a:hover, .nav .dd > button:hover, .nav > a.active { background: var(--soft); color: var(--ink); }
.nav .dd { position: relative; }
.nav .dd > button .icon { width: 16px; height: 16px; transition: transform .2s; }
.dd-menu { position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%) translateY(6px); width: 560px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; opacity: 0; visibility: hidden; transition: opacity .18s, transform .18s, visibility .18s; }
.dd:hover .dd-menu, .dd:focus-within .dd-menu, .dd.open .dd-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dd:hover > button .icon, .dd.open > button .icon { transform: rotate(180deg); }
.dd-menu a { display: flex; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--ink); }
.dd-menu a:hover { background: var(--soft); }
.dd-menu a .ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: #fdecec; color: var(--red); flex: none; }
.dd-menu a .ico .icon { width: 20px; height: 20px; }
.dd-menu a strong { display: block; font-size: .92rem; }
.dd-menu a span.d { display: block; font-size: .8rem; color: var(--muted); line-height: 1.35; }
.nav-cta { margin-left: 10px; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; color: var(--ink); cursor: pointer; }
.nav-toggle .icon { width: 28px; height: 28px; }

@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
  .nav { position: fixed; top: 76px; left: 0; right: 0; height: calc(100vh - 76px); height: calc(100dvh - 76px); background: #fff; flex-direction: column; align-items: stretch; padding: 16px 24px 40px; gap: 2px; overflow-y: auto; transform: translateY(-10px); opacity: 0; visibility: hidden; transition: transform .2s ease, opacity .2s ease, visibility .2s; }
  .nav.open { transform: none; opacity: 1; visibility: visible; }
  .nav > a, .nav .dd > button { padding: 14px 12px; font-size: 1.05rem; width: 100%; justify-content: space-between; }
  .dd-menu { position: static; transform: none; width: auto; box-shadow: none; border: 0; padding: 0 0 0 8px; grid-template-columns: 1fr; display: none; opacity: 1; visibility: visible; }
  .dd:hover .dd-menu, .dd:focus-within .dd-menu { transform: none; }
  .dd.open .dd-menu { display: grid; transform: none; }
  .nav-cta { margin: 16px 0 0; justify-content: center; }
  body.nav-open { overflow: hidden; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 600px at 85% -10%, rgba(109,94,252,.35), transparent 60%), radial-gradient(900px 500px at -10% 110%, rgba(230,54,61,.28), transparent 60%), var(--navy-900); color: #cfcde6; padding: 96px 0 104px; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(ellipse at 60% 40%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at 60% 40%, #000 30%, transparent 75%); pointer-events: none; }
.hero .container { position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; }
.hero h1 { color: #fff; }
.hero h1 .grad { background: linear-gradient(90deg, #ff6b70, #b9a8ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: 1.15rem; color: #c4c2de; max-width: 600px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--red); margin-bottom: 14px; }
.hero .eyebrow, .dark .eyebrow { color: #ff8a8e; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border-radius: 999px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); color: #e7e6f5; font-size: .85rem; font-weight: 500; margin-bottom: 22px; }
.pill b { background: var(--red); color: #fff; font-size: .72rem; padding: 3px 8px; border-radius: 999px; letter-spacing: .04em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 34px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; font-size: .85rem; color: #9b99bb; }
.trust span.t { padding: 5px 12px; border: 1px solid rgba(255,255,255,.12); border-radius: 999px; color: #dcdaf0; background: rgba(255,255,255,.03); }

/* hero console */
.console { position: relative; background: linear-gradient(180deg, rgba(38,36,74,.92), rgba(23,22,50,.95)); border: 1px solid rgba(255,255,255,.12); border-radius: 20px; box-shadow: 0 30px 80px rgba(0,0,0,.45); overflow: hidden; font-family: ui-monospace, "Cascadia Code", "SFMono-Regular", Consolas, monospace; font-size: .86rem; }
.console-bar { display: flex; align-items: center; gap: 8px; padding: 14px 16px; border-bottom: 1px solid rgba(255,255,255,.08); color: #9b99bb; font-size: .78rem; }
.console-bar i { width: 11px; height: 11px; border-radius: 50%; background: #4a4870; display: inline-block; }
.console-bar i:nth-child(1) { background: #ff5f57; } .console-bar i:nth-child(2) { background: #febc2e; } .console-bar i:nth-child(3) { background: #28c840; }
.console-bar span { margin-left: 8px; }
.console-body { padding: 18px 18px 22px; }
.step { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; color: #e7e6f5; opacity: 0; transform: translateY(6px); animation: stepIn .5s ease forwards; }
.step + .step { margin-top: 6px; }
.step:nth-child(1) { animation-delay: .2s; } .step:nth-child(2) { animation-delay: .7s; } .step:nth-child(3) { animation-delay: 1.2s; } .step:nth-child(4) { animation-delay: 1.7s; } .step:nth-child(5) { animation-delay: 2.2s; }
.step small { display: block; color: #8f8db0; font-size: .76rem; }
.step .ok { color: #4ade80; font-size: .78rem; white-space: nowrap; }
.step .run { color: #fbbf24; font-size: .78rem; white-space: nowrap; }
.step .dot { width: 10px; height: 10px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 4px rgba(74,222,128,.15); justify-self: center; }
.step.active { background: rgba(255,255,255,.05); }
.step.active .dot { background: #fbbf24; box-shadow: 0 0 0 4px rgba(251,191,36,.18); animation: pulse 1.4s infinite; }
@keyframes stepIn { to { opacity: 1; transform: none; } }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(251,191,36,0); } }
.float-chip { position: absolute; z-index: 2; padding: 8px 14px; border-radius: 12px; background: #fff; color: var(--ink); font-weight: 700; font-size: .82rem; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 8px; animation: float 6s ease-in-out infinite; }
.float-chip .icon { width: 18px; height: 18px; color: var(--red); }
.float-chip.c1 { top: -18px; right: 24px; }
.float-chip.c2 { bottom: -18px; left: -14px; animation-delay: -3s; }
@keyframes float { 50% { transform: translateY(-8px); } }
.console-wrap { position: relative; }

@media (max-width: 960px) {
  .hero { padding: 64px 0 80px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .float-chip.c2 { left: 8px; }
}

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section.soft { background: var(--soft); }
.section.dark { background: var(--navy-900); color: #c4c2de; }
.section.dark h2, .section.dark h3 { color: #fff; }
.section-head { max-width: 720px; margin: 0 0 48px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head p { font-size: 1.08rem; color: var(--muted); }
.dark .section-head p { color: #a9a7c7; }
@media (max-width: 720px) { .section { padding: 72px 0; } }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s, border-color .2s; position: relative; }
a.card { color: inherit; display: flex; flex-direction: column; }
a.card .more { margin-top: auto; padding-top: 6px; }
.product .more { margin-top: auto; }
a.card:hover, .card.hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; color: inherit; }
.card .ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, #fdecec, #efeaff); color: var(--red); margin-bottom: 18px; }
.card .ico .icon { width: 26px; height: 26px; }
.card h3 { margin-bottom: .45em; }
.card p { color: var(--muted); font-size: .97rem; }
.card .more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--red); font-size: .92rem; margin-top: 6px; }
.card .more .icon { width: 16px; height: 16px; transition: transform .2s; }
a.card:hover .more .icon { transform: translateX(4px); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 8px; padding: 0; list-style: none; }
.tags li { font-size: .76rem; font-weight: 600; color: var(--navy); background: var(--soft); border: 1px solid var(--line); padding: 3px 10px; border-radius: 999px; }
.dark .tags li { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); color: #dcdaf0; }

/* about */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-points { display: grid; gap: 18px; margin-top: 28px; }
.about-points > div { display: grid; grid-template-columns: 44px 1fr; gap: 14px; }
.about-points .ico { width: 44px; height: 44px; border-radius: 12px; background: #fdecec; color: var(--red); display: grid; place-items: center; }
.about-points h3 { font-size: 1.02rem; margin: 2px 0 2px; }
.about-points p { margin: 0; color: var(--muted); font-size: .95rem; }
.about-visual { position: relative; border-radius: 24px; padding: 32px; background: linear-gradient(135deg, var(--navy-800), var(--navy)); color: #fff; overflow: hidden; }
.about-visual::after { content: ""; position: absolute; width: 320px; height: 320px; right: -120px; top: -120px; border-radius: 50%; background: radial-gradient(circle, rgba(230,54,61,.5), transparent 70%); }
.about-visual h3 { color: #fff; font-size: 1.3rem; position: relative; }
.about-visual ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; position: relative; }
.about-visual li { display: flex; gap: 12px; align-items: flex-start; color: #dcdaf0; }
.about-visual li .icon { color: #4ade80; width: 20px; height: 20px; margin-top: 3px; }
@media (max-width: 960px) { .about-grid { grid-template-columns: 1fr; gap: 40px; } }

/* AI-DLC timeline */
.timeline { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: s; position: relative; }
.timeline::before { content: ""; position: absolute; top: 27px; left: 10%; right: 10%; height: 2px; background: linear-gradient(90deg, var(--red), var(--violet)); opacity: .5; }
.tl { position: relative; text-align: center; padding: 0 6px; }
.tl .num { width: 56px; height: 56px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: var(--navy-800); border: 2px solid rgba(255,255,255,.18); color: #fff; font-weight: 800; font-family: var(--font-head); position: relative; z-index: 1; }
.tl:nth-child(odd) .num { border-color: var(--red); }
.tl:nth-child(even) .num { border-color: var(--violet); }
.tl h3 { font-size: 1.05rem; margin-bottom: 6px; }
.tl p { font-size: .9rem; color: #a9a7c7; margin-bottom: 8px; }
.tl .tags { justify-content: center; }
@media (max-width: 960px) { .timeline { grid-template-columns: 1fr; gap: 28px; } .timeline::before { display: none; } .tl { text-align: left; display: grid; grid-template-columns: 56px 1fr; gap: 18px; } .tl .num { margin: 0; } .tl .tags { justify-content: flex-start; } }
.callout { margin-top: 48px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.callout div { border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.03); border-radius: 14px; padding: 18px; }
.callout strong { display: block; color: #fff; font-family: var(--font-head); margin-bottom: 4px; }
.callout span { font-size: .9rem; color: #a9a7c7; }
@media (max-width: 960px) { .callout { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .callout { grid-template-columns: 1fr; } }

/* FDE */
.fde-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.plan { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: #fff; display: grid; grid-template-columns: 48px 1fr; gap: 16px; box-shadow: var(--shadow); }
.plan + .plan { margin-top: 16px; }
.plan .ico { width: 48px; height: 48px; border-radius: 12px; background: var(--navy); color: #fff; display: grid; place-items: center; }
.plan h3 { margin-bottom: 4px; font-size: 1.08rem; }
.plan p { margin: 0; color: var(--muted); font-size: .95rem; }
.plan.featured { border: 2px solid var(--red); position: relative; }
.plan.featured::after { content: "Most popular"; position: absolute; top: -12px; right: 18px; background: var(--red); color: #fff; font-size: .72rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; letter-spacing: .03em; }
.checks { list-style: none; padding: 0; margin: 20px 0 28px; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks li .icon { color: var(--red); width: 22px; height: 22px; margin-top: 2px; }
.roles { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 24px; padding: 0; list-style: none; }
.roles li { background: var(--soft); border: 1px solid var(--line); padding: 6px 14px; border-radius: 999px; font-size: .88rem; font-weight: 600; color: var(--ink); }
@media (max-width: 960px) { .fde-grid { grid-template-columns: 1fr; gap: 40px; } }

/* Tech stack */
.tech-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 18px; }
.tech-card h3 { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.tech-card h3 .icon { width: 18px; height: 18px; color: var(--red); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.chips li { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 600; color: var(--ink); padding: 7px 12px; border-radius: 10px; background: var(--soft); border: 1px solid var(--line); }
.chips li i { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--red)); display: inline-block; }

/* Products */
.product { display: flex; flex-direction: column; }
.tech-grid { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .tech-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .tech-grid { grid-template-columns: 1fr; } }
.product .logo-box { height: 120px; border-radius: 12px; background: var(--soft); display: grid; place-items: center; margin-bottom: 20px; border: 1px solid var(--line); }
.product .logo-box img { max-height: 64px; width: auto; }

/* Portfolio */
.work { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.work .thumb { aspect-ratio: 16 / 10; overflow: hidden; background: var(--soft); }
.work .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
a.work:hover .thumb img { transform: scale(1.05); }
.work .body { padding: 22px 24px 24px; }
.work .cat { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--red); margin-bottom: 6px; display: block; }
.work h3 { margin-bottom: 6px; }

/* Stats */
.stats { background: linear-gradient(120deg, var(--navy) 0%, var(--navy-800) 60%, #3b2350 100%); color: #fff; padding: 64px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat strong { display: block; font-family: var(--font-head); font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 800; line-height: 1; margin-bottom: 8px; }
.stat span { color: #c4c2de; font-size: .95rem; }
@media (max-width: 720px) { .stats-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }

/* Use cases */
.usecase { display: flex; gap: 16px; padding: 20px; border-radius: 14px; border: 1px solid var(--line); background: #fff; }
.usecase .ico { width: 42px; height: 42px; border-radius: 10px; flex: none; display: grid; place-items: center; background: #efeaff; color: var(--violet); }
.usecase h3 { font-size: 1rem; margin-bottom: 4px; }
.usecase p { margin: 0; font-size: .92rem; color: var(--muted); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.contact-info { display: grid; gap: 16px; }
.contact-item { display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: center; padding: 18px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); }
.contact-item .ico { width: 48px; height: 48px; border-radius: 12px; background: rgba(230,54,61,.16); color: #ff8a8e; display: grid; place-items: center; }
.contact-item small { display: block; color: #9b99bb; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.contact-item a, .contact-item span { color: #fff; font-weight: 600; }
.contact-item a:hover { color: #ff8a8e; }
.form { background: #fff; border-radius: 20px; padding: 32px; box-shadow: var(--shadow-lg); color: var(--body); }
.form h3, .section.dark .form h3 { font-size: 1.35rem; color: var(--ink); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .88rem; color: var(--ink); margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; font-size: .97rem; color: var(--ink); background: #fff; transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 4px rgba(109,94,252,.15); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--red); }
.field .err { display: none; color: var(--red); font-size: .82rem; margin-top: 4px; }
.field.invalid .err { display: block; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .82rem; color: var(--muted); margin: 12px 0 0; }
.form-status { display: none; margin-top: 16px; padding: 14px 16px; border-radius: 10px; font-size: .94rem; }
.form-status.ok { display: block; background: #ecfdf3; color: #146c3b; border: 1px solid #b7ebcb; }
.form-status.fail { display: block; background: #fff1f1; color: #9b1c22; border: 1px solid #f6c5c7; }
.form .btn { width: 100%; justify-content: center; }
.form .btn[disabled] { opacity: .7; cursor: wait; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; gap: 0; } .form { padding: 24px; } }

/* CTA band */
.cta-band { background: linear-gradient(110deg, var(--red) 0%, #b92b6a 55%, var(--violet) 120%); border-radius: 24px; padding: 48px; color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: .3em; font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.cta-band p { margin: 0; color: #ffe3e4; max-width: 560px; }
.cta-band .btn-light { background: #fff; color: var(--ink); }
.cta-band .btn-light:hover { color: var(--ink); background: #f3f3f8; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 640px) { .cta-band { padding: 32px 24px; } }

/* Inner page hero */
.page-hero { position: relative; overflow: hidden; background: radial-gradient(900px 500px at 90% -20%, rgba(109,94,252,.35), transparent 60%), radial-gradient(700px 400px at -10% 120%, rgba(230,54,61,.25), transparent 60%), var(--navy-900); color: #c4c2de; padding: 72px 0 80px; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); max-width: 860px; }
.page-hero .lead { font-size: 1.12rem; max-width: 760px; color: #c4c2de; }
.crumbs { font-size: .85rem; color: #9b99bb; margin-bottom: 18px; display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { color: #dcdaf0; }
.crumbs a:hover { color: #fff; }
.page-hero .hero-ctas { margin: 28px 0 0; }
.page-hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
.page-hero-grid img { border-radius: 18px; box-shadow: 0 30px 70px rgba(0,0,0,.4); border: 1px solid rgba(255,255,255,.12); }
@media (max-width: 960px) { .page-hero-grid { grid-template-columns: 1fr; } }

.meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.meta div { border: 1px solid rgba(255,255,255,.12); border-radius: 12px; padding: 12px 16px; background: rgba(255,255,255,.04); }
.meta small { display: block; text-transform: uppercase; letter-spacing: .06em; font-size: .72rem; font-weight: 700; color: #9b99bb; }
.meta span { color: #fff; font-weight: 600; }
@media (max-width: 560px) { .meta { grid-template-columns: 1fr; } }

.prose { max-width: 760px; }
.prose h2 { font-size: 1.6rem; margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.two-col { display: grid; grid-template-columns: 1.4fr .9fr; gap: 56px; align-items: start; }
.aside-box { position: sticky; top: 100px; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; background: var(--soft); }
.aside-box h3 { font-size: 1.05rem; }
.aside-box .btn { width: 100%; justify-content: center; margin-top: 8px; }
@media (max-width: 960px) { .two-col { grid-template-columns: 1fr; gap: 40px; } .aside-box { position: static; } }

.steps-list { counter-reset: n; list-style: none; padding: 0; display: grid; gap: 14px; }
.steps-list li { counter-increment: n; display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.steps-list li::before { content: counter(n); width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 800; font-family: var(--font-head); }
.steps-list strong { display: block; color: var(--ink); }
.steps-list span { color: var(--muted); font-size: .95rem; }

.ai-box { border-radius: var(--radius); padding: 28px; background: linear-gradient(135deg, #f3f0ff, #fff1f1); border: 1px solid #e5defe; }
.ai-box h3 { display: flex; align-items: center; gap: 10px; }
.ai-box h3 .icon { color: var(--violet); }
.ai-box ul { margin: 0; padding-left: 1.2em; }
.ai-box li { margin-bottom: 6px; }

/* FAQ */
.faq { max-width: 820px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 0 20px; }
.faq details + details { margin-top: 12px; }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 700; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 16px; font-family: var(--font-head); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--red); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 18px; margin: 0; color: var(--muted); }

.pager { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #a9a7c7; padding: 72px 0 0; font-size: .94rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-brand img { height: 52px; width: auto; background: #fff; padding: 6px 10px; border-radius: 12px; margin-bottom: 16px; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { color: #c4c2de; }
.site-footer a:hover { color: #fff; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .icon { width: 18px; height: 18px; color: #ff8a8e; margin-top: 3px; }
.social { display: flex; gap: 10px; margin-top: 18px; }
.social a { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); color: #fff; }
.social a:hover { background: var(--red); border-color: var(--red); }
.social .icon { width: 18px; height: 18px; }
.footer-bottom { margin-top: 56px; border-top: 1px solid rgba(255,255,255,.08); padding: 22px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* Floating WhatsApp + back to top */
.wa-float { position: fixed; right: 20px; bottom: 20px; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(37,211,102,.45); z-index: 90; }
.wa-float:hover { color: #fff; transform: scale(1.05); }
.wa-float .icon { width: 28px; height: 28px; }
.to-top { position: fixed; right: 26px; bottom: 88px; width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: #fff; border: 0; display: grid; place-items: center; cursor: pointer; opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; z-index: 90; box-shadow: var(--shadow-lg); }
.to-top.show { opacity: 1; visibility: visible; }
.to-top .icon { width: 20px; height: 20px; }

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

/* 404 */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 96px 0; }
.notfound .big { font-size: clamp(5rem, 14vw, 9rem); font-weight: 800; font-family: var(--font-head); background: linear-gradient(90deg, var(--red), var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }

/* ---------- Blog ---------- */
.post { padding: 0; overflow: hidden; }
.post-cover { height: 170px; position: relative; display: flex; align-items: flex-end; padding: 18px 22px; color: #fff; overflow: hidden; }
.post-cover::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px); background-size: 28px 28px; }
.post-cover .pc-ico { position: absolute; right: 18px; top: 18px; width: 64px; height: 64px; border-radius: 16px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); display: grid; place-items: center; }
.post-cover .pc-ico .icon { width: 32px; height: 32px; }
.post-cover .pc-cat { position: relative; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: rgba(0,0,0,.25); padding: 5px 10px; border-radius: 999px; }
.post .body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.post-meta { font-size: .8rem; color: var(--muted); margin-bottom: 8px; display: block; }
.post h3 { font-size: 1.15rem; }
.article-hero { padding-bottom: 64px; }
.article-hero .lead { max-width: 820px; }
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: #dcdaf0; font-size: .9rem; margin-top: 22px; }
.byline .avatar { width: 32px; height: 32px; border-radius: 50%; background: #fff; display: grid; place-items: center; overflow: hidden; }
.byline .avatar img { width: 24px; height: 24px; }
.article-section { padding-top: 64px; }
.article-grid { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 56px; align-items: start; }
.toc { position: sticky; top: 100px; }
.toc h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 12px; }
.toc ol { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.toc li a { display: block; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--body); font-size: .9rem; line-height: 1.4; }
.toc li a:hover, .toc li a.on { color: var(--red); border-left-color: var(--red); }
.toc-cta { margin-top: 24px; padding: 18px; border-radius: 14px; background: var(--soft); border: 1px solid var(--line); }
.toc-cta p { font-weight: 600; color: var(--ink); font-size: .92rem; margin-bottom: 10px; }
.article { max-width: 780px; font-size: 1.04rem; line-height: 1.75; color: #3d3c57; }
.article .lede { font-size: 1.18rem; color: var(--ink); line-height: 1.7; }
.article h2 { font-size: 1.65rem; margin: 2.2em 0 .7em; scroll-margin-top: 96px; }
.article h3 { font-size: 1.15rem; margin: 1.6em 0 .5em; }
.article ul, .article ol { padding-left: 1.3em; }
.article li { margin-bottom: .45em; }
.article a { text-decoration: underline; text-underline-offset: 3px; }
.article .btn, .article .card a { text-decoration: none; }
.article code { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: .86em; background: #f1f0f7; border: 1px solid var(--line); padding: .1em .4em; border-radius: 6px; color: var(--navy); }
.article pre { background: var(--navy-900); color: #e7e6f5; border-radius: 14px; padding: 20px 22px; overflow-x: auto; font-size: .88rem; line-height: 1.6; margin: 1.2em 0 1.6em; border: 1px solid #2a2850; }
.article pre code { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; }
.article blockquote { margin: 1.4em 0; padding: 18px 22px; border-left: 4px solid var(--red); background: #fff5f5; border-radius: 0 12px 12px 0; color: var(--ink); font-size: 1.08rem; }
.note { margin: 1.4em 0; padding: 16px 20px; border-radius: 12px; background: #f3f0ff; border: 1px solid #e0d9ff; font-size: .97rem; }
.table-wrap { overflow-x: auto; margin: 1.2em 0 1.6em; border: 1px solid var(--line); border-radius: 12px; }
.article table { width: 100%; border-collapse: collapse; font-size: .93rem; line-height: 1.5; }
.article th { background: var(--soft); text-align: left; color: var(--ink); font-weight: 700; }
.article th, .article td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.article tr:last-child td { border-bottom: 0; }
.article .opt { display: inline-block; font-size: .7rem; font-weight: 700; color: var(--violet); background: #f3f0ff; border-radius: 999px; padding: 1px 8px; margin-left: 4px; }
.article .checks { padding-left: 0; }
.article .steps-list { padding-left: 0; margin: 1.2em 0; }
.article .mini { margin: 1.2em 0; }
.article .mini .card { padding: 22px; }
.article .mini .card p { margin: 0; }
.phase-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 1.2em 0; }
.phase { border: 1px solid var(--line); border-radius: 14px; padding: 20px; background: #fff; box-shadow: var(--shadow); font-size: .93rem; line-height: 1.6; }
.phase h3 { margin: 10px 0 8px; }
.phase p { margin-bottom: .6em; }
.ph-num { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--red), var(--violet)); color: #fff; display: grid; place-items: center; font-weight: 800; }
.timeline-v { border-left: 2px solid var(--line); margin: 1.2em 0 .6em 6px; padding-left: 22px; }
.timeline-v > div { position: relative; padding-bottom: 14px; }
.timeline-v > div::before { content: ""; position: absolute; left: -29px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px #fdecec; }
.timeline-v span { font-size: .8rem; font-weight: 700; color: var(--red); text-transform: uppercase; letter-spacing: .05em; }
.timeline-v p { margin: 2px 0 0; }
.small-note { font-size: .85rem; color: var(--muted); }
.article-foot { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.article-foot h3 { font-size: 1rem; margin-top: 20px; }
.sources { font-size: .95rem; }
.share { margin-top: 18px; font-size: .92rem; color: var(--muted); }
@media (max-width: 1024px) { .article-grid { grid-template-columns: 1fr; gap: 24px; } .toc { position: static; } .toc ol { columns: 2; } }
@media (max-width: 720px) { .phase-grid { grid-template-columns: 1fr; } .toc ol { columns: 1; } .article { font-size: 1rem; } }
