/* ─── Custom Properties ──────────────────────────────────────────────────────── */
:root {
  --bg:          #0a0a0f;
  --bg-card:     #12121a;
  --bg-surface:  #1a1a28;
  --bg-input:    #0a0a0f;
  --border:      rgba(255, 255, 255, 0.08);
  --text:        #e2e8f0;
  --muted:       #94a3b8;
  --accent:      #4f8ef7;
  --accent-2:    #8b5cf6;
  --danger:      #f87171;
  --radius-card: 8px;
  --radius-btn:  6px;
  --transition:  0.2s ease;
}

/* ─── Reset & Base ───────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

/* ─── Layout ─────────────────────────────────────────────────────────────────── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section { padding: 5rem 0; }
section:nth-child(even) { background: var(--bg-surface); }

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2.5rem;
  text-align: center;
  letter-spacing: -0.02em;
}
.section-title::after {
  content: '';
  display: block;
  width: 3rem;
  height: 3px;
  background: var(--accent);
  margin: 0.6rem auto 0;
  border-radius: 2px;
}

/* ─── Buttons ────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.65rem 1.5rem;
  border-radius: 99px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: opacity var(--transition), transform var(--transition), border-color var(--transition), color var(--transition);
}
.btn:hover  { opacity: 0.85; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--accent); color: #fff; }
.btn-outline  {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
  border-radius: 99px;
}
.btn-apply {
  background: var(--bg-surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  margin-top: 1rem;
  width: 100%;
  text-align: center;
  transition: border-color var(--transition), color var(--transition);
}
.btn-apply:hover { border-color: var(--accent); color: var(--accent); opacity: 1; transform: none; }
.btn-full { width: 100%; text-align: center; padding: 0.85rem; }

/* ─── Header / Nav ───────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.logo { font-size: 1.2rem; font-weight: 700; color: #fff; text-decoration: none; }
.logo span { color: var(--accent); }

nav { display: flex; align-items: center; gap: 1.5rem; }
nav a { color: var(--muted); text-decoration: none; font-size: 0.95rem; transition: color var(--transition); }
nav a:hover { color: var(--text); }

/* ─── Hero ───────────────────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(79, 142, 247, 0.14) 0%, transparent 65%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg) 100%);
  padding: 5rem 0;
}

.hero-inner { text-align: center; }

.hero h1,
#hero h1 {
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1.2rem;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto 2.5rem;
}

/* ─── Why Join Grid ──────────────────────────────────────────────────────────── */
.why-join .cards-grid,
.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 1.75rem 1.5rem;
  transition: border-color var(--transition), transform var(--transition);
}
.card:hover { border-color: var(--accent); transform: translateY(-3px); }

.card-icon { font-size: 2rem; margin-bottom: 0.9rem; }
.card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; color: #fff; }
.card p  { color: var(--muted); font-size: 0.93rem; }

/* ─── Roles Filter Bar ───────────────────────────────────────────────────────── */
.filter-bar,
.roles-filter {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.filter-bar::-webkit-scrollbar,
.roles-filter::-webkit-scrollbar { display: none; }

.filter-btn {
  padding: 0.45rem 1.1rem;
  border-radius: 99px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-size: 0.9rem;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all var(--transition);
}
.filter-btn:hover  { border-color: var(--accent); color: var(--accent); }
.filter-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ─── Roles Grid ─────────────────────────────────────────────────────────────── */
.roles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.role-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.role-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 18px rgba(79, 142, 247, 0.15);
  transform: translateY(-3px);
}
.role-card.hidden { display: none; }

.role-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.role-header h3 { font-size: 1.05rem; line-height: 1.3; color: #fff; }

/* ─── Badges ─────────────────────────────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-btn);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.badge-full-time {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}
.badge-part-time {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.3);
}
.badge-contract {
  background: rgba(139, 92, 246, 0.15);
  color: #a78bfa;
  border: 1px solid rgba(139, 92, 246, 0.3);
}
.badge-freelance {
  background: rgba(249, 115, 22, 0.15);
  color: #fb923c;
  border: 1px solid rgba(249, 115, 22, 0.3);
}

.role-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}
.role-salary { color: var(--accent); font-weight: 600; }

.role-desc { font-size: 0.93rem; color: var(--muted); margin-bottom: 1rem; }

/* ─── Requirements List ──────────────────────────────────────────────────────── */
.requirements {
  list-style: none;
  margin-bottom: 0.5rem;
  flex: 1;
}
.requirements li {
  font-size: 0.88rem;
  color: var(--muted);
  padding: 0.22rem 0 0.22rem 1.4rem;
  position: relative;
}
.requirements li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.8rem;
  line-height: 1.6;
}

/* ─── How We Work ────────────────────────────────────────────────────────────── */
.how-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.how-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 1.75rem 1.5rem;
  transition: border-color var(--transition);
}
.how-item:hover { border-color: var(--accent-2); }
.how-item h3 { font-size: 1.05rem; margin-bottom: 0.6rem; color: #fff; }
.how-item p  { font-size: 0.93rem; color: var(--muted); }
.how-accent  { color: var(--accent); }

/* ─── Apply Section ──────────────────────────────────────────────────────────── */
.apply-inner { max-width: 600px; margin: 0 auto; }
.apply-sub   { text-align: center; color: var(--muted); margin-bottom: 2rem; }

.form-group { margin-bottom: 1.2rem; }
.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  color: var(--text);
  font-size: 0.95rem;
  padding: 0.7rem 0.9rem;
  outline: none;
  transition: border-color var(--transition);
  font-family: inherit;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--muted); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--accent); }

.form-group select option { background: var(--bg-surface); }

.form-feedback {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.92rem;
  min-height: 1.5rem;
}
.form-feedback.success { color: #22c55e; }
.form-feedback.error   { color: var(--danger); }

/* ─── Footer ─────────────────────────────────────────────────────────────────── */
#footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}

.footer-tagline { color: var(--muted); font-size: 0.92rem; margin-top: 0.3rem; }
.footer-copy    { color: var(--muted); font-size: 0.85rem; }

/* ─── Responsive: 768px ──────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .roles-grid { grid-template-columns: repeat(2, 1fr); }
  .how-grid   { grid-template-columns: 1fr 1fr; }
  .section-title { font-size: 1.75rem; }
  nav a:not(.btn) { display: none; }
}

/* ─── Responsive: 480px ──────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .cards-grid { grid-template-columns: 1fr; }
  .roles-grid { grid-template-columns: 1fr; }
  .how-grid   { grid-template-columns: 1fr; }
  .section-title { font-size: 1.5rem; }
  .hero h1, #hero h1 { font-size: 2.2rem; }
}
