/* ==========================================================================
   Rewa Cyber Resolutions — site stylesheet
   Design tokens live in :root. --primary / --secondary / --accent can be
   overridden from Admin → Settings → Theme (injected inline in <head>);
   everything else derives from them.
   ========================================================================== */

@font-face { font-family: 'Inter'; font-style: normal; font-weight: 300 700; font-display: swap; src: url('../vendor/fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1ZL7.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap; src: url('../vendor/fonts/pxiByp8kv8JHgFVrLGT9Z1xlFQ.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url('../vendor/fonts/pxiByp8kv8JHgFVrLCz7Z1xlFQ.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap; src: url('../vendor/fonts/pxiByp8kv8JHgFVrLEj6Z1xlFQ.woff2') format('woff2'); }

:root {
	/* Brand (overridable) */
	--primary: #1d5bd8;
	--secondary: #0a1f44;
	--accent: #16b8e0;

	/* Derived brand shades */
	--primary-dark: color-mix(in srgb, var(--primary) 78%, #000);
	--primary-soft: color-mix(in srgb, var(--primary) 9%, #fff);
	--primary-line: color-mix(in srgb, var(--primary) 22%, #fff);
	--accent-soft: color-mix(in srgb, var(--accent) 14%, #fff);
	--secondary-deep: color-mix(in srgb, var(--secondary) 80%, #000);
	--success: #3fa34d;

	/* Neutrals */
	--text: #0f1b33;
	--text-2: #33415c;
	--muted: #5f6f89;
	--background: #ffffff;
	--surface: #f4f7fc;
	--surface-2: #eaf0f9;
	--border: #e1e8f3;
	--on-dark: #e8eefb;
	--on-dark-muted: #a9b7d3;

	/* Gradients */
	--grad-brand: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
	--grad-dark: radial-gradient(1200px 600px at 85% -10%, color-mix(in srgb, var(--primary) 45%, transparent) 0%, transparent 60%),
	             radial-gradient(800px 500px at -10% 110%, color-mix(in srgb, var(--accent) 22%, transparent) 0%, transparent 60%),
	             linear-gradient(160deg, var(--secondary) 0%, var(--secondary-deep) 100%);

	/* Type */
	--font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
	--font-head: 'Poppins', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

	/* Shape & depth */
	--radius-sm: 10px;
	--radius: 16px;
	--radius-lg: 24px;
	--shadow-sm: 0 1px 2px rgba(15, 27, 51, .06), 0 1px 3px rgba(15, 27, 51, .05);
	--shadow: 0 10px 30px -12px rgba(15, 27, 51, .18), 0 4px 10px -6px rgba(15, 27, 51, .08);
	--shadow-lg: 0 30px 60px -20px rgba(10, 31, 68, .35);

	--container: 1200px;
	--header-h: 76px;
	--ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------------------------------------------------------------- Base */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; font-family: var(--font-body); font-size: 1rem; line-height: 1.65; color: var(--text-2); background: var(--background); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img, svg, video, iframe { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-dark); }
h1, h2, h3, h4, h5 { font-family: var(--font-head); color: var(--text); line-height: 1.2; margin: 0 0 .6em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); letter-spacing: -.025em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); letter-spacing: -.02em; }
h3 { font-size: 1.25rem; font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 70%, transparent); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--primary); color: #fff; }

.icon { width: 1.25em; height: 1.25em; flex-shrink: 0; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 1000; background: var(--primary); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); }
.skip-link:focus { top: 12px; color: #fff; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: clamp(64px, 9vw, 112px) 0; position: relative; }
.section-sm { padding: clamp(48px, 6vw, 72px) 0; }
.section-alt { background: var(--surface); }
.section-dark { background: var(--grad-dark); color: var(--on-dark); }
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }
.text-center { text-align: center; }
.muted { color: var(--muted); }
.lead { font-size: 1.125rem; color: var(--muted); }
.section-dark .lead, .section-dark .muted { color: var(--on-dark-muted); }

/* Grid helpers */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.stack > * + * { margin-top: 16px; }

/* ------------------------------------------------------------ Section head */
.section-head { max-width: 720px; margin: 0 auto clamp(36px, 5vw, 56px); text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.section-head p { color: var(--muted); font-size: 1.075rem; margin: 0; }
.section-dark .section-head p { color: var(--on-dark-muted); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--primary); margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--grad-brand); }
.section-dark .eyebrow { color: var(--accent); }
.section-foot { margin-top: 44px; text-align: center; }

/* ----------------------------------------------------------------- Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 24px; border-radius: 999px; border: 1.5px solid transparent; font-family: var(--font-head); font-weight: 600; font-size: .98rem; line-height: 1.2; cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, color .2s, border-color .2s; white-space: nowrap; text-align: center; }
.btn .icon { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.btn:hover .icon-arrow { transform: translateX(3px); }
.btn-primary { background: var(--grad-brand); color: #fff; box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--primary) 70%, transparent); }
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 16px 30px -12px color-mix(in srgb, var(--primary) 80%, transparent); }
.btn-outline { border-color: var(--primary-line); color: var(--primary); background: #fff; }
.btn-outline:hover { border-color: var(--primary); color: var(--primary-dark); transform: translateY(-2px); }
.btn-ghost-light { border-color: rgba(255, 255, 255, .28); color: #fff; background: rgba(255, 255, 255, .06); backdrop-filter: blur(6px); }
.btn-ghost-light:hover { color: #fff; background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .5); transform: translateY(-2px); }
.btn-white { background: #fff; color: var(--secondary); }
.btn-white:hover { color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-whatsapp { background: #147a3e; color: #fff; }
.btn-whatsapp:hover { background: #0f6632; color: #fff; transform: translateY(-2px); }
.btn-sm { min-height: 40px; padding: 8px 18px; font-size: .9rem; }
.btn-block { width: 100%; }
.btn-group { display: flex; flex-wrap: wrap; gap: 14px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-head); font-weight: 600; font-size: .95rem; }
.link-arrow .icon { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ---------------------------------------------------------------- Topbar */
.topbar { background: var(--secondary-deep); color: var(--on-dark-muted); font-size: .85rem; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.topbar a { color: var(--on-dark); display: inline-flex; align-items: center; gap: 7px; }
.topbar a:hover { color: #fff; }
.topbar .icon { width: 15px; height: 15px; color: var(--accent); }
.topbar-links, .topbar-social { display: flex; align-items: center; gap: 22px; }
.topbar-social { gap: 12px; }
.topbar-social a .icon { color: var(--on-dark-muted); width: 16px; height: 16px; }
.topbar-social a:hover .icon { color: #fff; }

/* ---------------------------------------------------------------- Header */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid transparent; transition: box-shadow .25s, border-color .25s; }
.site-header.is-scrolled { border-bottom-color: var(--border); box-shadow: 0 6px 24px -14px rgba(15, 27, 51, .25); }
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 44px; width: auto; }
.main-nav { margin-left: auto; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.nav-link { display: inline-flex; align-items: center; gap: 4px; padding: 10px 13px; border-radius: 10px; font-family: var(--font-head); font-size: .93rem; font-weight: 500; color: var(--text); background: none; border: 0; cursor: pointer; }
.nav-link:hover, .nav-item.open > .nav-link { color: var(--primary); background: var(--primary-soft); }
.nav-link.active { color: var(--primary); }
.nav-link .icon { width: 16px; height: 16px; transition: transform .2s; }
.nav-item { position: relative; }
.nav-item.open > .nav-link .icon { transform: rotate(180deg); }
.dropdown { position: absolute; top: calc(100% + 10px); left: 50%; transform: translate(-50%, 8px); min-width: 320px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 10px; opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s var(--ease), visibility .2s; }
.dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.dropdown.wide { min-width: 640px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.nav-item.open > .dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
@media (hover: hover) and (min-width: 1101px) { .nav-item.has-dropdown:hover > .dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); } .nav-item.has-dropdown:hover > .nav-link { color: var(--primary); background: var(--primary-soft); } }
.dropdown a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--text); font-size: .92rem; font-weight: 500; line-height: 1.35; }
.dropdown a:hover { background: var(--surface); color: var(--primary); }
.dropdown .dd-icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); flex-shrink: 0; }
.dropdown .dd-icon .icon { width: 18px; height: 18px; }
.dropdown .dd-all { grid-column: 1 / -1; justify-content: center; margin-top: 4px; border-top: 1px solid var(--border); border-radius: 0 0 10px 10px; color: var(--primary); font-family: var(--font-head); font-weight: 600; }
.header-cta { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.nav-toggle { display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--border); background: #fff; align-items: center; justify-content: center; cursor: pointer; color: var(--text); }
.nav-toggle .icon { width: 22px; height: 22px; }

/* -------------------------------------------------------------- Mobile nav */
@media (max-width: 1100px) {
	/* backdrop-filter would make the header the containing block of the fixed nav panel */
	.site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
	.nav-toggle { display: inline-flex; }
	.header-cta .btn { display: none; }
	.main-nav { position: fixed; inset: 0 0 0 auto; width: min(380px, 88vw); background: #fff; margin: 0; padding: 84px 20px 32px; overflow-y: auto; clip-path: inset(0 0 0 100%); transition: clip-path .35s var(--ease), visibility .35s; z-index: 120; box-shadow: var(--shadow-lg); visibility: hidden; }
	body.nav-open .main-nav { clip-path: inset(0 0 0 0); visibility: visible; }
	body:not(.nav-open) .main-nav { content-visibility: hidden; }
	.nav-backdrop { position: fixed; inset: 0; background: rgba(6, 16, 36, .5); opacity: 0; visibility: hidden; transition: opacity .3s; z-index: 110; }
	body.nav-open .nav-backdrop { opacity: 1; visibility: visible; }
	body.nav-open { overflow: hidden; }
	body.nav-open .site-header { z-index: 130; }
	.nav-close { position: absolute; top: 18px; right: 18px; }
	.nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
	.nav-link { width: 100%; justify-content: space-between; padding: 14px 12px; font-size: 1.02rem; }
	.dropdown, .dropdown.wide { position: static; transform: none; min-width: 0; display: none; opacity: 1; visibility: visible; box-shadow: none; border: 0; padding: 0 0 8px 8px; grid-template-columns: 1fr; }
	.nav-item.open > .dropdown { display: block; transform: none; }
	.dropdown a { padding: 9px 10px; }
	.dropdown .dd-icon { width: 30px; height: 30px; }
	.mobile-nav-cta { display: grid !important; gap: 10px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); }
}
.mobile-nav-cta, .nav-close { display: none; }
@media (max-width: 1100px) { .nav-close { display: inline-flex; } }

/* ------------------------------------------------------------------- Hero */
.hero { position: relative; background: var(--grad-dark); color: var(--on-dark); overflow: hidden; padding: clamp(64px, 9vw, 120px) 0 clamp(72px, 10vw, 128px); isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; 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: 44px 44px; mask-image: radial-gradient(ellipse 70% 70% at 60% 40%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 70% at 60% 40%, #000 20%, transparent 75%); }
.hero h1 { color: #fff; margin-bottom: 22px; }
.hero h1 .grad { background: linear-gradient(90deg, #fff 0%, color-mix(in srgb, var(--accent) 80%, #fff) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-text p { font-size: clamp(1.02rem, 1.4vw, 1.18rem); color: var(--on-dark-muted); max-width: 580px; margin-bottom: 34px; }
.hero-badge { display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 8px; border-radius: 999px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); font-size: .86rem; color: var(--on-dark); margin-bottom: 26px; }
.hero-badge .dot { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--grad-brand); color: #fff; }
.hero-badge .dot .icon { width: 14px; height: 14px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 36px; padding: 0; list-style: none; font-size: .92rem; color: var(--on-dark); }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points .icon { width: 18px; height: 18px; color: var(--accent); }

/* Hero illustration (pure HTML/CSS, aria-hidden) */
.hero-visual { position: relative; min-height: 460px; }
.hv-window { position: absolute; inset: 20px 30px 40px 0; background: rgba(255, 255, 255, .97); border-radius: 18px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .1); overflow: hidden; display: flex; flex-direction: column; }
.hv-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; background: #f1f5fb; border-bottom: 1px solid var(--border); }
.hv-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d7dfeb; }
.hv-bar i:nth-child(1) { background: #ff6b6b; } .hv-bar i:nth-child(2) { background: #ffc24b; } .hv-bar i:nth-child(3) { background: #3fd07a; }
.hv-bar span { margin-left: 12px; height: 18px; flex: 1; max-width: 240px; border-radius: 6px; background: #e3e9f3; }
.hv-body { display: grid; grid-template-columns: 70px 1fr; flex: 1; min-height: 0; }
.hv-side { background: var(--secondary); padding: 16px 12px; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.hv-side b { width: 30px; height: 30px; border-radius: 9px; background: rgba(255, 255, 255, .12); }
.hv-side b:first-child { background: var(--grad-brand); }
.hv-main { padding: 18px; display: grid; grid-template-rows: auto 1fr auto; gap: 14px; min-width: 0; }
.hv-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.hv-kpi { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px; }
.hv-kpi small { display: block; height: 7px; width: 55%; border-radius: 4px; background: #d8e1ee; margin-bottom: 10px; }
.hv-kpi strong { display: block; font-family: var(--font-head); font-size: 1.15rem; color: var(--text); line-height: 1; }
.hv-kpi em { display: inline-block; margin-top: 8px; font-style: normal; font-size: .7rem; font-weight: 600; color: var(--success); background: #e5f6e8; border-radius: 99px; padding: 2px 8px; }
.hv-chart { display: flex; align-items: flex-end; gap: 9px; padding: 14px 14px 0; border: 1px solid var(--border); border-radius: 12px; min-height: 120px; background: linear-gradient(#fff, #f8fbff); }
.hv-chart i { flex: 1; border-radius: 6px 6px 0 0; background: linear-gradient(180deg, var(--accent), var(--primary)); height: var(--h); transform-origin: bottom; animation: bar-grow 1.2s var(--ease) both; animation-delay: calc(var(--i) * 80ms); opacity: .9; }
.hv-chart i:nth-child(even) { background: linear-gradient(180deg, color-mix(in srgb, var(--primary) 30%, #fff), color-mix(in srgb, var(--primary) 55%, #fff)); }
.hv-rows { display: grid; gap: 8px; }
.hv-rows div { display: grid; grid-template-columns: 26px 1fr 60px; gap: 10px; align-items: center; }
.hv-rows b { width: 26px; height: 26px; border-radius: 8px; background: var(--primary-soft); }
.hv-rows span { height: 8px; border-radius: 4px; background: #e3e9f3; }
.hv-rows em { height: 18px; border-radius: 99px; background: var(--accent-soft); }
.hv-phone { position: absolute; right: 0; bottom: 0; width: 150px; height: 290px; border-radius: 28px; background: #0d1a33; padding: 9px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .12); animation: float 6s ease-in-out infinite; }
.hv-phone-screen { height: 100%; border-radius: 21px; background: linear-gradient(180deg, #fff 0%, #f3f7fd 100%); overflow: hidden; padding: 14px 11px; display: flex; flex-direction: column; gap: 9px; }
.hv-phone-screen .ph-head { height: 54px; border-radius: 12px; background: var(--grad-brand); }
.hv-phone-screen .ph-row { display: flex; gap: 8px; align-items: center; }
.hv-phone-screen .ph-row b { width: 24px; height: 24px; border-radius: 7px; background: var(--primary-soft); flex-shrink: 0; }
.hv-phone-screen .ph-row span { height: 7px; border-radius: 4px; background: #dfe6f1; flex: 1; }
.hv-phone-screen .ph-btn { margin-top: auto; height: 30px; border-radius: 99px; background: var(--secondary); }
.hv-float { position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: #fff; color: var(--text); border-radius: 14px; box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .55); font-size: .8rem; font-weight: 600; font-family: var(--font-head); white-space: nowrap; animation: float 7s ease-in-out infinite; }
.hv-float .fi { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; color: #fff; }
.hv-float .fi .icon { width: 17px; height: 17px; }
.hv-float small { display: block; font-family: var(--font-body); font-weight: 500; color: var(--muted); font-size: .72rem; }
.hv-float.f1 { top: 0; right: 40px; animation-delay: -2s; }
.hv-float.f1 .fi { background: var(--success); }
.hv-float.f2 { left: -26px; bottom: 70px; animation-delay: -4s; }
.hv-float.f2 .fi { background: var(--grad-brand); }
.hv-code { position: absolute; left: -38px; top: 70px; width: 200px; background: #0b1730; border: 1px solid rgba(255, 255, 255, .1); border-radius: 14px; padding: 14px; box-shadow: 0 30px 50px -20px rgba(0, 0, 0, .7); animation: float 8s ease-in-out infinite; animation-delay: -1s; }
.hv-code i { display: block; height: 7px; border-radius: 4px; margin: 7px 0; background: rgba(255, 255, 255, .16); width: var(--w); margin-left: var(--x, 0); }
.hv-code i.k { background: color-mix(in srgb, var(--accent) 75%, transparent); }
.hv-code i.s { background: #7dd88f; }
.hv-code i.f { background: #f6b85b; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes bar-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* ---------------------------------------------------------- Page hero */
.page-hero { position: relative; background: var(--grad-dark); color: var(--on-dark); padding: clamp(52px, 7vw, 88px) 0 clamp(56px, 7vw, 92px); overflow: hidden; isolation: isolate; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px); background-size: 44px 44px; mask-image: linear-gradient(90deg, transparent, #000 60%); -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%); }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4.2vw, 3.1rem); margin-bottom: 14px; max-width: 860px; }
.page-hero p { color: var(--on-dark-muted); font-size: 1.1rem; max-width: 720px; margin: 0; }
.page-hero .btn-group { margin-top: 28px; }
.page-hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
.page-hero-icon { justify-self: end; width: 140px; height: 140px; border-radius: 36px; display: grid; place-items: center; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); color: #fff; box-shadow: inset 0 0 60px color-mix(in srgb, var(--accent) 25%, transparent); }
.page-hero-icon .icon { width: 64px; height: 64px; stroke-width: 1.4; }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; list-style: none; padding: 0; margin: 0 0 18px; font-size: .88rem; color: var(--on-dark-muted); }
.breadcrumbs a { color: var(--on-dark); }
.breadcrumbs a:hover { color: #fff; }
.breadcrumbs .icon { width: 14px; height: 14px; opacity: .6; }
.breadcrumbs [aria-current] { color: var(--accent); }

/* ------------------------------------------------------------------ Cards */
.card { position: relative; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 30px; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.card-hover:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--primary-line); }
.card h3 a { color: inherit; }
.card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card .link-arrow { position: relative; z-index: 1; }
.icon-chip { flex-shrink: 0; width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); margin-bottom: 22px; transition: background .3s, color .3s, transform .3s var(--ease); }
.icon-chip .icon { width: 26px; height: 26px; }
.card-hover:hover .icon-chip { background: var(--grad-brand); color: #fff; transform: rotate(-6deg) scale(1.04); }
.icon-chip.sm { width: 44px; height: 44px; border-radius: 12px; margin-bottom: 0; }
.icon-chip.sm .icon { width: 21px; height: 21px; }

.service-card { display: flex; flex-direction: column; }
.service-card p { color: var(--muted); flex: 1; }
.service-card .card-num { position: absolute; top: 26px; right: 28px; font-family: var(--font-head); font-weight: 700; font-size: .9rem; color: var(--border); }

.feature-card { display: flex; gap: 18px; align-items: flex-start; padding: 24px; }
.feature-card h3, .feature-card h4 { margin-bottom: 6px; font-size: 1.06rem; }
.feature-card p { margin: 0; color: var(--muted); font-size: .95rem; }

/* Product card */
.product-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.product-card .pc-body { padding: 24px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.product-card .pc-body p { color: var(--muted); font-size: .95rem; flex: 1; }
.product-card h3 { font-size: 1.12rem; }
.chip { align-self: flex-start; width: fit-content; display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: .76rem; font-weight: 600; letter-spacing: .02em; background: var(--primary-soft); color: var(--primary); }
.chip-light { background: rgba(255, 255, 255, .12); color: #fff; border: 1px solid rgba(255, 255, 255, .18); }
.chip + h3 { margin-top: 12px; }

/* Generated product visual */
.pv { position: relative; aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--pv-a, var(--secondary)) 0%, var(--pv-b, var(--primary)) 100%); overflow: hidden; display: flex; align-items: flex-end; justify-content: center; padding: 22px 26px 0; }
.pv::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .16) 1px, transparent 0); background-size: 18px 18px; }
.pv-win { position: relative; width: 88%; height: 82%; background: #fff; border-radius: 12px 12px 0 0; box-shadow: 0 -10px 40px -10px rgba(0, 0, 0, .45); display: grid; grid-template-columns: 22% 1fr; overflow: hidden; transition: transform .4s var(--ease); }
.card-hover:hover .pv-win { transform: translateY(-6px); }
.pv-side { background: #f0f4fa; border-right: 1px solid var(--border); padding: 10px 8px; display: flex; flex-direction: column; gap: 7px; }
.pv-side i { height: 6px; border-radius: 3px; background: #d6deea; }
.pv-side i:first-child { background: var(--pv-b, var(--primary)); opacity: .6; }
.pv-main { padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.pv-top { display: flex; align-items: center; gap: 8px; }
.pv-ico { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: linear-gradient(135deg, var(--pv-a, var(--secondary)), var(--pv-b, var(--primary))); color: #fff; flex-shrink: 0; }
.pv-ico .icon { width: 16px; height: 16px; }
.pv-top span:not(.pv-ico) { height: 7px; width: 50%; border-radius: 4px; background: #dfe6f1; }
.pv-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.pv-tiles i { height: 26px; border-radius: 7px; background: #eef3fa; border: 1px solid #e3eaf4; }
.pv-lines i { display: block; height: 6px; border-radius: 3px; background: #e6ecf5; margin-bottom: 6px; }
.pv-lines i:nth-child(2) { width: 80%; } .pv-lines i:nth-child(3) { width: 60%; }
.pv.lg { aspect-ratio: 4 / 3; border-radius: var(--radius-lg); padding: 40px 40px 0; box-shadow: var(--shadow-lg); }
.pv.lg .pv-win { border-radius: 16px 16px 0 0; }
.pv.lg .pv-ico { width: 44px; height: 44px; border-radius: 12px; }
.pv.lg .pv-ico .icon { width: 24px; height: 24px; }
.pv.lg .pv-tiles i { height: 48px; }
.pv.lg .pv-side i { height: 9px; }
.pv.lg .pv-lines i { height: 9px; margin-bottom: 10px; }

/* Media image frame */
.media-frame { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); background: var(--surface-2); }
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-frame.contain img { object-fit: contain; background: #fff; }

/* ----------------------------------------------------------- Intro / about */
.intro-points { display: grid; gap: 14px; margin: 28px 0 32px; }
.intro-point { display: flex; gap: 16px; align-items: center; padding: 16px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.intro-point h3 { font-size: 1rem; margin: 0 0 2px; }
.intro-point p { margin: 0; color: var(--muted); font-size: .92rem; }
.intro-visual { position: relative; }
.intro-visual .media-frame { aspect-ratio: 4 / 3.2; }
.intro-badge { position: absolute; right: -22px; top: -26px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 22px; display: flex; align-items: center; gap: 14px; border: 1px solid var(--border); }
.intro-badge strong { display: block; font-family: var(--font-head); font-size: 1.9rem; color: var(--primary); line-height: 1; }
.intro-badge span { font-size: .85rem; color: var(--muted); }
.founded-card { aspect-ratio: 4 / 3.2; border-radius: var(--radius-lg); background: var(--grad-dark); color: #fff; padding: clamp(28px, 4vw, 44px); display: flex; flex-direction: column; justify-content: space-between; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.founded-card::after { content: ""; position: absolute; width: 320px; height: 320px; right: -120px; top: -120px; border-radius: 50%; border: 50px solid rgba(255, 255, 255, .05); }
.founded-card .year { font-family: var(--font-head); font-weight: 700; font-size: clamp(3.6rem, 8vw, 5.5rem); line-height: 1; background: linear-gradient(90deg, #fff, var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.founded-card p { color: var(--on-dark-muted); margin: 0; }
.founded-card .founders { display: flex; gap: 12px; flex-wrap: wrap; }

/* ------------------------------------------------------------------ Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.stat { text-align: center; padding: 12px 20px; position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 18%; bottom: 18%; width: 1px; background: rgba(255, 255, 255, .14); }
.stat-icon { width: 48px; height: 48px; margin: 0 auto 16px; display: grid; place-items: center; border-radius: 14px; background: rgba(255, 255, 255, .08); color: var(--accent); }
.stat-value { font-family: var(--font-head); font-size: clamp(2.3rem, 4.4vw, 3.3rem); font-weight: 700; color: #fff; line-height: 1; margin-bottom: 8px; letter-spacing: -.02em; }
.stat-title { color: #fff; font-weight: 600; font-family: var(--font-head); }
.stat-desc { font-size: .88rem; color: var(--on-dark-muted); }

/* ------------------------------------------------------------ Tech stack */
.tech-groups { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.tech-group { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; }
.tech-group-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.tech-group-head h3 { margin: 0; font-size: 1.05rem; }
.tech-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.tech-list li, .tag { display: inline-flex; align-items: center; padding: 7px 13px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); font-size: .86rem; font-weight: 500; color: var(--text-2); }
.tag-accent { background: var(--primary-soft); border-color: var(--primary-line); color: var(--primary-dark); }

/* ------------------------------------------------------------------- Team */
.team-card { text-align: center; padding: 34px 24px 28px; }
.avatar { width: 112px; height: 112px; border-radius: 50%; margin: 0 auto 20px; display: grid; place-items: center; font-family: var(--font-head); font-size: 2rem; font-weight: 600; color: #fff; background: linear-gradient(135deg, var(--av-a, var(--secondary)), var(--av-b, var(--primary))); box-shadow: 0 0 0 6px #fff, 0 0 0 7px var(--border); overflow: hidden; letter-spacing: .02em; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-card h3 { font-size: 1.1rem; margin-bottom: 4px; }
.team-role { color: var(--primary); font-weight: 600; font-size: .9rem; font-family: var(--font-head); }
.team-qual { color: var(--muted); font-size: .86rem; margin-top: 6px; }
.team-social { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
.team-social a { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--surface); color: var(--muted); }
.team-social a:hover { background: var(--primary); color: #fff; }
.team-social .icon { width: 16px; height: 16px; }

/* ----------------------------------------------------------- Testimonials */
.testimonial { display: flex; flex-direction: column; gap: 18px; }
.testimonial .icon-quote { width: 34px; height: 34px; color: var(--primary-line); }
.testimonial blockquote { margin: 0; font-size: 1.02rem; color: var(--text-2); flex: 1; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-author .avatar { width: 48px; height: 48px; font-size: 1rem; margin: 0; box-shadow: none; }
.testimonial-author strong { display: block; color: var(--text); font-family: var(--font-head); font-size: .96rem; }
.testimonial-author span { color: var(--muted); font-size: .85rem; }

/* -------------------------------------------------------------- Portfolio */
.portfolio-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.portfolio-thumb { aspect-ratio: 16 / 10; background: var(--surface-2); position: relative; overflow: hidden; }
.portfolio-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.card-hover:hover .portfolio-thumb img { transform: scale(1.05); }
.portfolio-thumb .play-badge { position: absolute; inset: 0; margin: auto; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .92); color: var(--primary); box-shadow: var(--shadow); }
.portfolio-thumb .play-badge .icon { width: 24px; height: 24px; margin-left: 3px; }
.portfolio-body { padding: 24px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.portfolio-body p { color: var(--muted); font-size: .95rem; flex: 1; }
.portfolio-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }

/* ------------------------------------------------------------ Filter tabs */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 40px; }
.filter-btn { padding: 10px 20px; border-radius: 999px; border: 1px solid var(--border); background: #fff; color: var(--text-2); font-family: var(--font-head); font-weight: 500; font-size: .92rem; cursor: pointer; transition: all .2s; }
.filter-btn:hover { border-color: var(--primary-line); color: var(--primary); }
.filter-btn.active { background: var(--secondary); border-color: var(--secondary); color: #fff; }
[data-filter-item].is-hidden { display: none; }
.tabs-nav { display: inline-flex; padding: 5px; border-radius: 999px; background: var(--surface-2); gap: 4px; margin: 0 auto 36px; }
.tabs-nav a { padding: 10px 22px; border-radius: 999px; color: var(--text-2); font-family: var(--font-head); font-weight: 500; font-size: .94rem; display: inline-flex; align-items: center; gap: 8px; }
.tabs-nav a.active { background: #fff; color: var(--primary); box-shadow: var(--shadow-sm); }
.tabs-nav .icon { width: 17px; height: 17px; }

/* ---------------------------------------------------------------- Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.gallery-item { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--surface-2); cursor: zoom-in; border: 0; padding: 0; display: block; width: 100%; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 16px 14px; color: #fff; font-size: .9rem; font-weight: 500; text-align: left; background: linear-gradient(transparent, rgba(6, 16, 36, .82)); }

.video-card { padding: 0; overflow: hidden; }
.video-embed { position: relative; aspect-ratio: 16 / 9; background: #000; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-facade { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; padding: 0; cursor: pointer; background: #0b1730; }
.yt-facade img { width: 100%; height: 100%; object-fit: cover; opacity: .88; transition: opacity .3s, transform .5s var(--ease); }
.yt-facade:hover img { opacity: 1; transform: scale(1.03); }
.yt-facade .play { position: absolute; inset: 0; margin: auto; width: 70px; height: 70px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .95); color: #e02b2b; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); transition: transform .2s var(--ease); }
.yt-facade:hover .play { transform: scale(1.08); }
.yt-facade .play .icon { width: 28px; height: 28px; margin-left: 4px; }
.video-card .vc-body { padding: 18px 22px 22px; }
.video-card h3 { font-size: 1.02rem; margin: 10px 0 0; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(4, 10, 24, .92); display: none; align-items: center; justify-content: center; padding: 60px 16px; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 84vh; max-width: min(1200px, 100%); border-radius: 12px; box-shadow: var(--shadow-lg); }
.lightbox-caption { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; color: #fff; font-size: .95rem; padding: 0 60px; }
.lb-btn { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; display: grid; place-items: center; cursor: pointer; }
.lb-btn:hover { background: rgba(255, 255, 255, .25); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lb-prev .icon { transform: rotate(180deg); }

/* ------------------------------------------------------------ Detail pages */
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; align-items: start; }
.detail-aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 20px; }
.prose { color: var(--text-2); font-size: 1.04rem; }
.prose h2 { font-size: 1.6rem; margin-top: 1.6em; }
.prose h3 { font-size: 1.25rem; margin-top: 1.4em; }
.prose > *:first-child { margin-top: 0; }
.prose ul { padding-left: 0; list-style: none; }
.prose ul li { position: relative; padding-left: 28px; margin-bottom: 8px; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: .5em; width: 16px; height: 16px; border-radius: 50%; background: var(--primary-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d5bd8' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 10px no-repeat; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose img { border-radius: var(--radius); }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--border); padding: 10px 14px; text-align: left; }
.prose th { background: var(--surface); }
.detail-image { margin-bottom: 36px; aspect-ratio: 16 / 9; }
.block-title { font-size: clamp(1.4rem, 2.4vw, 1.85rem); margin-bottom: 24px; }
.detail-block { margin-top: 56px; }

.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list .ck { width: 24px; height: 24px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; flex-shrink: 0; margin-top: 1px; }
.check-list .ck .icon { width: 14px; height: 14px; stroke-width: 3; }
.check-list strong { color: var(--text); display: block; font-family: var(--font-head); font-weight: 600; }
.check-list span.d { color: var(--muted); font-size: .94rem; }
.check-list.cols-2 { grid-template-columns: 1fr 1fr; }

.benefit-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; display: flex; gap: 14px; }
.benefit-card h3 { font-size: 1.02rem; margin-bottom: 4px; }
.benefit-card p { margin: 0; color: var(--muted); font-size: .93rem; }

/* Process steps */
.process { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; counter-reset: step; }
.process li { position: relative; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 20px 20px; counter-increment: step; }
.process li::before { content: counter(step, decimal-leading-zero); display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--grad-brand); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: .9rem; margin-bottom: 14px; }
.process h3 { font-size: 1rem; margin-bottom: 4px; }
.process p { margin: 0; color: var(--muted); font-size: .9rem; }

/* Sidebar widgets */
.widget { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; }
.widget h3 { font-size: 1.08rem; margin-bottom: 16px; }
.widget-dark { background: var(--grad-dark); border: 0; color: var(--on-dark); }
.widget-dark h3 { color: #fff; }
.widget-dark p { color: var(--on-dark-muted); font-size: .95rem; }
.widget-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.widget-list a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 14px; border-radius: 12px; color: var(--text-2); font-weight: 500; font-size: .94rem; }
.widget-list a:hover, .widget-list a.active { background: var(--primary-soft); color: var(--primary); }
.widget-list .icon { width: 16px; height: 16px; opacity: .6; }
.meta-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.meta-list li { display: flex; gap: 12px; align-items: flex-start; }
.meta-list .icon { width: 20px; height: 20px; color: var(--primary); margin-top: 2px; }
.meta-list small { display: block; color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
.meta-list strong { color: var(--text); font-weight: 600; }

/* --------------------------------------------------------------------- FAQ */
.faq-list { display: grid; gap: 12px; max-width: 880px; margin: 0 auto; }
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); transition: border-color .2s, box-shadow .2s; }
.faq-item[open] { border-color: var(--primary-line); box-shadow: var(--shadow-sm); }
.faq-item summary { list-style: none; cursor: pointer; padding: 20px 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-family: var(--font-head); font-weight: 600; color: var(--text); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon { width: 20px; height: 20px; color: var(--primary); transition: transform .25s var(--ease); flex-shrink: 0; }
.faq-item[open] summary .icon { transform: rotate(45deg); }
.faq-item .faq-a { padding: 0 22px 20px; color: var(--muted); }
.faq-item .faq-a p:last-child { margin: 0; }

/* -------------------------------------------------------------------- CTA */
.cta-band { position: relative; border-radius: clamp(20px, 3vw, 32px); padding: clamp(40px, 6vw, 72px); background: var(--grad-dark); color: var(--on-dark); overflow: hidden; display: grid; grid-template-columns: 1.4fr auto; gap: 32px; align-items: center; isolation: isolate; }
.cta-band::after { content: ""; position: absolute; width: 420px; height: 420px; right: -120px; bottom: -220px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 45%, transparent), transparent 70%); z-index: -1; }
.cta-band h2 { color: #fff; margin-bottom: 12px; }
.cta-band p { color: var(--on-dark-muted); margin: 0; font-size: 1.08rem; max-width: 620px; }
.cta-band .btn-group { justify-content: flex-end; }

/* ---------------------------------------------------------------- Contact */
.contact-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 0; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); border: 1px solid var(--border); overflow: hidden; }
.contact-info { background: var(--grad-dark); color: var(--on-dark); padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; gap: 26px; }
.contact-info h2, .contact-info h3 { color: #fff; }
.contact-info > p { color: var(--on-dark-muted); margin: 0; }
.ci-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; }
.ci-list li { display: flex; gap: 16px; }
.ci-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: var(--accent); flex-shrink: 0; }
.ci-icon .icon { width: 21px; height: 21px; }
.ci-list small { display: block; color: var(--on-dark-muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 2px; }
.ci-list a, .ci-list span { color: #fff; font-weight: 500; }
.ci-list a:hover { color: var(--accent); }
.ci-note { font-size: .82rem; color: var(--on-dark-muted); margin-top: 4px; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.contact-form { padding: clamp(28px, 4vw, 48px); }
.contact-form h3 { font-size: 1.4rem; margin-bottom: 6px; }
.contact-form > p { color: var(--muted); margin-bottom: 26px; }
.map-frame { margin-top: 32px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-sm); height: 400px; background: var(--surface-2); }
.map-frame iframe { width: 100%; height: 100%; border: 0; }

/* ------------------------------------------------------------------ Forms */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid > *, .contact-wrap > *, .split > *, .detail-layout > *, .grid > * { min-width: 0; }
.input { max-width: 100%; }
.field label { display: block; font-size: .88rem; font-weight: 600; color: var(--text); margin-bottom: 7px; font-family: var(--font-head); }
.field label .req { color: #d64545; }
.input { width: 100%; min-height: 50px; padding: 12px 16px; border-radius: 12px; border: 1.5px solid var(--border); background: var(--surface); transition: border-color .2s, background .2s, box-shadow .2s; font-size: 1rem; }
.input:hover { border-color: #cfd9e8; }
.input:focus { outline: none; border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px var(--primary-soft); }
textarea.input { min-height: 130px; resize: vertical; }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235f6f89' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 44px; }
.field.has-error .input { border-color: #d64545; background: #fff7f7; }
.field-error { color: #c23434; font-size: .84rem; margin-top: 6px; display: none; }
.field.has-error .field-error { display: block; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { display: none; padding: 14px 16px; border-radius: 12px; font-size: .95rem; margin-bottom: 18px; }
.form-status.show { display: flex; gap: 10px; align-items: flex-start; }
.form-status.error { background: #fff1f1; color: #9f2323; border: 1px solid #f7caca; }
.form-status.success { background: #eefaf0; color: #1f6d2b; border: 1px solid #c4e8ca; }
.form-note { font-size: .82rem; color: var(--muted); margin-top: 14px; display: flex; gap: 8px; align-items: center; }
.form-note .icon { width: 15px; height: 15px; color: var(--success); }
.btn.is-loading { pointer-events: none; opacity: .8; }
.btn.is-loading::after { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* --------------------------------------------------------------- Empty/404 */
.empty-state { text-align: center; max-width: 620px; margin: 0 auto; padding: 56px 32px; background: #fff; border: 1px dashed var(--primary-line); border-radius: var(--radius-lg); }
.empty-state .icon-chip { margin: 0 auto 20px; }
.empty-state p { color: var(--muted); }
.error-page { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.error-code { font-family: var(--font-head); font-weight: 700; font-size: clamp(5rem, 16vw, 9rem); line-height: 1; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; letter-spacing: -.04em; margin-bottom: 10px; }
.error-page p { color: var(--muted); max-width: 520px; margin: 0 auto 28px; }
.error-page .btn-group { justify-content: center; }
.thanks-icon { width: 88px; height: 88px; border-radius: 50%; margin: 0 auto 24px; display: grid; place-items: center; background: #e7f7ea; color: var(--success); box-shadow: 0 0 0 12px #f2fbf4; }
.thanks-icon .icon { width: 44px; height: 44px; stroke-width: 2.4; }

/* --------------------------------------------------------------- Footer */
.site-footer { background: var(--secondary-deep); color: var(--on-dark-muted); padding-top: clamp(56px, 8vw, 88px); font-size: .94rem; position: relative; }
.site-footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--grad-brand); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr 1.3fr; gap: 40px; }
.footer-brand img { height: 46px; width: auto; background: #fff; border-radius: 12px; padding: 6px 10px; box-sizing: content-box; }
.footer-brand p { margin: 20px 0; line-height: 1.7; }
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: 20px; letter-spacing: .01em; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-links a { color: var(--on-dark-muted); display: inline-flex; align-items: center; gap: 6px; }
.footer-links a:hover { color: #fff; transform: translateX(3px); }
.footer-links a { transition: color .2s, transform .2s; }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; }
.footer-contact .icon { width: 18px; height: 18px; color: var(--accent); margin-top: 3px; }
.footer-contact a, .footer-contact span { color: var(--on-dark); }
.social-links { display: flex; flex-wrap: wrap; gap: 10px; }
.social-links a { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .07); color: var(--on-dark); border: 1px solid rgba(255, 255, 255, .08); }
.social-links a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.social-links .icon { width: 18px; height: 18px; }
.footer-cta { margin-top: 56px; padding: 28px 32px; border-radius: var(--radius-lg); background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-cta h3 { margin: 0 0 4px; font-size: 1.2rem; }
.footer-cta p { margin: 0; }
.footer-bottom { margin-top: 48px; border-top: 1px solid rgba(255, 255, 255, .08); padding: 22px 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; font-size: .86rem; }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 20px; list-style: none; margin: 0; padding: 0; }
.footer-bottom a { color: var(--on-dark-muted); }
.footer-bottom a:hover { color: #fff; }

/* Floating actions */
.float-actions { position: fixed; right: 18px; bottom: 18px; z-index: 90; display: flex; flex-direction: column; gap: 10px; }
.fab { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: #fff; box-shadow: 0 12px 28px -8px rgba(0, 0, 0, .35); border: 0; cursor: pointer; transition: transform .2s var(--ease), opacity .3s, visibility .3s; }
.fab:hover { transform: translateY(-3px); color: #fff; }
.fab .icon { width: 24px; height: 24px; }
.fab-wa { background: #147a3e; }
.fab-top { background: var(--secondary); opacity: 0; visibility: hidden; }
.fab-top.show { opacity: 1; visibility: visible; }

/* ---------------------------------------------------------- Reveal motion */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
	.reveal { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------ Responsive */
@media (max-width: 1100px) {
	.grid-4, .tech-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.detail-layout { grid-template-columns: 1fr; }
	.detail-aside { position: static; }
	.dropdown.wide { min-width: 0; }
}
@media (max-width: 960px) {
	.split, .page-hero-grid { grid-template-columns: 1fr; }
	.page-hero-icon { display: none; }
	.grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.hero-visual { min-height: 400px; max-width: 560px; margin: 16px auto 0; width: 100%; }
	.stats { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
	.stat:nth-child(3)::before { display: none; }
	.contact-wrap { grid-template-columns: 1fr; }
	.cta-band { grid-template-columns: 1fr; }
	.cta-band .btn-group { justify-content: flex-start; }
	.intro-visual { margin: 0 16px 20px; }
}
@media (max-width: 720px) {
	.topbar { display: none; }
	:root { --header-h: 66px; }
	.brand img { height: 36px; }
	.grid-2, .grid-3, .grid-4, .tech-groups, .check-list.cols-2 { grid-template-columns: 1fr; }
	.form-grid { grid-template-columns: 1fr; }
	.footer-grid { grid-template-columns: 1fr; gap: 32px; }
	.card { padding: 24px; }
	.card.product-card, .card.portfolio-card, .card.video-card { padding: 0; }
	.hero-visual { min-height: 330px; }
	.hv-window { inset: 10px 18px 36px 0; }
	.hv-code { display: none; }
	.hv-phone { width: 112px; height: 220px; border-radius: 22px; padding: 7px; }
	.hv-phone-screen { border-radius: 16px; }
	.hv-float.f2 { left: 0; bottom: 20px; }
	.hv-float.f1 { right: 10px; }
	.hv-body { grid-template-columns: 50px 1fr; }
	.hv-side b { width: 24px; height: 24px; }
	.hv-kpi { padding: 9px; }
	.hv-kpi strong { font-size: .95rem; }
	.hv-rows { display: none; }
	.btn-group .btn { flex: 1 1 auto; }
	.intro-badge { right: 12px; top: -22px; padding: 14px 18px; }
	.footer-cta { padding: 22px; }
	.float-actions { right: 12px; bottom: 12px; }
	.fab { width: 48px; height: 48px; }
	.map-frame { height: 300px; }
	.pv.lg { padding: 24px 24px 0; }
}
@media (max-width: 400px) {
	.container { padding: 0 16px; }
	.stats { grid-template-columns: 1fr; }
	.stat::before { display: none; }
	.hv-float { display: none; }
	.btn { padding: 12px 18px; }
}

/* Print */
@media print {
	.topbar, .site-header, .site-footer, .float-actions, .cta-band, .contact-form { display: none !important; }
	.page-hero, .section-dark { background: none !important; color: #000 !important; }
	.page-hero h1 { color: #000 !important; }
}

/* ----------------------------------------------------- Rendering performance */
/* Below-the-fold sections are laid out and painted only as they approach the
   viewport; the intrinsic size keeps the scrollbar stable meanwhile. */
main > section + section { content-visibility: auto; contain-intrinsic-size: auto 900px; }
.detail-block, .detail-aside .widget + .widget { content-visibility: auto; contain-intrinsic-size: auto 480px; }
.card, .faq-item, .tech-group { contain: layout style; }
