/* NetworkBites — Landing styles */
:root {
  --bg: #080b12;
  --bg-elevated: #0d1119;
  --surface: #131922;
  --border: rgba(255, 255, 255, 0.06);
  --text: #e8eaed;
  --text-muted: #9aa0a8;
  --accent: #00d4aa;
  --accent-dim: rgba(0, 212, 170, 0.15);
  --coral: #ff6b6b;
  --coral-dim: rgba(255, 107, 107, 0.12);
  --font-head: "Syne", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --space: 1.5rem;
  --radius: 12px;
  --radius-lg: 20px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Background layers */
.noise {
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

.grid-bg {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space) 2rem;
  background: rgba(8, 11, 18, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 10;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo-icon {
  color: var(--accent);
  font-size: 0.9em;
}

.logo em {
  font-style: normal;
  color: var(--accent);
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

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

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
}

.btn-primary:hover {
  background: #00e6b8;
  color: var(--bg);
}

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

.btn-outline:hover {
  border-color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
}

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

.btn-ghost:hover {
  color: var(--text);
}

/* Hero */
.hero {
  position: relative;
  padding: 5rem 2rem 6rem;
  max-width: 52rem;
  margin: 0 auto;
  z-index: 1;
}

.hero-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
}

.hero-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2.25rem, 5.5vw, 3.5rem);
  line-height: 1.15;
  letter-spacing: -0.04em;
  margin: 0 0 1.5rem;
  color: var(--text);
  max-width: 22ch;
}

.hero-title-line {
  display: block;
}

.hero-title-line:first-child {
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.85em;
  letter-spacing: -0.02em;
  margin-bottom: 0.15em;
}

.hero-title-punch {
  font-weight: 800;
  color: var(--accent);
  font-size: 1em;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.hero-desc {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 32rem;
  margin: 0 0 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 4rem;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 140px;
}

.nodes {
  position: relative;
  width: 200px;
  height: 120px;
}

.node {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 20px var(--accent-dim);
  animation: pulse 2s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.2s);
}

.node:nth-child(1) { left: 50%; top: 0; transform: translateX(-50%); }
.node:nth-child(2) { left: 15%; top: 30%; }
.node:nth-child(3) { left: 85%; top: 30%; }
.node:nth-child(4) { left: 0; top: 60%; transform: translateY(-50%); }
.node:nth-child(5) { left: 50%; top: 55%; transform: translate(-50%, -50%); }
.node:nth-child(6) { right: 0; top: 60%; transform: translateY(-50%); }
.node:nth-child(7) { left: 50%; bottom: 0; transform: translateX(-50%); }

.node:nth-child(1) { transform: translateX(-50%); }
.node:nth-child(4) { transform: translateY(-50%); }
.node:nth-child(5) { transform: translate(-50%, -50%); }
.node:nth-child(6) { transform: translateY(-50%); }
.node:nth-child(7) { transform: translateX(-50%); }

@keyframes pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* Sections */
.section {
  position: relative;
  padding: 4rem 2rem;
  max-width: 52rem;
  margin: 0 auto;
  z-index: 1;
}

.section-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
  color: var(--text);
}

.section-desc {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin: 0;
  max-width: 40rem;
}

.section.competencies {
  max-width: 64rem;
}

/* Core competencies */
.competency-grid {
  list-style: none;
  padding: 0;
  margin: 2.5rem 0 0;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.competency-card {
  display: block;
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.competency-card:hover {
  border-color: rgba(0, 212, 170, 0.35);
  box-shadow: 0 0 0 1px rgba(0, 212, 170, 0.12);
  transform: translateY(-2px);
}

.competency-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  font-size: 1.35rem;
  color: var(--accent);
  background: var(--accent-dim);
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.competency-card h3 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.125rem;
  margin: 0 0 0.4rem;
  color: var(--text);
}

.competency-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.55;
}

/* CTA */
.cta {
  padding: 5rem 2rem;
}

.cta-box {
  padding: 3rem;
  background: linear-gradient(135deg, var(--surface) 0%, var(--bg-elevated) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
}

.cta-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin: 0 0 0.5rem;
  color: var(--text);
}

.cta-desc {
  color: var(--text-muted);
  margin: 0 0 1.5rem;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* Footer */
.footer {
  position: relative;
  padding: 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
  z-index: 1;
}

.footer .logo {
  display: inline-flex;
  margin-bottom: 0.75rem;
}

.footer-copy {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
}

/* Mobile */
@media (max-width: 768px) {
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 1rem 2rem;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
  }

  .nav.is-open {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }

  .hero {
    padding: 3rem 1.5rem 4rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .section,
  .cta {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .cta-box {
    padding: 2rem 1.5rem;
  }

  .cta-actions {
    flex-direction: column;
  }

  .cta-actions .btn {
    width: 100%;
  }

  .competency-grid {
    grid-template-columns: 1fr;
  }
}
