/* The corporate palette extends the existing page without replacing its layout system. */
:root {
  --navy: #0c2339;
  --navy-deep: #081b2d;
  --navy-card: #12314b;
}

/* Brand and navigation */
.site-header { border-bottom-color: #e5edf4; }
.primary-nav > a:not(.nav-cta):hover,
.product-menu > summary:hover { color: var(--blue); }
.nav-cta { border-radius: 2px; }
.button { transition: transform .22s ease, background-color .22s ease, border-color .22s ease, box-shadow .22s ease; }
.button:hover { transform: translateY(-1px); }
.button > span,
.nav-cta > span,
.card-link > span,
.contact-link > span { display: inline-block; transition: transform .22s ease; }
.button:hover > span,
.nav-cta:hover > span,
.card-link:hover > span,
.contact-link:hover > span { transform: translate(3px, -1px); }
.card-link:hover { gap: 38px; }

/* Corporate hero: a business problem at the centre of four capabilities. */
.hero { background: linear-gradient(180deg, #fff 0%, #f7fbff 100%); }
.hero-copy h1 { color: #172b3d; letter-spacing: -.045em; }
.hero-highlight { color: var(--blue); background: linear-gradient(100deg, var(--blue) 8%, var(--blue-light) 54%, var(--green) 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-visual { background: #fbfdff; border-color: #d5e6f2; box-shadow: 0 28px 68px rgba(16, 58, 97, .11); min-height: 0; }
.hero-visual::before { opacity: .24; background-size: 32px 32px; }
.visual-top { font-size: 10px; font-weight: 400; }
.visual-network { height: 394px; position: relative; isolation: isolate; }
.network-ring { position: absolute; left: 50%; top: 49%; width: 286px; height: 286px; transform: translate(-50%, -50%); border: 1px dashed rgba(81,169,255,.26); border-radius: 50%; z-index: 0; }
.ring-two { width: 224px; height: 224px; border-color: rgba(28,186,175,.26); }
.network-core { position: absolute; z-index: 3; left: 50%; top: 49%; transform: translate(-50%, -50%); width: 150px; height: 150px; border-radius: 50%; background: linear-gradient(150deg, #fff, #edf8ff); border: 2px solid #b9dbf4; box-shadow: 0 0 0 12px rgba(232,244,255,.8), 0 10px 30px rgba(26,104,165,.1); display: flex; align-items: center; justify-content: center; flex-direction: column; text-align: center; }
.network-core small { color: var(--green); font-size: 10px; letter-spacing: .15em; margin-bottom: 6px; }
.network-core strong { color: #143c5d; font-size: 18px; font-weight: 400; line-height: 1.25; }
.network-node { position: absolute; z-index: 4; min-width: 128px; padding: 14px 16px; background: #fff; border: 1px solid #cfe3f2; box-shadow: 0 12px 25px rgba(24,81,128,.07); display: flex; flex-direction: column; gap: 3px; }
.network-node::before { content: ""; position: absolute; top: 50%; left: -4px; width: 7px; height: 7px; border-radius: 50%; background: var(--green); transform: translateY(-50%); }
.network-node small { color: #74a8c7; font-size: 10px; letter-spacing: .12em; }
.network-node strong { color: #164b70; font-size: 13px; font-weight: 400; letter-spacing: .06em; }
.node-ai { left: 5%; top: 10%; }.node-software { right: 2%; top: 11%; }.node-data { left: 4%; bottom: 11%; }.node-digital { right: 1%; bottom: 10%; }
.network-line { position: absolute; z-index: 1; left: 50%; top: 49%; height: 1px; width: 31%; transform-origin: left center; background: linear-gradient(90deg, rgba(27,106,210,.44), rgba(28,186,175,.34)); }
.network-line::after { content: ""; position: absolute; left: 0; top: -2px; height: 5px; width: 5px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(28,186,175,.12); animation: data-flow 4.5s ease-in-out infinite; }
.line-one { transform: rotate(218deg); width: 35%; }.line-two { transform: rotate(322deg); width: 33%; }.line-three { transform: rotate(142deg); width: 35%; }.line-four { transform: rotate(39deg); width: 33%; }
.line-two::after { animation-delay: .8s; }.line-three::after { animation-delay: 1.6s; }.line-four::after { animation-delay: 2.4s; }
.visual-foot { margin-top: 0; color: #7691a4; font-size: 9px; letter-spacing: .08em; }
.visual-foot span { color: inherit; }.visual-foot span:last-child { color: var(--blue); }
@keyframes data-flow { 0%, 15% { left: 0; opacity: 0; } 25% { opacity: 1; } 80% { left: 100%; opacity: 1; } 100% { left: 100%; opacity: 0; } }

/* Product overview: same brand, visibly different product domains. */
.products { background: #fff; }
.section-intro > p { color: #5c6c78; }
.product-card { min-height: 535px; border: 1px solid transparent; transition: transform .28s ease, box-shadow .28s ease; }
.product-card:hover { transform: translateY(-4px); box-shadow: 0 18px 42px rgba(8,37,64,.12); }
.product-s { background: #eaf5ff; border-color: #d8eafb; }
.product-c { background: #102d47; border-color: #214763; }
.product-c::before { content: ""; position: absolute; width: 420px; height: 420px; border: 1px solid rgba(122,247,232,.11); border-radius: 50%; right: -150px; top: -150px; pointer-events: none; }
.product-c::after { content: ""; position: absolute; width: 300px; height: 300px; border: 1px solid rgba(81,169,255,.12); border-radius: 50%; right: -92px; top: -92px; pointer-events: none; }
.product-c .product-index { color: #99c6d3; }
.product-c .card-icon { color: var(--green-light); border-color: #568592; }
.card-visual { position: relative; z-index: 2; min-height: 170px; display: flex; align-items: center; margin: 12px 0 22px; }
.card-s-visual { gap: 16px; }
.mini-system { display: flex; flex-direction: column; gap: 6px; width: 88px; flex: none; }
.mini-system span { background: #fff; border: 1px solid #bfddf4; padding: 6px 9px; font-size: 11px; letter-spacing: .1em; color: #40789c; }
.mini-flow-line { flex: 1; height: 1px; background: linear-gradient(90deg, var(--blue-light), var(--green)); position: relative; }
.mini-flow-line::before,.mini-flow-line::after { content: ""; position: absolute; top: -3px; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.mini-flow-line::before { left: 0; }.mini-flow-line::after { right: 0; }
.mini-dashboard { background: #fff; border: 1px solid #c5dff1; box-shadow: 0 12px 24px rgba(37,100,151,.08); width: 47%; min-width: 170px; padding: 12px; }
.mini-dashboard-head { display: flex; justify-content: space-between; color: #4385b3; font-size: 10px; letter-spacing: .1em; }
.mini-dashboard-head i { width: 5px; height: 5px; border-radius: 50%; background: var(--green); }
.mini-bars { display: flex; align-items: end; gap: 7px; height: 65px; margin: 12px 0 9px; border-bottom: 1px solid #daeaf5; }
.mini-bars i { display: block; flex: 1; height: 54%; background: #a8d6fb; }.mini-bars i:nth-child(2) { height: 76%; background: #66b9ef; }.mini-bars i:nth-child(3) { height: 62%; background: #86dcd6; }.mini-bars i:nth-child(4) { height: 93%; background: var(--blue-light); }.mini-bars i:nth-child(5) { height: 80%; background: var(--green); }
.mini-dashboard-foot { color: #7897a9; font-size: 9px; }.mini-dashboard-foot b { color: var(--green); font-weight: 400; }
.card-c-visual { justify-content: space-between; gap: 5px; }
.card-c-visual span { min-height: 78px; flex: 1; border: 1px solid #38617b; background: rgba(255,255,255,.035); color: #cde4ee; padding: 16px 11px; display: flex; align-items: center; justify-content: center; text-align: center; font-size: 10px; letter-spacing: .11em; line-height: 1.35; }
.card-c-visual span:last-child { border-color: #61a8a7; color: var(--green-light); }
.card-c-visual i { height: 1px; width: 24px; flex: none; background: var(--green-light); position: relative; }
.card-c-visual i::after { content: ""; position: absolute; right: 0; top: -3px; border-left: 5px solid var(--green-light); border-top: 3px solid transparent; border-bottom: 3px solid transparent; }
.card-bottom { max-width: 100%; }
.product-c .card-bottom h3 { color: #fff; }.product-c .product-subtitle { color: var(--green-light); }.product-c .card-bottom p:not(.product-subtitle) { color: #c2d5df; }.product-c .card-link { color: var(--green-light); border-color: var(--green-light); }

/* AiMega-S: open, light, data-led. */
.s-detail { background: linear-gradient(120deg, #f4faff 0%, #f8fffe 100%); }
.s-detail .detail-copy h2 { color: #173b57; }
.capabilities { gap: 8px; margin: 25px 0 27px; }
.capabilities span { background: #fff; border-color: #b7d8ef; color: #255f84; padding: 8px 12px; font-size: 13px; }
.capabilities span:nth-child(4) { border-color: #79ccc4; color: #137f78; background: #f1fffd; }
.value-block { margin: 0 0 30px; padding: 20px 23px; background: #e4f2ff; border-left: 4px solid var(--blue); box-shadow: 0 10px 24px rgba(35,101,154,.06); }
.value-label { display: block; color: var(--blue); font-size: 11px; letter-spacing: .13em; margin-bottom: 8px; }
.value-block p { color: #31556e; font-size: 14px; line-height: 1.65; margin: 0; }
.data-board { border-color: #c9e1f0; box-shadow: 0 28px 58px rgba(31,98,147,.09); }
.source-row div { border-top: 2px solid #91c5e9; }
.board-bridge span { position: relative; overflow: hidden; }
.board-bridge span::after { content: ""; display: block; width: 40%; height: 1px; background: var(--green); animation: bridge-flow 3.5s ease-in-out infinite; }
@keyframes bridge-flow { from { transform: translateX(-100%); } to { transform: translateX(300%); } }
.bars i { transform: scaleY(.1); transform-origin: bottom; transition: transform .75s cubic-bezier(.18,.8,.2,1); }
.data-board.in-view .bars i { transform: scaleY(1); }
.data-board.in-view .bars i:nth-child(2) { transition-delay: .08s; }.data-board.in-view .bars i:nth-child(3) { transition-delay: .16s; }.data-board.in-view .bars i:nth-child(4) { transition-delay: .24s; }.data-board.in-view .bars i:nth-child(5) { transition-delay: .32s; }.data-board.in-view .bars i:nth-child(6) { transition-delay: .4s; }.data-board.in-view .bars i:nth-child(7) { transition-delay: .48s; }

/* AiMega-C: focused analysis, still using AiMega blue and green. */
.c-detail { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.c-detail::before { content: ""; position: absolute; width: 650px; height: 650px; right: -310px; top: -320px; border: 1px solid rgba(81,169,255,.1); border-radius: 50%; pointer-events: none; }
.c-detail::after { content: ""; position: absolute; width: 460px; height: 460px; right: -210px; top: -210px; border: 1px solid rgba(122,247,232,.09); border-radius: 50%; pointer-events: none; }
.c-detail .container { position: relative; z-index: 1; }
.c-detail .eyebrow { color: var(--green-light); }
.c-detail .detail-copy h2 { color: #fff; }.c-detail .detail-copy h2 em { color: var(--green-light); }
.c-detail .detail-copy > p:not(.eyebrow) { color: #c3d3df; }
.c-detail .button-primary { background: var(--blue-light); border-color: var(--blue-light); color: #07223c; box-shadow: none; }
.c-detail .button-primary:hover { background: #7fc2ff; border-color: #7fc2ff; }.c-detail .button-text { color: var(--green-light); }.c-detail .button-text:hover { border-bottom-color: var(--green-light); }
.customs-flow { background: var(--navy-card); border-color: #305876; box-shadow: 0 25px 50px rgba(0,0,0,.16); }
.flow-header { color: var(--green-light); border-bottom-color: #31516a; }
.flow-label { color: #8bb0c5; }
.flow-inputs span { background: #173a55; border-color: #42647e; color: #d3e3eb; }
.flow-connector { color: var(--green-light); }.flow-connector span { background: #376c79; position: relative; overflow: hidden; }
.flow-connector span::after { content: ""; position: absolute; height: 1px; width: 35%; background: var(--green-light); animation: bridge-flow 3.5s ease-in-out infinite; }
.flow-connector b { color: #dffffa; background: #1b5866; border-color: #4d9a9b; }
.flow-output { background: #193e59; border-color: #438b96; }.flow-output strong { color: #fff; }.flow-output > div span { color: #b9e7e0; border-color: #427d83; }
.flow-note { color: #a9bfca; }
.c-values { display: grid; gap: 0; margin: 24px 0 28px; border-top: 1px solid #32536b; }
.c-values > div { display: flex; gap: 14px; padding: 11px 0; border-bottom: 1px solid #32536b; }
.c-values b { color: var(--green-light); font-size: 12px; font-weight: 400; padding-top: 2px; }
.c-values span { display: flex; flex-direction: column; gap: 2px; }.c-values strong { color: #eaf4f8; font-size: 12px; font-weight: 400; letter-spacing: .06em; }.c-values small { color: #aec5d1; font-size: 13px; line-height: 1.5; }
.c-values .ask-more { background: rgba(28,186,175,.08); border-left: 2px solid var(--green-light); padding-left: 12px; }

/* Contact and the full corporate footer. */
.contact { background: #102b45; }
.contact-copy h2 { color: #fff; }.contact-info a { width: fit-content; }
.contact-form { border-top: 3px solid var(--green); }
.contact-form h3 { color: #163a57; }
.contact-form > p:first-of-type { font-size: 14px; }
.contact-form label { font-size: 14px; }
.contact-form input,.contact-form select,.contact-form textarea { font-size: 16px; }
.contact-form .form-hint { font-size: 12px; }
.footer { background: var(--navy-deep); border-top: 1px solid #25465c; color: #c5d4de; }
.footer-grid { display: grid; grid-template-columns: 1.55fr 1fr .8fr 1fr; gap: 45px; padding: 65px 0 58px; }
.footer-about { max-width: 300px; }.footer-brand { display: block; width: 152px; padding: 6px; background: #fff; margin: 0 0 26px; }
.footer-about strong { display: block; color: #fff; font-size: 12px; font-weight: 400; letter-spacing: .09em; line-height: 1.6; margin-bottom: 10px; }.footer-about p { color: #a9becc; font-size: 14px; line-height: 1.65; }
.footer-column { display: flex; flex-direction: column; align-items: flex-start; gap: 11px; }.footer-column h2 { color: var(--green-light); font-size: 11px; font-weight: 400; letter-spacing: .15em; margin: 6px 0 14px; }
.footer-column a { color: #bfced9; font-size: 14px; line-height: 1.5; transition: color .2s ease; }.footer-column a:hover { color: var(--green-light); }
.footer-contact a { display: flex; flex-direction: column; gap: 1px; margin-bottom: 5px; word-break: break-word; }.footer-contact a span { color: #7e9cad; font-size: 10px; letter-spacing: .08em; }
.footer-bottom { border-top: 1px solid #274157; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 21px 0 25px; color: #7895a7; font-size: 11px; letter-spacing: .03em; }
.footer-bottom a { color: #b7d9e5; white-space: nowrap; }.footer-bottom a:hover { color: var(--green-light); }

/* Reveal motion is progressive enhancement. Content stays visible when JS is unavailable. */
.motion-ready .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.motion-ready .reveal.in-view { opacity: 1; transform: translateY(0); }
.motion-ready .product-card.reveal.in-view:hover { transform: translateY(-4px); transition-duration: .28s; }

@media (max-width: 1050px) {
  .network-node { min-width: 115px; padding: 11px; }.network-node strong { font-size: 11px; }
  .footer-grid { gap: 25px; }
}
@media (max-width: 800px) {
  .visual-network { height: 380px; }.network-node { min-width: 132px; }
  .product-card { min-height: 505px; }.card-visual { min-height: 155px; }
  .footer-grid { grid-template-columns: 1.4fr 1fr; gap: 40px 32px; }
}
@media (max-width: 620px) {
  .hero-copy h1 { letter-spacing: -.035em; }
  .hero-visual { padding: 17px; }
  .visual-network { height: auto; min-height: 324px; display: grid; grid-template-columns: 1fr 1fr; gap: 9px; padding-top: 14px; }
  .network-ring,.network-line { display: none; }
  .network-core { position: relative; left: auto; top: auto; transform: none; grid-column: 1 / -1; width: 128px; height: 128px; justify-self: center; margin-bottom: 15px; }
  .network-core strong { font-size: 15px; }
  .visual-network::after { content: ""; position: absolute; left: 50%; top: 143px; height: 25px; width: 1px; background: var(--green); }
  .network-node { position: relative; left: auto; right: auto; top: auto; bottom: auto; min-width: 0; width: 100%; padding: 10px 11px; min-height: 58px; }
  .network-node small { font-size: 9px; }.network-node strong { font-size: 10px; }
  .visual-foot { display: block; font-size: 8px; }.visual-foot span { display: block; }.visual-foot span + span { margin-top: 4px; }
  .product-card { min-height: 495px; }.card-visual { min-height: 155px; margin-bottom: 15px; }
  .card-c-visual span { min-height: 70px; padding: 8px 4px; font-size: 9px; }.card-c-visual i { width: 13px; }
  .mini-system { width: 62px; }.mini-system span { font-size: 9px; padding: 5px; }.mini-dashboard { min-width: 0; width: 54%; }
  .value-block { padding: 17px; }.value-block p { font-size: 13px; }
  .c-values { margin-top: 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; padding: 52px 0 38px; gap: 37px 20px; }.footer-about { grid-column: 1 / -1; }.footer-contact { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; align-items: flex-start; font-size: 10px; }
}
@media (max-width: 370px) {
  .network-core { width: 118px; height: 118px; }.visual-network::after { top: 133px; }
  .card-s-visual { gap: 8px; }.mini-dashboard { width: 50%; }.mini-flow-line { min-width: 16px; }.card-c-visual i { width: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .button,.product-card,.card-link > span,.contact-link > span { transition: none !important; }
  .network-line::after,.board-bridge span::after,.flow-connector span::after { animation: none !important; }
  .bars i { transform: none !important; transition: none !important; }
  .motion-ready .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}
