/* ============================================================
   Dynamic Servitech — Blueprint Command Console
   Shared design system for the ONGC capability microsite.
   Tokens lifted from ~/DGOC/sites brand-system.md
   ============================================================ */

:root {
  --bp-paper:    #F7F7F5;
  --bp-ink:      #1A1A1A;
  --bp-red:      #E63946;
  --bp-red-dark: #C82F3C;
  --bp-hairline: #D4D4D0;
  --bp-white:    #FFFFFF;
  --bp-muted:    rgba(26, 26, 26, 0.60);
  --bp-faint:    rgba(26, 26, 26, 0.38);

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-sans:    "Inter", system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, monospace;

  --maxw: 1200px;
  --pad: clamp(20px, 5vw, 72px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bp-paper);
  color: var(--bp-ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

/* ---------- type ---------- */
.bp-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bp-muted);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.bp-label .num { color: var(--bp-red); font-weight: 500; }
.bp-label .rule { width: 34px; height: 1px; background: var(--bp-hairline); display: inline-block; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.05; letter-spacing: -0.02em; }
.display-xl { font-size: clamp(2.6rem, 6vw, 5.2rem); }
.display-l  { font-size: clamp(2rem, 4vw, 3.4rem); }
.display-m  { font-size: clamp(1.5rem, 2.6vw, 2.3rem); }
em.sig { font-style: italic; color: var(--bp-red); font-weight: 700; }

p.lead { font-size: clamp(1.05rem, 1.6vw, 1.35rem); color: rgba(26,26,26,0.82); max-width: 60ch; }
.muted { color: var(--bp-muted); }

/* ---------- layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
section { padding: clamp(64px, 9vw, 130px) 0; position: relative; }
.section-white { background: var(--bp-white); }
.section-ink { background: var(--bp-ink); color: var(--bp-paper); }
.section-ink .muted { color: rgba(247,247,245,0.6); }
.section-ink .bp-label { color: rgba(247,247,245,0.55); }
.section-ink .bp-label .rule { background: rgba(247,247,245,0.25); }

/* ---------- bracket ticks ---------- */
.ticks { position: relative; }
.ticks::before, .ticks::after,
.ticks > .tick-bl, .ticks > .tick-br { content: ""; position: absolute; width: 16px; height: 16px; pointer-events: none; z-index: 3; }
.ticks::before { top: 12px; left: 12px; border-top: 1px solid rgba(26,26,26,0.55); border-left: 1px solid rgba(26,26,26,0.55); }
.ticks::after  { top: 12px; right: 12px; border-top: 1px solid rgba(26,26,26,0.55); border-right: 1px solid rgba(26,26,26,0.55); }
.ticks .tick-bl { bottom: 12px; left: 12px; border-bottom: 1px solid rgba(26,26,26,0.55); border-left: 1px solid rgba(26,26,26,0.55); }
.ticks .tick-br { bottom: 12px; right: 12px; border-bottom: 1px solid rgba(26,26,26,0.55); border-right: 1px solid rgba(26,26,26,0.55); }
.ticks.on-dark::before, .ticks.on-dark::after,
.ticks.on-dark .tick-bl, .ticks.on-dark .tick-br { border-color: rgba(255,255,255,0.5); }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px var(--pad);
  transition: background .35s ease, border-color .35s ease, box-shadow .35s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(247,247,245,0.85);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(26,26,26,0.10);
  box-shadow: 0 12px 40px -28px rgba(0,0,0,0.5);
}
.nav .logo img { width: 118px; height: auto; }
.nav .logo .lw { display: block; }
.nav .logo .lc { display: none; }
.nav.scrolled .logo .lw { display: none; }
.nav.scrolled .logo .lc { display: block; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--bp-paper); opacity: .85;
  transition: opacity .2s, color .2s; white-space: nowrap;
}
.nav.scrolled .nav-links a { color: var(--bp-ink); opacity: .7; }
.nav-links a:hover { opacity: 1; color: var(--bp-red); }
.nav-cta {
  background: var(--bp-red); color: #fff !important; opacity: 1 !important;
  padding: 9px 18px; border-radius: 2px; font-weight: 500;
}
.nav-cta:hover { background: var(--bp-red-dark); }
.nav-hamburger { display: none; }
@media (max-width: 920px) {
  .nav-links a:not(.nav-cta) { display: none; }
}

/* ---------- hero ---------- */
.hero {
  min-height: 100svh; position: relative; display: flex; align-items: flex-end;
  color: var(--bp-paper); overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.55) 0%, rgba(10,10,10,0.15) 35%, rgba(10,10,10,0.78) 100%);
}
.hero-inner { position: relative; z-index: 2; width: 100%; padding-bottom: clamp(48px, 8vw, 96px); padding-top: 120px; }
.hero h1 { color: #fff; margin: 18px 0 24px; max-width: 18ch; text-shadow: 0 2px 30px rgba(0,0,0,0.4); }
.hero .bp-label { color: rgba(255,255,255,0.7); }
.hero .bp-label .rule { background: rgba(255,255,255,0.4); }
.hero p.lead { color: rgba(255,255,255,0.92); }

/* frosted hero card */
.glass {
  background: rgba(20,20,20,0.42);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.18);
  padding: clamp(24px, 3vw, 40px);
  max-width: 720px;
}

/* ---------- stat strip ---------- */
.stat-strip {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255,255,255,0.2);
  margin-top: 36px;
}
.stat-strip .stat { padding: 20px 18px 4px 0; }
.stat .v { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem, 2.6vw, 2.2rem); color: #fff; }
.stat .k { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.65); margin-top: 4px; }
@media (max-width: 720px) { .stat-strip { grid-template-columns: repeat(2, 1fr); } }

/* ---------- generic grid blocks ---------- */
.headline-block { max-width: 70ch; }
.headline-block h2 { margin: 18px 0 22px; }

.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--bp-hairline); margin-top: 56px; border: 1px solid var(--bp-hairline); }
.pillars .pillar { background: var(--bp-paper); padding: 30px 26px 34px; }
.section-white .pillars .pillar { background: var(--bp-white); }
.pillar .pn { font-family: var(--font-mono); font-size: 11px; color: var(--bp-red); letter-spacing: 0.14em; }
.pillar h3 { font-size: 1.18rem; margin: 16px 0 10px; }
.pillar p { font-size: 0.95rem; color: var(--bp-muted); }
@media (max-width: 880px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .pillars { grid-template-columns: 1fr; } }

/* ---------- product cards ---------- */
.prod-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 52px; }
@media (max-width: 820px) { .prod-grid { grid-template-columns: 1fr; } }
.prod-card {
  background: var(--bp-white); border: 1px solid var(--bp-hairline);
  display: flex; flex-direction: column; overflow: hidden;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s;
}
.prod-card:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -36px rgba(0,0,0,0.45); border-color: rgba(26,26,26,0.25); }
.prod-card .pc-img { aspect-ratio: 16/10; background: var(--bp-paper); position: relative; overflow: hidden; }
.prod-card .pc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.prod-card:hover .pc-img img { transform: scale(1.04); }
.prod-card .pc-body { padding: 28px 28px 30px; flex: 1; display: flex; flex-direction: column; }
.prod-card .pc-tag { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--bp-red); }
.prod-card h3 { font-size: 1.6rem; margin: 12px 0 10px; }
.prod-card p { color: var(--bp-muted); font-size: 0.98rem; flex: 1; }
.prod-card .pc-link { margin-top: 22px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--bp-ink); display: inline-flex; align-items: center; gap: 10px; }
.prod-card .pc-link .arrow { transition: transform .25s; }
.prod-card:hover .pc-link .arrow { transform: translateX(6px); color: var(--bp-red); }

/* ---------- subhero (product pages) ---------- */
.subhero { padding-top: 132px; padding-bottom: clamp(48px,7vw,90px); }
.breadcrumb { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--bp-muted); margin-bottom: 26px; }
.breadcrumb a:hover { color: var(--bp-red); }
.subhero-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 900px) { .subhero-grid { grid-template-columns: 1fr; } }
.subhero h1 { margin: 16px 0 22px; }
.img-canvas { aspect-ratio: 16/11; background: var(--bp-paper); position: relative; overflow: hidden; }
.img-canvas img { width: 100%; height: 100%; object-fit: cover; }
.img-canvas.contain { background: var(--bp-white); }
.img-canvas.contain img { object-fit: contain; padding: 18px; }

/* ---------- two-col content ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split.rev .split-txt { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split.rev .split-txt { order: 0; } }
.split h2 { margin: 18px 0 18px; }
.split p { color: rgba(26,26,26,0.78); margin-bottom: 14px; }
.section-ink .split p { color: rgba(247,247,245,0.78); }

/* ---------- flow steps ---------- */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--bp-hairline); border: 1px solid var(--bp-hairline); margin-top: 50px; }
.flow .step { background: var(--bp-white); padding: 28px 22px 32px; position: relative; }
.section-ink .flow { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.14); }
.section-ink .flow .step { background: var(--bp-ink); }
.flow .step .sn { font-family: var(--font-mono); font-size: 11px; color: var(--bp-red); letter-spacing: 0.12em; }
.flow .step h4 { font-family: var(--font-display); font-size: 1.05rem; margin: 14px 0 8px; }
.flow .step p { font-size: 0.9rem; color: var(--bp-muted); }
.section-ink .flow .step p { color: rgba(247,247,245,0.62); }
@media (max-width: 860px) { .flow { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 460px) { .flow { grid-template-columns: 1fr; } }

/* ---------- feature grid ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--bp-hairline); border: 1px solid var(--bp-hairline); margin-top: 48px; }
.features .feat { background: var(--bp-paper); padding: 26px 24px; display: flex; gap: 16px; align-items: flex-start; }
.section-white .features .feat { background: var(--bp-white); }
.feat .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--bp-red); margin-top: 8px; flex: none; box-shadow: 0 0 0 4px rgba(230,57,70,0.16); }
.feat .ft { font-family: var(--font-display); font-weight: 600; font-size: 1rem; }
.feat .fd { font-size: 0.86rem; color: var(--bp-muted); margin-top: 4px; }
@media (max-width: 820px) { .features { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 480px) { .features { grid-template-columns: 1fr; } }

/* ---------- spec table ---------- */
.spec { margin-top: 46px; border: 1px solid var(--bp-hairline); background: var(--bp-white); }
.spec .spec-head { background: var(--bp-ink); color: var(--bp-paper); padding: 16px 24px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; display: flex; justify-content: space-between; align-items: center; }
.spec .spec-head .live { display: inline-flex; align-items: center; gap: 8px; color: rgba(247,247,245,0.6); }
.spec .spec-head .live .pd { width: 7px; height: 7px; border-radius: 50%; background: var(--bp-red); animation: pulse 2s infinite; }
.spec dl { margin: 0; }
.spec .row { display: grid; grid-template-columns: 0.9fr 1.1fr; border-top: 1px solid var(--bp-hairline); }
.spec .row:first-child { border-top: none; }
.spec dt { padding: 14px 24px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--bp-muted); border-right: 1px solid var(--bp-hairline); }
.spec dd { padding: 14px 24px; font-size: 0.95rem; }
@media (max-width: 560px) { .spec .row { grid-template-columns: 1fr; } .spec dt { border-right: none; padding-bottom: 2px; } .spec dd { padding-top: 4px; } }

@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.25; } }

/* ---------- actual device ---------- */
.device-shot { margin-top: 46px; }
.device-shot .img-canvas { aspect-ratio: 16/9; }

/* ---------- CTA ---------- */
.cta { background: var(--bp-ink); color: var(--bp-paper); position: relative; }
.cta::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--bp-red); }
.cta h2 { color: #fff; margin: 18px 0 26px; max-width: 20ch; }
.cta .bp-label { color: rgba(247,247,245,0.55); }
.cta .bp-label .rule { background: rgba(247,247,245,0.25); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-top: 8px; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border-radius: 2px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 500; transition: .2s; }
.btn-red { background: var(--bp-red); color: #fff; }
.btn-red:hover { background: var(--bp-red-dark); }
.btn-ghost { border: 1px solid rgba(247,247,245,0.4); color: var(--bp-paper); }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,0.06); }
.cta .phone { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.06em; color: rgba(247,247,245,0.7); margin-left: 4px; }

/* ---------- footer ---------- */
.footer { background: #0E0E0E; color: rgba(247,247,245,0.7); padding: 64px 0 40px; position: relative; }
.footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--bp-red); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }
.footer img.flogo { width: 140px; margin-bottom: 18px; }
.footer h5 { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(247,247,245,0.5); margin-bottom: 14px; }
.footer a { display: block; font-size: 0.92rem; padding: 4px 0; color: rgba(247,247,245,0.72); }
.footer a:hover { color: var(--bp-red); }
.footer .fine { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.78rem; color: rgba(247,247,245,0.4); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-family: var(--font-mono); letter-spacing: 0.04em; }

/* ---------- scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* sticky bottom call pill */
.sticky-cta { position: fixed; right: 18px; bottom: 18px; z-index: 90; display: flex; gap: 10px; }
.sticky-cta a { background: var(--bp-ink); color: #fff; padding: 12px 18px; border-radius: 999px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; box-shadow: 0 12px 30px -12px rgba(0,0,0,0.6); display: inline-flex; align-items: center; gap: 8px; }
.sticky-cta a.wa { background: #25D366; color: #0A0A0A; }
.sticky-cta a:hover { transform: translateY(-2px); }
@media (max-width: 560px) { .sticky-cta a .lbl { display: none; } }
