/* ===========================================================
   Global Link Solutions — shared stylesheet
   Dark theme · cyan/blue accent
   =========================================================== */

:root {
  --accent: #22d3ee;          /* cyan */
  --accent-2: #3b82f6;        /* blue */
  --accent-3: #5eead4;        /* teal highlight */
  --accent-ink: #04141a;

  --bg: #0a0e14;
  --bg-2: #0e141d;
  --bg-elevated: #121a25;
  --bg-card: #0f1722;

  --line: #1c2733;
  --line-strong: #2a3947;

  --ink: #f3f7fb;
  --ink-2: #c3cedb;
  --ink-3: #8a99a9;
  --ink-4: #5d6b7a;

  --font-display: "Archivo", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;

  --container: 1200px;
  --gutter: clamp(20px, 4vw, 56px);
  --section-y: clamp(64px, 8vw, 120px);
  --radius: 14px;
  --radius-sm: 9px;
  --radius-lg: 22px;

  --glow: 0 0 0 1px rgba(34, 211, 238, .18), 0 18px 50px -18px rgba(34, 211, 238, .35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; max-width: 100vw; overflow-x: clip; }

body {
  background:
    radial-gradient(1100px 600px at 80% -10%, rgba(59, 130, 246, .12), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(34, 211, 238, .10), transparent 55%),
    var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
button { font: inherit; color: inherit; cursor: pointer; }
::selection { background: var(--accent); color: var(--accent-ink); }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  letter-spacing: -.02em;
  color: var(--ink);
  margin: 0;
  font-weight: 700;
  text-wrap: balance;
}
h1 { font-size: clamp(40px, 6vw, 84px); line-height: 1.0; letter-spacing: -.035em; }
h2 { font-size: clamp(30px, 4.2vw, 56px); line-height: 1.04; letter-spacing: -.03em; }
h3 { font-size: clamp(20px, 2.2vw, 27px); line-height: 1.18; }
h4 { font-size: 18px; line-height: 1.3; }
p  { color: var(--ink-2); margin: 0; text-wrap: pretty; }

.container { max-width: var(--container); padding: 0 var(--gutter); margin: 0 auto; }
.section { padding: var(--section-y) 0; }
.section-tight { padding: calc(var(--section-y) * .55) 0; }

.eyebrow {
  font-family: var(--font-mono);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  font-size: 12px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before { content: ""; width: 26px; height: 1.5px; background: var(--accent); }

.lede {
  color: var(--ink-2);
  max-width: 62ch;
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.55;
}

.gradient-text {
  background: linear-gradient(100deg, var(--accent-3), var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(100deg, var(--accent-3), var(--accent), var(--accent-2));
  color: var(--accent-ink);
  box-shadow: 0 14px 34px -14px rgba(34, 211, 238, .6);
}
.btn-primary:hover { box-shadow: 0 18px 44px -12px rgba(34, 211, 238, .8); transform: translateY(-1px); }
.btn-ghost {
  background: rgba(255, 255, 255, .03);
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 13px var(--gutter);
  display: flex;
  align-items: center;
  gap: 20px;
}
.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand svg { width: 34px; height: 34px; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -.01em;
  line-height: 1;
}
.brand-name small {
  display: block;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 9.5px;
  letter-spacing: .26em;
  color: var(--ink-3);
  margin-top: 3px;
}
.nav-links { display: flex; gap: 2px; margin-left: auto; align-items: center; }
.nav-link {
  color: var(--ink-2);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  background: 0 0;
  border: 0;
  transition: color .15s ease, background .15s ease;
}
.nav-link:hover { color: var(--ink); background: rgba(255, 255, 255, .04); }
.nav-link.active { color: var(--accent); }
.nav-cta { margin-left: 8px; }
.nav-toggle { display: none; background: 0 0; border: 0; padding: 8px; }
.nav-toggle svg { width: 26px; height: 26px; stroke: var(--ink); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(48px, 8vw, 110px) 0 clamp(56px, 8vw, 100px); overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero h1 { margin: 18px 0 0; }
.hero .lede { margin-top: 22px; }
.hero-actions { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats {
  margin-top: 44px;
  display: flex;
  gap: 34px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 26px;
}
.hero-stat .num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  color: var(--ink);
}
.hero-stat .lbl { font-size: 13px; color: var(--ink-3); margin-top: 2px; }

/* hero terminal/server art */
.hero-art {
  position: relative;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--bg-elevated), var(--bg-card));
  border: 1px solid var(--line-strong);
  box-shadow: var(--glow);
  overflow: hidden;
}
.term-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .02);
}
.term-dot { width: 11px; height: 11px; border-radius: 50%; }
.term-dot.r { background: #ff5f57; }
.term-dot.y { background: #febc2e; }
.term-dot.g { background: #28c840; }
.term-title {
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-3);
}
.term-body {
  padding: 18px 20px 22px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.85;
  min-height: 280px;
}
.term-line { white-space: pre-wrap; opacity: 1; animation: termIn .35s ease both; }
.term-line .pr { color: var(--accent); }
.term-line .cm { color: var(--ink-4); }
.term-line .ok { color: var(--accent-3); }
.term-line .kw { color: var(--accent-2); }
.cursor {
  display: inline-block;
  width: 8px; height: 16px;
  background: var(--accent);
  vertical-align: -2px;
  animation: blink 1s steps(2) infinite;
}
@keyframes termIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Service cards ---------- */
.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: 0 22px 50px -28px rgba(0,0,0,.8); }
.card-icon {
  width: 46px; height: 46px;
  border-radius: 11px;
  display: grid; place-items: center;
  background: rgba(34, 211, 238, .1);
  border: 1px solid rgba(34, 211, 238, .25);
  margin-bottom: 16px;
}
.card-icon svg { width: 24px; height: 24px; stroke: var(--accent); fill: none; }
.card h3 { font-size: 19px; }
.card p { margin-top: 9px; font-size: 15px; color: var(--ink-3); }
.card ul { margin: 14px 0 0; padding: 0; list-style: none; }
.card ul li {
  font-size: 14px; color: var(--ink-2);
  padding: 5px 0 5px 22px; position: relative;
}
.card ul li::before {
  content: ""; position: absolute; left: 0; top: 12px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 8px rgba(34,211,238,.7);
}

/* section heading block */
.sec-head { max-width: 720px; margin-bottom: 44px; }
.sec-head h2 { margin: 14px 0 0; }
.sec-head p { margin-top: 16px; }

/* ---------- Feature / why rows ---------- */
.feature {
  display: flex; gap: 18px; padding: 22px 0; border-top: 1px solid var(--line);
}
.feature:first-child { border-top: 0; }
.feature .fnum { font-family: var(--font-mono); color: var(--accent); font-size: 14px; padding-top: 4px; }
.feature h4 { font-size: 19px; }
.feature p { margin-top: 7px; color: var(--ink-3); font-size: 15px; }

/* ---------- CTA band ---------- */
.cta-band {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(600px 300px at 90% 0%, rgba(59,130,246,.18), transparent 60%),
    linear-gradient(180deg, var(--bg-elevated), var(--bg-card));
  padding: clamp(34px, 5vw, 60px);
  display: flex; align-items: center; justify-content: space-between;
  gap: 28px; flex-wrap: wrap;
}
.cta-band h2 { font-size: clamp(26px, 3.2vw, 40px); }
.cta-band p { margin-top: 10px; color: var(--ink-2); }

/* ---------- Form ---------- */
.form-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(32px, 5vw, 60px); align-items: start; }
.field { margin-bottom: 18px; }
.field label {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--ink-2); margin-bottom: 7px;
  font-family: var(--font-display);
}
.field .req { color: var(--accent); }
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 0; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, .15);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-note { font-size: 13px; color: var(--ink-4); margin-top: 6px; }

.contact-aside { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; }
.contact-aside h3 { font-size: 18px; }
.contact-item { display: flex; gap: 13px; padding: 16px 0; border-top: 1px solid var(--line); align-items: flex-start; }
.contact-item:first-of-type { border-top: 0; }
.contact-item svg { width: 20px; height: 20px; stroke: var(--accent); fill: none; flex-shrink: 0; margin-top: 2px; }
.contact-item .ci-label { font-size: 12px; color: var(--ink-4); text-transform: uppercase; letter-spacing: .08em; }
.contact-item .ci-value { font-size: 15px; color: var(--ink); margin-top: 2px; }
.contact-item a.ci-value:hover { color: var(--accent); }

.form-success {
  display: none;
  background: rgba(34, 211, 238, .07);
  border: 1px solid rgba(34, 211, 238, .3);
  border-radius: var(--radius);
  padding: 26px;
}
.form-success.show { display: block; }
.form-success h3 { color: var(--accent-3); }
.form-success p { margin-top: 8px; color: var(--ink-2); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); margin-top: 40px; background: var(--bg-2); }
.footer-inner {
  max-width: var(--container); margin: 0 auto; padding: 48px var(--gutter) 30px;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px;
}
.footer .brand { margin-bottom: 14px; }
.footer p { font-size: 14px; color: var(--ink-3); max-width: 38ch; }
.footer h5 { font-family: var(--font-display); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
.footer-col a, .footer-col .fline { display: block; font-size: 14px; color: var(--ink-2); padding: 5px 0; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 18px var(--gutter);
  max-width: var(--container);
  margin: 0 auto;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 13px; color: var(--ink-4);
}

/* ---------- Page header (interior pages) ---------- */
.page-head { padding: clamp(48px, 7vw, 90px) 0 clamp(20px, 3vw, 40px); }
.page-head h1 { font-size: clamp(36px, 5vw, 64px); margin-top: 16px; }
.page-head .lede { margin-top: 18px; }

/* ---------- Responsive ---------- */
/* Collapse nav to a hamburger early enough that the tablet range never overflows */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }

  .nav-links {
    position: fixed;
    inset: 62px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--bg-2);
    border-bottom: 1px solid var(--line);
    padding: 12px var(--gutter) 18px;
    gap: 4px;
    margin-left: 0;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-link { padding: 12px 14px; }
  .nav-cta { margin-left: 0; margin-top: 6px; text-align: center; justify-content: center; }
  .nav-toggle { display: block; margin-left: auto; }
}
@media (max-width: 680px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .cta-band { flex-direction: column; align-items: flex-start; }
}

/* ---------- Specialty: data portals & dashboards ---------- */
.specialty-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.spec-list { list-style: none; padding: 0; margin: 20px 0 0; }
.spec-list li { position: relative; padding: 7px 0 7px 26px; color: var(--ink-2); font-size: 15px; }
.spec-list li::before {
  content: ""; position: absolute; left: 0; top: 13px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 8px rgba(34, 211, 238, .7);
}

/* dashboard mockup */
.dash {
  background: linear-gradient(180deg, var(--bg-elevated), var(--bg-card));
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--glow);
  padding: 20px;
}
.dash-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.dash-title { font-family: var(--font-display); font-weight: 600; font-size: 15px; }
.dash-title small { display: block; font-family: var(--font-mono); font-size: 11px; color: var(--ink-4); margin-top: 2px; letter-spacing: .04em; }
.dash-badge {
  font-family: var(--font-mono); font-size: 11px; color: var(--accent);
  border: 1px solid rgba(34, 211, 238, .3); border-radius: 999px;
  padding: 3px 11px; background: rgba(34, 211, 238, .08);
  display: inline-flex; align-items: center; gap: 6px;
}
.dash-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); animation: blink 1.6s steps(2) infinite; }
.dash-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.dash-tile { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 13px; }
.dash-tile .t-lbl { font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-4); }
.dash-tile .t-val { font-family: var(--font-display); font-weight: 700; font-size: 21px; margin-top: 5px; }
.dash-tile .t-chg { font-family: var(--font-mono); font-size: 11px; margin-top: 3px; color: var(--ink-3); }
.dash-tile .t-chg.up { color: var(--accent-3); }
.dash-tile .t-chg.down { color: #f0a0a0; }
.dash-chart { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 14px 12px; }
.dash-chart-top { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-4); margin-bottom: 12px; font-family: var(--font-mono); }
.dash-bars { display: flex; align-items: flex-end; gap: 8px; height: 104px; }
.dash-bars .bar { flex: 1; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, var(--accent-3), var(--accent-2)); opacity: .55; }
.dash-bars .bar.hot { opacity: 1; }
.dash-axis { display: flex; gap: 8px; margin-top: 8px; }
.dash-axis span { flex: 1; text-align: center; font-family: var(--font-mono); font-size: 10px; color: var(--ink-4); }

@media (max-width: 900px) {
  .specialty-grid { grid-template-columns: 1fr; }
  .specialty-grid .dash { order: 2; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
}
