:root {
  --bg: #08090b;
  --panel: #111318;
  --panel-soft: #171a20;
  --text: #f8f3ea;
  --muted: rgba(248, 243, 234, .7);
  --line: rgba(248, 243, 234, .14);
  --red: #d8293f;
  --red-dark: #b51f32;
  --gold: #c7a76a;
  --green: #4aa982;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

.bot-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px clamp(16px, 5vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(8, 9, 11, .84);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.05rem;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 7px;
  background: var(--red);
  color: #fff;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: .94rem;
}

.desktop-nav a:hover {
  color: var(--text);
}

.header-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 7px;
  font-weight: 800;
}

.header-cta {
  padding: 0 14px;
  background: rgba(216, 41, 63, .16);
  color: #fff;
  border: 1px solid rgba(216, 41, 63, .42);
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: end;
  gap: clamp(24px, 5vw, 70px);
  padding: 130px clamp(16px, 5vw, 72px) 66px;
  overflow: hidden;
}

.hero-bg,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(8, 9, 11, .95) 0%, rgba(8, 9, 11, .82) 42%, rgba(8, 9, 11, .35) 100%),
    linear-gradient(0deg, rgba(8, 9, 11, .98) 0%, rgba(8, 9, 11, .05) 34%);
}

.hero-content,
.pilot-card {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0;
  color: var(--gold);
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.hero h1 {
  max-width: 760px;
  margin: 14px 0 18px;
  font-size: clamp(2.8rem, 7vw, 6.8rem);
  line-height: .92;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 660px;
  margin: 0;
  color: rgba(248, 243, 234, .82);
  font-size: 1.12rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.btn {
  border: 0;
  padding: 0 18px;
}

.btn-primary {
  background: var(--red);
  color: #fff;
}

.btn-primary:hover {
  background: var(--red-dark);
}

.btn-secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .06);
  color: var(--text);
}

.pilot-card {
  display: grid;
  gap: 10px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(17, 19, 24, .9);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .32);
}

.pilot-card span {
  color: var(--green);
  font-weight: 800;
}

.pilot-card strong {
  font-size: 2rem;
  line-height: 1.1;
}

.pilot-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}

.trust-strip div {
  display: grid;
  gap: 6px;
  padding: 22px clamp(16px, 3vw, 32px);
  background: #0d0f13;
}

.trust-strip span {
  color: var(--muted);
}

.section,
.contact,
.pilot-band {
  padding: 82px clamp(16px, 5vw, 72px);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 32px;
}

.section h2,
.pilot-band h2,
.contact h2 {
  margin: 10px 0 0;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
}

.section-heading > p:last-child,
.pilot-band p,
.contact-copy p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 1rem;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.module-grid article,
.steps article {
  min-height: 230px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.module-grid span,
.steps span {
  color: var(--gold);
  font-weight: 900;
}

.module-grid h3,
.steps h3 {
  margin: 18px 0 10px;
  font-size: 1.2rem;
}

.module-grid p,
.steps p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.pilot-band {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  background: linear-gradient(135deg, rgba(216, 41, 63, .22), rgba(199, 167, 106, .12));
  border-block: 1px solid var(--line);
}

.pilot-band > div {
  max-width: 820px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(320px, .65fr);
  gap: clamp(24px, 5vw, 70px);
  background: var(--panel-soft);
}

.contact-form {
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: rgba(248, 243, 234, .82);
  font-weight: 700;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #090a0d;
  color: var(--text);
  font: inherit;
  padding: 13px 14px;
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(216, 41, 63, .7);
  box-shadow: 0 0 0 4px rgba(216, 41, 63, .14);
}

.consent {
  grid-template-columns: 20px 1fr;
  align-items: start;
  font-weight: 500 !important;
  line-height: 1.45;
}

.consent input {
  min-height: 0;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
}

.form-message {
  margin: 0;
  padding: 12px 14px;
  border-radius: 7px;
  line-height: 1.5;
}

.form-message.is-success {
  background: rgba(74, 169, 130, .15);
  color: #baf0d8;
}

.form-message.is-error {
  background: rgba(216, 41, 63, .17);
  color: #ffd1d8;
}

.contact-form button:disabled {
  cursor: wait;
  opacity: .72;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(16px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer strong {
  color: var(--text);
}

.applications-body { background: #f4f4f2; color: #171717; }
.applications-shell { width: min(1120px, 100%); margin: 0 auto; padding: 28px clamp(14px, 3vw, 34px) 60px; }
.applications-header { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 24px; }
.applications-header h1 { margin: 4px 0 0; font-size: clamp(2rem, 5vw, 3.4rem); }
.applications-login { min-height: 60vh; display: grid; place-items: center; }
.applications-login[hidden], .applications-dashboard[hidden] { display: none; }
.applications-login-form { width: min(420px, 100%); display: grid; gap: 16px; padding: 26px; background: #fff; border: 1px solid #ddd; border-radius: var(--radius); }
.applications-login-form h2 { margin: 0; }
.applications-login-form label, .applications-filters label { display: grid; gap: 7px; color: #333; font-weight: 700; }
.applications-login-form input, .applications-filters input, .applications-filters select, .application-head select {
  min-height: 44px; border: 1px solid #ccc; border-radius: 7px; background: #fff; color: #171717; padding: 0 12px; font: inherit;
}
.applications-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.applications-stats article { display: grid; gap: 8px; padding: 18px; background: #fff; border: 1px solid #ddd; border-radius: var(--radius); }
.applications-stats span { color: #666; font-weight: 700; }
.applications-stats strong { font-size: 2rem; }
.applications-filters { display: grid; grid-template-columns: 1fr 220px auto; gap: 12px; align-items: end; margin: 16px 0; padding: 16px; background: #fff; border: 1px solid #ddd; border-radius: var(--radius); }
.applications-list { display: grid; gap: 12px; }
.application-card { padding: 20px; background: #fff; border: 1px solid #ddd; border-radius: var(--radius); }
.application-head { display: flex; justify-content: space-between; align-items: start; gap: 20px; }
.application-head h2 { margin: 8px 0 4px; }
.application-head p, .application-card > p, .application-card small { color: #666; line-height: 1.6; }
.application-contact { display: flex; flex-wrap: wrap; gap: 10px 18px; margin: 18px 0; }
.application-contact a { color: #a91612; }
.application-status { display: inline-block; padding: 5px 8px; border-radius: 999px; font-size: .78rem; font-weight: 800; }
.status-new { background: #e8ecff; color: #31459b; }
.status-contacted { background: #fff2c8; color: #705500; }
.status-selected { background: #dff4e8; color: #14633a; }
.status-rejected { background: #ffe0dd; color: #92241d; }
.applications-empty { padding: 28px; text-align: center; color: #666; }

@media (max-width: 980px) {
  .desktop-nav {
    display: none;
  }

  .hero,
  .contact {
    grid-template-columns: 1fr;
  }

  .pilot-card {
    max-width: 420px;
  }

  .trust-strip,
  .module-grid,
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 12px;
  }

  .header-cta {
    display: none;
  }

  .hero {
    min-height: 88vh;
    padding: 104px 16px 42px;
  }

  .hero h1 {
    font-size: 3.1rem;
  }

  .hero-actions .btn,
  .pilot-band .btn {
    width: 100%;
  }

  .trust-strip,
  .module-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .pilot-band,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
  .applications-stats, .applications-filters { grid-template-columns: 1fr; }
  .application-head { flex-direction: column; }
  .application-head select { width: 100%; }
}
