:root {
  --navy: #071526;
  --navy-2: #0e243f;
  --navy-3: #16345a;
  --ink: #0a1320;
  --orange: #ff6a1a;
  --orange-2: #e8550d;
  --orange-soft: rgba(255, 106, 26, 0.14);
  --fog: #edf2f8;
  --fog-2: #f7f9fc;
  --line: rgba(7, 21, 38, 0.1);
  --white: #ffffff;
  --muted: #5a6b7e;
  --max: 1120px;
  --nav-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(255, 106, 26, 0.08), transparent 55%),
    radial-gradient(900px 420px at 100% 0%, rgba(22, 52, 90, 0.08), transparent 50%),
    var(--fog-2);
  font-family: "Figtree", "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block }

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

h1, h2, h3, .brand-word {
  font-family: "Syne", "Arial Narrow", sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0;
}

/* ---- Nav ---- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 clamp(16px, 4vw, 40px);
  background: rgba(247, 249, 252, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.site-nav.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(255, 255, 255, 0.9);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav-brand img {
  width: 48px;
  height: auto;
  filter: drop-shadow(0 3px 8px rgba(7, 21, 38, 0.18));
}

.nav-brand .brand-word {
  font-size: 1.2rem;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nav-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-tabs a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  font-weight: 650;
  font-size: 0.92rem;
  color: var(--navy-2);
  transition: background 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}

.nav-tabs a:hover {
  background: rgba(7, 21, 38, 0.06);
  transform: translateY(-1px);
}

.nav-tabs a.is-active {
  background: var(--navy);
  color: var(--white);
}

.nav-tabs a.is-accent:not(.is-active) {
  background: var(--orange);
  color: var(--white);
}

.nav-tabs a.is-accent:not(.is-active):hover {
  background: var(--orange-2);
}

.nav-tabs a.is-active.is-accent {
  background: var(--orange);
  color: var(--white);
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  width: 44px;
  height: 44px;
  padding: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: var(--navy);
  border-radius: 2px;
}

@media (max-width: 760px) {
  .nav-toggle { display: block }
  .nav-tabs {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 40px rgba(7, 21, 38, 0.12);
  }
  .nav-tabs.is-open { display: flex }
  .nav-tabs a { justify-content: center }
}

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  min-height: calc(100svh - var(--nav-h));
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(115deg, rgba(5, 14, 28, 0.94) 8%, rgba(10, 28, 52, 0.78) 46%, rgba(255, 106, 26, 0.38) 100%),
    radial-gradient(ellipse at 82% 12%, rgba(255, 106, 26, 0.5), transparent 44%),
    linear-gradient(165deg, #050e1c 0%, #0f2a4d 45%, #071526 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      -32deg,
      transparent 0 46px,
      rgba(255, 255, 255, 0.028) 46px 48px
    );
  animation: road-drift 32s linear infinite;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  right: -8%;
  bottom: -28%;
  width: min(58vw, 640px);
  aspect-ratio: 1;
  border-radius: 42% 58% 55% 45%;
  background:
    radial-gradient(circle at 40% 40%, rgba(255, 106, 26, 0.28), transparent 58%),
    radial-gradient(circle at 70% 60%, rgba(255, 255, 255, 0.08), transparent 50%);
  pointer-events: none;
  animation: logo-float 1.1s var(--ease) both;
}

@keyframes road-drift {
  from { background-position: 0 0 }
  to { background-position: 140px 90px }
}

@keyframes logo-float {
  from { opacity: 0; transform: translateY(28px) scale(0.94) }
  to { opacity: 0.12; transform: translateY(0) scale(1) }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(22px) }
  to { opacity: 1; transform: translateY(0) }
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: clamp(48px, 10vh, 120px) clamp(16px, 4vw, 40px) clamp(56px, 11vh, 110px);
}

.hero-brand {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
  animation: fade-up 0.7s var(--ease) both;
}

.hero-brand img {
  width: clamp(68px, 11vw, 104px);
  filter: drop-shadow(0 10px 28px rgba(0, 0, 0, 0.4));
}

.hero-brand .brand-word {
  font-size: clamp(2.4rem, 7.5vw, 4.4rem);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hero h1 {
  max-width: 13ch;
  font-size: clamp(2.1rem, 5.8vw, 3.6rem);
  font-weight: 700;
  margin-bottom: 16px;
  animation: fade-up 0.75s 0.06s var(--ease) both;
}

.hero p {
  max-width: 36ch;
  margin: 0 0 30px;
  font-size: clamp(1.05rem, 2.1vw, 1.28rem);
  color: rgba(255, 255, 255, 0.86);
  animation: fade-up 0.75s 0.12s var(--ease) both;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  animation: fade-up 0.75s 0.18s var(--ease) both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.96rem;
  border: 1.5px solid transparent;
  transition: transform 0.18s var(--ease), background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover { transform: translateY(-2px) }

.btn-primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 10px 28px rgba(255, 106, 26, 0.35);
}

.btn-primary:hover { background: var(--orange-2) }

.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.45);
  color: var(--white);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
}

.btn-navy:hover { background: var(--navy-2) }

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

.btn-outline:hover {
  border-color: var(--navy);
  background: rgba(7, 21, 38, 0.04);
}

.btn-danger {
  background: #b91c1c;
  color: #fff;
}

/* ---- Sections ---- */
.section {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: clamp(64px, 10vh, 110px) clamp(16px, 4vw, 40px);
}

.section-head {
  max-width: 36rem;
  margin-bottom: 40px;
}

.section-head h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  color: var(--navy);
  margin-bottom: 12px;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.band {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 55%, #1a3f6d 100%);
  color: var(--white);
}

.band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 240px at 85% 20%, rgba(255, 106, 26, 0.28), transparent 60%);
  pointer-events: none;
}

.band .section { position: relative; z-index: 1 }

.band .section-head h2 { color: var(--white) }
.band .section-head p { color: rgba(255, 255, 255, 0.78) }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px 40px;
}

@media (max-width: 860px) {
  .feature-grid { grid-template-columns: 1fr; gap: 28px }
}

.feature {
  position: relative;
  padding-top: 8px;
  animation: fade-up 0.7s var(--ease) both;
}

.feature:nth-child(2) { animation-delay: 0.08s }
.feature:nth-child(3) { animation-delay: 0.16s }

.feature-accent {
  width: 42px;
  height: 3px;
  background: var(--orange);
  margin-bottom: 16px;
  border-radius: 2px;
}

.feature h3 {
  font-size: 1.35rem;
  color: var(--navy);
  margin-bottom: 8px;
}

.feature p {
  margin: 0;
  color: var(--muted);
}

/* ---- Jobs ---- */
.page-hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(125deg, var(--navy) 0%, var(--navy-2) 55%, #1d4678 100%);
  color: var(--white);
  padding: clamp(48px, 9vh, 88px) clamp(16px, 4vw, 40px);
}

.page-hero::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 106, 26, 0.35), transparent 70%);
  pointer-events: none;
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  width: min(100%, var(--max));
  margin: 0 auto;
}

.page-hero h1 {
  font-size: clamp(2.1rem, 4.8vw, 3.2rem);
  margin-bottom: 12px;
  animation: fade-up 0.65s var(--ease) both;
}

.page-hero p {
  margin: 0;
  max-width: 42ch;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.08rem;
  animation: fade-up 0.65s 0.06s var(--ease) both;
}

.jobs {
  display: grid;
  gap: 16px;
}

.job {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px 28px;
  align-items: center;
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(8px);
  transition: border-color 0.2s ease, transform 0.2s var(--ease), box-shadow 0.2s ease;
}

.job:hover {
  border-color: rgba(255, 106, 26, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(7, 21, 38, 0.08);
}

.job h3 {
  font-size: 1.35rem;
  color: var(--navy);
  margin-bottom: 8px;
}

.job p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  max-width: 62ch;
}

.job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.job-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--orange-soft);
  color: var(--navy-2);
  font-size: 0.82rem;
  font-weight: 700;
}

.jobs-empty {
  padding: 36px 8px;
  color: var(--muted);
  font-size: 1.05rem;
}

@media (max-width: 700px) {
  .job { grid-template-columns: 1fr; padding: 22px }
}

.contact-box {
  margin-top: 48px;
  padding: 28px 0 0;
  border-top: 1px solid var(--line);
}

.contact-box a {
  color: var(--orange);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---- Footer ---- */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
  padding: 30px clamp(16px, 4vw, 40px);
}

.site-footer-inner {
  width: min(100%, var(--max));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  font-size: 0.92rem;
}

.site-footer strong {
  color: var(--white);
  font-family: "Syne", sans-serif;
  letter-spacing: 0.04em;
}

.site-footer a:hover { color: var(--white) }

/* ---- Admin ---- */
.admin-wrap {
  width: min(100%, 920px);
  margin: 0 auto;
  padding: 32px clamp(16px, 4vw, 28px) 64px;
}

.admin-wrap h1 {
  font-size: 2rem;
  color: var(--navy);
  margin-bottom: 8px;
}

.admin-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin: 20px 0 28px;
}

.admin-form, .admin-login {
  display: grid;
  gap: 12px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  margin-bottom: 20px;
}

.admin-form label, .admin-login label {
  display: grid;
  gap: 6px;
  font-weight: 650;
  font-size: 0.9rem;
  color: var(--navy-2);
}

.admin-form input,
.admin-form textarea,
.admin-login input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  background: var(--fog-2);
}

.admin-form textarea { min-height: 96px; resize: vertical }

.admin-msg {
  padding: 12px 14px;
  border-radius: 10px;
  margin-bottom: 16px;
  font-weight: 650;
}

.admin-msg.ok { background: #ecfdf5; color: #065f46 }
.admin-msg.err { background: #fef2f2; color: #991b1b }

.admin-job-row {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  margin-bottom: 12px;
}

.admin-job-row .row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.muted { color: var(--muted) }
.hidden { display: none !important }
