:root {
  --ink: #0b1d2e;
  --muted: #526772;
  --line: #dbe4e8;
  --paper: #fbfcfa;
  --soft: #eef4f4;
  --navy: #071f30;
  --blue: #0b7fbd;
  --cyan: #08b8bd;
  --white: #fff;
  --max: 1180px;
  --shadow: 0 18px 44px rgba(7, 31, 48, .09);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.65; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(8, 184, 189, .32); outline-offset: 3px; }
button, input, select, textarea { font: inherit; }
.shell { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; }
.topbar { background: var(--navy); color: #c8d5da; font-size: 13px; }
.topbar .shell { min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(251,252,250,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.nav-wrap { min-height: 74px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; margin-right: auto; min-width: 112px; }
.brand-logo { display: block; width: 112px; height: 61px; object-fit: contain; object-position: left center; }
.nav-links { display: flex; align-items: center; gap: 23px; font-size: 14px; font-weight: 600; }
.nav-links a { color: #33454f; border-bottom: 2px solid transparent; padding: 25px 0 22px; }
.nav-links a:hover, .nav-links a.active { color: var(--blue); border-color: var(--blue); }
.button { display: inline-flex; min-height: 45px; align-items: center; justify-content: center; gap: 8px; padding: 0 20px; border: 1px solid var(--blue); border-radius: 3px; background: var(--blue); color: white; font-weight: 700; font-size: 14px; cursor: pointer; transition: background-color .18s ease, border-color .18s ease, transform .18s ease; }
.button:hover { background: #075b83; }
.button.secondary { background: transparent; color: var(--blue); }
.button.light { background: white; color: var(--navy); border-color: white; }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 6px; background: transparent; font-size: 24px; color: var(--navy); cursor: pointer; }
.hero { padding: 84px 0 72px; background: linear-gradient(115deg, #eef4f4 0%, #fbfcfa 62%, #e3f5f6 150%); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.18fr .82fr; gap: 70px; align-items: center; }
.eyebrow { margin: 0 0 14px; color: var(--blue); font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -.025em; }
h1 { max-width: 760px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(42px, 5vw, 64px); font-weight: 500; }
h2 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(32px, 3.5vw, 45px); font-weight: 500; }
h3 { font-size: 20px; }
.lead { max-width: 700px; margin: 22px 0 0; color: var(--muted); font-size: 19px; line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.trust-card { background: white; border: 1px solid var(--line); border-top: 4px solid var(--cyan); padding: 32px; box-shadow: var(--shadow); }
.trust-card h2 { font-size: 28px; }
.trust-list { display: grid; gap: 16px; margin: 24px 0 0; padding: 0; list-style: none; }
.trust-list li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; color: var(--muted); }
.trust-list span { color: var(--blue); font-weight: 800; }
.section { padding: 76px 0; }
.section.soft { background: var(--soft); }
.section.dark { background: var(--navy); color: white; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 34px; }
.section-head p { max-width: 560px; margin: 0; color: var(--muted); }
.dark .section-head p, .dark .muted { color: #c8d5da; }
.dark .eyebrow, .cta-panel .eyebrow { color: #8dd9dc; }
.text-link { display: inline-flex; min-height: 44px; align-items: center; color: var(--blue); font-size: 14px; font-weight: 800; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; transition: color .18s ease, text-decoration-color .18s ease; }
.text-link:hover { color: #075b83; text-decoration-color: currentColor; }
.grid-2, .grid-3, .grid-4 { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { padding: 28px; border: 1px solid var(--line); background: white; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.card[data-icon]:hover { transform: translateY(-2px); border-color: #a9c8d3; box-shadow: 0 12px 26px rgba(7, 31, 48, .07); }
.card p { color: var(--muted); margin: 12px 0 0; }
.card .number { display: block; margin-bottom: 26px; color: var(--cyan); font-size: 12px; font-weight: 800; letter-spacing: .14em; }
.card[data-icon] { position: relative; }
.card[data-icon] > .number { position: absolute; top: 29px; right: 28px; margin: 0; }
.icon-box { width: 43px; height: 43px; display: grid; place-items: center; margin-bottom: 22px; border: 1px solid #b8d6df; background: #eef8f8; color: var(--blue); }
.icon-box svg { width: 22px; height: 22px; }
.card .text-link { margin-top: 22px; }
.solution-card { min-height: 230px; display: flex; flex-direction: column; }
.solution-card .text-link { margin-top: auto; padding-top: 22px; }
.alliances { padding: 42px 0; background: white; border-block: 1px solid var(--line); }
.alliances .label { text-align: center; color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.alliance-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 25px; }
.alliance-logo { min-height: 116px; display: grid; place-items: center; padding: 18px 24px; border: 1px solid var(--line); background: white; transition: border-color .18s ease, box-shadow .18s ease; }
.alliance-logo:hover { border-color: #a9c8d3; box-shadow: 0 10px 24px rgba(7, 31, 48, .06); }
.alliance-logo img { display: block; width: auto; max-width: 100%; height: auto; max-height: 78px; object-fit: contain; }
.note { margin: 16px auto 0; color: #7b8986; font-size: 12px; text-align: center; }
.case-card { padding: 0; overflow: hidden; }
.case-band { height: 8px; background: var(--blue); }
.case-body { padding: 28px; }
.case-card .icon-box { width: 38px; height: 38px; margin-bottom: 18px; }
.case-card .icon-box svg { width: 20px; height: 20px; }
.case-tag { color: var(--blue); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.case-body h3 { margin-top: 9px; font-family: Georgia, serif; font-size: 25px; font-weight: 500; }
.quote { margin: 0; padding: 32px; border-left: 3px solid var(--cyan); background: rgba(255,255,255,.07); font-family: Georgia, serif; font-size: 27px; line-height: 1.45; }
.expert { display: grid; grid-template-columns: 54px 1fr; gap: 16px; align-items: start; }
.avatar { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; background: #dceff0; color: var(--navy); font-weight: 800; }
.expert p { margin: 5px 0 0; font-size: 14px; }
.expert-details { min-width: 0; }
.expert .expert-title { color: var(--ink); font-weight: 700; }
.linkedin-link { width: 32px; height: 32px; display: inline-grid; place-items: center; margin-top: 16px; border: 1px solid #b8d6df; color: var(--blue); transition: background-color .18s ease, border-color .18s ease, color .18s ease; }
.linkedin-link:hover { border-color: var(--blue); background: #eef8f8; color: #075b83; }
.linkedin-link svg { width: 17px; height: 17px; fill: currentColor; }
.linkedin-link.is-disabled { cursor: default; opacity: .42; }
.cta-panel { padding: 46px; background: var(--navy); color: white; display: flex; align-items: center; justify-content: space-between; gap: 35px; }
.cta-panel h2 { max-width: 670px; }
.cta-panel p { color: #c8d5da; margin: 12px 0 0; }
.page-hero { padding: 68px 0 54px; background: var(--soft); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(38px, 4vw, 54px); }
.crumb { margin-bottom: 16px; color: var(--muted); font-size: 13px; }
.crumb a { display: inline-flex; min-height: 44px; align-items: center; }
.split { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; align-items: start; }
.sticky-copy { position: sticky; top: 110px; }
.service-row { display: grid; grid-template-columns: 52px 1fr; gap: 18px; padding: 26px 0; border-top: 1px solid var(--line); }
.service-row:last-child { border-bottom: 1px solid var(--line); }
.service-row strong { color: var(--blue); }
.service-row .icon-box { width: 38px; height: 38px; margin-bottom: 13px; }
.service-row .icon-box svg { width: 19px; height: 19px; }
.service-row p { margin: 8px 0 0; color: var(--muted); }
.steps { counter-reset: step; }
.step { position: relative; padding: 0 0 32px 64px; }
.step:before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--navy); color: white; font-weight: 800; }
.step:not(:last-child):after { content: ""; position: absolute; left: 18px; top: 43px; bottom: 5px; border-left: 1px solid #bdcbc6; }
.step p { color: var(--muted); margin: 8px 0 0; }
.case-detail { max-width: 850px; }
.case-detail h2 { margin: 44px 0 15px; font-size: 33px; }
.case-detail p, .case-detail li { color: var(--muted); }
.case-detail ul { padding-left: 20px; }
.status { display: inline-flex; margin-bottom: 22px; padding: 7px 11px; background: #e3f5f6; color: #075f8f; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: grid; gap: 6px; font-size: 13px; font-weight: 700; }
input, select, textarea { width: 100%; padding: 13px 14px; border: 1px solid #c9d5d1; background: white; color: var(--ink); }
textarea { min-height: 130px; resize: vertical; }
.form-message { display: none; padding: 13px; background: #e3f5f6; color: var(--navy); font-size: 14px; }
.form-message.error { background: #fff0ed; color: #8a2f20; }
.form-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.form button[disabled] { cursor: wait; opacity: .72; }
.footer { padding: 48px 0 30px; background: #071d2b; color: white; }
.footer .brand-logo { width: 104px; height: 57px; }
.footer-grid { display: grid; grid-template-columns: 1.45fr repeat(4, 1fr); gap: 28px; }
.footer h3 { font-size: 14px; margin-bottom: 12px; }
.footer p, .footer a { color: #b9cdc7; font-size: 14px; }
.footer a:not(.brand) { display: flex; min-height: 44px; align-items: center; margin: 0; }
.footer-bottom { margin-top: 38px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.14); color: #9fb7b0; font-size: 12px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
@media (max-width: 980px) {
  .menu-toggle { display: block; }
  .nav-links { display: none; position: absolute; left: 0; right: 0; top: 74px; padding: 12px 24px 24px; background: var(--paper); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; }
  .nav-wrap > .button { display: none; }
  .hero-grid, .split { grid-template-columns: 1fr; gap: 38px; }
  .sticky-copy { position: static; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .shell { width: min(100% - 30px, var(--max)); }
  .topbar { display: none; }
  .hero { padding: 56px 0; }
  h1 { font-size: 41px; }
  .lead { font-size: 17px; }
  .section { padding: 56px 0; }
  .section-head, .cta-panel { align-items: flex-start; flex-direction: column; }
  .grid-2, .grid-3, .grid-4, .alliance-row, .form-row { grid-template-columns: 1fr; }
  .alliance-row { grid-template-columns: 1fr 1fr; }
  .cta-panel { padding: 30px; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* Shared light/dark theme controls for the legacy prototype routes. */
.theme-toggle {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--navy);
  background: var(--paper);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}
.theme-toggle:hover { color: var(--blue); background: var(--soft); }

html.dark {
  --ink: #e8f0f2;
  --muted: #adc0c8;
  --line: #294351;
  --paper: #091b28;
  --soft: #102a38;
  --navy: #04131e;
  --blue: #46b8ed;
  --cyan: #36d2d3;
  --white: #102735;
  --shadow: 0 18px 44px rgba(0, 0, 0, .32);
}
html.dark body { background: var(--paper); color: var(--ink); }
html.dark .topbar { background: #04131e; color: #c5d5dc; }
html.dark .site-header { background: rgba(9, 27, 40, .96); }
html.dark .menu-toggle,
html.dark .theme-toggle { color: var(--ink); }
html.dark .button { color: #04131e; }
html.dark .button.secondary { color: var(--blue); }
html.dark .trust-card { background: #0d2432; border-color: var(--line); }
html.dark .alliances { background: #071722; }
html.dark .alliance-logo { background: #f8faf9; border-color: #3b5360; }
html.dark .nav-links a { color: #c8d7dc; }
html.dark .nav-links a:hover,
html.dark .nav-links a.active { color: var(--blue); }
html.dark .hero,
html.dark .page-hero,
html.dark .section-soft { background: var(--soft); }
html.dark .card,
html.dark .feature-card,
html.dark .service-card,
html.dark .case-card,
html.dark .contact-card,
html.dark .decision-card,
html.dark .alliance-card,
html.dark .panel { background: #0d2432; border-color: var(--line); }
html.dark input,
html.dark select,
html.dark textarea { background: #071722; color: var(--ink); border-color: var(--line); }
html.dark .button.secondary { color: var(--blue); background: transparent; border-color: var(--blue); }
html.dark .site-footer { background: #04131e; }

@media (max-width: 980px) {
  .theme-toggle { margin-left: auto; }
  .nav-wrap { gap: 12px; }
  .nav-links { background: var(--paper); }
}


/* ---- Launch polish ---- */
/* Form fields should not inherit the bold label weight */
input, select, textarea { font-weight: 400; }
/* CTA buttons never wrap */
.cta-panel .button { flex-shrink: 0; white-space: nowrap; }
/* Eyebrow above a form inside a card */
.form-card > .eyebrow { margin-bottom: 22px; }
/* Service/solution cards: icon carries the visual, drop duplicate numbering */
.card[data-icon] > .number { display: none; }
/* Hide LinkedIn placeholder until a profile URL exists */
.linkedin-link.is-disabled { display: none; }
/* Case study pages: align article with the page title, fix CTA panel */
.case-detail { max-width: none; }
.case-detail > :not(.cta-panel) { max-width: 820px; }
.case-detail > h2:first-child { margin-top: 0; }
.case-detail .cta-panel { margin-top: 56px; }
.case-detail .cta-panel h2 { margin: 0; font-size: clamp(28px, 3vw, 36px); }
.case-detail .cta-panel p { color: #c8d5da; }
/* Alliance logos: more even optical size */
.alliance-logo img { max-height: 72px; }
.alliance-logo img[src*="Sidma"] { width: 100%; max-width: 230px; max-height: none; }
.alliance-logo img[src*="Ramanashree"] { max-height: 92px; }
/* Footer logo reads in white on navy */
.footer .brand-logo { filter: brightness(0) invert(1); }
/* Dark mode: tinted icon boxes and avatars instead of pale squares */
html.dark .icon-box { background: rgba(70, 184, 237, .12); border-color: rgba(70, 184, 237, .32); color: var(--blue); }
html.dark .avatar { background: #16384a; color: var(--ink); }
html.dark .linkedin-link { border-color: rgba(70, 184, 237, .32); }
html.dark .linkedin-link:hover { background: rgba(70, 184, 237, .12); }
html.dark .status { background: rgba(54, 210, 211, .14); color: #8dd9dc; }
/* Mobile header: logo left, theme toggle + menu right */
@media (max-width: 980px) {
  .theme-toggle { margin-left: 0; order: 2; }
  .menu-toggle { order: 3; }
}
@media (max-width: 640px) {
  .alliance-logo { min-height: 96px; padding: 14px 12px; }
  .alliance-logo img { max-height: 60px; }
  .alliance-logo img[src*="Ramanashree"] { max-height: 76px; }
  .hero-actions .button { flex: 1 1 100%; }
}
