/* MCS Cloud institutional site. Same identity as the console (guide v1):
   Montserrat for titles, Open Sans for text, MCS blues, neutral greys.
   Dark hero and bands; light content by default, dark when the system is. */

@font-face { font-family: "Montserrat"; src: url("/fonts/montserrat-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url("/fonts/open-sans-latin-wght-normal.woff2") format("woff2"); font-weight: 300 800; font-display: swap; }

:root {
  --brand-100: #d3e7f7;
  --brand-300: #74b4e6;
  --brand-400: #43a2e8;
  --brand-500: #2492e1;
  --brand-600: #1271b5;
  --brand-700: #0e5e98;
  --brand-900: #0b3d62;
  --brand-950: #082a45;
  --ink: #06192b;

  --bg: #ffffff;
  --bg-alt: #f6f7f9;
  --surface: #ffffff;
  --border: #dcdde3;
  --text: #161d26;
  --text-2: #464b55;
  --link: #1271b5;
  --ico-bg: #eaf3fb;
  --ico: #1271b5;
  --shadow: 0 1px 2px rgba(6, 25, 43, .06), 0 8px 24px rgba(6, 25, 43, .06);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f141a;
    --bg-alt: #131a22;
    --surface: #161d26;
    --border: #2a323d;
    --text: #f3f3f7;
    --text-2: #c2c4cc;
    --link: #74b4e6;
    --ico-bg: rgba(36, 146, 225, .16);
    --ico: #9fcdf0;
    --shadow: none;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 "Open Sans", system-ui, sans-serif; overflow-x: hidden; }
h1, h2, h3 { font-family: "Montserrat", system-ui, sans-serif; line-height: 1.2; margin: 0; letter-spacing: -0.015em; }
p { margin: 0; }
a { color: var(--link); }
img { max-width: 100%; height: auto; display: block; }
code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; }

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

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 20; background: #fff; color: #000; padding: 8px 12px; border-radius: 6px; }
:focus-visible { outline: 3px solid var(--brand-400); outline-offset: 2px; }

/* Icons */
.ico { width: 44px; height: 44px; padding: 10px; border-radius: 10px; background: var(--ico-bg); fill: none; stroke: var(--ico); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ico-sm { width: 36px; height: 36px; padding: 8px; border-radius: 8px; background: var(--ico-bg); fill: none; stroke: var(--ico); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ico-xs { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: -3px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 8px; font: 600 15px/1 "Open Sans", system-ui, sans-serif; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background .15s, border-color .15s, transform .15s; }
.btn-lg { min-height: 50px; padding: 0 26px; font-size: 16px; }
.btn-primary { background: var(--brand-600); color: #fff; }
.btn-primary:hover { background: var(--brand-700); }
.btn-white { background: #fff; color: var(--brand-900); }
.btn-white:hover { background: var(--brand-100); }
.btn-ghost { color: #fff; border-color: rgba(255,255,255,.4); }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-outline { color: var(--link); border-color: var(--border); background: var(--surface); }
.btn-outline:hover { border-color: var(--link); }
.btn-light { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.28); min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn-light:hover { background: rgba(255,255,255,.18); }

/* Top bar */
.topbar { background: rgba(6, 25, 43, .92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); color: #fff; position: sticky; top: 0; z-index: 10; border-bottom: 1px solid rgba(255,255,255,.08); }
.topbar-in { display: flex; align-items: center; gap: 28px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.brand .mark { height: 28px; width: auto; }
.brand .word { font: 800 19px/1 "Montserrat", system-ui, sans-serif; letter-spacing: -0.02em; }
.brand .word b { font-weight: 800; color: #fff; }
.brand .word span { color: var(--brand-300); }
.nav { display: none; align-items: center; gap: 26px; }
.nav > a, .menu > summary { color: #c9dcee; text-decoration: none; font-size: 15px; cursor: pointer; }
.nav > a:hover, .menu > summary:hover, .nav a[aria-current] { color: #fff; }
.top-cta { margin-left: auto; display: none; }
.menu { position: relative; }
.menu > summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; }
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-3px); }
.menu-panel { position: absolute; top: calc(100% + 18px); left: -24px; width: 640px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 12px; background: #fff; color: #161d26; border-radius: 14px; box-shadow: 0 20px 50px rgba(6,25,43,.35); }
.menu-panel a { display: flex; gap: 12px; align-items: flex-start; padding: 10px; border-radius: 10px; text-decoration: none; color: inherit; }
.menu-panel a:hover, .menu-panel a[aria-current] { background: #f1f6fb; }
.menu-panel .ico-sm { background: #eaf3fb; stroke: #1271b5; }
.menu-panel b { display: block; font: 700 14px/1.3 "Montserrat", system-ui, sans-serif; }
.menu-panel small { display: block; color: #555b66; font-size: 12.5px; line-height: 1.4; margin-top: 2px; }
.burger { margin-left: auto; }
.burger > summary { list-style: none; cursor: pointer; padding: 8px; border-radius: 8px; display: grid; place-items: center; }
.burger > summary::-webkit-details-marker { display: none; }
.burger > summary svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; }
.burger-panel { position: absolute; left: 0; right: 0; top: 64px; background: #06192b; padding: 16px; display: grid; gap: 2px; border-bottom: 1px solid rgba(255,255,255,.1); max-height: calc(100vh - 64px); overflow-y: auto; }
.burger-panel a:not(.btn) { color: #dbe8f4; text-decoration: none; padding: 10px 4px; }
.burger-panel .btn { margin-top: 12px; }
.burger-panel hr { border: 0; border-top: 1px solid rgba(255,255,255,.12); margin: 8px 0; width: 100%; }
.burger-title { color: #8fb4d6; font: 700 12px/1 "Montserrat", sans-serif; text-transform: uppercase; letter-spacing: .08em; padding: 8px 4px; }
@media (min-width: 960px) {
  .nav { display: flex; }
  .top-cta { display: block; }
  .burger { display: none; }
}

/* Hero */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 600px at 85% -10%, #12508a 0%, transparent 60%), linear-gradient(170deg, #06192b 0%, #082a45 55%, #0b3d62 100%); color: #fff; padding: 64px 0 56px; }
.hero-glow { position: absolute; inset: 0; 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: 48px 48px; mask-image: radial-gradient(ellipse at 70% 30%, #000 0%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 0%, transparent 70%); pointer-events: none; }
.hero-in { position: relative; display: grid; gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 700 13px/1.4 "Montserrat", system-ui, sans-serif; text-transform: uppercase; letter-spacing: .09em; color: var(--brand-600); margin-bottom: 14px; }
.hero .eyebrow, .dark .eyebrow, .cta-band .eyebrow { color: var(--brand-300); }
.hero h1 { font-size: clamp(32px, 5.2vw, 56px); font-weight: 800; max-width: 17ch; letter-spacing: -0.025em; }
.hero-svc h1 { font-size: clamp(30px, 4.4vw, 46px); max-width: 20ch; }
.hl { background: linear-gradient(90deg, #74b4e6, #43baff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { margin-top: 20px; font-size: 18px; color: #c9dcee; max-width: 58ch; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.cta.center { justify-content: center; }
.crumbs { font-size: 14px; color: #8fb4d6; margin-bottom: 18px; }
.crumbs a { color: #c9dcee; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.hero-visual { position: relative; min-width: 0; }
.hero-small { padding: 56px 0 48px; }
.hero-small h1 { font-size: clamp(30px, 4.4vw, 44px); }
@media (min-width: 1000px) {
  .hero { padding: 88px 0 72px; }
  .hero-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; }
  .hero-svc .hero-in { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
}

/* Browser frame around console screenshots */
.browser { margin: 0; border-radius: 12px; overflow: hidden; background: #0f141a; border: 1px solid rgba(255,255,255,.14); box-shadow: 0 30px 80px rgba(0,0,0,.45), 0 0 0 1px rgba(0,0,0,.2); }
.browser-bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; background: #1a2230; }
.browser-bar span { width: 10px; height: 10px; border-radius: 50%; background: #3a4555; }
.browser-bar span:nth-child(1) { background: #ef6a5e; }
.browser-bar span:nth-child(2) { background: #f4bf4f; }
.browser-bar span:nth-child(3) { background: #61c454; }
.browser-bar em { margin-left: 12px; flex: 1; max-width: 280px; font: 12px/22px "Open Sans", sans-serif; font-style: normal; color: #9aa6b5; background: #0f141a; border-radius: 6px; padding: 0 10px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
@media (min-width: 1000px) {
  .browser.tilt { transform: perspective(1600px) rotateY(-9deg) rotateX(3deg); transform-origin: left center; width: 118%; }
}
.float { position: absolute; display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 10px; background: rgba(255,255,255,.96); color: #161d26; font-size: 13.5px; box-shadow: 0 12px 30px rgba(0,0,0,.3); white-space: nowrap; }
.float .ico-xs { color: #0a8a4f; }
.float-a { left: -8px; bottom: 18%; }
.float-b { right: 4%; top: -14px; }
.float-b .ico-xs { color: var(--brand-600); }
@media (max-width: 640px) { .float { display: none; } }

/* Facts strip */
.facts { position: relative; list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); border-top: 1px solid rgba(255,255,255,.12); }
.facts li { padding: 22px 20px 0 0; display: grid; gap: 4px; }
.facts strong { font: 700 18px/1.3 "Montserrat", system-ui, sans-serif; }
.facts span { color: #a9c3dc; font-size: 14px; }

/* Sections */
.section { padding: 72px 0; }
.section.alt { background: var(--bg-alt); border-block: 1px solid var(--border); }
.section.dark { background: linear-gradient(180deg, #06192b, #0b2a47); color: #fff; }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head h2, .regions-in h2, .faq-in h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; }
.section-head p:not(.eyebrow), .sub { margin-top: 14px; color: var(--text-2); font-size: 17px; }
.dark .section-head p:not(.eyebrow) { color: #b9cee2; }
@media (min-width: 1000px) { .section { padding: 104px 0; } }

/* Cards */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 24px; box-shadow: var(--shadow); }
.card-link { display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: border-color .15s, transform .15s; }
.card-link:hover { border-color: var(--brand-500); transform: translateY(-2px); }
.card h3 { font-size: 18px; font-weight: 700; margin: 18px 0 8px; }
.card p { color: var(--text-2); font-size: 15px; flex: 1; }
.more { margin-top: 16px; color: var(--link); font-weight: 600; font-size: 14px; }

/* Showcase */
.showcase { display: grid; gap: 40px; align-items: center; }
.showcase-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; }
.showcase-points li { display: flex; gap: 16px; }
.showcase-points .ico { background: rgba(36,146,225,.16); stroke: #9fcdf0; }
.showcase-points h3 { font-size: 17px; margin-bottom: 4px; }
.showcase-points p { color: #b9cee2; font-size: 15px; }
.showcase-second { margin-top: 40px; }
@media (min-width: 1000px) {
  .showcase { grid-template-columns: 1.5fr 1fr; gap: 56px; }
  .showcase-second { width: 66%; margin: 40px 0 0 auto; }
}

/* Regions */
.regions-in { display: grid; gap: 40px; align-items: center; }
.regions { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 10px; max-width: 420px; }
.regions li { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 18px; }
.regions li > div { display: flex; flex: 1; justify-content: space-between; align-items: baseline; gap: 12px; }
.regions strong { font: 700 18px/1.25 "Montserrat", system-ui, sans-serif; }
.regions code { font-size: 13px; color: var(--link); font-weight: 600; }
.reg-dot { width: 10px; height: 10px; border-radius: 50%; background: #1fae6b; box-shadow: 0 0 0 4px rgba(31,174,107,.18); flex: none; }
.note { margin-top: 20px; color: var(--text-2); }
.region-diagram { width: 100%; max-width: 520px; justify-self: center; }
.region-diagram .halo { fill: rgba(36,146,225,.14); }
.region-diagram .dot { fill: var(--brand-600); stroke: #fff; stroke-width: 3; }
.region-diagram .city { font: 700 16px "Montserrat", sans-serif; fill: var(--text); }
.region-diagram .code { font: 600 12px ui-monospace, Consolas, monospace; fill: var(--link); }
.region-diagram .links { animation: dash 30s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -260; } }
@media (prefers-reduced-motion: reduce) { .region-diagram .links { animation: none; } }
@media (min-width: 1000px) { .regions-in { grid-template-columns: 1fr 1fr; gap: 64px; } }

/* Why / steps */
.why { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.why h3 { font-size: 17px; margin: 16px 0 6px; }
.why p { color: var(--text-2); font-size: 15px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: step; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.steps li { counter-increment: step; border: 1px solid var(--border); border-radius: 14px; padding: 24px; background: var(--surface); position: relative; }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font: 800 28px/1 "Montserrat", sans-serif; color: var(--brand-500); margin-bottom: 14px; }
.steps h3 { font-size: 18px; margin-bottom: 8px; }
.steps p { color: var(--text-2); font-size: 15px; }

/* CTA band */
.cta-band { background: linear-gradient(120deg, #0e5e98, #1271b5 50%, #2492e1); color: #fff; padding: 56px 0; }
.cta-band-in { display: grid; gap: 24px; align-items: center; }
.cta-band h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; }
.cta-band p { margin-top: 10px; color: #e0eefa; font-size: 17px; }
.cta-band .cta { margin-top: 0; }
@media (min-width: 900px) { .cta-band-in { grid-template-columns: 1.4fr auto; } }

/* Service pages */
.svc-art { position: relative; border-radius: 18px; padding: 40px; background: linear-gradient(150deg, rgba(36,146,225,.22), rgba(36,146,225,.05)); border: 1px solid rgba(255,255,255,.14); display: grid; gap: 28px; justify-items: start; }
.svc-art-ico { width: 88px; height: 88px; padding: 20px; border-radius: 22px; background: rgba(255,255,255,.1); fill: none; stroke: #bfe0fa; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.svc-art ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.svc-art li { display: flex; gap: 10px; align-items: center; font: 600 17px/1.3 "Montserrat", sans-serif; }
.svc-art li .ico-xs { color: #61c454; }
.features { display: grid; gap: 28px 40px; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.feature { display: flex; gap: 16px; }
.feature h3 { font-size: 17px; margin-bottom: 6px; }
.feature p { color: var(--text-2); font-size: 15px; }
.uses { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.use { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 26px; box-shadow: var(--shadow); }
.use-n { display: block; font: 800 14px/1 "Montserrat", sans-serif; color: var(--brand-500); margin-bottom: 14px; }
.use h3 { font-size: 18px; margin-bottom: 8px; }
.use p { color: var(--text-2); font-size: 15px; }
.faq-in { display: grid; gap: 32px; }
.faq details { border-bottom: 1px solid var(--border); }
.faq details:first-child { border-top: 1px solid var(--border); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 36px 20px 0; position: relative; font: 700 17px/1.4 "Montserrat", sans-serif; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font: 400 26px/1 "Open Sans", sans-serif; color: var(--link); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 20px; color: var(--text-2); }
@media (min-width: 1000px) { .faq-in { grid-template-columns: 1fr 1.6fr; gap: 64px; } }

/* Contact */
.contact-in { display: grid; gap: 40px; align-items: start; }
@media (min-width: 1000px) { .contact-in { grid-template-columns: 1.6fr 1fr; gap: 56px; } }
.form { display: grid; gap: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 28px; box-shadow: var(--shadow); }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: 14px; }
.form input:not([type="checkbox"]), .form select, .form textarea { width: 100%; font: 400 16px/1.4 "Open Sans", sans-serif; color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 11px 12px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--brand-500); box-shadow: 0 0 0 3px rgba(36,146,225,.2); }
.form textarea { resize: vertical; min-height: 140px; }
.form .btn { justify-self: start; }
.row2 { display: grid; gap: 18px; }
@media (min-width: 640px) { .row2 { grid-template-columns: 1fr 1fr; } }
.req { color: #d0342c; }
.check { display: flex !important; grid-template-columns: none; align-items: flex-start; gap: 10px !important; font-weight: 400 !important; color: var(--text-2); }
.check input { margin-top: 4px; width: 18px; height: 18px; flex: none; accent-color: var(--brand-600); }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-side { display: grid; gap: 16px; }
.side-card { background: var(--bg-alt); border: 1px solid var(--border); border-radius: 14px; padding: 22px; }
.side-card h2 { font-size: 17px; margin-bottom: 12px; }
.side-card p { color: var(--text-2); margin-top: 6px; }
.mini-steps { margin: 0; padding-left: 20px; color: var(--text-2); display: grid; gap: 6px; }

.notice-page { min-height: 60vh; display: grid; align-items: center; }
.notice { max-width: 620px; text-align: center; }
.notice h1 { font-size: clamp(26px, 3.4vw, 36px); margin: 20px 0 12px; }
.notice p { color: var(--text-2); font-size: 17px; }
.notice-ico { display: inline-grid; }
.notice-ico .ico { width: 64px; height: 64px; padding: 16px; border-radius: 50%; }
.notice-ico.ok .ico { background: rgba(31,174,107,.14); stroke: #0f8a52; }

.prose { max-width: 760px; }
.prose h2 { font-size: 22px; margin: 32px 0 10px; }
.prose p { color: var(--text-2); margin-top: 12px; }

/* Footer */
.footer { background: #06192b; color: #a9c3dc; font-size: 14px; padding-top: 56px; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); padding-bottom: 40px; }
.footer-brand p { margin-top: 14px; max-width: 30ch; }
.footer-title { font: 700 13px/1 "Montserrat", sans-serif; color: #fff; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.footer-grid a:not(.brand) { display: block; color: #c9dcee; text-decoration: none; padding: 4px 0; }
.footer-grid a:not(.brand):hover { color: #fff; text-decoration: underline; }
.footer-base { border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; padding-bottom: 28px; color: #7f9bb6; font-size: 13px; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.4fr 1.2fr 1fr 1fr; } }
