:root {
  --ink: #171717;
  --ink-soft: #4f5550;
  --paper: #fffdf9;
  --paper-alt: #f3f1eb;
  --line: rgba(23, 23, 23, 0.13);
  --line-dark: rgba(255, 255, 255, 0.14);
  --brand: #f26355;
  --brand-dark: #c8473d;
  --dark: #090a09;
  --dark-panel: #121412;
  --muted: #70766f;
  --white: #ffffff;
  --shadow: 0 22px 70px rgba(28, 28, 24, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, Arial, sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(23, 23, 23, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 23, 23, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  animation: gridDrift 24s linear infinite;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.cursor-glow {
  position: fixed;
  left: 0;
  top: 0;
  z-index: -1;
  width: 22rem;
  height: 22rem;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(242, 99, 85, 0.18), transparent 62%);
  transform: translate3d(-50%, -50%, 0);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 14px;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  margin: 14px 0 28px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 249, 0.93);
  backdrop-filter: blur(18px);
  box-shadow: 0 16px 60px rgba(23, 23, 23, 0.09);
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand-logo {
  display: block;
  width: 124px;
  height: auto;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.nav-links a,
.lang-btn {
  min-height: 38px;
  padding: 10px 14px;
  border-radius: 6px;
  border: 1px solid transparent;
  color: var(--ink-soft);
  font-weight: 650;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.lang-btn:hover {
  color: var(--ink);
  background: rgba(23, 23, 23, 0.055);
  transform: translateY(-1px);
}

.language-switcher {
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.lang-btn {
  cursor: pointer;
  background: transparent;
}

.lang-btn.active {
  color: var(--white);
  background: var(--brand);
}

.hero-section {
  position: relative;
  padding: 72px 0 78px;
}

.hero-pattern {
  position: absolute;
  inset: 0 calc(50% - 50vw);
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 20%, rgba(242, 99, 85, 0.16), transparent 22rem),
    linear-gradient(180deg, #fffdf9 0%, #f5f2ea 100%);
}

.hero-pattern span {
  position: absolute;
  display: block;
  width: 34vw;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(242, 99, 85, 0.72), transparent);
  transform: rotate(-18deg);
  animation: lineSweep 7s ease-in-out infinite;
}

.hero-pattern span:nth-child(1) {
  top: 20%;
  left: -10%;
}

.hero-pattern span:nth-child(2) {
  top: 52%;
  left: 44%;
  animation-delay: -2.2s;
}

.hero-pattern span:nth-child(3) {
  bottom: 20%;
  right: -7%;
  animation-delay: -4.4s;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.52fr);
  gap: 50px;
  align-items: center;
}

.eyebrow,
.section-kicker,
.trust-topline {
  margin: 0 0 14px;
  color: var(--brand-dark);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 22px;
  font-size: clamp(2.7rem, 6.8vw, 5.65rem);
  line-height: 0.96;
  font-weight: 800;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(1.9rem, 3.4vw, 3.5rem);
  line-height: 1.04;
  font-weight: 760;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.06rem;
  line-height: 1.28;
  font-weight: 740;
}

.hero-subtitle,
.section p,
.signal-item p,
.role-card p,
.process-step p,
.apply-card p,
.site-footer {
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.68;
}

.hero-subtitle {
  max-width: 660px;
  font-size: 1.08rem;
}

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

.primary-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border: 0;
  border-radius: 6px;
  color: var(--white);
  background: var(--brand);
  font-weight: 760;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 18px 42px rgba(242, 99, 85, 0.28);
}

.primary-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.46), transparent);
  transform: translateX(-130%);
  animation: buttonShine 4s ease-in-out infinite;
}

.company-panel {
  position: relative;
  padding: 28px;
  border: 1px solid rgba(23, 23, 23, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.company-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--brand), #ffae91, var(--brand));
  background-size: 200% 100%;
  animation: bandShift 5s linear infinite;
}

.company-mark {
  display: grid;
  place-items: center;
  min-height: 190px;
  margin-bottom: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(242, 99, 85, 0.08), transparent),
    #ffffff;
}

.company-mark img {
  display: block;
  width: min(240px, 78%);
  height: auto;
}

.company-panel h2 {
  margin-bottom: 18px;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
}

.company-panel p {
  margin-bottom: 0;
  color: var(--ink-soft);
  line-height: 1.65;
}

.signal-strip {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: -26px 0 0;
  z-index: 2;
}

.signal-item {
  min-height: 180px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.signal-item span,
.role-card span,
.process-step span {
  display: inline-flex;
  margin-bottom: 24px;
  color: var(--brand);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.signal-item strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1.08rem;
}

.section {
  padding: 92px 0;
}

.intro-band {
  position: relative;
}

.intro-band::after,
.process-section::after {
  content: "";
  position: absolute;
  left: calc(50% - 50vw);
  right: calc(50% - 50vw);
  bottom: 0;
  height: 1px;
  background: var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.58fr);
  gap: 42px;
  align-items: end;
  margin-bottom: 30px;
}

.role-grid,
.process-timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.role-card,
.process-step {
  min-height: 220px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-alt);
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.role-card:hover,
.process-step:hover {
  border-color: rgba(242, 99, 85, 0.38);
  background: var(--white);
}

.systems-section {
  position: relative;
  display: grid;
  grid-template-columns: 0.78fr 1fr;
  gap: 54px;
  align-items: center;
  margin-inline: calc(50% - 50vw);
  padding-inline: max(16px, calc((100vw - 1180px) / 2));
  background: var(--dark);
  color: var(--white);
  overflow: hidden;
}

.systems-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 16%, rgba(242, 99, 85, 0.24), transparent 24rem),
    linear-gradient(125deg, transparent, rgba(255, 255, 255, 0.06), transparent);
  animation: darkSweep 8s ease-in-out infinite;
}

.systems-copy,
.systems-board {
  position: relative;
  z-index: 1;
}

.systems-section p {
  color: rgba(255, 255, 255, 0.72);
}

.systems-board {
  display: grid;
  gap: 14px;
  padding: 28px;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.34);
}

.board-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  align-items: center;
  min-height: 58px;
  padding: 12px;
  border: 1px solid var(--line-dark);
  border-radius: 6px;
}

.board-row span {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 700;
}

.board-row i {
  display: block;
  height: 8px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--brand), rgba(255, 174, 145, 0.8), transparent);
  transform-origin: left center;
  animation: dataFill 2.6s ease-in-out infinite;
}

.board-row:nth-child(2) i {
  animation-delay: -0.5s;
}

.board-row:nth-child(3) i {
  animation-delay: -1s;
}

.board-row:nth-child(4) i {
  animation-delay: -1.5s;
}

.process-timeline {
  grid-template-columns: repeat(4, 1fr);
}

.apply-section {
  margin-inline: calc(50% - 50vw);
  padding: 84px max(16px, calc((100vw - 1180px) / 2)) 92px;
  background:
    radial-gradient(circle at 92% 12%, rgba(242, 99, 85, 0.16), transparent 22rem),
    var(--paper-alt);
}

.apply-card {
  display: grid;
  grid-template-columns: 0.75fr 1fr;
  gap: 34px;
  align-items: start;
}

.application-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.application-form label:nth-last-of-type(2),
.application-form .consent-line,
.submit-btn,
.form-status {
  grid-column: 1 / -1;
}

label {
  display: grid;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 650;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 14px;
  color: var(--ink);
  background: #fffdf9;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(242, 99, 85, 0.6);
  box-shadow: 0 0 0 4px rgba(242, 99, 85, 0.13);
}

.consent-line {
  display: grid;
  grid-template-columns: 20px 1fr;
  align-items: start;
  gap: 10px;
  font-size: 0.82rem;
  line-height: 1.45;
}

.consent-line input {
  width: 18px;
  min-height: 18px;
  margin-top: 2px;
  accent-color: var(--brand);
}

.submit-btn:disabled {
  cursor: wait;
  opacity: 0.72;
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 650;
}

.form-status[data-state="success"] {
  color: #188052;
}

.form-status[data-state="error"] {
  color: var(--brand-dark);
}

.site-footer {
  padding: 30px 0 42px;
  color: var(--muted);
}

.site-footer p {
  margin: 0 0 10px;
}

.site-footer p:last-child {
  margin-bottom: 0;
}

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

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes gridDrift {
  to {
    background-position: 44px 44px;
  }
}

@keyframes lineSweep {
  0%,
  52% {
    transform: translateX(-20%) rotate(-18deg);
    opacity: 0.14;
  }
  100% {
    transform: translateX(80%) rotate(-18deg);
    opacity: 0.75;
  }
}

@keyframes buttonShine {
  0%,
  48% {
    transform: translateX(-130%);
  }
  100% {
    transform: translateX(130%);
  }
}

@keyframes bandShift {
  to {
    background-position: 200% 0;
  }
}

@keyframes darkSweep {
  0%,
  100% {
    transform: translateX(-3%);
  }
  50% {
    transform: translateX(3%);
  }
}

@keyframes dataFill {
  0%,
  100% {
    transform: scaleX(0.24);
    opacity: 0.45;
  }
  50% {
    transform: scaleX(0.92);
    opacity: 1;
  }
}

@media (max-width: 940px) {
  .site-header,
  .hero-grid,
  .section-heading,
  .systems-section,
  .apply-card {
    grid-template-columns: 1fr;
  }

  .nav-links {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .language-switcher {
    justify-self: start;
  }

  .signal-strip,
  .role-grid,
  .process-timeline {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 24px, 1180px);
  }

  .site-header {
    top: 8px;
    margin-top: 8px;
  }

  .hero-section {
    padding: 46px 0 58px;
  }

  h1 {
    font-size: clamp(2.45rem, 13vw, 3.85rem);
    line-height: 1;
  }

  h2 {
    font-size: clamp(1.7rem, 8vw, 2.45rem);
  }

  .signal-strip,
  .role-grid,
  .process-timeline,
  .application-form {
    grid-template-columns: 1fr;
  }

  .application-form {
    padding: 18px;
  }

  .board-row {
    grid-template-columns: 1fr;
  }

  .cursor-glow {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
