/* ═══════════════════════════════════════════════════════════════
   INTERCONNECTED SYSTEMS INC. — styles.css
   Modern Dark Theme · ISI Brand Colors
   ═══════════════════════════════════════════════════════════════ */

/* ── CUSTOM PROPERTIES ──────────────────────────────────────── */
:root {
  /* Brand palette — derived from existing ISI site */
  --isi-navy:        #122656;   /* paletteColor1 */
  --isi-blue:        #3d5693;   /* paletteColor2 */
  --isi-slate:       #475671;   /* paletteColor3 */
  --isi-dark:        #293241;   /* paletteColor4 */
  --isi-light:       #E7E9EF;   /* paletteColor5 */
  --isi-off-white:   #f3f4f7;   /* paletteColor6 */

  /* Backgrounds */
  --bg-base:         #080e1c;
  --bg-alt:          #0d1629;
  --bg-card:         rgba(18, 38, 86, 0.35);
  --bg-card-hover:   rgba(18, 38, 86, 0.55);
  --bg-input:        rgba(255,255,255,0.05);
  --bg-tag:          rgba(61,86,147,0.2);

  /* Accents */
  --accent:          #5b8cff;   /* bright blue over dark navy */
  --accent-2:        #a9e2f9;   /* the header link colour from original site */
  --accent-glow:     rgba(91,140,255,0.25);

  /* Text */
  --txt-primary:     #e7e9ef;
  --txt-secondary:   #94a3b8;
  --txt-muted:       #4a5a7a;

  /* Borders */
  --border:          rgba(61,86,147,0.3);
  --border-accent:   rgba(91,140,255,0.4);

  /* Gradients */
  --grad:            linear-gradient(135deg, #5b8cff 0%, #a9e2f9 100%);
  --grad-text:       linear-gradient(135deg, #5b8cff 0%, #a9e2f9 100%);
  --grad-card:       linear-gradient(135deg, rgba(18,38,86,0.6) 0%, rgba(41,50,65,0.4) 100%);

  /* Shadows */
  --shadow:          0 4px 24px rgba(0,0,0,0.5);
  --shadow-glow:     0 0 32px rgba(91,140,255,0.18);

  /* Sizing */
  --radius-sm:       6px;
  --radius:          12px;
  --radius-lg:       18px;
  --nav-h:           70px;
  --topbar-h:        36px;

  /* Typography */
  --font:            'Inter', system-ui, -apple-system, sans-serif;
  --mono:            'JetBrains Mono', 'Cascadia Code', monospace;

  /* Motion */
  --ease:            cubic-bezier(0.4, 0, 0.2, 1);
  --dur:             0.25s;
}

/* ── RESET ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  background: var(--bg-base);
  color: var(--txt-primary);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img  { display: block; max-width: 100%; height: auto; }
a    { color: var(--accent-2); text-decoration: none; transition: color var(--dur) var(--ease); }
a:hover { color: #fff; }
ul   { list-style: none; }
button { cursor: pointer; font-family: var(--font); }
input, select, textarea, button { font-family: var(--font); }

/* ── SCROLLBAR ───────────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track  { background: var(--bg-alt); }
::-webkit-scrollbar-thumb  { background: var(--isi-blue); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ── SELECTION ───────────────────────────────────────────────── */
::selection { background: rgba(91,140,255,0.3); color: #fff; }

/* ── TYPOGRAPHY ──────────────────────────────────────────────── */
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; color: var(--txt-primary); }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.65rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.15rem; }
p  { color: var(--txt-secondary); }

.gradient-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── LAYOUT ──────────────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
}

.section     { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-alt { background: var(--bg-alt); }

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.5rem;
}
.section-header h2 { margin: 0.5rem 0 0.9rem; }
.section-header p  { font-size: 1.03rem; }

.section-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent-2);
  background: rgba(169,226,249,0.1);
  border: 1px solid rgba(169,226,249,0.25);
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
}

/* ── TOP BAR ─────────────────────────────────────────────────── */
.topbar {
  height: var(--topbar-h);
  background: var(--isi-navy);
  border-bottom: 1px solid rgba(61,86,147,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}
.topbar-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #a9e2f9;
  letter-spacing: 0.04em;
}
.topbar-link:hover { color: #daf4ff; }

/* ── NAVBAR ──────────────────────────────────────────────────── */
#navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(8,14,28,0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
#navbar.scrolled {
  background: rgba(8,14,28,0.96);
  box-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.logo-link { display: flex; align-items: center; flex-shrink: 0; }
.isi-logo  { height: 44px; width: auto; max-width: 220px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--txt-secondary);
  padding: 0.45rem 0.7rem;
  border-radius: var(--radius-sm);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.nav-links a:hover { color: var(--txt-primary); background: rgba(255,255,255,0.05); }
.nav-links a.active { color: var(--accent-2); }

.btn-nav {
  background: rgba(91,140,255,0.12) !important;
  border: 1px solid rgba(91,140,255,0.35) !important;
  color: var(--accent-2) !important;
  border-radius: var(--radius-sm) !important;
  padding: 0.45rem 1rem !important;
}
.btn-nav:hover { background: rgba(91,140,255,0.22) !important; color: #fff !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 0.4rem;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--txt-primary);
  border-radius: 1px;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── HERO ────────────────────────────────────────────────────── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: top left;
  background-repeat: no-repeat;
  filter: brightness(0.45);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 40%, rgba(18,38,86,0.55) 0%, transparent 70%),
    linear-gradient(to bottom, rgba(8,14,28,0.1) 0%, rgba(8,14,28,0.55) 60%, rgba(8,14,28,1) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 5rem 1.5rem 4rem;
  max-width: 860px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  color: var(--accent-2);
  background: rgba(169,226,249,0.08);
  border: 1px solid rgba(169,226,249,0.2);
  border-radius: 999px;
  padding: 0.35rem 1rem;
  margin-bottom: 1.75rem;
}

.pulse-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #00ff9d;
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(0,255,157,.5); }
  70%  { box-shadow: 0 0 0 8px rgba(0,255,157,0); }
  100% { box-shadow: 0 0 0 0 rgba(0,255,157,0); }
}

.hero-h1 {
  font-size: clamp(2.25rem, 5.5vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #eaeaec;
  margin-bottom: 0.5rem;
}

.hero-tagline {
  font-size: clamp(1.2rem, 3vw, 1.75rem);
  font-weight: 700;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.25rem;
}

.hero-sub {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: #94a3b8;
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.75;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 3.5rem;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-n {
  display: block;
  font-size: 1.55rem;
  font-weight: 800;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.stat-l {
  font-size: 0.74rem;
  color: var(--txt-muted);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin-top: 0.25rem;
}
.stat-sep { width: 1px; height: 38px; background: var(--border); }

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 28px; height: 44px;
  border: 2px solid rgba(255,255,255,0.18);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
  transition: border-color var(--dur) var(--ease);
}
.scroll-hint:hover { border-color: var(--accent-2); }
.scroll-hint span {
  width: 4px; height: 8px;
  background: var(--txt-secondary);
  border-radius: 2px;
  animation: scrollDn 2s infinite;
}
@keyframes scrollDn {
  0%   { transform: translateY(0);   opacity: .8; }
  80%  { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(0);   opacity: 0; }
}

/* ── BUTTONS ─────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--grad);
  color: #080e1c;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.75rem 1.75rem;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.btn-primary:hover { opacity: 0.88; transform: translateY(-1px); box-shadow: 0 8px 28px var(--accent-glow); color: #080e1c; }
.btn-primary.full-w { width: 100%; justify-content: center; }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: transparent;
  color: var(--txt-primary);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.75rem 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.btn-ghost:hover { background: rgba(255,255,255,0.05); border-color: var(--accent-2); color: var(--accent-2); transform: translateY(-1px); }

/* ── INTRO ───────────────────────────────────────────────────── */
.intro-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.intro-text .section-tag { margin-bottom: 0.75rem; }
.intro-text h2 { margin: 0.5rem 0 1.25rem; }
.intro-text p  { margin-bottom: 1rem; font-size: 0.975rem; }

.intro-image img {
  border-radius: var(--radius-lg);
  width: 100%;
  object-fit: cover;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

/* ── SERVICES ────────────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.25rem;
}

.svc-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.85rem;
  position: relative;
  overflow: hidden;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.svc-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(91,140,255,0.06) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}
.svc-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow), var(--shadow-glow);
}
.svc-card:hover::after { opacity: 1; }

.svc-icon {
  width: 46px; height: 46px;
  border-radius: var(--radius);
  background: rgba(91,140,255,0.1);
  border: 1px solid rgba(91,140,255,0.2);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.1rem;
}
.svc-icon svg { width: 20px; height: 20px; color: var(--accent-2); }
.svc-card h3  { margin-bottom: 0.65rem; font-size: 1.1rem; }
.svc-card p   { font-size: 0.88rem; line-height: 1.7; margin-bottom: 1.1rem; }

.svc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.svc-tags li {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent-2);
  background: rgba(169,226,249,0.08);
  border: 1px solid rgba(169,226,249,0.18);
  border-radius: 999px;
  padding: 0.18rem 0.6rem;
}

/* ── TECHNOLOGIES ────────────────────────────────────────────── */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.15rem;
}

.tech-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.65rem;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.tech-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-accent);
  transform: translateY(-2px);
}

.tech-vendor-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.2rem 0.7rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
}
.cisco-label   { background: rgba(0,188,235,0.12); color: #00bceb; border: 1px solid rgba(0,188,235,0.25); }
.juniper-label { background: rgba(0,179,104,0.12); color: #00b368; border: 1px solid rgba(0,179,104,0.25); }
.hpe-label     { background: rgba(1,169,130,0.12); color: #01a982; border: 1px solid rgba(1,169,130,0.25); }
.telecom-label { background: rgba(167,139,250,0.12); color: #a78bfa; border: 1px solid rgba(167,139,250,0.25); }
.auto-label    { background: rgba(245,158,11,0.12); color: #f59e0b; border: 1px solid rgba(245,158,11,0.25); }
.ai-label      { background: rgba(236,72,153,0.12); color: #ec4899; border: 1px solid rgba(236,72,153,0.25); }

.tech-card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.tech-card p  { font-size: 0.875rem; line-height: 1.65; margin-bottom: 0.9rem; }

.tech-pills { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.tech-pills span {
  font-size: 0.68rem;
  font-weight: 600;
  font-family: var(--mono);
  color: var(--txt-muted);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.18rem 0.5rem;
}

/* ── TOOLS ───────────────────────────────────────────────────── */
.tools-tabbar {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.75rem;
}

.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--txt-muted);
  background: none;
  border: none;
  padding: 0.6rem 0.9rem 0.85rem;
  margin-bottom: -1px;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.tab-btn:hover  { color: var(--txt-primary); }
.tab-btn.active { color: var(--accent-2); border-bottom-color: var(--accent-2); }

.tab-panel       { display: none; }
.tab-panel.active{ display: block; }

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 1.15rem;
}

.tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  transition: border-color var(--dur) var(--ease);
}
.tool-card:hover { border-color: var(--border-accent); }

.tool-h {
  display: flex; align-items: center; gap: 0.45rem;
  font-size: 0.92rem; font-weight: 700;
  color: var(--txt-primary);
  margin-bottom: 0.9rem;
}
.tool-h svg { color: var(--accent-2); flex-shrink: 0; }

.tool-desc { font-size: 0.82rem; color: var(--txt-secondary); margin-bottom: 0.9rem; line-height: 1.6; }

.tool-row {
  display: flex; gap: 0.45rem;
  flex-wrap: wrap;
  margin-bottom: 0.7rem;
}

.t-input {
  flex: 1;
  min-width: 130px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.52rem 0.85rem;
  color: var(--txt-primary);
  font-size: 0.84rem;
  font-family: var(--mono);
  outline: none;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.t-input:focus { border-color: var(--accent-2); box-shadow: 0 0 0 3px rgba(169,226,249,0.1); }
.t-input::placeholder { color: var(--txt-muted); }
.t-input.half { flex: 0 0 calc(50% - 0.225rem); min-width: 110px; }

.t-select {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.52rem 0.7rem;
  color: var(--txt-primary);
  font-size: 0.84rem;
  outline: none; cursor: pointer;
  transition: border-color var(--dur) var(--ease);
}
.t-select:focus { border-color: var(--accent-2); }
.t-select option { background: var(--bg-alt); }

.t-check {
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.82rem; color: var(--txt-secondary);
  cursor: pointer; user-select: none;
}
.t-check input[type="checkbox"] {
  accent-color: var(--accent-2); width: 14px; height: 14px; cursor: pointer;
}

.t-btn {
  background: var(--grad);
  color: #080e1c;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.52rem 1.1rem;
  border: none;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  cursor: pointer;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.t-btn:hover   { opacity: 0.84; transform: translateY(-1px); }
.t-btn:active  { transform: translateY(0); }
.t-btn.full-w  { width: 100%; padding: 0.6rem; font-size: 0.875rem; }
.t-btn:disabled{ opacity: 0.45; cursor: not-allowed; }
.t-btn-stop {
  background: transparent;
  color: #f87171;
  border: 1px solid #f87171;
  font-weight: 600;
}
.mt6 { margin-top: 0.375rem; }

.t-result {
  background: rgba(0,0,0,0.35);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.9rem;
  font-size: 0.78rem;
  font-family: var(--mono);
  color: var(--txt-secondary);
  min-height: 44px;
  overflow-x: auto;
  line-height: 1.9;
}
.t-result:empty::before   { content: 'Result will appear here…'; color: var(--txt-muted); font-style: italic; }
.t-result .row  { display: flex; justify-content: space-between; gap: 1rem; padding: 0.1rem 0; border-bottom: 1px solid rgba(255,255,255,0.04); }
.t-result .row:last-child  { border-bottom: none; }
.t-result .lbl  { color: var(--txt-muted); flex-shrink: 0; max-width: 46%; }
.t-result .val  { color: #7dd3fc; text-align: right; word-break: break-all; }
.t-result .val.green { color: #86efac; }
.t-result .err  { color: #f87171; }
.t-result .info { color: var(--accent-2); }
.t-result .load { color: var(--txt-muted); font-style: italic; }
.t-result .head { font-weight: 600; color: var(--accent-2); padding: 0.2rem 0 0.4rem; border-bottom: 1px solid var(--border); margin-bottom: 0.3rem; display: block; }

/* CIDR Table */
.cidr-table-wrap { overflow-y: auto; max-height: 260px; }
.cidr-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.76rem;
  font-family: var(--mono);
}
.cidr-table th {
  position: sticky; top: 0;
  background: var(--bg-alt);
  color: var(--txt-muted);
  font-weight: 700;
  padding: 0.38rem 0.6rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.67rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.cidr-table td { padding: 0.28rem 0.6rem; border-bottom: 1px solid rgba(255,255,255,0.03); color: var(--txt-secondary); }
.cidr-table tr:hover td { background: rgba(255,255,255,0.03); color: var(--txt-primary); }
.cidr-table td:first-child { color: var(--accent-2); }
.cidr-table td:last-child  { color: #86efac; }

/* BGP Looking Glass Grid */
.lg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.6rem;
}
.lg-link {
  display: flex;
  flex-direction: column;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.85rem;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
  gap: 0.2rem;
}
.lg-link:hover { background: rgba(169,226,249,0.06); border-color: var(--border-accent); }
.lg-name  { font-size: 0.85rem; font-weight: 700; color: var(--accent-2); }
.lg-desc  { font-size: 0.72rem; color: var(--txt-muted); }

/* Resources Grid */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.25rem;
}
.res-group {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
}
.res-group h3 {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-2);
  margin-bottom: 0.9rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--border);
}
.res-list li {
  display: flex;
  flex-direction: column;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}
.res-list li:last-child { border-bottom: none; }
.res-list a  { font-size: 0.875rem; font-weight: 600; color: var(--txt-primary); transition: color var(--dur) var(--ease); }
.res-list a:hover { color: var(--accent-2); }
.res-list span { font-size: 0.73rem; color: var(--txt-muted); margin-top: 0.08rem; }

/* ── WHY US ──────────────────────────────────────────────────── */
.why-tag { background: rgba(61,86,147,0.2); color: #a9e2f9; border-color: rgba(61,86,147,0.4); }

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.why-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.why-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-accent);
  transform: translateY(-3px);
}

.why-icon {
  width: 64px; height: 64px;
  margin: 0 auto 1.25rem;
  /* Keep original icon appearance */
  filter: none;
}

.why-card h3 { margin-bottom: 0.65rem; font-size: 1.1rem; }
.why-card p  { font-size: 0.875rem; line-height: 1.7; }

.why-cta-text { text-align: center; color: var(--txt-secondary); font-size: 0.95rem; }
.inline-link  { color: var(--accent-2); font-weight: 600; }
.inline-link:hover { color: #fff; }

/* ── CLIENTS ─────────────────────────────────────────────────── */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.client-tile {
  background: rgba(255,255,255,0.97);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90px;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.client-tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow), var(--shadow-glow);
  border-color: var(--border-accent);
}
.client-tile img {
  max-width: 150px;
  max-height: 56px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: none; /* preserve original colours */
}

/* ── ABOUT ───────────────────────────────────────────────────── */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-text .section-tag { margin-bottom: 0.75rem; }
.about-text h2 { margin: 0.5rem 0 1.25rem; }
.about-text p  { margin-bottom: 1rem; font-size: 0.95rem; }

.cert-row { display: flex; flex-direction: column; gap: 0.7rem; margin-top: 1.75rem; }
.cert-item {
  display: flex; align-items: center; gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.7rem 1rem;
}
.cert-star { color: var(--accent-2); font-size: 1rem; flex-shrink: 0; }
.cert-item strong { display: block; font-size: 0.9rem; color: var(--txt-primary); }
.cert-item small  { font-size: 0.74rem; color: var(--txt-muted); }

.about-img-wrap img {
  border-radius: var(--radius-lg);
  width: 100%;
  object-fit: cover;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

/* ── CONTACT ─────────────────────────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 1.2rem; }

.ci-item { display: flex; align-items: flex-start; gap: 1rem; }
.ci-icon {
  width: 40px; height: 40px;
  background: rgba(91,140,255,0.08);
  border: 1px solid rgba(91,140,255,0.2);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ci-icon svg { width: 17px; height: 17px; color: var(--accent-2); }
.ci-item strong { display: block; font-size: 0.75rem; color: var(--txt-muted); text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 0.2rem; }
.ci-item a, .ci-item span { font-size: 0.95rem; color: var(--txt-secondary); }
.ci-item a:hover { color: var(--accent-2); }

.contact-form { display: flex; flex-direction: column; gap: 0.9rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.fg { display: flex; flex-direction: column; gap: 0.35rem; }
.fg label { font-size: 0.76rem; font-weight: 600; color: var(--txt-muted); text-transform: uppercase; letter-spacing: 0.07em; }
.fg label span { color: var(--accent-2); }

.fg input, .fg select, .fg textarea {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.62rem 0.9rem;
  color: var(--txt-primary);
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  resize: vertical;
}
.fg input::placeholder, .fg textarea::placeholder { color: var(--txt-muted); }
.fg input:focus, .fg select:focus, .fg textarea:focus {
  border-color: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(169,226,249,0.1);
}
.fg select { cursor: pointer; }
.fg select option { background: var(--bg-alt); }

#formStatus { font-size: 0.875rem; text-align: center; min-height: 1.4rem; margin-top: 0.25rem; }
#formStatus.ok  { color: #86efac; }
#formStatus.err { color: #f87171; }

/* ── FOOTER ──────────────────────────────────────────────────── */
footer {
  background: var(--isi-navy);
  border-top: 1px solid rgba(61,86,147,0.5);
  padding: 3rem 0 0;
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}
.footer-brand { display: flex; flex-direction: column; gap: 1rem; }
.footer-logo  { height: 42px; width: auto; max-width: 200px; }
.footer-brand p { font-size: 0.84rem; color: rgba(169,226,249,0.6); line-height: 1.65; max-width: 280px; }
.footer-phone   { font-size: 0.9rem; font-weight: 700; color: var(--accent-2); }
.footer-phone:hover { color: #fff; }

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 2rem;
}
.footer-col h4 { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--txt-primary); margin-bottom: 0.9rem; }
.footer-col li { margin-bottom: 0.45rem; }
.footer-col a  { font-size: 0.84rem; color: rgba(169,226,249,0.5); }
.footer-col a:hover { color: var(--accent-2); }

.footer-bottom {
  border-top: 1px solid rgba(61,86,147,0.4);
  padding: 1.2rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-bottom p   { font-size: 0.79rem; color: rgba(169,226,249,0.35); }
.footer-bottom a   { color: rgba(169,226,249,0.35); }
.footer-bottom a:hover { color: var(--accent-2); }

/* ── SCROLL ANIMATIONS ───────────────────────────────────────── */
[data-animate] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
[data-animate].visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .intro-layout  { grid-template-columns: 1fr; gap: 2.5rem; }
  .intro-image   { order: -1; }
  .about-layout  { grid-template-columns: 1fr; gap: 2rem; }
  .contact-layout{ grid-template-columns: 1fr; gap: 2rem; }
  .footer-top    { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: rgba(8,14,28,0.98);
    backdrop-filter: blur(16px);
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    gap: 0.2rem;
    z-index: 999;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.75rem 1rem; }
  .btn-nav { text-align: center; }
  .hero-ctas  { flex-direction: column; align-items: center; }
  .hero-stats { gap: 1.25rem; }
  .stat-sep   { display: none; }
  .services-grid  { grid-template-columns: 1fr; }
  .tech-grid      { grid-template-columns: 1fr; }
  .tools-grid     { grid-template-columns: 1fr; }
  .resources-grid { grid-template-columns: 1fr; }
  .clients-grid   { grid-template-columns: repeat(2, 1fr); }
  .why-grid       { grid-template-columns: 1fr; }
  .form-row       { grid-template-columns: 1fr; }
  .footer-cols    { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom  { flex-direction: column; text-align: center; }
  .tab-btn svg    { display: none; }
}
@media (max-width: 480px) {
  .clients-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-cols  { grid-template-columns: 1fr; }
  .t-input.half { flex: 1 1 100%; }
  .lg-grid      { grid-template-columns: 1fr; }
}

/* ── ROUTING REFERENCE TAB ───────────────────────────────────── */
.ref-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.15rem;
}
.ref-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.3rem;
}
.ref-card h3 {
  font-size: 0.72rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.13em; color: var(--accent-2);
  margin-bottom: 0.9rem; padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.ref-table {
  width: 100%; border-collapse: collapse;
  font-size: 0.73rem; font-family: var(--mono); margin-bottom: 0.6rem;
}
.ref-table th {
  color: var(--txt-muted); font-weight: 700; text-align: left;
  padding: 0.22rem 0.4rem; font-size: 0.65rem; letter-spacing: 0.06em;
  text-transform: uppercase; border-bottom: 1px solid var(--border);
}
.ref-table td {
  padding: 0.22rem 0.4rem; border-bottom: 1px solid rgba(255,255,255,0.03);
  color: var(--txt-secondary); vertical-align: top;
}
.ref-table td:first-child { color: var(--accent-2); white-space: nowrap; }
.ref-table tr:hover td { background: rgba(255,255,255,0.03); }
.ref-sub { font-size: 0.67rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--txt-muted); margin: 0.65rem 0 0.3rem; }
.ref-note { font-size: 0.7rem; color: var(--txt-muted); line-height: 1.5; margin-top: 0.4rem; font-family: var(--mono); }

/* ── DTMF KEYPAD ─────────────────────────────────────────────── */
.dtmf-wrap { display: flex; flex-direction: column; gap: 0.5rem; }
.dtmf-seq {
  font-family: var(--mono);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent-2);
  letter-spacing: 0.18em;
  min-height: 2.2rem;
  text-align: center;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.75rem;
}
.dtmf-pad {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
}
.dtmf-key {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--txt-primary);
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.6rem 0.25rem;
  cursor: pointer;
  line-height: 1.2;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
  display: flex; flex-direction: column; align-items: center; gap: 1px;
}
.dtmf-key small { font-size: 0.58rem; font-weight: 400; color: var(--txt-muted); }
.dtmf-key:hover  { background: var(--bg-card-hover); border-color: var(--border-accent); }
.dtmf-key:active { background: rgba(91,140,255,0.25); }
.dtmf-clear {
  background: none; border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--txt-muted);
  font-size: 0.75rem; padding: 0.3rem; cursor: pointer;
  transition: color var(--dur), border-color var(--dur);
}
.dtmf-clear:hover { color: var(--accent-2); border-color: var(--border-accent); }

/* ── SIP REFERENCE TABLE ─────────────────────────────────────── */
.sip-table-wrap { overflow-y: auto; max-height: 280px; }
.sip-table {
  width: 100%; border-collapse: collapse;
  font-size: 0.76rem; font-family: var(--mono);
}
.sip-table th {
  position: sticky; top: 0; background: var(--bg-alt);
  color: var(--txt-muted); font-weight: 700; text-align: left;
  padding: 0.35rem 0.6rem; border-bottom: 1px solid var(--border);
  font-size: 0.67rem; letter-spacing: 0.06em; text-transform: uppercase;
}
.sip-table td { padding: 0.25rem 0.6rem; border-bottom: 1px solid rgba(255,255,255,0.03); color: var(--txt-secondary); }
.sip-table tr:hover td { background: rgba(255,255,255,0.03); }
.sip-table .sip-group td { color: var(--accent-2); font-weight: 700; background: rgba(61,86,147,0.15); font-family: var(--font); }
.sip-table td:first-child { color: var(--accent-2); width: 3.5rem; }

/* ── WIFI CHANNEL TABLE ──────────────────────────────────────── */
.wifi-ch-wrap { overflow-y: auto; max-height: 260px; }
.wifi-ch-table { width: 100%; border-collapse: collapse; font-size: 0.75rem; font-family: var(--mono); }
.wifi-ch-table th {
  position: sticky; top: 0; background: var(--bg-alt);
  color: var(--txt-muted); font-weight: 700; text-align: left;
  padding: 0.35rem 0.5rem; border-bottom: 1px solid var(--border);
  font-size: 0.67rem; letter-spacing: 0.06em; text-transform: uppercase;
}
.wifi-ch-table td { padding: 0.22rem 0.5rem; border-bottom: 1px solid rgba(255,255,255,0.03); color: var(--txt-secondary); }
.wifi-ch-table tr:hover td { background: rgba(255,255,255,0.03); }
.wifi-ch-table td:first-child { color: var(--accent-2); }
.wifi-ch-table .ch-nonov td:first-child { color: #86efac; font-weight: 700; }
.wifi-ch-table .ch-dfs td:nth-child(3) { color: #f59e0b; }

/* ── Widget expand button ─────────────────────────────────────── */
.tool-h {
  position: relative;
}
.tool-expand-btn {
  margin-left: auto;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--txt-muted);
  padding: 0.25rem 0.3rem;
  cursor: pointer;
  opacity: 0;
  transition: opacity var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
  line-height: 0;
}
.tool-card:hover .tool-expand-btn,
.tool-expand-btn:focus-visible {
  opacity: 1;
  border-color: var(--border);
}
.tool-expand-btn:hover {
  color: var(--accent-2);
  border-color: var(--accent-2);
}
.in-modal .tool-expand-btn {
  display: none;
}

/* ── Widget modal overlay ─────────────────────────────────────── */
body.modal-open { overflow: hidden; }

.widget-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.widget-modal[hidden] { display: none; }

.widget-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.widget-modal-frame {
  position: relative;
  z-index: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: min(95vw, 1100px);
  max-height: 90vh;
  overflow-y: auto;
  padding: 1.5rem 1.75rem 1.75rem;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
  animation: modalIn 0.18s var(--ease) both;
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to   { opacity: 1; transform: scale(1)    translateY(0);   }
}

.widget-modal-close {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  float: right;
  position: sticky;
  top: 0;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--txt-secondary);
  padding: 0.3rem 0.65rem;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
  margin-bottom: 1rem;
  z-index: 2;
}
.widget-modal-close:hover { color: var(--accent-2); border-color: var(--accent-2); }

.widget-modal-body .tool-card {
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
  margin: 0;
}
.widget-modal-body .tool-card.in-modal .t-result {
  max-height: 55vh;
  overflow-y: auto;
}

.widget-placeholder {
  display: none;
}

/* ── Route Views Terminal ─────────────────────────────────────── */
.rv-card { grid-column: 1 / -1; }  /* full width across tools grid */

.rv-terminal {
  height: 420px;
  margin-top: 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  overflow: hidden;
  background: #0d1117;
}
.rv-terminal .xterm { height: 100%; padding: 4px; }
.rv-terminal .xterm-viewport { border-radius: var(--radius-sm); }
.in-modal .rv-terminal { height: 62vh; }

.rv-cmds {
  gap: 0.4rem;
  flex-wrap: wrap;
}
.t-btn-cmd {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--txt-secondary);
  font-size: 0.78rem;
  font-family: 'JetBrains Mono', monospace;
  padding: 0.28rem 0.6rem;
  cursor: pointer;
  white-space: nowrap;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.t-btn-cmd:hover { color: var(--accent-2); border-color: var(--accent-2); }
.t-btn-cmd:disabled { opacity: 0.4; cursor: not-allowed; }
