:root {
  --program-bg: #f3f4f1;
  --program-surface: #ffffff;
  --program-surface-soft: #e9ece8;
  --program-ink: #17201f;
  --program-muted: #66716e;
  --program-line: #d9dedb;
  --program-dark: #172421;
  --program-dark-soft: #22322e;
  --program-accent: #496d62;
  --program-accent-dark: #36554d;
  --program-accent-soft: #dde7e3;
  --program-warm: #8a7656;
  --program-radius: 12px;
  --program-shadow: 0 22px 55px rgba(20, 31, 28, 0.1);
  --program-container: 1160px;
}

body[data-program="erp"] {
  --program-accent: #526576;
  --program-accent-dark: #3e5060;
  --program-accent-soft: #e0e6ea;
  --program-dark: #1c252d;
  --program-dark-soft: #28343e;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--program-bg);
  color: var(--program-ink);
  font-family: Tahoma, "Segoe UI", Arial, sans-serif;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body[data-language="en"] {
  font-family: "Segoe UI", Arial, sans-serif;
}

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

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(73, 109, 98, 0.3);
  outline-offset: 3px;
}

.program-container {
  width: min(calc(100% - 40px), var(--program-container));
  margin-inline: auto;
}

.program-header {
  position: relative;
  z-index: 10;
  height: 78px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--program-dark);
  color: #fff;
}

.program-nav {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}

.program-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  direction: ltr;
}

.program-brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  font-size: 17px;
  font-weight: 800;
}

.program-brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.program-brand-copy b {
  font-size: 14px;
}

.program-brand-copy small {
  margin-top: 4px;
  color: #aebbb7;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1.5px;
}

.program-nav-actions {
  margin-inline-start: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.program-back,
.program-language {
  min-height: 38px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 7px;
  background: transparent;
  color: #e8eeec;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  transition: border-color 160ms ease, background 160ms ease;
}

.program-back:hover,
.program-language:hover {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.06);
}

.program-hero {
  position: relative;
  overflow: hidden;
  background: var(--program-dark);
  color: #fff;
}

.program-hero::after {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-end: 0;
  width: 34%;
  border-inline-start: 1px solid rgba(255, 255, 255, 0.07);
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 58px 58px;
  pointer-events: none;
}

.program-hero-grid {
  position: relative;
  z-index: 1;
  min-height: 620px;
  padding-block: 82px 90px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.78fr);
  align-items: center;
  gap: 86px;
}

.program-eyebrow {
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 11px;
  color: #c4d1cd;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.program-eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
}

.program-eyebrow.accent {
  color: var(--program-accent);
}

.program-status {
  width: fit-content;
  margin-bottom: 24px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: #d7e0dd;
  font-size: 9px;
  font-weight: 700;
}

.program-hero h1 {
  margin: 0;
  direction: ltr;
  font-size: clamp(50px, 7vw, 82px);
  line-height: 1;
  letter-spacing: -2.2px;
  text-align: start;
}

[dir="rtl"] .program-hero h1 {
  text-align: right;
}

.program-hero h2 {
  max-width: 690px;
  margin: 25px 0 0;
  font-size: clamp(25px, 3vw, 38px);
  line-height: 1.45;
  font-weight: 600;
}

.program-lead {
  max-width: 690px;
  margin: 22px 0 0;
  color: #acb9b5;
  font-size: 15px;
  line-height: 2;
}

.program-note {
  margin: 30px 0 0;
  padding-inline-start: 15px;
  border-inline-start: 2px solid var(--program-warm);
  color: #cad3d0;
  font-size: 11px;
}

.login-panel {
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: 0 24px 60px rgba(4, 10, 9, 0.18);
  backdrop-filter: blur(8px);
}

.login-panel-head {
  margin-bottom: 24px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.login-panel-head h3 {
  margin: 0;
  font-size: 21px;
}

.login-panel-head p {
  margin: 5px 0 0;
  color: #9eada8;
  font-size: 10px;
}

.login-lock {
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  color: #c9d4d0;
  font-size: 8px;
  white-space: nowrap;
}

.login-form {
  display: grid;
  gap: 15px;
}

.login-field {
  display: grid;
  gap: 7px;
}

.login-field span {
  color: #cfd8d5;
  font-size: 10px;
  font-weight: 700;
}

.login-field input {
  width: 100%;
  height: 47px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 7px;
  background: rgba(8, 19, 16, 0.34);
  color: #fff;
  font-size: 13px;
  transition: border-color 160ms ease, background 160ms ease;
}

.login-field input::placeholder {
  color: #7f8d89;
}

.login-field input:focus {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(8, 19, 16, 0.5);
  outline: none;
}

.login-submit {
  min-height: 48px;
  margin-top: 3px;
  border: 0;
  border-radius: 7px;
  background: #fff;
  color: var(--program-dark);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  transition: background 160ms ease, transform 160ms ease;
}

.login-submit:hover {
  background: #edf1ef;
  transform: translateY(-1px);
}

.login-privacy {
  margin: 0;
  color: #82918c;
  font-size: 8px;
  text-align: center;
}

.login-message {
  display: none;
  margin: 3px 0 0;
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.07);
  color: #d9e2df;
  font-size: 10px;
  line-height: 1.7;
}

.login-message.is-visible {
  display: block;
}

.program-section {
  padding-block: 100px;
}

.program-section.white {
  background: var(--program-surface);
}

.program-section-header {
  max-width: 750px;
  margin-bottom: 44px;
}

.program-section-header p:first-child {
  margin: 0 0 12px;
  color: var(--program-accent);
  font-size: 11px;
  font-weight: 800;
}

.program-section-header h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.3;
  letter-spacing: -0.8px;
}

.program-section-header > p:last-child {
  margin: 17px 0 0;
  color: var(--program-muted);
  font-size: 14px;
  line-height: 1.9;
}

.program-capabilities {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.program-capability {
  min-height: 220px;
  padding: 25px;
  border: 1px solid var(--program-line);
  border-radius: var(--program-radius);
  background: var(--program-surface);
}

.program-capability small {
  color: #a2aaa7;
  font-size: 9px;
  font-weight: 800;
}

.program-capability h3 {
  margin: 34px 0 12px;
  font-size: 18px;
  line-height: 1.5;
}

.program-capability p {
  margin: 0;
  color: var(--program-muted);
  font-size: 10px;
  line-height: 1.9;
}

.program-development {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  align-items: start;
  gap: 80px;
}

.program-development h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.4;
}

.development-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--program-line);
}

.development-list li {
  padding: 22px 0;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 17px;
  border-bottom: 1px solid var(--program-line);
}

.development-list span {
  color: var(--program-accent);
  font-size: 10px;
  font-weight: 800;
}

.development-list b {
  display: block;
  margin-bottom: 5px;
  font-size: 14px;
}

.development-list p {
  margin: 0;
  color: var(--program-muted);
  font-size: 10px;
}

.program-footer {
  padding-block: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--program-dark);
  color: #aab8b4;
  font-size: 10px;
}

.program-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.program-footer a {
  color: #e3e9e7;
  font-weight: 700;
}

@media (max-width: 980px) {
  .program-hero-grid {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .login-panel {
    max-width: 620px;
  }

  .program-capabilities {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .program-development {
    grid-template-columns: 1fr;
    gap: 42px;
  }
}

@media (max-width: 640px) {
  .program-container {
    width: min(calc(100% - 28px), var(--program-container));
  }

  .program-header {
    height: 70px;
  }

  .program-brand-copy small {
    display: none;
  }

  .program-brand-copy b {
    font-size: 12px;
  }

  .program-back {
    width: 40px;
    padding: 0;
    overflow: hidden;
    color: transparent;
  }

  .program-back::after {
    content: "\2190";
    color: #fff;
    font-size: 17px;
  }

  [dir="rtl"] .program-back::after {
    content: "\2192";
  }

  .program-language {
    min-width: 70px;
    padding-inline: 10px;
  }

  .program-hero-grid {
    padding-block: 58px 68px;
    gap: 42px;
  }

  .program-hero h1 {
    font-size: clamp(44px, 16vw, 64px);
  }

  .program-hero h2 {
    font-size: 24px;
  }

  .login-panel {
    padding: 22px;
  }

  .program-section {
    padding-block: 72px;
  }

  .program-capabilities {
    grid-template-columns: 1fr;
  }

  .program-capability {
    min-height: 0;
  }

  .program-capability h3 {
    margin-top: 22px;
  }

  .program-footer-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
  }

  input {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
