/* ==========================================================================
   NetworkingKnights — shared stylesheet
   ========================================================================== */

:root {
  /* Brand palette (matches the logo mark) */
  --navy-950: #0b121a;
  --navy-900: #111c27;
  --navy-800: #16222e;
  --navy-700: #1e2e3d;

  --steel-100: #e7edf3;
  --steel-300: #b7c3d0;
  --steel-500: #8ea3b8;
  --steel-700: #5b6b7d;

  --cyan-400: #22d3ee;
  --cyan-500: #0f8fae;
  --cyan-600: #0b7288;

  --gold-500: #c9a866;
  --gold-600: #a9884f;

  --ink: #1f2733;
  --ink-soft: #52606d;
  --paper: #ffffff;
  --paper-tint: #f5f8fa;
  --border-soft: #e1e8ed;

  --danger: #c0392b;
  --success: #1e8e5a;

  --font-head: "Rajdhani", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  --shadow-card: 0 1px 2px rgba(11, 18, 26, 0.06), 0 8px 24px rgba(11, 18, 26, 0.06);
  --shadow-card-hover: 0 4px 10px rgba(11, 18, 26, 0.08), 0 16px 32px rgba(11, 18, 26, 0.1);

  --header-h: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--cyan-600);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  color: var(--navy-900);
  margin: 0 0 0.6em;
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan-600);
  margin-bottom: 0.75em;
}

.section {
  padding: 88px 0;
}

.section-tint {
  background: var(--paper-tint);
}

.section-dark {
  background: var(--navy-950);
  color: var(--steel-300);
}

.section-dark h2, .section-dark h3 {
  color: var(--steel-100);
}

.section-head {
  max-width: 680px;
  margin: 0 0 48px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

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

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

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--cyan-500);
  color: #fff;
  border-color: var(--cyan-500);
}

.btn-primary:hover {
  background: var(--cyan-600);
  border-color: var(--cyan-600);
  transform: translateY(-1px);
}

.btn-gold {
  background: var(--gold-500);
  color: var(--navy-950);
  border-color: var(--gold-500);
}

.btn-gold:hover {
  background: var(--gold-600);
  border-color: var(--gold-600);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--steel-100);
  border-color: var(--steel-700);
}

.btn-outline:hover {
  border-color: var(--cyan-400);
  color: var(--cyan-400);
}

.btn-outline-dark {
  background: transparent;
  color: var(--navy-900);
  border-color: var(--border-soft);
}

.btn-outline-dark:hover {
  border-color: var(--cyan-500);
  color: var(--cyan-600);
}

.btn-block { width: 100%; justify-content: center; }
.btn-sm { padding: 9px 18px; font-size: 0.9rem; }

/* ---------- Header / nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: var(--navy-950);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: inline-block;
  color: var(--steel-300);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: color 0.15s ease, background 0.15s ease;
}

.nav-links a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.nav-links a.active {
  color: var(--cyan-400);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--steel-100);
}

.nav-toggle svg { width: 26px; height: 26px; }

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

.hero {
  position: relative;
  background: radial-gradient(ellipse at 20% 0%, #16222e 0%, var(--navy-950) 55%);
  color: var(--steel-300);
  padding: 96px 0 110px;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  color: #fff;
}

.hero h1 .accent { color: var(--cyan-400); }

.hero-lede {
  font-size: 1.15rem;
  color: var(--steel-300);
  max-width: 52ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
}

.hero-art {
  display: flex;
  justify-content: center;
}

.hero-art img {
  width: 100%;
  max-width: 320px;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.45));
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-row .stat-num {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 600;
  color: var(--cyan-400);
}

.stat-row .stat-label {
  font-size: 0.9rem;
  color: var(--steel-500);
}

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

.grid {
  display: grid;
  gap: 28px;
}

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

.card {
  background: var(--paper);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.card-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  background: linear-gradient(160deg, var(--navy-900), var(--navy-800));
  color: var(--cyan-400);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.card-icon svg { width: 24px; height: 24px; }

/* Project cards */

.project-card {
  background: var(--paper);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.project-card-top {
  height: 8px;
  background: linear-gradient(90deg, var(--cyan-500), var(--gold-500));
}

.project-card-body {
  padding: 26px 26px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 16px;
}

.tag {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--cyan-600);
  background: rgba(15, 143, 174, 0.09);
  border: 1px solid rgba(15, 143, 174, 0.2);
  padding: 4px 10px;
  border-radius: 999px;
}

.status-pill {
  font-size: 0.76rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  display: inline-block;
}

.status-live { color: var(--success); background: rgba(30, 142, 90, 0.1); border: 1px solid rgba(30, 142, 90, 0.25); }
.status-dev { color: var(--gold-600); background: rgba(201, 168, 102, 0.12); border: 1px solid rgba(201, 168, 102, 0.3); }
.status-archived { color: var(--ink-soft); background: rgba(82, 96, 109, 0.1); border: 1px solid rgba(82, 96, 109, 0.22); }

/* Product / download cards */

.product-card {
  background: var(--paper);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.product-head {
  display: flex;
  align-items: center;
  gap: 16px;
}

.product-icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  background: var(--navy-950);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan-400);
}

.product-icon svg { width: 28px; height: 28px; }

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.86rem;
  color: var(--ink-soft);
  border-top: 1px solid var(--border-soft);
  padding-top: 14px;
}

.product-meta strong { color: var(--ink); }

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

.site-footer {
  background: var(--navy-950);
  color: var(--steel-500);
  padding: 64px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-grid .brand img { height: 30px; }

.footer-tagline {
  margin: 16px 0 0;
  max-width: 34ch;
  font-size: 0.92rem;
}

.footer-col h4 {
  color: var(--steel-100);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  color: var(--steel-500);
  font-size: 0.94rem;
}

.footer-col a:hover { color: var(--cyan-400); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.84rem;
}

/* ---------- Forms ---------- */

.form-field {
  margin-bottom: 20px;
}

.form-field label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 6px;
  color: var(--navy-900);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 12px 14px;
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--cyan-500);
  box-shadow: 0 0 0 3px rgba(15, 143, 174, 0.15);
}

.form-field textarea { resize: vertical; min-height: 140px; }

.form-error {
  color: var(--danger);
  font-size: 0.86rem;
  margin-top: 6px;
  display: none;
}

.form-field.invalid input,
.form-field.invalid textarea,
.form-field.invalid select {
  border-color: var(--danger);
}

.form-field.invalid .form-error { display: block; }

.form-note {
  font-size: 0.86rem;
  color: var(--ink-soft);
  margin-top: -6px;
}

.form-success {
  display: none;
  background: rgba(30, 142, 90, 0.1);
  border: 1px solid rgba(30, 142, 90, 0.3);
  color: var(--success);
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
  font-weight: 600;
}

.form-fail {
  display: none;
  background: rgba(192, 57, 43, 0.08);
  border: 1px solid rgba(192, 57, 43, 0.3);
  color: var(--danger);
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
  font-weight: 600;
}

/* ---------- Misc ---------- */

.contact-info-card {
  background: var(--navy-950);
  color: var(--steel-300);
  border-radius: var(--radius-lg);
  padding: 34px;
}

.contact-info-card h3 { color: #fff; }

.contact-info-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 22px;
}

.contact-info-row svg {
  width: 22px;
  height: 22px;
  color: var(--cyan-400);
  flex-shrink: 0;
  margin-top: 2px;
}

.breadcrumb-bar {
  background: var(--navy-950);
  color: var(--steel-300);
  padding: 46px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.breadcrumb-bar p {
  color: var(--steel-500);
  max-width: 60ch;
  margin: 0;
}

.value-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.value-list li {
  display: flex;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border-soft);
}

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

.value-list svg {
  width: 22px;
  height: 22px;
  color: var(--cyan-500);
  flex-shrink: 0;
  margin-top: 3px;
}

.value-list h4 { margin: 0 0 4px; font-size: 1.05rem; }
.value-list p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }

.cta-band {
  background: linear-gradient(135deg, var(--navy-950), var(--navy-800));
  color: #fff;
  text-align: center;
  padding: 72px 0;
}

.cta-band h2 { color: #fff; }
.cta-band p { color: var(--steel-300); max-width: 60ch; margin: 0 auto 28px; }
.cta-band .hero-actions { justify-content: center; }

.notice-band {
  background: rgba(201, 168, 102, 0.1);
  border: 1px solid rgba(201, 168, 102, 0.3);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  font-size: 0.92rem;
  color: var(--gold-600);
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.notice-band svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-art img { max-width: 220px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stat-row { grid-template-columns: repeat(3, 1fr); gap: 12px; }
}

@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }

  .nav-links {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--navy-950);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 8px 20px 20px;
    gap: 2px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a { padding: 12px 10px; }

  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .section { padding: 64px 0; }
  .stat-row { grid-template-columns: 1fr; text-align: center; gap: 20px; }
}
