:root {
  --primary-navy: #02003F;
  --accent-orange: #F47C20;
  --off-white: #F5F4EF;
  --footer-navy: #0a0d2e;
  --text-dark: #151724;
}

@font-face {
  font-family: "Sakkal Majalla";
  src: url("/fonts/sakkal.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--primary-navy);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--off-white);
  background: var(--primary-navy);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

button,
input,
textarea {
  font: inherit;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p,
ul {
  margin: 0;
}

ul {
  padding-left: 1.1rem;
}

.site-header {
  width: min(1140px, calc(100% - 48px));
  margin: 0 auto;
  padding: 36px 0 16px;
}

.company-mark {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  color: var(--accent-orange);
  text-decoration: none;
  white-space: nowrap;
}

.company-mark img {
  display: block;
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.company-mark span {
  font-family: "Sakkal Majalla", Georgia, serif;
  font-size: 3.25rem;
  line-height: 1;
  font-weight: 400;
  letter-spacing: 0;
}

.section-inner {
  width: min(1140px, calc(100% - 48px));
  margin: 0 auto;
}

.hero {
  padding: 54px 0 70px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
  gap: 56px;
  align-items: center;
}

.hero-copy {
  max-width: 760px;
}

h1 {
  max-width: 760px;
  color: var(--off-white);
  font-size: 5.5rem;
  line-height: 0.96;
  font-weight: 800;
  letter-spacing: 0;
}

.hero-subheadline {
  max-width: 720px;
  margin-top: 24px;
  color: var(--accent-orange);
  font-size: 2rem;
  line-height: 1.18;
  font-weight: 750;
}

.hero-supporting {
  display: grid;
  gap: 9px;
  max-width: 680px;
  margin-top: 28px;
  font-size: 1.08rem;
  line-height: 1.45;
}

.button-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  margin-top: 32px;
  padding: 0 24px;
  border: 2px solid var(--accent-orange);
  color: var(--primary-navy);
  background: var(--accent-orange);
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
}

.button-primary:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.button-primary:focus-visible,
.z-footer a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--accent-orange);
  outline-offset: 3px;
}

.technical-panel {
  min-height: 360px;
  border: 1px solid rgba(245, 244, 239, 0.14);
  background:
    linear-gradient(rgba(245, 244, 239, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 244, 239, 0.055) 1px, transparent 1px),
    rgba(255, 255, 255, 0.025);
  background-size: 26px 26px;
  position: relative;
  overflow: hidden;
}

.technical-panel::before,
.technical-panel::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(244, 124, 32, 0.62);
}

.technical-panel::before {
  inset: 38px 46px auto auto;
  width: 118px;
  height: 90px;
}

.technical-panel::after {
  inset: auto auto 42px 42px;
  width: 150px;
  height: 108px;
}

.panel-window {
  position: absolute;
  inset: 58px 54px auto 54px;
  display: grid;
  gap: 12px;
}

.panel-window span,
.panel-flow span {
  display: block;
  height: 10px;
  background: rgba(245, 244, 239, 0.24);
}

.panel-window span:nth-child(1) {
  width: 78%;
}

.panel-window span:nth-child(2) {
  width: 56%;
}

.panel-window span:nth-child(3) {
  width: 68%;
}

.panel-flow {
  position: absolute;
  right: 54px;
  bottom: 64px;
  left: 92px;
  display: grid;
  gap: 18px;
}

.panel-flow span {
  height: 16px;
  border-left: 4px solid var(--accent-orange);
  background: rgba(245, 244, 239, 0.16);
}

.content-section {
  padding: 58px 0;
}

.section-offwhite {
  color: var(--text-dark);
  background: var(--off-white);
}

.section-white {
  color: var(--text-dark);
  background: #ffffff;
}

.section-navy {
  color: var(--off-white);
  background: var(--primary-navy);
  border-top: 1px solid rgba(245, 244, 239, 0.1);
  border-bottom: 1px solid rgba(245, 244, 239, 0.1);
}

.split-section,
.form-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1.18fr);
  gap: 52px;
  align-items: start;
}

.split-section.compact {
  align-items: center;
}

h2 {
  max-width: 620px;
  font-size: 2.25rem;
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  font-size: 1.05rem;
  line-height: 1.35;
  letter-spacing: 0;
}

.content-section p {
  max-width: 760px;
  margin-top: 16px;
  font-size: 1rem;
  line-height: 1.65;
}

.tight-list,
.feature-list {
  display: grid;
  gap: 8px;
  font-size: 1rem;
  line-height: 1.45;
}

.secondary-list {
  margin-top: 14px;
}

.feature-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-left: 0;
  list-style: none;
}

.feature-list li {
  border-left: 3px solid var(--accent-orange);
  padding-left: 12px;
}

.emphasis {
  margin-top: 28px;
}

.emphasis p {
  color: var(--accent-orange);
  font-weight: 800;
}

.emphasis p + p {
  margin-top: 6px;
  color: var(--off-white);
  font-weight: 700;
}

.example-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 30px;
  background: rgba(2, 0, 63, 0.16);
}

.example-item {
  min-height: 188px;
  padding: 28px;
  background: #ffffff;
}

.example-item h3 {
  color: var(--primary-navy);
}

.example-item p {
  margin-top: 14px;
}

.final-cta {
  scroll-margin-top: 18px;
}

.migration-form {
  display: grid;
  gap: 16px;
}

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

label {
  display: grid;
  gap: 7px;
  color: var(--text-dark);
  font-size: 0.92rem;
  font-weight: 750;
}

.required {
  color: var(--accent-orange);
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(2, 0, 63, 0.22);
  border-radius: 0;
  color: var(--text-dark);
  background: #ffffff;
  padding: 10px 13px;
  line-height: 1.4;
}

textarea {
  min-height: 105px;
  resize: vertical;
}

.form-submit {
  width: fit-content;
  margin-top: 4px;
}

.z-footer {
  background: var(--footer-navy);
  padding: 56px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.z-footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 48px;
  align-items: start;
}

.z-footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.z-footer-brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.z-footer-brand-logo img {
  height: 32px;
  width: 32px;
  object-fit: contain;
}

.z-footer-brand-logo span {
  font-family: "Sakkal Majalla", Georgia, serif;
  font-size: 26px;
  color: #f7941d;
  font-weight: 400;
  line-height: 1.2;
}

.z-footer-tagline {
  color: rgba(255, 255, 255, 0.45);
  font-size: 13px;
  line-height: 1.6;
  margin: 4px 0 0;
}

.z-footer-social {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.z-footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.06);
  transition: background 0.2s;
}

.z-footer-social a:hover {
  background: rgba(255, 255, 255, 0.12);
}

.z-footer-social a svg {
  width: 14px;
  height: 14px;
  fill: rgba(255, 255, 255, 0.5);
}

.z-footer h4 {
  color: rgba(255, 255, 255, 0.35);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin: 0 0 20px;
  font-family: "SF Mono", Monaco, Consolas, "Liberation Mono", monospace;
}

.z-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.z-footer-links li {
  margin-bottom: 10px;
}

.z-footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s;
  line-height: 1.5;
}

.z-footer-links a:hover {
  color: #f7941d;
}

.z-footer-contact-item {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  margin-bottom: 12px;
  line-height: 1.5;
}

.z-footer-contact-item a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s;
}

.z-footer-contact-item a:hover {
  color: #f7941d;
}

.z-footer-contact-address {
  color: rgba(255, 255, 255, 0.45);
  font-size: 13px;
  line-height: 1.6;
  margin-top: 16px;
}

.z-footer-bottom {
  max-width: 1140px;
  margin: 40px auto 0;
  padding: 20px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
}

.z-footer-copyright {
  color: rgba(255, 255, 255, 0.3);
  font-size: 12px;
}

@media (max-width: 960px) {
  .hero-grid,
  .split-section,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 36px;
  }

  h1 {
    font-size: 4.25rem;
  }

  .example-grid {
    grid-template-columns: 1fr;
  }

  .z-footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 40px 32px;
  }
}

@media (max-width: 600px) {
  .site-header,
  .section-inner {
    width: min(1140px, calc(100% - 32px));
  }

  .site-header {
    padding-top: 18px;
  }

  .company-mark {
    gap: 12px;
  }

  .company-mark img {
    width: 38px;
    height: 38px;
  }

  .company-mark span {
    font-size: 1.7rem;
  }

  .hero {
    padding: 34px 0 48px;
  }

  h1 {
    font-size: 3.15rem;
    line-height: 1;
  }

  h2 {
    font-size: 1.75rem;
  }

  .hero-subheadline {
    font-size: 1.55rem;
  }

  .button-primary {
    width: 100%;
  }

  .technical-panel {
    min-height: 248px;
  }

  .content-section {
    padding: 42px 0;
  }

  .feature-list,
  .field-grid {
    grid-template-columns: 1fr;
  }

  .migration-form {
    gap: 11px;
  }

  .field-grid {
    gap: 11px;
  }

  .migration-form label {
    gap: 5px;
  }

  .migration-form input,
  .migration-form textarea {
    padding: 7px 11px;
  }

  .migration-form textarea {
    min-height: 64px;
  }

  .example-item {
    min-height: unset;
    padding: 24px;
  }

  .z-footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .z-footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}
