/* ============================================================
   Steadfast Technology Group — shared stylesheet
   ============================================================ */

:root {
  --bg: #05080f;
  --bg-alt: #070b15;
  --panel: #0c1424;
  --panel-2: #0f1a2e;
  --border: #1a2740;
  --border-soft: #131f36;

  --blue-bright: #14c2ff;
  --blue-mid: #0090e8;
  --blue-deep: #0a2a5c;
  --blue-glow: rgba(20, 194, 255, 0.35);

  --text: #eef4fb;
  --text-dim: #9db0cc;
  --text-faint: #63769a;

  --radius: 14px;
  --radius-sm: 8px;

  --font-head: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  --maxw: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(20, 194, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 194, 255, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 100% 60% at 50% 0%, black 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 100% 60% at 50% 0%, black 0%, transparent 75%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background: radial-gradient(ellipse 60% 40% at 50% -5%, rgba(10, 60, 120, 0.35), transparent 60%);
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  margin: 0 0 0.5em 0;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em 0; color: var(--text-dim); }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-bright);
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--blue-bright);
  box-shadow: 0 0 8px var(--blue-glow);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue-bright), var(--blue-mid));
  color: #03101f;
  box-shadow: 0 0 0 rgba(20, 194, 255, 0);
}

.btn-primary:hover {
  box-shadow: 0 6px 24px var(--blue-glow);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-ghost:hover {
  border-color: var(--blue-mid);
  color: var(--blue-bright);
}

/* ---------- Header / Nav ---------- */

header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 8, 15, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  height: 34px;
  width: auto;
}

.brand-text {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.brand-text span {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  color: var(--text-faint);
  text-transform: uppercase;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-dim);
  position: relative;
  padding: 4px 0;
  transition: color 0.15s ease;
}

.nav-links a:hover { color: var(--text); }

.nav-links a.active { color: var(--blue-bright); }

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background: var(--blue-bright);
  box-shadow: 0 0 8px var(--blue-glow);
}

.nav-cta { display: flex; align-items: center; gap: 18px; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  width: 40px;
  height: 40px;
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

@media (max-width: 860px) {
  .nav-links {
    position: fixed;
    top: 65px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border-soft);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .nav-links.open { max-height: 320px; }
  .nav-links a {
    width: 100%;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-soft);
  }
  .nav-cta .btn-primary { display: none; }
  .nav-toggle { display: flex; }
}

/* ---------- Hero ---------- */

.hero {
  padding: 96px 0 80px;
  text-align: center;
}

.hero-logo {
  width: 100%;
  max-width: 400px;
  margin: 0 auto 36px;
}

.hero h1 {
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  max-width: 820px;
  margin: 0 auto 20px;
  line-height: 1.12;
}

.hero h1 .accent {
  background: linear-gradient(135deg, var(--blue-bright), #7fdcff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .lead {
  max-width: 640px;
  margin: 0 auto 36px;
  font-size: 1.08rem;
  color: var(--text-dim);
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Stats strip ---------- */

.stats {
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  padding: 40px 0;
  background: linear-gradient(180deg, rgba(15, 26, 46, 0.4), transparent);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stats-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }

.stat-num {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  color: var(--blue-bright);
  text-shadow: 0 0 18px var(--blue-glow);
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-faint);
  margin-top: 6px;
  letter-spacing: 0.02em;
}

@media (max-width: 760px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Sections ---------- */

section { padding: 88px 0; }

.section-head {
  max-width: 640px;
  margin: 0 auto 52px;
  text-align: center;
}

.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }

.section-head p { font-size: 1.04rem; }

/* ---------- Cards / grid ---------- */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr; }
}

.card {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.card:hover {
  border-color: var(--blue-mid);
  transform: translateY(-3px);
}

.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--blue-deep), var(--panel));
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--blue-bright);
  font-size: 1.3rem;
}

.card h3 { font-size: 1.15rem; margin-bottom: 10px; }

.card p { font-size: 0.95rem; margin-bottom: 0; }

.card a.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--blue-bright);
}

/* ---------- Service detail blocks ---------- */

.service-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 56px 0;
  border-bottom: 1px solid var(--border-soft);
}

.service-block:last-child { border-bottom: none; }

.service-block.reverse .service-copy { order: 2; }
.service-block.reverse .service-visual { order: 1; }

@media (max-width: 820px) {
  .service-block, .service-block.reverse {
    grid-template-columns: 1fr;
  }
  .service-block.reverse .service-copy,
  .service-block.reverse .service-visual { order: unset; }
}

.service-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-bright);
  background: rgba(20, 194, 255, 0.08);
  border: 1px solid rgba(20, 194, 255, 0.25);
  border-radius: 999px;
  padding: 5px 14px;
  margin-bottom: 16px;
}

.service-copy h3 { font-size: 1.55rem; margin-bottom: 14px; }

.check-list {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.check-list li {
  display: flex;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-dim);
}

.check-list li::before {
  content: "";
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  border-radius: 5px;
  background: rgba(20, 194, 255, 0.12);
  border: 1px solid var(--blue-mid);
  position: relative;
}

.check-list li::after {
  content: "";
  position: absolute;
  margin-left: 6px;
  margin-top: 6px;
  width: 6px;
  height: 10px;
  border-right: 2px solid var(--blue-bright);
  border-bottom: 2px solid var(--blue-bright);
  transform: rotate(45deg);
}

.service-visual {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  background: linear-gradient(155deg, var(--panel-2), var(--bg-alt));
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.service-visual::before {
  content: "";
  position: absolute;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, var(--blue-glow), transparent 60%);
  opacity: 0.5;
  top: -50%;
  left: -50%;
}

.service-visual .glyph {
  font-size: 3.6rem;
  color: var(--blue-bright);
  position: relative;
  z-index: 1;
  text-shadow: 0 0 30px var(--blue-glow);
}

/* ---------- Panels / About ---------- */

.panel {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
}

.two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: start;
}

@media (max-width: 860px) {
  .two-col { grid-template-columns: 1fr; }
}

.credential-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}

.credential-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-soft);
  font-size: 0.95rem;
}

.credential-list li:last-child { border-bottom: none; }

.credential-list .cred-name { color: var(--text); font-weight: 500; }
.credential-list .cred-detail { color: var(--text-faint); text-align: right; }

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.pill {
  font-size: 0.82rem;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-dim);
  background: var(--bg-alt);
}

/* ---------- CTA band ---------- */

.cta-band {
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  background: radial-gradient(ellipse 70% 100% at 50% 0%, rgba(20,194,255,0.08), transparent 70%);
  text-align: center;
  padding: 76px 0;
}

.cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 14px; }
.cta-band p { max-width: 520px; margin: 0 auto 30px; }

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
}

@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-info-row {
  display: flex;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border-soft);
}

.contact-info-row:last-child { border-bottom: none; }

.contact-info-row .ci-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 8px;
  background: rgba(20, 194, 255, 0.1);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-bright);
}

.contact-info-row .ci-label {
  font-size: 0.78rem;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 3px;
}

.contact-info-row .ci-value { color: var(--text); font-weight: 500; }
.contact-info-row .ci-value a:hover { color: var(--blue-bright); }

form.contact-form {
  display: grid;
  gap: 18px;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

label {
  display: block;
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-bottom: 7px;
  font-weight: 500;
}

input, select, textarea {
  width: 100%;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.15s ease;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--blue-mid);
}

textarea { resize: vertical; min-height: 120px; }

.form-note {
  font-size: 0.82rem;
  color: var(--text-faint);
  margin-top: 4px;
}

/* ---------- Footer ---------- */

footer.site-footer {
  border-top: 1px solid var(--border-soft);
  padding: 48px 0 32px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand img { height: 28px; }

.footer-brand-text {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
}

.footer-cols {
  display: flex;
  gap: 64px;
  flex-wrap: wrap;
}

.footer-col h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  margin-bottom: 14px;
}

.footer-col a, .footer-col p {
  display: block;
  font-size: 0.9rem;
  color: var(--text-dim);
  margin-bottom: 10px;
}

.footer-col a:hover { color: var(--blue-bright); }

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border-soft);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--text-faint);
}

/* ---------- Page header (Services / About / Contact) ---------- */

.page-header {
  padding: 72px 0 56px;
  text-align: center;
  border-bottom: 1px solid var(--border-soft);
}

.page-header h1 { font-size: clamp(2rem, 4vw, 2.8rem); }

.page-header p {
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
}

.fade-up {
  animation: fadeUp 0.6s ease both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Scroll-reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(.22,.61,.36,1), transform 0.8s cubic-bezier(.22,.61,.36,1);
}

.reveal.in-view {
  opacity: 1;
  transform: none;
}

.grid-3 .reveal:nth-child(1) { transition-delay: 0ms; }
.grid-3 .reveal:nth-child(2) { transition-delay: 100ms; }
.grid-3 .reveal:nth-child(3) { transition-delay: 200ms; }

.stats-grid > .reveal:nth-child(1) { transition-delay: 0ms; }
.stats-grid > .reveal:nth-child(2) { transition-delay: 100ms; }
.stats-grid > .reveal:nth-child(3) { transition-delay: 200ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .fade-up { transition: none !important; animation: none !important; opacity: 1 !important; transform: none !important; }
}

/* Clear the sticky header when jumping to an anchored section */
section[id] { scroll-margin-top: 92px; }

/* ---------- Stat counters ---------- */

.stat-num { font-variant-numeric: tabular-nums; }

/* ---------- Dot nav (scroll progress) ---------- */

.dot-nav {
  position: fixed;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.dot-nav::before {
  content: "";
  position: absolute;
  top: -16px;
  bottom: -16px;
  left: 50%;
  width: 1px;
  background: var(--border);
  z-index: -1;
}

.dot-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
}

.dot-link .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.dot-link:hover .dot { border-color: var(--blue-mid); }

.dot-link.active .dot {
  background: var(--blue-bright);
  border-color: var(--blue-bright);
  box-shadow: 0 0 10px var(--blue-glow);
  transform: scale(1.35);
}

.dot-label {
  position: absolute;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.72rem;
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: 0.03em;
  white-space: nowrap;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.dot-link:hover .dot-label,
.dot-link:focus-visible .dot-label {
  opacity: 1;
}

@media (max-width: 980px) {
  .dot-nav { display: none; }
}
