:root {
  --navy: #262a3a;
  --navy-2: #333747;
  --accent: #40bf8e;
  --accent-dark: #1c8560;
  --ink: #2b2f3f;
  --muted: #64748b;
  --bg: #ffffff;
  --bg-soft: #f4f7fb;
  --line: #e2e8f0;
  --radius: 14px;
  --max: 1280px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 16px; }
.brand { display: flex; align-items: center; }
.brand img { height: 54px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 22px; font-size: .93rem; font-weight: 500; }
.nav-links a:hover { color: var(--accent-dark); }
.lang {
  border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px;
  font-size: .8rem; font-weight: 700; color: var(--navy);
}
.lang:hover { border-color: var(--accent); color: var(--accent-dark); }
.menu-toggle { display: none; background: none; border: 0; font-size: 1.6rem; cursor: pointer; color: var(--navy); }

/* Buttons */
.btn {
  display: inline-block; padding: 13px 24px; border-radius: 10px;
  font-weight: 600; font-size: .98rem; border: 2px solid transparent;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #0d2a1f; }
.btn-primary:hover { background: #57d0a2; }
.btn-ghost { border-color: rgba(255,255,255,.35); color: #fff; }
.btn-ghost:hover { border-color: #fff; }

/* Hero */
.hero {
  background: radial-gradient(1200px 500px at 85% -10%, rgba(64,191,142,.26), transparent 60%),
              linear-gradient(160deg, var(--navy), var(--navy-2));
  color: #fff; padding: 96px 0 104px;
}
.eyebrow { text-transform: uppercase; letter-spacing: 1.6px; font-size: .78rem; font-weight: 700; color: var(--accent); margin-bottom: 14px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.12; max-width: 780px; margin-bottom: 20px; }
.hero p.lead { font-size: 1.15rem; color: #cbd5e1; max-width: 640px; margin-bottom: 32px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.platforms { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 44px; }
.chip {
  border: 1px solid rgba(255,255,255,.25); border-radius: 999px;
  padding: 6px 14px; font-size: .85rem; color: #e2e8f0;
}

/* Sections */
section { padding: 84px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(1.6rem, 3.4vw, 2.25rem); color: var(--navy); line-height: 1.2; margin-bottom: 12px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: box-shadow .2s ease, transform .2s ease;
}
.card:hover { box-shadow: 0 12px 32px rgba(11,31,58,.08); transform: translateY(-2px); }
.icon {
  width: 46px; height: 46px; border-radius: 12px; margin-bottom: 18px;
  background: rgba(64,191,142,.15); color: var(--accent-dark);
  display: grid; place-items: center;
}
.icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 1.15rem; color: var(--navy); margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .98rem; }
.card ul { margin-top: 12px; padding-left: 18px; color: var(--muted); font-size: .95rem; }
.card li { margin-bottom: 4px; }

/* Migration steps */
.steps { counter-reset: step; display: grid; gap: 18px; grid-template-columns: repeat(4, 1fr); }
.step { position: relative; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--navy); color: #fff; font-weight: 700; margin-bottom: 14px;
}
.step h3 { font-size: 1.02rem; color: var(--navy); margin-bottom: 6px; }
.step p { color: var(--muted); font-size: .93rem; }

/* About */
.about { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.about p { color: var(--muted); margin-bottom: 14px; font-size: 1.03rem; }
.facts { display: grid; gap: 14px; }
.fact { padding: 20px 22px; border-left: 4px solid var(--accent); background: var(--bg-soft); border-radius: 0 var(--radius) var(--radius) 0; }
.fact strong { display: block; color: var(--navy); font-size: 1.05rem; }
.fact span { color: var(--muted); font-size: .93rem; }

/* Contact */
.contact { background: var(--navy); color: #fff; }
.contact .section-head h2 { color: #fff; }
.contact .section-head p { color: #cbd5e1; }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.contact-item { border: 1px solid rgba(255,255,255,.15); border-radius: var(--radius); padding: 24px; }
.contact-item small { display: block; text-transform: uppercase; letter-spacing: 1.2px; color: var(--accent); font-size: .72rem; font-weight: 700; margin-bottom: 8px; }
.contact-item a:hover { color: var(--accent); }

/* Footer */
footer { background: #1b1e2b; color: #94a3b8; padding: 28px 0; font-size: .88rem; }
.foot-logo { height: 40px; width: auto; margin-bottom: 14px; }
.foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* Responsive */
@media (max-width: 900px) {
  .grid-3, .steps { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .menu-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 76px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: flex-start; padding: 18px 20px; gap: 16px;
  }
  .nav-links.open { display: flex; }
  .grid-3, .grid-2, .steps { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 72px; }
  section { padding: 60px 0; }
}

.reveal {
  font: inherit; color: #fff; background: transparent; cursor: pointer;
  border: 1px solid rgba(255,255,255,.35); border-radius: 8px; padding: 6px 14px;
}
.reveal:hover { border-color: var(--accent); color: var(--accent); }

/* Microsoft section */
.badges { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.badge {
  display: inline-flex; align-items: center; gap: 10px; background: #fff;
  border: 1px solid var(--line); border-radius: 12px; padding: 10px 16px;
  font-weight: 600; color: var(--navy); font-size: .95rem;
}
.badge svg { width: 20px; height: 20px; color: var(--accent-dark); }
.highlights { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 22px; }
.highlight {
  display: flex; gap: 22px; align-items: center; background: var(--navy); color: #fff;
  border-radius: var(--radius); padding: 28px;
}
.highlight .big { font-size: 2.4rem; font-weight: 800; color: var(--accent); line-height: 1; min-width: 96px; }
.highlight h3 { font-size: 1.1rem; margin-bottom: 6px; }
.highlight p { color: #cbd5e1; font-size: .95rem; }
.section-soft .fact { background: #fff; }
.legal { margin-top: 14px; font-size: .78rem; color: #6b7286; max-width: 820px; }
@media (max-width: 900px) { .highlights { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .highlight { flex-direction: column; align-items: flex-start; gap: 12px; } }

section { scroll-margin-top: 76px; }

.chip-cert { border-color: var(--accent); color: var(--accent); }

.langs { display: flex; gap: 6px; }
.lang.current { background: var(--navy); border-color: var(--navy); color: #fff; }

/* Autopatch + reports */
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.report {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 36px; align-items: center;
  background: var(--navy); color: #fff; border-radius: var(--radius); padding: 36px; margin-top: 22px;
}
.report h3 { font-size: 1.4rem; margin-bottom: 10px; }
.report p { color: #cbd5e1; }
.report ul { list-style: none; }
.report li { position: relative; padding-left: 28px; margin-bottom: 10px; color: #e2e8f0; font-size: .96rem; }
.report li::before { content: "\2713"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
@media (max-width: 1000px) {
  .nav-links { gap: 16px; font-size: .9rem; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) { .report { grid-template-columns: 1fr; padding: 28px; gap: 20px; } }
@media (max-width: 720px) { .grid-4 { grid-template-columns: 1fr; } }

.highlight .big svg { width: 44px; height: 44px; }

.highlight .big:has(svg) { min-width: 48px; }

/* FAQ */
.faq { max-width: 860px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: #fff; margin-bottom: 12px; }
.faq summary {
  cursor: pointer; padding: 18px 22px; font-weight: 600; color: var(--navy);
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent-dark); font-size: 1.5rem; line-height: 1; flex-shrink: 0; }
.faq details[open] summary::after { content: "\2212"; }
.faq details[open] summary { border-bottom: 1px solid var(--line); }
.faq .answer { padding: 16px 22px 20px; color: var(--muted); font-size: .98rem; }
.faq .answer ul { padding-left: 18px; margin-bottom: 10px; }
.faq .answer li { margin-bottom: 8px; }
.faq .answer b { color: var(--navy); }
.faq .answer p + p { margin-top: 8px; }
@media (max-width: 1100px) {
  .menu-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 76px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: flex-start; padding: 18px 20px; gap: 16px; font-size: .98rem;
  }
  .nav-links.open { display: flex; }
}

.highlights.serve .big { white-space: nowrap; min-width: 150px; }
.serve-note { color: var(--muted); font-size: 1.02rem; max-width: 760px; }
@media (max-width: 720px) { .highlights.serve .big { min-width: 0; } }

.faq .answer .footnote { font-size: .85rem; font-style: italic; }

.faq .answer a.doc { color: var(--accent-dark); text-decoration: underline; font-size: .88rem; white-space: nowrap; }
.faq .answer a.doc:hover { color: var(--navy); }

/* utility classes (replace former inline styles, needed for strict CSP) */
.section-head.mb-20{margin-bottom:20px}
.section-head.mb-28{margin-bottom:28px}
.badges.badges-serve{margin:26px 0 18px}

/* custom error page (403) */
.err-page { min-height: calc(100vh - 76px); display: flex; align-items: center; }
.err-code { color: var(--accent); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .9rem; margin-bottom: 14px; }

/* optional language suggestion banner */
.lang-banner { background: var(--navy-2); color: #fff; font-size: .9rem; }
.lang-banner-in { display: flex; align-items: center; justify-content: center; gap: 14px; padding-top: 9px; padding-bottom: 9px; flex-wrap: wrap; }
.lang-banner a { background: var(--accent); color: #0d2a1f; font-weight: 600; padding: 4px 14px; border-radius: 999px; white-space: nowrap; }
.lang-banner a:hover { background: #57d0a2; }
.lang-banner button { background: none; border: 0; color: #cbd5e1; font-size: 1.4rem; line-height: 1; cursor: pointer; padding: 2px 8px; border-radius: 6px; }
.lang-banner button:hover { color: #fff; }
.lang-banner a:focus-visible, .lang-banner button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* space between the last menu item and the language selector (desktop menu only) */
@media (min-width: 1101px) { .langs { margin-left: 16px; } }
.contact .section-head p.hint { font-size: .9rem; font-style: italic; color: #94a3b8; margin-top: 10px; }
/* tablet: a last card alone in a 2-column row spans the full row */
@media (min-width: 721px) and (max-width: 900px) { .grid-3 > :last-child:nth-child(odd) { grid-column: 1 / -1; } }
/* footer links */
.foot a { color: #cbd5e1; text-decoration: underline; text-underline-offset: 3px; }
.foot a:hover, .foot a:focus-visible { color: #fff; }
/* privacy pages */
.contact .section-head p.hint a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.doc { padding: 64px 0 84px; }
.doc-wrap { max-width: 780px; }
.doc h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); color: var(--navy); line-height: 1.15; margin-bottom: 8px; }
.doc .updated { color: var(--muted); margin-bottom: 36px; }
.doc h2 { font-size: 1.3rem; color: var(--navy); margin: 34px 0 10px; }
.doc p { color: #334155; font-size: 1.02rem; margin-bottom: 10px; }
.doc a { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 3px; }
/* footer certification badge */
.foot-brand { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.foot-brand .foot-logo { margin-bottom: 0; }
.foot-iso { height: 56px; width: 56px; }
