/* ============================================================
   AirCrew Jobs — Design System
   Futuristic aviation dark theme
   ============================================================ */

:root {
  --bg: #05080f;
  --bg-2: #0a1020;
  --bg-3: #0e1730;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(148, 197, 255, 0.12);
  --border-bright: rgba(56, 224, 255, 0.45);
  --text: #e8eefb;
  --text-dim: #93a3c0;
  --text-faint: #5d6c8a;
  --accent: #38e0ff;
  --accent-2: #7c8cff;
  --accent-3: #ff7ad9;
  --green: #34e8a0;
  --amber: #ffc555;
  --red: #ff6b81;
  --glow: 0 0 24px rgba(56, 224, 255, 0.25);
  --radius: 16px;
  --radius-sm: 10px;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

::selection { background: rgba(56, 224, 255, 0.3); }

/* ---- Background canvas layers ---- */
.bg-grid {
  position: fixed; inset: 0; z-index: -2;
  background-image:
    linear-gradient(rgba(56, 224, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 224, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black 30%, transparent 75%);
}
.bg-glow {
  position: fixed; z-index: -3; border-radius: 50%;
  filter: blur(120px); opacity: 0.5; pointer-events: none;
}
.bg-glow.one { width: 700px; height: 500px; top: -200px; left: -150px; background: rgba(34, 90, 200, 0.35); }
.bg-glow.two { width: 600px; height: 480px; top: 10%; right: -200px; background: rgba(90, 50, 180, 0.28); }
.bg-glow.three { width: 500px; height: 420px; bottom: -150px; left: 30%; background: rgba(10, 120, 160, 0.22); }

/* ---- Typography ---- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p  { color: var(--text-dim); }

.gradient-text {
  background: linear-gradient(92deg, var(--accent) 0%, var(--accent-2) 55%, var(--accent-3) 110%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent);
  border: 1px solid var(--border); border-radius: 999px;
  padding: 6px 16px; background: var(--surface);
  backdrop-filter: blur(8px);
}
.eyebrow::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 10px var(--accent);
  animation: pulse 2.2s infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

/* ---- Layout ---- */
.container { width: min(1180px, 92%); margin: 0 auto; }
section { padding: 88px 0; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head p { margin-top: 14px; font-size: 1.05rem; }

/* ---- Navbar ---- */
nav.main-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(5, 8, 15, 0.72);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  width: min(1180px, 92%); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.18rem;
  color: var(--text); text-decoration: none; letter-spacing: -0.02em;
}
.logo svg { filter: drop-shadow(0 0 8px rgba(56, 224, 255, 0.6)); }
.logo span { color: var(--accent); }
.nav-links { display: flex; gap: 4px; list-style: none; }
.nav-links a {
  color: var(--text-dim); text-decoration: none; font-size: 0.92rem; font-weight: 500;
  padding: 8px 14px; border-radius: 8px; transition: all 0.2s;
}
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.nav-links a.active { color: var(--accent); background: rgba(56, 224, 255, 0.08); }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.nav-toggle { display: none; background: none; border: 1px solid var(--border); border-radius: 8px; color: var(--text); font-size: 1.2rem; padding: 4px 12px; cursor: pointer; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600; font-size: 0.95rem;
  padding: 12px 26px; border-radius: 12px; cursor: pointer;
  text-decoration: none; border: none; transition: all 0.25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(92deg, #18b8d8, #38e0ff);
  color: #03121a; box-shadow: 0 0 0 1px rgba(56,224,255,0.4), var(--glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(56,224,255,0.7), 0 0 40px rgba(56,224,255,0.4); }
.btn-ghost {
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border); backdrop-filter: blur(8px);
}
.btn-ghost:hover { border-color: var(--border-bright); background: var(--surface-2); transform: translateY(-2px); }
.btn-sm { padding: 8px 18px; font-size: 0.85rem; border-radius: 9px; }

/* ---- Cards ---- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  backdrop-filter: blur(10px);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}
.card:hover { transform: translateY(-4px); border-color: var(--border-bright); box-shadow: var(--glow); }
.card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(56,224,255,0.5), transparent);
  opacity: 0; transition: opacity 0.25s;
}
.card:hover::before { opacity: 1; }

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

/* ---- Badges ---- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.04em;
  padding: 4px 12px; border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-2); color: var(--text-dim);
}
.badge.hiring { color: var(--green); border-color: rgba(52,232,160,0.35); background: rgba(52,232,160,0.08); }
.badge.hiring::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); animation: pulse 2s infinite; }
.badge.paused { color: var(--amber); border-color: rgba(255,197,85,0.35); background: rgba(255,197,85,0.08); }
.badge.closed { color: var(--red); border-color: rgba(255,107,129,0.3); background: rgba(255,107,129,0.07); }
.badge.type { color: var(--accent-2); border-color: rgba(124,140,255,0.35); background: rgba(124,140,255,0.08); }
.badge.new { color: var(--accent); border-color: rgba(56,224,255,0.4); background: rgba(56,224,255,0.09); }

/* ---- Inputs ---- */
.input, select.input {
  width: 100%; padding: 13px 18px;
  background: rgba(10, 16, 32, 0.8);
  border: 1px solid var(--border); border-radius: 12px;
  color: var(--text); font-family: var(--font-body); font-size: 0.95rem;
  outline: none; transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
}
.input:focus { border-color: var(--border-bright); box-shadow: 0 0 0 3px rgba(56,224,255,0.12); }
.input::placeholder { color: var(--text-faint); }
select.input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2393a3c0' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
  cursor: pointer; padding-right: 40px;
}
select.input option { background: var(--bg-3); color: var(--text); }

/* ---- Stats ---- */
.stat-value {
  font-family: var(--font-display); font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  font-weight: 700; line-height: 1;
  background: linear-gradient(180deg, #fff, #9fd9ff);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.stat-label { font-size: 0.83rem; color: var(--text-faint); margin-top: 8px; text-transform: uppercase; letter-spacing: 0.1em; }

/* ---- Tables ---- */
.data-table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
.data-table th {
  text-align: left; font-family: var(--font-display); font-size: 0.76rem;
  text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent);
  padding: 14px 16px; border-bottom: 1px solid var(--border-bright);
}
.data-table td { padding: 14px 16px; border-bottom: 1px solid var(--border); color: var(--text-dim); }
.data-table td:first-child { color: var(--text); font-weight: 500; }
.data-table tr { transition: background 0.15s; }
.data-table tbody tr:hover { background: rgba(56,224,255,0.04); }

/* ---- Footer ---- */
footer {
  border-top: 1px solid var(--border);
  background: rgba(5, 8, 15, 0.6);
  padding: 56px 0 32px;
  margin-top: 40px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-grid h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text); margin-bottom: 16px; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: var(--text-dim); text-decoration: none; font-size: 0.9rem; transition: color 0.2s; }
.footer-grid a:hover { color: var(--accent); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; border-top: 1px solid var(--border);
  font-size: 0.82rem; color: var(--text-faint);
  flex-wrap: wrap; gap: 12px;
}

/* ---- Page hero (inner pages) ---- */
.page-hero { padding: 150px 0 50px; }
.page-hero p { max-width: 580px; margin-top: 16px; font-size: 1.08rem; }

/* ---- Reveal animation ---- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---- Brand logos ---- */
.job-logo.has-img, .airline-code.has-img {
  background: #fff;
  border-color: rgba(255, 255, 255, 0.25);
  overflow: hidden;
}
.job-logo img, .airline-code img {
  width: 62%; height: 62%; object-fit: contain; display: block;
}
.has-img .logo-fallback { display: none; }

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--bg-3); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #1a2747; }

/* ---- Responsive ---- */
@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .nav-links {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; background: rgba(5,8,15,0.97);
    border-bottom: 1px solid var(--border); padding: 12px 20px 20px;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .nav-cta .btn { display: none; }
  section { padding: 60px 0; }
}
