/*
 * Miftah Technology corporate website (resources/views/website/corporate).
 * Blue leads the identity; orange is the accent for calls to action and highlights.
 * Breakpoints: mobile < 768, tablet 768-1023, laptop 1024-1439, desktop >= 1440.
 */
:root {
    --blue: #0066FF;
    --blue-dark: #0033A0;
    --orange: #FF7A00;
    --orange-dark: #FF4D00;
    --navy: #0B1B3F;
    --navy-deep: #061331;
    --ink: #0B1B3F;
    --text: #3D4A63;
    --muted: #64708A;
    --line: #E3E9F4;
    --bg: #FFFFFF;
    --bg-soft: #F5F8FE;
    --blue-soft: #EAF2FF;
    --orange-soft: #FFF2E6;
    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;
    --shadow-sm: 0 1px 2px rgba(11, 27, 63, .06), 0 2px 8px rgba(11, 27, 63, .04);
    --shadow: 0 12px 32px rgba(11, 27, 63, .08);
    --shadow-lg: 0 24px 60px rgba(11, 27, 63, .14);
    --font-head: Manrope, Inter, system-ui, sans-serif;
    --font-body: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
    --wrap: 1240px;
    --header-h: 76px;
    --gradient: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
    --gradient-accent: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
    margin: 0; background: var(--bg); color: var(--text);
    font: 400 1rem/1.65 var(--font-body); -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
h1, h2, h3, h4 { color: var(--ink); font-family: var(--font-head); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.015em; }
h1 { font-size: clamp(2.1rem, 1.4rem + 3vw, 3.5rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
h2 { font-size: clamp(1.65rem, 1.25rem + 1.6vw, 2.5rem); font-weight: 800; letter-spacing: -.025em; }
h3 { font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); font-weight: 700; }
p { margin: 0 0 1em; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid rgba(0, 102, 255, .45); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; 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: 200; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; transition: top .2s; }
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 32px; } }

.section { padding: clamp(64px, 4rem + 4vw, 120px) 0; position: relative; }
.section-soft { background: var(--bg-soft); }
.text-gradient {
    background: linear-gradient(90deg, var(--blue) 0%, var(--blue) 35%, var(--orange) 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}

.eyebrow {
    display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px;
    color: var(--blue); font: 700 .78rem/1.2 var(--font-head); letter-spacing: .14em; text-transform: uppercase;
}
.eyebrow::before { content: ''; width: 22px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--blue), var(--orange)); }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head.is-center { margin-left: auto; margin-right: auto; text-align: center; }
.section-lead { font-size: clamp(1rem, .95rem + .25vw, 1.125rem); color: var(--muted); margin-bottom: 0; }
.split-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 32px; margin-bottom: clamp(32px, 4vw, 56px); }
.split-head .section-head { margin-bottom: 0; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px;
    padding: 11px 22px; border-radius: 12px; border: 1.5px solid transparent; cursor: pointer;
    font: 700 .95rem/1.2 var(--font-head); white-space: nowrap; text-align: center;
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn i { font-size: 1.1em; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: .9rem; border-radius: 10px; }
.btn-lg { min-height: 52px; padding: 14px 26px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 20px rgba(0, 102, 255, .25); }
.btn-primary:hover { background: var(--blue-dark); box-shadow: 0 10px 24px rgba(0, 51, 160, .3); }
.btn-accent { background: var(--orange); color: #fff; box-shadow: 0 8px 20px rgba(255, 122, 0, .25); }
.btn-accent:hover { background: var(--orange-dark); box-shadow: 0 10px 24px rgba(255, 77, 0, .3); }
.btn-outline { border-color: #C9D6EE; color: var(--ink); background: #fff; }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.btn-light { background: #fff; color: var(--blue-dark); }
.btn-light:hover { background: var(--blue-soft); }
.btn[disabled] { opacity: .7; cursor: progress; transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100; height: var(--header-h);
    background: rgba(255, 255, 255, .88); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid transparent; transition: border-color .25s, box-shadow .25s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(11, 27, 63, .06); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 20px; }
.brand { flex-shrink: 0; display: flex; align-items: center; }
.brand img { height: 44px; width: auto; }
.main-nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 2px; }
.nav-link {
    display: block; padding: 8px 10px; border-radius: 8px; position: relative;
    color: var(--ink); font: 600 .9rem/1.2 var(--font-head); white-space: nowrap; transition: color .2s, background-color .2s;
}
.nav-link:hover { color: var(--blue); background: var(--blue-soft); }
.nav-link.is-active { color: var(--blue); }
.nav-link.is-active::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--orange); }
.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-panel-actions { display: none; }
/* Webmail stays visually lighter than the Login CTA: outline, icon-only until there is room for its label. */
.header-webmail { width: 40px; padding: 0; gap: 6px; border-color: #C9D6EE; background: #fff; color: var(--ink); }
.header-webmail:hover { border-color: var(--blue); color: var(--blue); }
.header-webmail-label { display: none; }
/* The page width caps at --wrap, so the label's extra width is won back from the menu link padding. */
@media (min-width: 1340px) {
    .nav-link { padding: 8px 8px; }
    .nav-link.is-active::after { left: 8px; right: 8px; }
    .header-webmail { width: auto; padding: 8px 12px; }
    .header-webmail-label { display: inline; }
}
.menu-toggle {
    display: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: #fff; cursor: pointer;
    flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 0;
}
.menu-toggle span { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .25s, opacity .2s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 1200px) and (max-width: 1339px) {
    .nav-link { padding: 8px 7px; font-size: .86rem; }
    .brand img { height: 40px; }
}
/* Below 1200px the nine menu items collapse into a panel under the header. */
@media (max-width: 1199px) {
    .menu-toggle { display: inline-flex; }
    .header-actions { margin-left: auto; }
    /* The header's backdrop-filter makes it the containing block of this fixed panel, so size it explicitly. */
    .main-nav {
        position: fixed; inset: var(--header-h) 0 auto 0; height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h));
        margin: 0; padding: 16px 16px 32px;
        background: #fff; overflow-y: auto; overscroll-behavior: contain;
        display: flex; flex-direction: column; gap: 20px;
        opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility 0s .2s;
    }
    .main-nav.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .2s; }
    .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
    .nav-list li { border-bottom: 1px solid var(--line); }
    .nav-link { padding: 15px 4px; font-size: 1.05rem; border-radius: 0; }
    .nav-link:hover { background: none; }
    .nav-link.is-active::after { display: none; }
    .nav-panel-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
    .nav-panel-actions .btn { min-height: 52px; }
}
@media (min-width: 768px) and (max-width: 1199px) {
    .main-nav { inset: var(--header-h) 0 auto auto; width: min(380px, 100%); height: auto; max-height: calc(100vh - var(--header-h)); border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); border-bottom-left-radius: var(--radius); box-shadow: var(--shadow-lg); }
}
@media (max-width: 479px) {
    .header-cta { display: none; }
    .brand img { height: 38px; }
    .header-actions { gap: 8px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(40px, 2rem + 4vw, 96px) 0 clamp(64px, 3rem + 4vw, 112px); overflow: hidden; }
.hero-bg, .page-hero .hero-bg {
    position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background:
        radial-gradient(900px 480px at 85% 10%, rgba(0, 102, 255, .10), transparent 65%),
        radial-gradient(600px 360px at 100% 90%, rgba(255, 122, 0, .07), transparent 70%),
        linear-gradient(180deg, #F7FAFF 0%, #FFFFFF 100%);
}
.hero-bg::after {
    content: ''; position: absolute; inset: 0;
    background-image: radial-gradient(rgba(11, 27, 63, .09) 1px, transparent 1px); background-size: 22px 22px;
    -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, .7), transparent 75%); mask-image: linear-gradient(180deg, rgba(0, 0, 0, .7), transparent 75%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(40px, 5vw, 72px); align-items: center; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); } }
.hero-trust {
    display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px; padding: 6px 14px 6px 6px;
    border: 1px solid var(--line); border-radius: 999px; background: #fff; box-shadow: var(--shadow-sm);
    color: var(--ink); font: 600 .85rem/1.2 var(--font-head);
}
.hero-trust-mark { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--blue-soft); }
.hero-trust-mark img { width: 18px; height: auto; }
.hero h1 { max-width: 13.5em; }
.hero-lead { max-width: 34em; font-size: clamp(1.05rem, 1rem + .35vw, 1.25rem); color: var(--muted); margin-bottom: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 36px; color: var(--muted); font: 600 .85rem/1.2 var(--font-head); }
.hero-tags li { display: inline-flex; align-items: center; gap: 8px; }
.hero-tags li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
.hero-tags li:nth-child(even)::before { background: var(--orange); }
@media (max-width: 479px) {
    .hero-actions .btn { flex: 1 1 100%; }
}

/* Hero visual */
.hero-visual { position: relative; width: 100%; max-width: 600px; margin: 0 auto; aspect-ratio: 1.12 / 1; }
.hero-watermark { position: absolute; right: -4%; top: -6%; width: 62%; height: auto; opacity: .06; pointer-events: none; }
.hv-window {
    position: absolute; left: 4%; top: 21%; width: 82%;
    background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden;
}
.hv-window-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: #FAFCFF; }
.hv-dots { display: inline-flex; gap: 5px; }
.hv-dots i { width: 8px; height: 8px; border-radius: 50%; background: #D7DFEC; }
.hv-dots i:first-child { background: #FF9F5A; }
.hv-window-title { font: 700 .75rem/1 var(--font-head); color: var(--ink); }
.hv-search { margin-left: auto; width: 30%; height: 10px; border-radius: 6px; background: #EEF2F9; }
.hv-window-body { display: flex; }
.hv-side { display: flex; flex-direction: column; gap: 6px; padding: 12px 8px; border-right: 1px solid var(--line); }
.hv-side span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; color: #8C97AE; font-size: 15px; }
.hv-side span.is-active { background: var(--blue-soft); color: var(--blue); }
.hv-main { flex: 1; min-width: 0; padding: 14px; }
.hv-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.hv-kpis div { padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; min-width: 0; }
.hv-kpis small { display: block; font-size: .62rem; color: var(--muted); }
.hv-kpis strong { display: block; font: 800 .9rem/1.3 var(--font-head); color: var(--ink); white-space: nowrap; }
.hv-kpis em { font-style: normal; font-size: .6rem; color: var(--muted); }
.hv-kpis em.up, .mp-kpis em.up { color: #0E9F6E; }
.hv-chart { margin-top: 10px; height: 72px; border-radius: 10px; background: linear-gradient(180deg, #FBFCFF, #fff); border: 1px solid var(--line); padding: 6px 0 0; overflow: hidden; }
.hv-chart svg { width: 100%; height: 100%; }
.hv-rows { display: grid; gap: 6px; margin-top: 10px; }
.hv-rows span { display: flex; align-items: center; gap: 8px; }
.hv-rows i { width: 16px; height: 16px; border-radius: 5px; background: var(--blue-soft); }
.hv-rows b { flex: 1; height: 7px; border-radius: 4px; background: #EEF2F9; }
.hv-rows em { width: 34px; height: 12px; border-radius: 6px; background: var(--orange-soft); }
.hv-card {
    position: absolute; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
    padding: 12px; font-size: .75rem; animation: hv-float 7s ease-in-out infinite;
}
.hv-card strong { display: block; font: 700 .8rem/1.2 var(--font-head); color: var(--ink); }
.hv-card small { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .68rem; }
.hv-card-head { display: flex; align-items: center; gap: 10px; }
.hv-icon { display: grid; place-items: center; flex-shrink: 0; width: 32px; height: 32px; border-radius: 9px; background: var(--blue-soft); color: var(--blue); font-size: 17px; }
.hv-icon-accent { background: var(--orange-soft); color: var(--orange); }
.hv-status { width: 7px; height: 7px; border-radius: 50%; background: #10B981; box-shadow: 0 0 0 3px rgba(16, 185, 129, .18); }
.hv-rec { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #EF4444; animation: hv-blink 1.6s ease-in-out infinite; }
.hv-network { right: 2%; top: 0; width: 40%; z-index: 1; }
.hv-topology { margin-top: 10px; width: 100%; height: auto; }
.hv-cctv { left: 0; bottom: 4%; width: 38%; animation-delay: -2.5s; }
.hv-feeds { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-top: 10px; }
.hv-feeds span { aspect-ratio: 16 / 10; border-radius: 5px; background: linear-gradient(135deg, #1B2C54, #0B1B3F); position: relative; overflow: hidden; }
.hv-feeds span::after { content: ''; position: absolute; inset: 40% 20% 0 30%; background: rgba(255, 255, 255, .08); border-radius: 40% 40% 0 0; }
.hv-feeds span:nth-child(2) { background: linear-gradient(135deg, #243B6E, #11224A); }
.hv-feeds span:nth-child(3) { background: linear-gradient(135deg, #15264B, #0A1734); }
.hv-sip { right: 2%; bottom: 0; display: flex; align-items: center; gap: 10px; width: 46%; animation-delay: -4.5s; }
.hv-wave { margin-left: auto; display: inline-flex; align-items: center; gap: 3px; height: 22px; }
.hv-wave i { width: 3px; border-radius: 2px; background: var(--orange); animation: hv-wave 1.2s ease-in-out infinite; }
.hv-wave i:nth-child(1) { height: 40%; }
.hv-wave i:nth-child(2) { height: 80%; animation-delay: -.2s; }
.hv-wave i:nth-child(3) { height: 100%; animation-delay: -.4s; }
.hv-wave i:nth-child(4) { height: 65%; animation-delay: -.6s; }
.hv-wave i:nth-child(5) { height: 35%; animation-delay: -.8s; }
@keyframes hv-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes hv-blink { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
@keyframes hv-wave { 0%, 100% { transform: scaleY(.55); } 50% { transform: scaleY(1); } }
@media (max-width: 599px) {
    .hero-visual { aspect-ratio: 1 / 1.02; }
    .hv-window { left: 0; top: 14%; width: 100%; }
    .hv-network { width: 52%; top: 0; }
    .hv-topology { display: none; }
    .hv-cctv { width: 46%; bottom: 0; }
    .hv-feeds { display: none; }
    .hv-sip { width: 50%; bottom: 0; }
    .hv-wave { display: none; }
    .hv-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hv-kpis div:nth-child(3) { display: none; }
}

/* ---------- Solutions ---------- */
.solutions-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
@media (min-width: 768px) { .solutions-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .solutions-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .solutions-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.solution-card {
    position: relative; display: flex; flex-direction: column; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-lg);
    background: #fff; box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.solution-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #CFDCF5; }
.solution-card.is-featured {
    background: linear-gradient(160deg, #F2F7FF 0%, #FFFFFF 60%);
    border-color: #D3E1FA;
}
@media (min-width: 768px) { .solution-card.is-featured { grid-column: span 2; } }
@media (min-width: 1024px) and (max-width: 1279px) { .solution-card.is-featured { grid-column: 1 / -1; } }
.solution-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.solution-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--blue-soft); color: var(--blue); font-size: 26px; }
.is-featured .solution-icon { background: var(--gradient); color: #fff; }
.solution-number { font: 800 1.6rem/1 var(--font-head); color: #E2E9F5; letter-spacing: -.03em; }
.solution-card:hover .solution-number { color: var(--orange); opacity: .5; }
.solution-card p { color: var(--muted); font-size: .95rem; }
.solution-points { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 22px; }
.solution-points li { padding: 4px 10px; border-radius: 999px; background: var(--bg-soft); color: var(--text); font-size: .78rem; font-weight: 500; }
.solution-link { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--blue); font: 700 .9rem/1.2 var(--font-head); }
.solution-link i { transition: transform .2s; }
.solution-link:hover i { transform: translateX(3px); }
.solution-flagship {
    margin-top: auto; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px;
    background: #fff; border: 1px solid #D3E1FA; transition: border-color .2s, box-shadow .2s;
}
.solution-flagship:hover { border-color: var(--blue); box-shadow: var(--shadow-sm); }
.solution-flagship img { width: 28px; height: auto; }
.solution-flagship small { display: block; color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.solution-flagship strong { font: 800 1rem/1.2 var(--font-head); color: var(--ink); }
.solution-flagship i { margin-left: auto; color: var(--orange); font-size: 20px; }

/* ---------- Miftah Plus ---------- */
.miftah-plus { overflow: hidden; }
.mp-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(40px, 5vw, 72px); align-items: center; }
@media (min-width: 1024px) { .mp-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); } }
.mp-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; font: 800 1.35rem/1 var(--font-head); color: var(--ink); }
.mp-brand img { width: 40px; height: auto; }
.mp-copy h2 { max-width: 21ch; text-wrap: balance; }
.mp-modules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 10px; margin-top: 28px; }
.mp-modules li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: #fff; border: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: .9rem; min-width: 0; }
.mp-modules i { color: var(--blue); font-size: 18px; flex-shrink: 0; }
.mp-visual { position: relative; padding-bottom: 28px; }
.mp-window { background: #fff; border: 1px solid #D9E3F3; border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; }
.mp-bar { display: flex; align-items: center; gap: 14px; padding: 11px 16px; background: #F7F9FD; border-bottom: 1px solid var(--line); }
.mp-url { flex: 1; max-width: 260px; padding: 4px 12px; border-radius: 8px; background: #fff; border: 1px solid var(--line); color: var(--muted); font-size: .72rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-body { display: flex; min-height: 320px; }
.mp-side { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 10px; background: var(--navy); }
.mp-side img { width: 24px; height: auto; margin-bottom: 8px; }
.mp-side span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; color: rgba(255, 255, 255, .55); font-size: 16px; }
.mp-side span.is-active { background: var(--blue); color: #fff; }
.mp-main { flex: 1; min-width: 0; padding: 16px; display: grid; gap: 12px; align-content: start; }
.mp-head { display: flex; align-items: center; justify-content: space-between; }
.mp-head strong { font: 800 .95rem/1.2 var(--font-head); color: var(--ink); }
.mp-head span { font-size: .7rem; color: var(--muted); padding: 3px 10px; border: 1px solid var(--line); border-radius: 999px; }
.mp-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.mp-kpis div { padding: 10px; border: 1px solid var(--line); border-radius: 10px; min-width: 0; }
.mp-kpis div:first-child { background: var(--gradient); border-color: transparent; }
.mp-kpis div:first-child small, .mp-kpis div:first-child em, .mp-kpis div:first-child strong { color: #fff; }
.mp-kpis small { display: block; font-size: .62rem; color: var(--muted); }
.mp-kpis strong { display: block; font: 800 .85rem/1.35 var(--font-head); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-kpis em { font-style: normal; font-size: .62rem; color: var(--muted); }
.mp-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.mp-stats li { display: flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 8px; background: #F7F9FD; min-width: 0; font-size: .62rem; color: var(--muted); white-space: nowrap; }
.mp-stats i { color: var(--blue); font-size: 13px; flex-shrink: 0; }
.mp-stats strong { font: 800 .75rem/1 var(--font-head); color: var(--ink); }
.mp-stats span { overflow: hidden; text-overflow: ellipsis; }
.mp-panels { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 8px; }
.mp-panel { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; min-width: 0; }
.mp-panel small { display: block; font-size: .65rem; color: var(--muted); font-weight: 600; margin-bottom: 8px; }
.mp-bars { display: flex; align-items: flex-end; gap: 8%; height: 84px; }
.mp-bars span { flex: 1; display: flex; align-items: flex-end; gap: 2px; height: 100%; }
.mp-bars i, .mp-bars b { flex: 1; border-radius: 3px 3px 0 0; }
.mp-bars i { background: var(--blue); }
.mp-bars b { background: #FFC48F; }
.mp-donut-panel { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto 1fr; column-gap: 10px; align-items: center; }
.mp-donut-panel small { grid-column: 1 / -1; }
.mp-donut { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--blue) 0 68%, var(--orange) 68% 88%, #BFD3F7 88% 100%); }
.mp-donut span { width: 42px; height: 42px; border-radius: 50%; background: #fff; display: grid; place-items: center; font: 800 .7rem/1 var(--font-head); color: var(--ink); }
.mp-donut-panel ul { display: grid; gap: 4px; font-size: .62rem; color: var(--muted); min-width: 0; }
.mp-donut-panel li { display: flex; align-items: center; gap: 5px; white-space: nowrap; overflow: hidden; }
.mp-donut-panel li i { width: 7px; height: 7px; border-radius: 2px; flex-shrink: 0; }
.mp-donut-panel .c1 { background: var(--blue); }
.mp-donut-panel .c2 { background: var(--orange); }
.mp-donut-panel .c3 { background: #BFD3F7; }
.mp-table { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.mp-table div { display: flex; align-items: center; gap: 10px; padding: 8px 12px; font-size: .7rem; color: var(--ink); font-weight: 600; }
.mp-table div + div { border-top: 1px solid var(--line); }
.mp-table i { flex: 1; height: 6px; border-radius: 4px; background: #EEF2F9; }
.mp-table em { font-style: normal; padding: 2px 8px; border-radius: 999px; font-size: .62rem; }
.tone-ok { background: #E7F8F0; color: #0E9F6E; }
.tone-info { background: var(--blue-soft); color: var(--blue); }
.tone-warn { background: var(--orange-soft); color: #C25700; }
.mp-float {
    position: absolute; left: -12px; bottom: 0; display: flex; align-items: center; gap: 10px; padding: 12px 16px;
    background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
}
.mp-float strong { display: block; font: 700 .85rem/1.2 var(--font-head); color: var(--ink); }
.mp-float small { color: var(--muted); font-size: .72rem; }
@media (max-width: 767px) {
    .mp-body { min-height: 0; }
    .mp-side { display: none; }
    .mp-kpis, .mp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mp-panels { grid-template-columns: minmax(0, 1fr); }
    .mp-donut-panel { display: none; }
    .mp-float { left: 12px; right: 12px; }
}
@media (max-width: 379px) { .mp-modules { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Infrastructure: Network + Security ---------- */
.feature-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(36px, 5vw, 80px); align-items: center; scroll-margin-top: calc(var(--header-h) + 24px); }
.feature-row + .feature-row { margin-top: clamp(72px, 8vw, 128px); }
@media (min-width: 1024px) {
    .feature-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .feature-row.is-reversed .feature-visual { order: 2; }
}
.feature-visual { position: relative; padding: clamp(20px, 3vw, 36px); border-radius: var(--radius-lg); background: var(--bg-soft); border: 1px solid var(--line); }
.topology { width: 100%; height: auto; }
.topo-flow path { animation: topo-dash 2.4s linear infinite; }
@keyframes topo-dash { to { stroke-dashoffset: -32; } }
.feature-badge {
    position: absolute; right: 16px; bottom: -22px; display: flex; align-items: center; gap: 12px; padding: 12px 16px;
    background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); max-width: calc(100% - 32px);
}
.feature-badge > i { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--blue-soft); color: var(--blue); font-size: 19px; flex-shrink: 0; }
.feature-badge.is-accent > i { background: var(--orange-soft); color: var(--orange); }
.feature-badge strong { display: block; font: 700 .88rem/1.25 var(--font-head); color: var(--ink); }
.feature-badge small { color: var(--muted); font-size: .76rem; }
.capabilities { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px 24px; margin: 28px 0 32px; }
@media (min-width: 600px) { .capabilities { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.capabilities li { display: flex; gap: 14px; }
.cap-icon { display: grid; place-items: center; flex-shrink: 0; width: 40px; height: 40px; border-radius: 11px; background: var(--blue-soft); color: var(--blue); font-size: 20px; }
.capabilities strong { display: block; font: 700 .95rem/1.3 var(--font-head); color: var(--ink); margin-bottom: 2px; }
.capabilities p { margin: 0; font-size: .88rem; color: var(--muted); line-height: 1.5; }
.cctv-wall { border-radius: 16px; overflow: hidden; background: var(--navy); box-shadow: var(--shadow); }
.cctv-head { display: flex; justify-content: space-between; padding: 10px 14px; color: rgba(255, 255, 255, .75); font: 600 .72rem/1 var(--font-head); letter-spacing: .06em; text-transform: uppercase; }
.cctv-head span:first-child { display: inline-flex; align-items: center; gap: 6px; color: #fff; }
.cctv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 0 3px 3px; }
.cctv-feed { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 4px; background: linear-gradient(160deg, #233863 0%, #0E1D40 100%); }
.cctv-feed::before { content: ''; position: absolute; left: 12%; right: 12%; bottom: 0; height: 48%; background: linear-gradient(180deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .02)); clip-path: polygon(0 100%, 18% 20%, 82% 20%, 100% 100%); }
.cctv-feed::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(180deg, rgba(255, 255, 255, .025) 0 2px, transparent 2px 4px); }
.cctv-feed-2 { background: linear-gradient(160deg, #1D3A70 0%, #0B1B3F 100%); }
.cctv-feed-3 { background: linear-gradient(160deg, #2A3557 0%, #101C3C 100%); }
.cctv-feed-4 { background: linear-gradient(160deg, #183164 0%, #0A1836 100%); }
.cctv-feed span { position: absolute; left: 8px; bottom: 6px; z-index: 1; color: rgba(255, 255, 255, .85); font-size: .64rem; font-weight: 600; letter-spacing: .03em; }

/* ---------- Security & Access Control ---------- */
.security .feature-visual { background: #fff; }
.sec-access-card {
    position: absolute; left: 16px; top: -18px; display: flex; align-items: center; gap: 10px; padding: 10px 14px;
    background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); animation: hv-float 6s ease-in-out infinite;
}
.sec-access-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--gradient); color: #fff; font-size: 18px; }
.sec-access-card strong { display: block; font: 700 .82rem/1.2 var(--font-head); color: var(--ink); }
.sec-access-card small { color: var(--muted); font-size: .72rem; }
.sec-access-state { color: #10B981; font-size: 18px; margin-left: 4px; }
.sec-sectors-label { margin: 26px 0 12px; color: var(--ink); font: 700 .8rem/1.2 var(--font-head); text-transform: uppercase; letter-spacing: .08em; }
.sec-sectors { display: flex; flex-wrap: wrap; gap: 8px; }
.sec-sectors li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--text); font-size: .84rem; font-weight: 500; }
.sec-sectors i { color: var(--blue); font-size: 16px; }

.sec-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: clamp(64px, 7vw, 104px); }
@media (min-width: 640px) { .sec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .sec-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sec-card {
    position: relative; overflow: hidden; display: flex; flex-direction: column; padding: 28px; border-radius: var(--radius-lg);
    background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s, border-color .25s;
}
.sec-card::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--blue), var(--orange)); transform: scaleX(0); transform-origin: left; transition: transform .35s ease; }
.sec-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #CFDCF5; }
.sec-card:hover::after { transform: scaleX(1); }
.sec-card:hover .solution-number { color: var(--orange); opacity: .5; }
.sec-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.sec-icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: var(--gradient); color: #fff; font-size: 27px; box-shadow: 0 8px 18px rgba(0, 102, 255, .22); }
.sec-card:nth-child(3n+2) .sec-icon { background: var(--gradient-accent); box-shadow: 0 8px 18px rgba(255, 122, 0, .22); }
.sec-card h3 { margin-bottom: 8px; }
.sec-card p { color: var(--muted); font-size: .94rem; }
.sec-card .solution-points { margin: auto 0 0; padding-top: 4px; }
.sec-card .solution-points li { background: var(--blue-soft); color: var(--blue-dark); }

.sec-more { margin-top: 28px; padding: clamp(22px, 3vw, 32px); border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); }
.sec-more-title { margin-bottom: 20px; font-size: 1.05rem; }
.sec-more-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 20px 24px; }
@media (min-width: 1200px) { .sec-more-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.sec-more-grid li { display: flex; gap: 12px; }
.sec-more-grid li:nth-child(2n) .cap-icon { background: var(--orange-soft); color: var(--orange); }
.sec-more-grid strong { display: block; font: 700 .93rem/1.3 var(--font-head); color: var(--ink); margin-bottom: 2px; }
.sec-more-grid p { margin: 0; font-size: .86rem; color: var(--muted); line-height: 1.5; }

.sec-integrated {
    display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(32px, 4vw, 56px); align-items: center; margin-top: clamp(40px, 5vw, 64px);
    padding: clamp(24px, 4vw, 56px); border-radius: var(--radius-lg); color: rgba(255, 255, 255, .78);
    background: radial-gradient(700px 400px at 100% 0%, rgba(0, 102, 255, .32), transparent 60%), radial-gradient(500px 300px at 0% 100%, rgba(255, 122, 0, .14), transparent 60%), var(--navy-deep);
}
@media (min-width: 1024px) { .sec-integrated { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); } }
.sec-integrated .eyebrow { color: #7FB0FF; }
.sec-integrated h3 { color: #fff; font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem); font-weight: 800; letter-spacing: -.02em; }
.sec-integrated .check-list { margin-top: 22px; }
.sec-hub { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 2vw, 22px); }
.sec-hub-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.sec-hub-flow path { animation: topo-dash 2.4s linear infinite; }
.sec-hub .cd-node { position: relative; max-width: none; background: rgba(11, 27, 63, .92); }
.sec-hub .cd-node.is-primary { background: var(--blue); box-shadow: 0 0 0 6px rgba(0, 102, 255, .18), 0 12px 30px rgba(0, 102, 255, .35); }
@media (max-width: 479px) {
    .sec-hub .cd-node { padding: 10px 4px; font-size: .7rem; }
    .sec-hub .cd-node i { width: 34px; height: 34px; font-size: 17px; }
    .sec-integrated .btn-row, .sec-integrated .btn { width: 100%; }
}

/* ---------- SIP & PA (dark) ---------- */
.section-dark { background: radial-gradient(900px 500px at 90% 0%, rgba(0, 102, 255, .28), transparent 60%), var(--navy-deep); color: rgba(255, 255, 255, .78); }
.section-dark h2, .section-dark h3, .section-dark strong { color: #fff; }
.section-dark .eyebrow { color: #7FB0FF; }
.section-dark .section-lead { color: rgba(255, 255, 255, .72); }
.comms-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(40px, 5vw, 72px); align-items: center; }
@media (min-width: 1024px) { .comms-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.check-list { display: grid; gap: 12px; margin-top: 28px; }
.check-list li { position: relative; padding-left: 32px; }
.check-list li::before {
    content: ''; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%;
    background: rgba(255, 122, 0, .16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF7A00' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.comms-diagram { padding: clamp(20px, 3vw, 32px); border-radius: var(--radius-lg); background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); }
.cd-tier { display: flex; justify-content: center; gap: 12px; }
.cd-node {
    flex: 1 1 0; min-width: 0; max-width: 170px; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 8px;
    border-radius: 14px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); text-align: center;
    color: #fff; font: 600 .78rem/1.25 var(--font-head);
}
.cd-node i { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: rgba(0, 102, 255, .22); color: #8BB8FF; font-size: 20px; }
.cd-node.is-primary { background: var(--blue); border-color: var(--blue); }
.cd-node.is-primary i { background: rgba(255, 255, 255, .18); color: #fff; }
.cd-node.is-accent i { background: rgba(255, 122, 0, .2); color: #FFA54D; }
.cd-switch { width: 100%; display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 14px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); color: #fff; font: 700 .85rem/1.2 var(--font-head); }
.cd-switch > i { color: #8BB8FF; font-size: 22px; }
.cd-switch em { margin-left: auto; display: inline-flex; gap: 4px; }
.cd-switch em i { width: 9px; height: 9px; border-radius: 2px; background: #10B981; opacity: .85; animation: hv-blink 2s ease-in-out infinite; }
.cd-switch em i:nth-child(3n) { animation-delay: -.7s; }
.cd-switch em i:nth-child(3n+1) { animation-delay: -1.3s; }
.cd-link { display: flex; justify-content: center; height: 28px; }
.cd-link span { width: 2px; height: 100%; background: linear-gradient(180deg, rgba(127, 176, 255, .7), rgba(127, 176, 255, .15)); }
.cd-link-fan { justify-content: space-around; padding: 0 8%; }
.cd-endpoints .cd-node { padding: 12px 6px; }
@media (max-width: 479px) {
    .cd-endpoints { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cd-endpoints .cd-node { max-width: none; }
    .cd-link-fan span:nth-child(n+3) { display: none; }
    .cd-switch em { display: none; }
}
.comms-solutions { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 16px; margin-top: clamp(48px, 6vw, 80px); }
.comms-solutions li { padding: 22px; border-radius: var(--radius); background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); transition: background-color .25s, border-color .25s, transform .25s; }
.comms-solutions li:hover { background: rgba(255, 255, 255, .07); border-color: rgba(127, 176, 255, .4); transform: translateY(-3px); }
.cs-icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 16px; border-radius: 12px; background: rgba(0, 102, 255, .2); color: #8BB8FF; font-size: 22px; }
.comms-solutions li:nth-child(4n+2) .cs-icon { background: rgba(255, 122, 0, .16); color: #FFA54D; }
.comms-solutions strong { display: block; font: 700 1rem/1.3 var(--font-head); margin-bottom: 6px; }
.comms-solutions p { margin: 0; font-size: .88rem; color: rgba(255, 255, 255, .65); line-height: 1.5; }

/* ---------- Domains ---------- */
.domains-panel {
    position: relative; overflow: hidden; padding: clamp(36px, 5vw, 72px) clamp(16px, 5vw, 72px);
    border-radius: clamp(20px, 3vw, 32px); border: 1px solid #D6E3FA;
    background: radial-gradient(700px 300px at 50% 0%, rgba(0, 102, 255, .10), transparent 70%), linear-gradient(180deg, #F6F9FF, #fff);
}
.domains-watermark { position: absolute; left: -60px; bottom: -60px; width: 260px; height: auto; opacity: .05; pointer-events: none; }
.domains .section-head { margin-bottom: 28px; }
.so-badge {
    display: inline-flex; align-items: center; gap: 8px; margin: 22px 0 0; padding: 8px 16px; border-radius: 999px;
    background: var(--orange-soft); color: #B34F00; border: 1px solid #FFD9B5; font: 700 .9rem/1.2 var(--font-head);
}
.so-badge i { font-size: 18px; color: var(--orange); }
.so-badge.is-authorized { background: var(--orange); border-color: var(--orange); color: #fff; }
.so-badge.is-authorized i { color: #fff; }
.domain-search {
    position: relative; display: flex; gap: 8px; max-width: 720px; margin: 0 auto; padding: 8px;
    background: #fff; border: 1px solid #CFDCF3; border-radius: 16px; box-shadow: var(--shadow);
}
.domain-search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0, 102, 255, .12), var(--shadow); }
.domain-input { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 0 10px; }
.domain-input i { color: var(--muted); font-size: 20px; }
.domain-input input { width: 100%; min-width: 0; border: 0; outline: 0; background: none; font-size: 1.05rem; padding: 10px 0; color: var(--ink); }
.domain-input input::placeholder { color: #98A2B7; }
.domain-search .btn { min-width: 112px; }
.domain-search.is-invalid { border-color: #E5484D; }
.tld-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 20px; }
.tld-chip {
    padding: 7px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; cursor: pointer;
    font: 700 .9rem/1.2 var(--font-head); color: var(--ink); transition: border-color .2s, color .2s, background-color .2s;
}
.tld-chip:hover, .tld-chip[aria-pressed="true"] { border-color: var(--blue); color: var(--blue); background: var(--blue-soft); }
.tld-chip.is-highlight { border-color: #FFC993; color: #C25700; background: var(--orange-soft); }
.domain-results { max-width: 720px; margin: 24px auto 0; padding: 18px; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); text-align: left; }
.domain-results-note { font-size: .88rem; color: var(--muted); margin-bottom: 12px; }
.domain-results li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 4px; }
.domain-results li + li { border-top: 1px solid var(--line); }
.domain-results li strong { font: 700 1rem/1.3 var(--font-head); color: var(--ink); overflow-wrap: anywhere; }
.domain-results li strong span { color: var(--blue); }
.domain-results li.is-primary strong span { color: var(--orange); }
.domain-features { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 32px; margin-top: 36px; color: var(--ink); font: 600 .92rem/1.2 var(--font-head); }
.domain-features li { display: inline-flex; align-items: center; gap: 8px; }
.domain-features i { color: var(--blue); font-size: 20px; }
@media (max-width: 559px) {
    .domain-search { flex-direction: column; padding: 8px; }
    .domain-search .btn { width: 100%; }
    .domain-features { display: grid; grid-template-columns: 1fr 1fr; justify-items: start; }
}

/* ---------- Cards (hosting, values) ---------- */
.card-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
@media (min-width: 640px) { .card-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .card-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.info-card { padding: 28px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s, border-color .25s; }
.info-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #CFDCF5; }
.info-icon { display: grid; place-items: center; width: 50px; height: 50px; margin-bottom: 20px; border-radius: 14px; background: var(--gradient); color: #fff; font-size: 24px; box-shadow: 0 8px 18px rgba(0, 102, 255, .22); }
.info-card:nth-child(4) .info-icon { background: var(--gradient-accent); box-shadow: 0 8px 18px rgba(255, 122, 0, .22); }
.info-card p, .value-card p, .industry-card p { margin: 0; color: var(--muted); font-size: .94rem; }
.value-card { display: flex; gap: 18px; padding: 26px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: #fff; transition: border-color .25s, box-shadow .25s; }
.value-card:hover { border-color: #CFDCF5; box-shadow: var(--shadow); }
.value-icon { display: grid; place-items: center; flex-shrink: 0; width: 48px; height: 48px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); font-size: 23px; }
.value-card:nth-child(3n+2) .value-icon { background: var(--orange-soft); color: var(--orange); }
.value-card h3 { margin-bottom: 6px; }

/* ---------- Industries ---------- */
.industry-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 16px; }
@media (min-width: 1200px) { .industry-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.industry-card {
    position: relative; overflow: hidden; padding: 26px 24px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line);
    transition: transform .25s, box-shadow .25s, border-color .25s;
}
.industry-card::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--blue), var(--orange)); transform: scaleX(0); transform-origin: left; transition: transform .35s ease; }
.industry-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #CFDCF5; }
.industry-card:hover::after { transform: scaleX(1); }
.industry-icon { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 18px; border-radius: 16px; background: var(--blue-soft); color: var(--blue); font-size: 26px; transition: background-color .25s, color .25s; }
.industry-card:hover .industry-icon { background: var(--blue); color: #fff; }
.industry-card h3 { margin-bottom: 6px; }

/* ---------- Projects ---------- */
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip { padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff; cursor: pointer; font: 600 .9rem/1.2 var(--font-head); color: var(--ink); transition: all .2s; }
.chip:hover { border-color: var(--blue); color: var(--blue); }
.chip.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.project-card { border-radius: var(--radius-lg); overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s; }
.project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.project-card[hidden] { display: none; }
.project-media { position: relative; aspect-ratio: 16 / 10; background: linear-gradient(135deg, var(--blue-soft), #F3F6FC); overflow: hidden; }
.project-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.project-card:hover .project-media img { transform: scale(1.04); }
.project-tag { position: absolute; left: 14px; top: 14px; padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, .95); color: var(--blue-dark); font: 700 .75rem/1.2 var(--font-head); box-shadow: var(--shadow-sm); }
.project-body { padding: 22px 24px 26px; }
.project-body p { margin: 0; color: var(--muted); font-size: .93rem; }

/* ---------- Clients ---------- */
.clients { padding-top: clamp(56px, 3rem + 3vw, 96px); }
.trust-points { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px; max-width: 960px; margin: 0 auto; }
.trust-points li { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 20px; border-radius: var(--radius); border: 1px dashed #CBD8EE; background: var(--bg-soft); color: var(--ink); font: 700 .95rem/1.3 var(--font-head); }
.trust-points i { color: var(--blue); font-size: 24px; }
.logo-marquee { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.logo-track { display: flex; align-items: center; gap: clamp(32px, 5vw, 64px); width: max-content; animation: marquee var(--marquee-duration, 40s) linear infinite; }
.logo-marquee:hover .logo-track, .logo-marquee:focus-within .logo-track { animation-play-state: paused; }
.logo-marquee.is-static { -webkit-mask-image: none; mask-image: none; }
.logo-marquee.is-static .logo-track { width: auto; flex-wrap: wrap; justify-content: center; animation: none; }
.logo-track li { flex-shrink: 0; }
.logo-track img { height: 52px; width: auto; max-width: 160px; object-fit: contain; filter: grayscale(1); opacity: .7; transition: filter .25s, opacity .25s; }
.logo-track a:hover img, .logo-track img:hover { filter: none; opacity: 1; }
@keyframes marquee { to { transform: translateX(-50%); } }
.partners { margin-top: clamp(40px, 5vw, 64px); text-align: center; }
.partners h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin-bottom: 20px; }
.partners ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.partners li { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 24px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; min-width: 160px; }
.partners img { height: 44px; width: auto; max-width: 150px; object-fit: contain; }
.partners small { color: var(--muted); font-size: .75rem; font-weight: 600; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(40px, 5vw, 80px); align-items: center; }
@media (min-width: 1024px) { .about-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); } }
.about-message { margin: 22px 0 28px; padding-left: 16px; border-left: 3px solid var(--orange); color: var(--ink); font: 700 1.05rem/1.5 var(--font-head); }
.about-story p { color: var(--text); }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.facts li { padding: 24px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); min-width: 0; }
.facts strong { display: block; font: 800 clamp(1.8rem, 1.4rem + 1.2vw, 2.5rem)/1 var(--font-head); color: var(--ink); letter-spacing: -.03em; margin-bottom: 8px; }
.facts span { color: var(--muted); font-size: .9rem; line-height: 1.45; display: block; }
.facts .fact-main { grid-row: span 2; display: flex; flex-direction: column; justify-content: flex-end; background: var(--gradient); border-color: transparent; position: relative; overflow: hidden; }
.facts .fact-main img { position: absolute; right: 18px; top: 20px; width: 48px; height: auto; opacity: .9; }
.facts .fact-main strong { color: #fff; font-size: clamp(2.6rem, 2rem + 2vw, 3.6rem); }
.facts .fact-main span { color: rgba(255, 255, 255, .85); }
.facts .fact-wide { grid-column: 1 / -1; }
.fact-steps { display: flex !important; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-bottom: 8px; }
.fact-steps b { color: var(--ink); font: 800 1rem/1.3 var(--font-head); }
.fact-steps i { color: var(--orange); }
@media (max-width: 479px) {
    .facts { grid-template-columns: minmax(0, 1fr); }
    .facts .fact-main { grid-row: auto; min-height: 180px; }
}

/* ---------- CTA ---------- */
.cta-section { padding: 0 0 clamp(64px, 4rem + 3vw, 112px); }
.section-soft + .cta-section { background: linear-gradient(180deg, var(--bg-soft) 50%, #fff 50%); }
.cta-panel {
    position: relative; overflow: hidden; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px;
    padding: clamp(36px, 5vw, 64px); border-radius: clamp(20px, 3vw, 32px);
    background: radial-gradient(640px 320px at 85% -30%, rgba(255, 255, 255, .16), transparent 70%), var(--gradient); color: #fff;
}
.cta-panel::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--gradient-accent); }
.cta-watermark { position: absolute; right: 4%; top: 50%; width: 300px; height: auto; transform: translateY(-50%); opacity: .08; pointer-events: none; }
.cta-copy { position: relative; max-width: 640px; }
.cta-copy h2 { color: #fff; margin-bottom: 10px; }
.cta-copy p { margin: 0; color: rgba(255, 255, 255, .85); font-size: clamp(1rem, .95rem + .3vw, 1.2rem); }
.cta-actions { position: relative; display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 559px) { .cta-actions, .cta-actions .btn { width: 100%; } }

/* ---------- Contact ---------- */
.contact { padding-top: 0; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); } .contact-grid.is-single { grid-template-columns: minmax(0, 1fr); } }
.contact-grid.is-single .contact-channels { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.contact-info .section-head { margin-bottom: 28px; }
.contact-channels { display: grid; gap: 12px; }
.contact-channels li { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; min-width: 0; }
.channel-icon { display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px; background: var(--blue-soft); color: var(--blue); font-size: 21px; }
.contact-channels li:nth-child(2) .channel-icon { background: var(--orange-soft); color: var(--orange); }
.contact-channels small { display: block; font-size: .78rem; color: var(--muted); font-weight: 600; }
.contact-channels a, .contact-channels span span { color: var(--ink); font: 700 .98rem/1.35 var(--font-head); overflow-wrap: anywhere; }
.contact-channels a:hover { color: var(--blue); }
.contact-social { margin-top: 24px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.contact-social small { color: var(--muted); font-weight: 600; }
.quote-card { padding: clamp(24px, 3vw, 40px); border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.quote-card h3 { font-size: clamp(1.2rem, 1.1rem + .4vw, 1.45rem); margin-bottom: 4px; }
.quote-intro { color: var(--muted); font-size: .88rem; }
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-bottom: 22px; }
@media (min-width: 600px) { .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .field-full { grid-column: 1 / -1; } }
.field label { display: block; margin-bottom: 6px; color: var(--ink); font: 600 .88rem/1.3 var(--font-head); }
.field label span { color: var(--orange-dark); }
.field input, .field select, .field textarea {
    width: 100%; min-height: 48px; padding: 11px 14px; border-radius: 12px; border: 1px solid #D3DCEB; background: #FBFCFE;
    font-size: 1rem; color: var(--ink); transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field select { 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='%2364708A' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; padding-right: 40px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--blue); background-color: #fff; box-shadow: 0 0 0 4px rgba(0, 102, 255, .12); }
.field [aria-invalid="true"] { border-color: #E5484D; background-color: #FFF8F8; }
.field-error { display: block; min-height: 0; margin-top: 4px; color: #D93036; font-size: .8rem; }
.field-error:empty { display: none; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; margin-bottom: 18px; font-size: .92rem; }
.form-alert[hidden] { display: none; }
.form-alert i { font-size: 20px; flex-shrink: 0; }
.form-alert.is-success { background: #E9F9F1; color: #0B7A55; border: 1px solid #BDEBD5; }
.form-alert.is-error { background: #FFF1F1; color: #B42318; border: 1px solid #FBD0D0; }

/* ---------- Page hero (About Us) ---------- */
.page-hero { position: relative; overflow: hidden; padding: clamp(48px, 3rem + 4vw, 112px) 0 clamp(48px, 3rem + 3vw, 96px); }
.page-hero h1 { max-width: 16em; }
.page-hero .hero-lead { max-width: 44em; }
.breadcrumb { display: flex; align-items: center; gap: 8px; margin-bottom: 24px; color: var(--muted); font-size: .88rem; font-weight: 500; }
.breadcrumb a:hover { color: var(--blue); }

/* ---------- Footer ---------- */
/* Background is the Brand Secondary Color, set inline as --footer-bg by partials/footer.blade.php. */
.site-footer {
    position: relative; overflow: hidden; padding: clamp(56px, 6vw, 88px) 0 0; font-size: .94rem; color: rgba(255, 255, 255, .92);
    background-color: var(--footer-bg, #008ECC);
    background-image: radial-gradient(680px 340px at 100% 0%, rgba(255, 255, 255, .14), transparent 70%), linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, .1) 100%);
}
.site-footer::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--gradient-accent); }

/* Mobile: brand, two-up link columns, contact. */
.footer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 24px; padding-bottom: 48px; }
.footer-brand, .footer-contact { grid-column: 1 / -1; }
.footer-brand { max-width: 460px; }
/* Tablet: brand and contact side by side, then the four link columns. */
@media (min-width: 768px) {
    .footer-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 44px 32px; }
    .footer-brand { grid-column: 1 / 3; }
    .footer-contact { grid-column: 3 / 5; grid-row: 1; }
}
/* Desktop: brand, link columns and contact share one row. */
@media (min-width: 1200px) {
    .footer-grid { grid-template-columns: minmax(0, 1.7fr) repeat(var(--footer-link-cols, 4), minmax(0, 1fr)) minmax(0, 1.45fr); gap: 40px clamp(24px, 2.2vw, 36px); }
    .footer-brand, .footer-contact { grid-column: auto; grid-row: auto; }
    .footer-brand { padding-right: 8px; }
}

.footer-logo {
    display: inline-flex; align-items: center; margin-bottom: 22px; padding: 12px 18px; border-radius: 16px; background: #fff;
    box-shadow: 0 10px 26px rgba(0, 0, 0, .14); transition: transform .2s ease, box-shadow .2s ease;
}
.footer-logo:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0, 0, 0, .2); }
.footer-logo:focus-visible { outline-color: #fff; }
.footer-logo img { display: block; height: 44px; width: auto; max-width: 200px; object-fit: contain; }
.footer-brand p { margin: 0; line-height: 1.75; }

.footer-col h3 { position: relative; padding-bottom: 12px; margin-bottom: 18px; color: #fff; font-size: 1rem; letter-spacing: 0; }
.footer-col h3::after { content: ''; position: absolute; left: 0; bottom: 0; width: 28px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, #FFB547, var(--orange)); }
.footer-col ul { display: grid; gap: 11px; }
.footer-col a { color: rgba(255, 255, 255, .92); transition: color .2s; }
.footer-col a:hover, .footer-col a:focus-visible { color: #fff; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, .7); }
.site-footer :focus-visible { outline-color: rgba(255, 255, 255, .8); }

.footer-contact li { display: flex; gap: 12px; align-items: flex-start; overflow-wrap: anywhere; }
.footer-contact i { display: grid; place-items: center; flex-shrink: 0; width: 32px; height: 32px; border-radius: 10px; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .2); color: #fff; font-size: 16px; }
.footer-contact li > span, .footer-contact li > a { min-width: 0; padding-top: 5px; }

.footer-connect { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 24px; }
.footer-social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.footer-connect .footer-social { margin-top: 0; }
.footer-social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .22); color: #fff; transition: background-color .2s, color .2s, transform .2s; }
.footer-social a:hover, .footer-social a:focus-visible { background: #fff; color: var(--footer-bg, var(--blue)); transform: translateY(-2px); }
.footer-social svg, .footer-social i { width: 18px; height: 18px; font-size: 18px; }
.footer-social.is-light { margin-top: 0; }
.footer-social.is-light a { background: var(--blue-soft); border-color: transparent; color: var(--blue); }
.footer-social.is-light a:hover { background: var(--blue); color: #fff; }
/* White pill so the WhatsApp action stands out on any Secondary Color; the icon keeps WhatsApp green. */
.footer-whatsapp {
    display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 9px 18px; border-radius: 999px;
    background: #fff; color: var(--ink); font: 700 .88rem/1.2 var(--font-head); box-shadow: 0 8px 20px rgba(0, 0, 0, .12);
    transition: transform .2s ease, box-shadow .2s ease;
}
.footer-whatsapp i { color: #1FAF54; font-size: 20px; }
.footer-whatsapp:hover, .footer-whatsapp:focus-visible { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(0, 0, 0, .18); }

.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding: 22px 0 28px; border-top: 1px solid rgba(255, 255, 255, .24); font-size: .87rem; color: rgba(255, 255, 255, .9); }
.footer-bottom p { margin: 0; }
.footer-credit span { margin: 0 8px; color: #FFC170; }
@media (max-width: 559px) {
    .footer-bottom { flex-direction: column; align-items: flex-start; gap: 6px; }
}

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

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
    .js [data-reveal] { opacity: 1; transform: none; }
    .logo-marquee .logo-track { width: auto; flex-wrap: wrap; justify-content: center; }
    .logo-marquee { -webkit-mask-image: none; mask-image: none; }
}

@media print {
    .site-header, .hero-visual, .cta-section, .quote-card { display: none; }
}
