/* ==========================================================
   Taaj Tech — site styles
   ========================================================== */
:root {
  --bg: #070b18;
  --bg-2: #0c1226;
  --surface: #111a33;
  --surface-2: #17213f;
  --line: rgba(148, 163, 220, 0.14);
  --text: #e8ecf8;
  --muted: #9aa5c4;
  --brand: #5b8cff;
  --brand-2: #22d3ee;
  --accent: #a78bfa;
  --ok: #34d399;
  --warn: #fbbf24;
  --danger: #f87171;
  --grad: linear-gradient(120deg, #5b8cff 0%, #22d3ee 55%, #a78bfa 100%);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.6);
  --max: 1200px;
  --font: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --display: "Space Grotesk", "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
.container { width: min(var(--max), 100% - 2.5rem); margin-inline: auto; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.4rem; border-radius: 999px; border: 1px solid transparent;
  font: 600 .95rem/1 var(--font); cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s, border-color .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--grad); color: #050816; box-shadow: 0 10px 30px -10px rgba(91, 140, 255, .7); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: rgba(148,163,220,.4); background: rgba(255,255,255,.03); }
.btn-sm { padding: .5rem .9rem; font-size: .85rem; }
.btn-danger { background: rgba(248,113,113,.12); color: var(--danger); border-color: rgba(248,113,113,.3); }
.btn-ok { background: rgba(52,211,153,.12); color: var(--ok); border-color: rgba(52,211,153,.3); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: rgba(7, 11, 24, .72); border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 1rem; }
.logo { display: flex; align-items: center; gap: .6rem; font: 700 1.25rem var(--display); }
.logo-mark {
  width: 36px; height: 36px; border-radius: 10px; background: var(--grad);
  display: grid; place-items: center; color: #050816; font-weight: 800; font-size: 1rem;
}
.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--muted); font-weight: 500; font-size: .95rem; transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 10px; width: 42px; height: 42px; cursor: pointer; }
@media (max-width: 880px) {
  .nav-toggle { display: grid; place-items: center; }
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--line); padding: .5rem 1.25rem 1.25rem;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li a { display: block; padding: .85rem 0; border-bottom: 1px solid var(--line); }
  .nav-links li:last-child a { border: 0; margin-top: .75rem; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: 7rem 0 6rem; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 120%;
  background:
    radial-gradient(600px 400px at 15% 20%, rgba(91,140,255,.28), transparent 60%),
    radial-gradient(500px 380px at 85% 10%, rgba(34,211,238,.18), transparent 60%),
    radial-gradient(500px 400px at 70% 80%, rgba(167,139,250,.16), transparent 60%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(ellipse at center, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 70%);
  opacity: .5; pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem; padding: .4rem .85rem; border-radius: 999px;
  background: rgba(91,140,255,.1); border: 1px solid rgba(91,140,255,.3); color: #b9cbff; font-size: .82rem; font-weight: 600;
  margin-bottom: 1.25rem;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(52,211,153,.2); }
.hero h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 700; }
.hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 580px; margin-bottom: 2rem; }
.hero-cta { display: flex; gap: .85rem; flex-wrap: wrap; }
.hero-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2.25rem; }
.hero-tags span { font-size: .8rem; color: var(--muted); padding: .35rem .75rem; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.02); }

.hero-card {
  background: linear-gradient(180deg, rgba(23,33,63,.85), rgba(17,26,51,.85)); border: 1px solid var(--line);
  border-radius: 20px; padding: 1.5rem; box-shadow: var(--shadow); position: relative;
}
.hero-card .term-head { display: flex; gap: 6px; margin-bottom: 1rem; }
.hero-card .term-head i { width: 11px; height: 11px; border-radius: 50%; background: #334; display: block; }
.hero-card .term-head i:nth-child(1) { background: #f87171; } .hero-card .term-head i:nth-child(2) { background: #fbbf24; } .hero-card .term-head i:nth-child(3) { background: #34d399; }
.hero-card pre { margin: 0; font: 500 .86rem/1.75 ui-monospace, SFMono-Regular, Menlo, monospace; color: #c7d2fe; white-space: pre-wrap; }
.hero-card .k { color: #22d3ee; } .hero-card .s { color: #a7f3d0; } .hero-card .c { color: #64748b; }
@media (max-width: 960px) { .hero-inner { grid-template-columns: 1fr; } .hero { padding: 5rem 0 4rem; } }

/* ---------- Sections ---------- */
section { padding: 6rem 0; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: 3rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .kicker { color: var(--brand-2); font-weight: 600; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .75rem; display: block; }
.section-head h2 { font-size: clamp(1.9rem, 3.5vw, 2.75rem); }
.section-head p { color: var(--muted); font-size: 1.08rem; }

.grid { display: grid; gap: 1.25rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1024px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem;
  transition: transform .25s, border-color .25s, background .25s; position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-4px); border-color: rgba(91,140,255,.45); background: var(--surface-2); }
.card h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.card p { color: var(--muted); font-size: .96rem; margin: 0; }
.icon {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 1.1rem;
  background: rgba(91,140,255,.12); border: 1px solid rgba(91,140,255,.25); color: #9db8ff;
}
.icon svg { width: 24px; height: 24px; }

/* Training cards */
.course { display: flex; flex-direction: column; }
.course .tag { position: absolute; top: 1.25rem; right: 1.25rem; font-size: .72rem; font-weight: 600; padding: .25rem .6rem; border-radius: 999px; background: rgba(34,211,238,.12); color: #67e8f9; border: 1px solid rgba(34,211,238,.25); }
.course ul { list-style: none; padding: 0; margin: 1rem 0 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.course li { font-size: .76rem; color: #c7d2fe; background: rgba(255,255,255,.04); border: 1px solid var(--line); padding: .22rem .55rem; border-radius: 6px; }
.course .icon { background: rgba(167,139,250,.12); border-color: rgba(167,139,250,.28); color: #c4b5fd; }

/* Steps / why us */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 2.5rem; } }
.checklist { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1rem; }
.checklist li { display: flex; gap: .85rem; align-items: flex-start; color: var(--muted); }
.checklist li strong { color: var(--text); display: block; }
.checklist .tick { flex: 0 0 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(52,211,153,.14); color: var(--ok); margin-top: 2px; }
.steps { display: grid; gap: 1rem; counter-reset: s; }
.step { display: flex; gap: 1rem; padding: 1.25rem 1.4rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.step::before { counter-increment: s; content: "0" counter(s); font: 700 1.4rem var(--display); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; min-width: 2.2rem; }
.step h4 { margin: 0 0 .2rem; font-size: 1.05rem; } .step p { margin: 0; color: var(--muted); font-size: .93rem; }

/* CTA band */
.cta-band {
  border-radius: 24px; padding: 3.5rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
  background: radial-gradient(600px 300px at 0% 0%, rgba(91,140,255,.35), transparent 60%), radial-gradient(500px 300px at 100% 100%, rgba(34,211,238,.25), transparent 60%), var(--surface);
  border: 1px solid rgba(91,140,255,.3);
}
.cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin: 0 0 .4rem; }
.cta-band p { color: var(--muted); margin: 0; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 2rem; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.info-list { display: grid; gap: 1rem; margin-top: 1.5rem; }
.info-item { display: flex; gap: 1rem; align-items: flex-start; padding: 1.1rem 1.25rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.info-item .icon { margin: 0; width: 42px; height: 42px; flex: 0 0 42px; }
.info-item small { color: var(--muted); display: block; font-size: .8rem; }
.info-item a:hover { color: var(--brand-2); }

/* Forms */
.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1rem; }
.field label { font-size: .85rem; font-weight: 600; color: #c7d2fe; }
.field label .req { color: var(--brand-2); }
.input, .field input, .field select, .field textarea {
  width: 100%; padding: .8rem .95rem; border-radius: var(--radius-sm); border: 1px solid var(--line);
  background: var(--bg-2); color: var(--text); font: 400 .95rem var(--font); transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(91,140,255,.2); }
.field input[type="file"] { padding: .6rem; }
.field .hint { font-size: .78rem; color: var(--muted); }
.hp { position: absolute; left: -9999px; opacity: 0; }
.alert { padding: .9rem 1.1rem; border-radius: var(--radius-sm); font-size: .92rem; margin-bottom: 1rem; display: none; }
.alert.show { display: block; }
.alert.ok { background: rgba(52,211,153,.1); border: 1px solid rgba(52,211,153,.3); color: #a7f3d0; }
.alert.err { background: rgba(248,113,113,.1); border: 1px solid rgba(248,113,113,.3); color: #fecaca; }
.alert.info { background: rgba(251,191,36,.08); border: 1px solid rgba(251,191,36,.3); color: #fde68a; }

/* ---------- Careers ---------- */
.page-hero { padding: 5rem 0 3rem; position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 20% 0%, rgba(91,140,255,.25), transparent 60%), radial-gradient(500px 300px at 90% 20%, rgba(34,211,238,.15), transparent 60%); pointer-events: none; }
.page-hero .container { position: relative; }
.page-hero h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
.page-hero p { color: var(--muted); font-size: 1.1rem; max-width: 640px; }

.job-toolbar { display: flex; gap: .75rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.job-toolbar .input { flex: 1 1 260px; }
.job-toolbar select.input { flex: 0 1 200px; }
.jobs { display: grid; gap: 1rem; }
.job {
  display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.75rem; transition: border-color .2s, background .2s;
}
.job:hover { border-color: rgba(91,140,255,.45); background: var(--surface-2); }
.job h3 { font-size: 1.2rem; margin: 0 0 .5rem; }
.meta { display: flex; flex-wrap: wrap; gap: .5rem 1.1rem; color: var(--muted); font-size: .88rem; }
.meta span { display: inline-flex; align-items: center; gap: .35rem; }
.meta svg { width: 15px; height: 15px; opacity: .8; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .8rem; }
.chip { font-size: .75rem; padding: .22rem .6rem; border-radius: 999px; background: rgba(91,140,255,.1); color: #b9cbff; border: 1px solid rgba(91,140,255,.22); }
.job-actions { display: flex; gap: .5rem; }
@media (max-width: 700px) { .job { grid-template-columns: 1fr; } }
.empty { text-align: center; padding: 3.5rem 1rem; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); }

/* Badges */
.badge { font-size: .72rem; font-weight: 700; padding: .22rem .6rem; border-radius: 999px; text-transform: uppercase; letter-spacing: .05em; }
.badge.open { background: rgba(52,211,153,.12); color: var(--ok); border: 1px solid rgba(52,211,153,.3); }
.badge.closed { background: rgba(148,163,184,.12); color: #94a3b8; border: 1px solid rgba(148,163,184,.3); }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: flex-start; justify-content: center; padding: 4vh 1rem; background: rgba(3,6,15,.75); backdrop-filter: blur(6px); overflow-y: auto; }
.modal.open { display: flex; }
.modal-box { width: min(720px, 100%); background: var(--bg-2); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); animation: pop .2s ease-out; }
@keyframes pop { from { transform: translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding: 1.5rem 1.75rem; border-bottom: 1px solid var(--line); }
.modal-head h3 { margin: 0 0 .4rem; font-size: 1.35rem; }
.modal-body { padding: 1.5rem 1.75rem; }
.modal-body .form { padding: 0; background: none; border: 0; }
.close-x { background: none; border: 1px solid var(--line); color: var(--muted); width: 36px; height: 36px; border-radius: 10px; cursor: pointer; font-size: 1.2rem; flex: 0 0 36px; }
.close-x:hover { color: var(--text); }
.job-desc { color: #cbd3ea; white-space: pre-line; font-size: .96rem; margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }

/* ---------- Admin ---------- */
.admin-wrap { padding: 3rem 0 5rem; }
.login-box { max-width: 420px; margin: 4rem auto; }
.admin-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.admin-top h1 { font-size: 2rem; margin: 0; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 2rem; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.5rem; }
.stat b { display: block; font: 700 2rem var(--display); }
.stat span { color: var(--muted); font-size: .88rem; }
@media (max-width: 600px) { .stats { grid-template-columns: 1fr; } }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: 1rem 1.1rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: var(--muted); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; background: rgba(255,255,255,.02); }
tr:last-child td { border-bottom: 0; }
td .sub { color: var(--muted); font-size: .82rem; }
.row-actions { display: flex; gap: .4rem; flex-wrap: wrap; }
.switch { position: relative; width: 44px; height: 24px; display: inline-block; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider { position: absolute; inset: 0; background: #334155; border-radius: 999px; cursor: pointer; transition: background .2s; }
.switch .slider::before { content: ""; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: transform .2s; }
.switch input:checked + .slider { background: var(--ok); }
.switch input:checked + .slider::before { transform: translateX(20px); }
.toggle-cell { display: flex; align-items: center; gap: .6rem; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 4rem 0 2rem; background: var(--bg-2); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.site-footer ul a, .site-footer p { color: #b6c0dc; font-size: .93rem; }
.site-footer ul a:hover { color: var(--text); }
.footer-bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; color: var(--muted); font-size: .85rem; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

.toast { position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--surface-2); border: 1px solid var(--line); padding: .85rem 1.25rem; border-radius: 12px; box-shadow: var(--shadow); opacity: 0; transition: all .25s; z-index: 200; font-size: .92rem; }
.toast.show { opacity: 1; transform: translateX(-50%); }
.nav-links a.btn-primary, .nav-links a.btn-primary:hover { color: #050816; }
