/* Ostrelis — shared visual system */
:root {
  --paper: #07182b;
  --surface: #0e223b;
  --surface-deep: #03101f;
  --ink: #f5f7fa;
  --ink-dark: #0b1a2c;
  --muted: #a8b9cc;
  --muted-dark: #5d6b79;
  --line: #29435f;
  --line-light: #d8dee5;
  --accent: #2563ff;
  --accent-bright: #69a8ff;
  --founder: #f4f2ed;
  --display: "Bricolage Grotesque", "Segoe UI", sans-serif;
  --body: "Inter", "Segoe UI", sans-serif;
  --radius: 14px;
  --shadow: 0 22px 54px rgba(0, 0, 0, .24);
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
p { color: var(--muted); margin: 0; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 3px; }
.skip-link { position: absolute; left: -999px; top: 0; z-index: 100; background: var(--accent); color: white; padding: 12px 18px; border-radius: 0 0 var(--radius) 0; font-size: 13px; font-weight: 600; }
.skip-link:focus { left: 0; }

h1, h2, h3, h4 { margin: 0; color: var(--ink); font-family: var(--display); font-weight: 600; line-height: 1.08; letter-spacing: -.025em; }
h1 { max-width: 680px; margin: 18px 0 22px; font-size: clamp(42px, 5.2vw, 72px); }
h2 { font-size: clamp(32px, 3.7vw, 50px); }
h3 { font-size: 20px; }
h1 em, h2 em { color: var(--accent-bright); font-style: normal; }
.lead { max-width: 575px; color: var(--muted); font-size: 17px; line-height: 1.65; }
.eyebrow { display: flex; align-items: center; gap: 12px; color: var(--accent-bright); font: 600 11px/1 var(--body); letter-spacing: .15em; text-transform: uppercase; }
.eyebrow::after { content: ""; width: 30px; height: 1px; background: currentColor; opacity: .45; }

.section-wrap { width: min(var(--container), calc(100% - 48px)); margin-inline: auto; }
.section { padding-block: 118px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 64px; margin-bottom: 54px; }
.section-heading h2 { max-width: 700px; margin-top: 16px; }
.section-heading > p { max-width: 410px; font-size: 15px; }
.compact-heading { margin-bottom: 46px; }

.site-header { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; height: 76px; gap: 40px; padding: 0 max(24px, calc((100% - var(--container)) / 2)); border-bottom: 1px solid transparent; background: rgba(7, 24, 43, .9); backdrop-filter: saturate(150%) blur(12px); transition: border-color .2s, box-shadow .2s; }
.site-header.scrolled { border-color: var(--line); box-shadow: 0 10px 30px rgba(0, 0, 0, .12); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font: 600 19px var(--display); }
.brand > span { text-transform: uppercase; }
.site-header .brand > span { display: block; line-height: 1.05; font-size: 22px; }
.site-header .brand > span::after { content: "Salesforce Managed Services"; display: block; margin-top: 5px; color: var(--muted); font: 500 9px var(--body); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.site-header .logo-mark { width: 32px; height: 32px; }
.logo-mark { width: 27px; height: 27px; color: var(--accent); }
.nav { display: flex; gap: 30px; margin-left: auto; color: var(--muted); font-size: 14px; }
.nav a:hover, .footer-links a:hover { color: var(--ink); }
.menu-toggle { display: none; padding: 8px; border: 0; background: none; color: var(--ink); }
.menu-toggle i { display: block; width: 23px; height: 1px; background: currentColor; }
.menu-toggle i + i { margin-top: 6px; }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; gap: 9px; padding: 13px 20px; border-radius: var(--radius); background: var(--accent); color: white; font-size: 14px; font-weight: 600; transition: background .18s, transform .18s; }
.button:hover { background: #3977ff; transform: translateY(-1px); }
.button-small { min-height: 40px; padding: 10px 16px; font-size: 13px; }
.text-link { color: var(--accent-bright); font-size: 13.5px; font-weight: 600; }
.text-link:hover { color: white; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 22px; margin-top: 30px; }
.tertiary-link { display: inline-block; margin-top: 30px; color: var(--muted); font-size: 13px; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 5px; }
.tertiary-link:hover { color: var(--ink); }

/* Hero service system */
.hero { display: grid; grid-template-columns: .98fr 1.02fr; align-items: center; gap: 56px; min-height: 690px; padding-block: 70px 82px; }
.hero-copy { position: relative; z-index: 2; }
.modular-service-graphic { margin: 0; min-width: 0; overflow: hidden; }
.modular-service-graphic svg { width: 100%; color: #41678e; overflow: visible; }
.service-node rect { fill: var(--surface); stroke: var(--line); transition: fill .2s, stroke .2s; }
.service-node circle { fill: var(--accent); transition: fill .2s; }
.service-node text { fill: var(--ink); font: 600 13px var(--body); transition: fill .2s; }
.service-node:hover rect { fill: var(--accent); stroke: var(--accent-bright); }
.service-node:hover circle { fill: white; }
.service-node:hover text { fill: white; }
.modular-service-graphic:has(.service-node[data-service="support"]:hover) .module-support,
.modular-service-graphic:has(.service-node[data-service="improve"]:hover) .module-improve,
.modular-service-graphic:has(.service-node[data-service="guide"]:hover) .module-guide,
.modular-service-graphic:has(.service-node[data-service="deliver"]:hover) .module-deliver { fill: var(--accent); }
.hero-o path { fill: #f5f7fa; }
.graphic-glow { transform-origin: center; animation: breathe 5s ease-in-out infinite; }
.service-node { animation: float-node 6s ease-in-out infinite; pointer-events: bounding-box; }
.service-node:nth-of-type(2), .service-node:nth-of-type(4) { animation-delay: -3s; }
@keyframes breathe { 50% { opacity: .32; transform: scale(1.08); } }
@keyframes float-node { 50% { transform: translateY(-5px); } }

.credibility { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: center; margin-top: 8px; padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.credibility-item { display: flex; min-height: 76px; padding: 8px 24px; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.credibility-item + .credibility-item { border-left: 1px solid rgba(105, 168, 255, .16); }
.credibility strong { display: block; color: var(--ink); font-family: var(--display); font-size: 25px; line-height: 1.15; white-space: nowrap; }
.credibility span { display: block; margin-top: 8px; color: var(--muted); font-size: 15px; line-height: 1.35; }

/* Video highlight */
.video-highlight { display: grid; grid-template-columns: .72fr 1.28fr; align-items: center; gap: 64px; }
.video-highlight-copy { max-width: 390px; }
.video-highlight-copy h2 { margin: 18px 0; }
.video-highlight-copy p { font-size: 16px; }
.video-highlight-frame { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-deep); box-shadow: var(--shadow); }
.video-highlight-frame video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* Experience journey */
.experience-section { padding-bottom: 96px; }
.experience-journey { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; padding-top: 12px; }
.experience-journey::before { content: ""; position: absolute; top: 205px; left: 12.5%; right: 12.5%; height: 1px; background: linear-gradient(90deg, var(--line), var(--accent)); z-index: 0; }
.experience-journey article:not(:last-child)::after { content: "›"; position: absolute; top: 194px; right: -18px; color: var(--accent-bright); font-size: 20px; line-height: 1; }
.experience-journey article { position: relative; z-index: 1; min-width: 0; text-align: center; }
.journey-illustration { display: flex; align-items: center; justify-content: center; height: 180px; margin-bottom: 24px; }
.journey-illustration img { display: block; width: 100%; height: 100%; object-fit: contain; }
.journey-illustration img { filter: brightness(0) invert(1); opacity: .94; }
.experience-journey h3 { margin-bottom: 10px; font-size: 18px; }
.experience-journey p { max-width: 240px; margin-inline: auto; font-size: 13.5px; }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.service-card { display: flex; flex-direction: column; min-height: 390px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); transition: border-color .18s, transform .18s; }
.service-card:hover { border-color: #4776a5; transform: translateY(-3px); }
.service-illustration { width: 100%; height: 126px; margin-bottom: 26px; color: var(--accent-bright); fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.service-illustration.service-image { height: 176px; padding: 8px; box-sizing: border-box; object-fit: contain; object-position: center; border: 1px solid rgba(105, 168, 255, .16); border-radius: 10px; background: var(--paper); }
.service-illustration .solid-module { fill: var(--accent); stroke: none; }
.service-card h3 { min-height: 48px; margin-bottom: 14px; font-size: 19px; }
.service-card p { font-size: 13.5px; }
.service-card > a { margin-top: auto; padding-top: 28px; color: var(--accent-bright); font-size: 13px; font-weight: 600; }

/* Connected process */
.process-section { padding-top: 88px; }
.process-path { position: relative; display: grid; grid-template-columns: 56px repeat(4, 1fr) 56px; align-items: start; gap: 20px; }
.process-path::before { content: ""; position: absolute; z-index: 0; left: 26px; right: 26px; top: 27px; height: 2px; background: linear-gradient(90deg, var(--line), var(--accent)); }
.process-path article, .process-o { position: relative; z-index: 1; }
.process-o { width: 56px; height: 56px; padding: 12px; border-radius: 50%; background: var(--paper); fill: var(--muted); }
.end-o { fill: var(--accent); }
.process-path article { padding-top: 8px; }
.process-path b { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 24px; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); color: var(--accent-bright); font-size: 11px; }
.process-path h3 { margin-bottom: 9px; font-size: 18px; }
.process-path p { max-width: 180px; font-size: 13px; }

/* Portal */
.portal-section { display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: 76px; }
.portal-copy h2 { margin: 18px 0; }
.portal-copy > p { max-width: 420px; font-size: 16px; }
.portal-copy ul { list-style: none; padding: 0; margin: 28px 0; }
.portal-copy li { position: relative; margin: 12px 0; padding-left: 24px; color: var(--ink); font-size: 14px; }
.portal-copy li::before { content: ""; position: absolute; top: 8px; left: 0; width: 10px; height: 6px; border: solid var(--accent-bright); border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.browser-frame { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-deep); box-shadow: var(--shadow); }
.browser-bar { display: flex; align-items: center; gap: 7px; height: 42px; padding: 0 14px; border-bottom: 1px solid var(--line); }
.browser-bar i { width: 7px; height: 7px; border-radius: 50%; background: #45617c; }
.browser-bar span { margin-left: 8px; color: #7890a8; font-size: 10px; }
.browser-frame img { width: 100%; height: auto; aspect-ratio: 760/560; object-fit: contain; object-position: top; }

/* Founder */
.founder-section { padding-block: 104px; background: var(--founder); color: var(--ink-dark); }
.founder-grid { display: grid; grid-template-columns: .9fr 1.1fr; align-items: stretch; gap: 78px; }
.founder-image-placeholder { position: relative; display: grid; place-items: center; min-height: 450px; overflow: hidden; border-radius: var(--radius); background: #e5e8ec; }
.founder-image-placeholder::before { content: ""; position: absolute; width: 320px; height: 320px; border-radius: 50%; background: rgba(37, 99, 255, .1); filter: blur(2px); }
.founder-image-placeholder svg { position: relative; width: 145px; fill: var(--accent); }
.founder-copy { align-self: center; }
.founder-copy h2 { margin: 18px 0 22px; color: var(--ink-dark); }
.founder-copy p { max-width: 590px; color: var(--muted-dark); font-size: 16px; }
.founder-copy .eyebrow { color: #2157dd; }
.expertise-labels { display: flex; flex-wrap: wrap; gap: 9px; padding: 0; margin: 28px 0 32px; list-style: none; }
.expertise-labels li { padding: 8px 11px; border: 1px solid var(--line-light); border-radius: var(--radius); color: #334152; font-size: 12px; }

.final-cta { display: flex; align-items: center; justify-content: space-between; gap: 50px; padding-block: 82px; }
.final-cta h2 { max-width: 760px; margin-top: 15px; }
.final-cta .button { flex: 0 0 auto; }

.footer { padding-top: 42px; padding-bottom: 32px; border-top: 1px solid var(--line); }
.footer-top { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 42px; padding-bottom: 28px; }
.footer .brand small { display: block; margin-top: 3px; color: var(--muted); font: 500 9px var(--body); letter-spacing: .1em; text-transform: uppercase; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; color: var(--muted); font-size: 12.5px; }
.copyright { color: var(--muted); font-size: 12px; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 18px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10.5px; }

@media (max-width: 1024px) {
  .credibility { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .credibility-item:nth-child(3) { grid-column: 1 / -1; border-top: 1px solid rgba(105, 168, 255, .16); border-left: 0; }
  .hero { gap: 24px; min-height: 640px; }
  .modular-service-graphic { margin-right: -18px; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .service-card { min-height: 350px; }
  .process-path { grid-template-columns: 46px repeat(4, 1fr) 46px; gap: 12px; }
  .process-o { width: 46px; height: 46px; }
  .process-path::before { top: 22px; }
  .portal-section { gap: 48px; }
}

@media (max-width: 900px) {
  .site-header { padding: 0 22px; }
  .nav, .site-header > .button { display: none; }
  .menu-toggle { display: flex; flex-direction: column; margin-left: auto; }
  .site-header.menu-open .nav { position: absolute; top: 76px; left: 0; right: 0; display: flex; flex-direction: column; gap: 20px; padding: 22px; border-bottom: 1px solid var(--line); background: var(--surface); }
  .hero { grid-template-columns: 1fr; padding-top: 70px; }
  .hero-copy { max-width: 680px; }
  .modular-service-graphic { width: min(620px, 100%); margin: -20px auto 0; }
  .credibility { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-inline: 10px; }
  .credibility-item:nth-child(3) { grid-column: 1 / -1; border-top: 1px solid rgba(105, 168, 255, .16); border-left: 0; }
  .credibility-item { padding-inline: 12px; }
  .credibility strong { font-size: 21px; white-space: normal; }
  .credibility span { font-size: 13px; }
  .section { padding-block: 88px; }
  .section-heading { display: block; margin-bottom: 38px; }
  .section-heading > p, .section-heading > .text-link { display: block; margin-top: 20px; }
  .experience-journey { grid-template-columns: 1fr 1fr; gap: 42px 28px; }
  .experience-journey::before { display: none; }
  .experience-journey article::after { display: none; }
  .process-path { grid-template-columns: 1fr; gap: 0; padding-left: 82px; }
  .process-path::before { top: 24px; bottom: 24px; left: 23px; right: auto; width: 2px; height: auto; background: linear-gradient(var(--line), var(--accent)); }
  .process-o { position: absolute; left: 0; }
  .start-o { top: 0; }
  .end-o { bottom: 0; }
  .process-path article { min-height: 120px; padding: 0 0 28px; }
  .process-path b { position: absolute; left: -78px; width: 38px; height: 38px; margin: 4px 0 0; }
  .portal-section, .founder-grid { grid-template-columns: 1fr; }
  .video-highlight { grid-template-columns: 1fr; gap: 34px; }
  .video-highlight-copy { max-width: 620px; }
  .portal-copy { max-width: 620px; }
  .browser-frame { width: min(650px, 100%); }
  .founder-grid { gap: 46px; }
  .founder-image-placeholder { min-height: 360px; }
  .final-cta { display: block; }
  .final-cta .button { margin-top: 28px; }
  .footer-top { grid-template-columns: 1fr; align-items: start; gap: 24px; }
}

@media (max-width: 560px) {
  .section-wrap { width: calc(100% - 38px); }
  h1 { font-size: clamp(35px, 10vw, 43px); line-height: 1.04; }
  h2 { font-size: clamp(29px, 8vw, 34px); line-height: 1.08; }
  .lead { font-size: 15px; }
  .actions { align-items: stretch; flex-direction: column; gap: 15px; }
  .actions .button { width: 100%; }
  .hero { min-height: 0; padding: 56px 0 58px; }
  .modular-service-graphic { margin-top: 10px; }
  .modular-service-graphic { width: 100%; overflow: visible; }
  .modular-service-graphic svg { display: block; width: 100%; min-width: 0; margin: 0; transform: none; }
  .service-node text { font-size: 13px; }
  .credibility { grid-template-columns: 1fr; padding: 10px 18px; }
  .credibility-item { min-height: 76px; padding: 16px 8px; }
  .credibility-item + .credibility-item { border-top: 1px solid rgba(105, 168, 255, .16); border-left: 0; }
  .credibility strong { font-size: 22px; }
  .experience-journey { grid-template-columns: 1fr; padding-left: 0; gap: 44px; }
  .experience-journey::before { display: none; }
  .experience-journey article { min-height: 0; padding-left: 0; }
  .journey-illustration { height: 165px; margin-bottom: 18px; }
  .experience-journey article:not(:last-child)::after { display: block; top: calc(100% + 10px); right: auto; left: 50%; width: 1px; height: 24px; background: var(--accent); color: transparent; font-size: 0; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 335px; }
  .service-illustration { height: 116px; }
  .service-illustration.service-image {
    height: 166px;
    margin-bottom: 24px;
    padding: 0;
    object-fit: contain;
    object-position: center;
    background: var(--surface-deep);
  }
  .section { padding-block: 68px; }
  .section-heading { margin-bottom: 30px; }
  .portal-copy > p, .video-highlight-copy p { font-size: 15px; }
  .video-highlight-frame { border-radius: 12px; }
  .process-path { padding-left: 74px; }
  .process-path b { left: -70px; }
  .browser-bar span { display: none; }
  .founder-section { padding-block: 72px; }
  .founder-image-placeholder { min-height: 280px; }
  .founder-image-placeholder svg { width: 110px; }
  .expertise-labels { display: grid; }
  .final-cta { padding-block: 66px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
