/* ═══════════════════════════════════════════════════════════
   KYNEX TECHNOLOGIES INDIA — Infrastructure Group
   Design system: "Capacity Board"
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700;800&family=IBM+Plex+Mono:wght@400;500;600&family=Inter:wght@400;450;500;600&display=swap');

:root {
  /* Rack-shadow ink through signal-cyan — a NOC panel palette */
  --ink:      #0A1D24;
  --ink-2:    #12333E;
  --teal:     #0E7490;
  --teal-lo:  #E4F1F5;
  --cyan:     #06B6D4;
  --amber:    #F59E0B;
  --paper:    #F6F8F9;
  --white:    #FFFFFF;
  --rule:     #DCE5E8;
  --rule-hi:  #C3D4D9;
  --text:     #0A1D24;
  --text-2:   #4A6570;
  --text-3:   #7B929B;

  /* subpage tokens (aliased onto the palette above for consistency) */
  --bg:          #F6F8F9;
  --bg2:         #EDF2F3;
  --border:      #DCE5E8;
  --border-mid:  #C3D4D9;
  --teal-mid:    #1A7A94;
  --teal-dark:   #0A4A5C;
  --teal-light:  #8FCFDE;
  --accent:      #06B6D4;

  --shell: 1240px;
  --gut: clamp(20px, 5vw, 64px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.shell { max-width: var(--shell); margin: 0 auto; padding-inline: var(--gut); }

/* ── TYPE ROLES ────────────────────────────────────────── */
.display {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.02;
}
.mono {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 500;
  letter-spacing: 0.04em;
}

/* Section label — mono, uppercase, rule-attached */
.seclabel {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.seclabel::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--rule);
}
.seclabel.center { justify-content: center; }
.seclabel.center::after { display: none; }
.seclabel.center::before {
  content: '';
  width: 28px; height: 1px; background: var(--teal); opacity: .5;
}

h2.sec {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: clamp(1.75rem, 3.4vw, 2.75rem);
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--ink);
  max-width: 20ch;
}
h2.sec.wide { max-width: 26ch; }
.lede {
  font-size: clamp(0.98rem, 1.3vw, 1.08rem);
  color: var(--text-2);
  line-height: 1.72;
  max-width: 58ch;
  margin-top: 16px;
}

/* ── NAV ───────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(246,248,249,.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rule);
}
.nav-in {
  max-width: var(--shell); margin: 0 auto;
  padding-inline: var(--gut);
  height: 66px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand img { height: 30px; width: auto; }
.brand-txt {
  font-family: 'Archivo', sans-serif; font-weight: 800;
  font-size: 0.95rem; letter-spacing: -0.02em; color: var(--ink);
  line-height: 1;
}
.brand-sub {
  font-family: 'IBM Plex Mono', monospace; font-size: 0.56rem;
  letter-spacing: 0.16em; color: var(--text-3); text-transform: uppercase;
  display: block; margin-top: 2px;
}

.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav-links a {
  display: block; padding: 8px 13px; border-radius: 6px;
  font-size: 0.855rem; font-weight: 500; color: var(--text-2);
  text-decoration: none; transition: color .16s, background .16s;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--teal); background: var(--teal-lo); }
.nav-links a.on { color: var(--teal); font-weight: 600; }

/* Mega dropdown */
.has-mega { position: relative; }
.mega {
  position: absolute; top: calc(100% + 10px); left: -16px;
  width: 460px; padding: 10px;
  background: var(--white); border: 1px solid var(--rule);
  border-radius: 12px; box-shadow: 0 18px 44px rgba(10,29,36,.13);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: all .18s ease;
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
}
.has-mega:hover .mega, .has-mega:focus-within .mega { opacity: 1; visibility: visible; transform: translateY(0); }
.mega a {
  display: block; padding: 11px 13px; border-radius: 8px;
  text-decoration: none; transition: background .14s;
}
.mega a:hover { background: var(--teal-lo); }
.mega-code {
  font-family: 'IBM Plex Mono', monospace; font-size: 0.6rem;
  letter-spacing: 0.14em; color: var(--cyan); font-weight: 600;
  display: block; margin-bottom: 2px;
}
.mega-name { font-size: 0.86rem; font-weight: 600; color: var(--ink); display: block; line-height: 1.3; }
.mega-desc { font-size: 0.74rem; color: var(--text-3); display: block; margin-top: 2px; line-height: 1.4; }

.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: .82rem; color: var(--text-3); margin-bottom: 16px; flex-wrap: wrap; }
.breadcrumb a { color: var(--teal); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.info-card { background: var(--white); border: 1px solid var(--rule); border-radius: 12px; padding: 4px; box-shadow: 0 2px 12px rgba(10,74,92,0.05); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 7px;
  font-size: 0.88rem; font-weight: 600; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: all .18s ease; white-space: nowrap;
}
.btn-solid { background: var(--ink); color: var(--white); }
.btn-solid:hover { background: var(--teal); transform: translateY(-1px); }
.btn-line { border-color: var(--rule-hi); color: var(--ink); background: var(--white); }
.btn-line:hover { border-color: var(--teal); color: var(--teal); }
.btn-primary, .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: 'Inter', sans-serif; font-size: 0.9rem; font-weight: 600;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: all .18s ease;
}
.btn-primary {
  padding: 13px 28px; border-radius: 8px; border: 1.5px solid transparent;
  background: var(--teal-mid); color: #fff;
}
.btn-primary:hover { background: var(--teal-dark); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(10,74,92,.18); }
.btn-ghost { color: var(--teal); padding-inline: 0; }
.btn-ghost:hover { gap: 12px; }
.btn-sm { padding: 9px 17px; font-size: 0.82rem; }
.btn-invert { background: var(--white); color: var(--ink); }
.btn-invert:hover { background: var(--cyan); color: var(--ink); }
.btn-outline-light { border-color: rgba(255,255,255,.32); color: var(--white); }
.btn-outline-light:hover { border-color: var(--cyan); color: var(--cyan); }

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.burger span { width: 21px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s; display: block; }
.burger.x span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.x span:nth-child(2) { opacity: 0; }
.burger.x span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none; background: var(--white); border-bottom: 1px solid var(--rule);
  padding: 10px var(--gut) 20px;
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block; padding: 11px 4px; font-size: 0.92rem; color: var(--text-2);
  text-decoration: none; border-bottom: 1px solid var(--rule);
}
.mobile-nav a:last-of-type { border-bottom: 0; }
.mn-head {
  font-family: 'IBM Plex Mono', monospace; font-size: 0.62rem;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-3);
  padding: 14px 4px 4px;
}

/* ── FOOTER ────────────────────────────────────────────── */
.foot { background: var(--ink); color: rgba(255,255,255,.62); padding: 64px 0 28px; }
.foot-grid {
  display: grid; grid-template-columns: 1.7fr repeat(3, 1fr); gap: 44px;
  padding-bottom: 40px;
}
.foot-brand img { height: 34px; filter: brightness(0) invert(1); opacity: .9; }
.foot-tag { font-size: 0.85rem; line-height: 1.75; margin-top: 16px; max-width: 30ch; }
.foot-h {
  font-family: 'IBM Plex Mono', monospace; font-size: 0.63rem;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--cyan);
  margin-bottom: 15px;
}
.foot-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.foot-list a { font-size: 0.85rem; color: rgba(255,255,255,.6); text-decoration: none; transition: color .16s; }
.foot-list a:hover { color: var(--cyan); }
.foot-bot {
  border-top: 1px solid rgba(255,255,255,.11); padding-top: 22px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
  font-family: 'IBM Plex Mono', monospace; font-size: 0.7rem;
  letter-spacing: 0.06em; color: rgba(255,255,255,.36);
}
.foot-bot a { color: rgba(255,255,255,.36); text-decoration: none; }
.foot-bot a:hover { color: var(--cyan); }

/* ── PAGE HEADER (inner pages) ─────────────────────────── */
.phead {
  background: var(--ink);
  color: var(--white);
  padding: 76px 0 68px;
  position: relative; overflow: hidden;
}
.phead::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 54px 54px;
}
.phead-in { position: relative; z-index: 1; }
.crumb {
  font-family: 'IBM Plex Mono', monospace; font-size: 0.68rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,.42); margin-bottom: 22px;
  display: flex; gap: 9px; align-items: center; flex-wrap: wrap;
}
.crumb a { color: var(--cyan); text-decoration: none; }
.phead h1 {
  font-family: 'Archivo', sans-serif; font-weight: 800;
  font-size: clamp(2rem, 4.6vw, 3.4rem); letter-spacing: -0.035em;
  line-height: 1.04; max-width: 18ch;
}
.phead h1 em { font-style: normal; color: var(--cyan); }
.phead p {
  font-size: clamp(0.98rem, 1.4vw, 1.1rem); color: rgba(255,255,255,.66);
  line-height: 1.72; max-width: 56ch; margin-top: 20px;
}

/* ── UTILITIES ─────────────────────────────────────────── */
.sec-pad { padding: clamp(64px, 9vw, 104px) 0; }
.sec-pad-sm { padding: clamp(48px, 6vw, 72px) 0; }
.bg-white { background: var(--white); }
.bg-paper { background: var(--paper); }
.bg-ink { background: var(--ink); color: var(--white); }
.center { text-align: center; }
.mx-auto { margin-inline: auto; }

@media (max-width: 1000px) {
  .nav-links, .nav .btn { display: none; }
  .burger { display: flex; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 560px) {
  .foot-grid { grid-template-columns: 1fr; }
  .foot-bot { flex-direction: column; text-align: center; }
}

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

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 3px; }

/* ── PRODUCT DETAIL TEMPLATE (product-*.html) ─────────────── */
.prod-hero {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px,5vw,64px);
  align-items: center; padding: clamp(40px,6vw,64px) 5vw;
}
.prod-hero-content { max-width: 46ch; }
.prod-hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: 100px; padding: 7px 16px 7px 12px;
  font-size: .8rem; font-weight: 600; color: var(--teal-mid);
  margin-bottom: 18px;
}
.prod-hero-content h1 {
  font-family: 'Archivo', sans-serif; font-weight: 800;
  font-size: clamp(2rem,4vw,2.9rem); letter-spacing: -.03em; line-height: 1.08;
  color: var(--ink); margin-bottom: 16px;
}
.prod-hero-content h1 span { color: var(--teal-mid); }
.prod-hero-content > p { font-size: 1rem; color: var(--text-2); line-height: 1.7; margin-bottom: 26px; }
.hero-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.prod-hero-visual svg { width: 100%; height: auto; display: block; }

.prod-nav-pills {
  position: sticky; top: 66px; z-index: 90;
  display: flex; gap: 8px; padding: 14px 5vw; overflow-x: auto;
  background: rgba(246,248,249,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border); white-space: nowrap;
}
.pill {
  display: inline-block; padding: 8px 16px; border-radius: 100px;
  font-size: .82rem; font-weight: 600; color: var(--text-2);
  text-decoration: none; border: 1px solid transparent; transition: all .16s ease;
}
.pill:hover { background: var(--white); border-color: var(--border); }
.pill.active { background: var(--teal-mid); color: #fff; }

.prod-section { padding: clamp(56px,7vw,88px) 5vw; }
.prod-section.alt { background: var(--bg2); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.eyebrow {
  display: inline-block; font-family: 'IBM Plex Mono', monospace; font-size: .7rem;
  font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--teal-mid); margin-bottom: 12px;
}
.section-h2 {
  font-family: 'Archivo', sans-serif; font-weight: 800;
  font-size: clamp(1.6rem,3vw,2.3rem); letter-spacing: -.03em; line-height: 1.15;
  color: var(--ink);
}
.section-h2 span { color: var(--teal-mid); }
.section-sub { font-size: .95rem; color: var(--text-2); margin-top: 12px; line-height: 1.7; }
.body-text { font-size: .95rem; color: var(--text-2); line-height: 1.75; }

.two-col { max-width: var(--shell); margin: 0 auto; display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px,5vw,64px); align-items: start; }
.stat-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat-card { background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 22px; }
.stat-card-num { font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 1.6rem; color: var(--teal-mid); letter-spacing: -.02em; }
.stat-card-label { font-size: .8rem; color: var(--text-2); margin-top: 6px; line-height: 1.4; }

.feature-grid { max-width: var(--shell); margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fill,minmax(280px,1fr)); gap: 20px; }
.feat-card { background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 26px; }
.feat-icon { font-size: 1.6rem; margin-bottom: 14px; display: block; }
.feat-card h3 { font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 1rem; color: var(--ink); margin-bottom: 8px; letter-spacing: -.02em; }
.feat-card p { font-size: .85rem; color: var(--text-2); line-height: 1.65; }

.flow-diagram { max-width: var(--shell); margin: 0 auto; display: flex; align-items: stretch; gap: 8px; flex-wrap: wrap; justify-content: center; }
.flow-step { background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 20px; flex: 1 1 200px; max-width: 240px; }
.flow-num {
  width: 28px; height: 28px; border-radius: 50%; background: var(--teal-mid); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: 'IBM Plex Mono', monospace; font-weight: 700; font-size: .8rem; margin-bottom: 12px;
}
.flow-body h4 { font-family: 'Archivo', sans-serif; font-weight: 700; font-size: .92rem; color: var(--ink); margin-bottom: 6px; letter-spacing: -.02em; }
.flow-body p { font-size: .8rem; color: var(--text-2); line-height: 1.6; }
.flow-arrow { display: flex; align-items: center; justify-content: center; color: var(--border-mid); font-size: 1.2rem; flex: 0 0 auto; }
@media (max-width: 900px) { .flow-arrow { transform: rotate(90deg); } }

.specs-wrap { max-width: var(--shell); margin: 0 auto; }
.spec-table { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; font-size: .87rem; }
.spec-table th { background: var(--bg2); text-align: left; padding: 12px 18px; font-family: 'IBM Plex Mono', monospace; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--teal-mid); }
.spec-table td { padding: 12px 18px; border-bottom: 1px solid var(--border); color: var(--text-2); }
.spec-table td:first-child { color: var(--ink); font-weight: 600; width: 32%; }
.spec-table tr:last-child td { border-bottom: 0; }

.pricing-grid { max-width: var(--shell); margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit,minmax(260px,1fr)); gap: 24px; }
.price-card { position: relative; background: var(--white); border: 1px solid var(--border); border-radius: 14px; padding: 32px 26px; }
.price-card.featured { border-color: var(--teal-mid); box-shadow: 0 12px 32px rgba(10,74,92,.12); }
.price-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--teal-mid); color: #fff; font-size: .7rem; font-weight: 600;
  padding: 4px 14px; border-radius: 100px; white-space: nowrap;
}
.price-tier { font-family: 'IBM Plex Mono', monospace; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.price-val { font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 1.7rem; color: var(--ink); margin-top: 8px; letter-spacing: -.02em; }
.price-sub { font-size: .78rem; color: var(--text-3); margin-top: 4px; }
.price-features { list-style: none; margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.price-features li { font-size: .85rem; color: var(--text-2); line-height: 1.5; }

.prod-cta-bar {
  background: var(--ink); color: #fff; text-align: center;
  padding: clamp(48px,6vw,72px) 5vw;
}
.prod-cta-bar h2 { font-family: 'Archivo', sans-serif; font-weight: 800; font-size: clamp(1.4rem,2.6vw,2rem); letter-spacing: -.03em; margin-bottom: 24px; }

.prod-nav-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  max-width: var(--shell); margin: 0 auto; padding: 26px 5vw;
}

@media (max-width: 900px) {
  .prod-hero { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .stat-cards { grid-template-columns: 1fr 1fr; }
}

/* footer contact block (filled by site-contact.js) */
.foot-contact { list-style: none; margin-top: 18px; display: flex; flex-direction: column; gap: 8px; font-size: 0.82rem; color: rgba(255,255,255,.6); line-height: 1.55; }
.foot-contact a { color: rgba(255,255,255,.75); text-decoration: none; transition: color .16s; }
.foot-contact a:hover { color: var(--cyan); }
