:root {
  --bg: #0b0d12;
  --bg-alt: #11141b;
  --surface: #161a23;
  --surface-2: #1c2230;
  --border: #232a39;
  --text: #e7ecf3;
  --muted: #8a93a6;
  --accent: #7c5cff;
  --accent-2: #22c1c3;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  --max: 1140px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

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

/* Non-production environment banner (added by script.js) */
.env-banner {
  background: #f5a524;
  color: #1a1200;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 6px 16px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 13, 18, 0.85);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 104px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
/* Tall enough for the "Join Us To Grow Together" tagline to stay legible. */
.brand-logo {
  display: block;
  height: 84px;
  width: auto;
  max-width: 100%;
  border-radius: 8px;
}

.nav a {
  margin-left: 22px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  transition: color .15s ease;
}
.nav a:hover { color: var(--text); }

/* Hero */
.hero {
  padding: 96px 0 72px;
  background:
    radial-gradient(800px 300px at 20% 0%, rgba(124, 92, 255, 0.18), transparent 60%),
    radial-gradient(700px 280px at 90% 10%, rgba(34, 193, 195, 0.12), transparent 60%),
    var(--bg);
  border-bottom: 1px solid var(--border);
}
.hero h1 {
  font-size: clamp(36px, 5.5vw, 60px);
  margin: 0 0 18px;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede {
  color: var(--muted);
  font-size: 18px;
  max-width: 680px;
  margin: 0 0 28px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .08s ease, background .15s ease, border-color .15s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #5d3dff);
  color: white;
}
.btn-primary:hover { transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--muted); }

/* Sections */
.section { padding: 72px 0; }
/* Keep anchor targets clear of the sticky header. */
section[id] { scroll-margin-top: 116px; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { margin-bottom: 32px; }
.section-head h2 {
  font-size: 28px;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.section-head p { color: var(--muted); margin: 0; }

/* Grid + cards */
.grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform .12s ease, border-color .15s ease, background .15s ease;
}
.card:hover {
  transform: translateY(-2px);
  border-color: #2e3650;
  background: var(--surface-2);
}
.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 14px;
  color: white;
  letter-spacing: 0.5px;
}
.card-cat {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.card h3 { margin: 0; font-size: 18px; }
.card .tagline { color: var(--text); margin: 0; font-weight: 500; }
.card .desc { color: var(--muted); margin: 0; font-size: 14px; }
.card-cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--accent);
  font-size: 14px;
}
.card-cta::after {
  content: "→";
  transition: transform .15s ease;
}
.card:hover .card-cta::after { transform: translateX(3px); }

/* Contact */
.section-contact { text-align: center; }
.section-contact h2 { font-size: 28px; margin: 0 0 8px; }
.section-contact p { color: var(--muted); margin: 0 0 22px; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 22px 0;
  color: var(--muted);
  font-size: 14px;
}
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.muted { color: var(--muted); }

@media (max-width: 600px) {
  .hero { padding: 72px 0 48px; }
  .section { padding: 56px 0; }
  .nav a { margin-left: 14px; }
  /* Stack logo over the nav so the logo keeps its full width on phones. */
  .header-inner {
    flex-direction: column;
    gap: 8px;
    min-height: 0;
  }
  .brand-logo { height: 72px; }
  .nav a:first-child { margin-left: 0; }
  section[id] { scroll-margin-top: 140px; }
}
