:root {
  --color-primary: #b3202a;
  --color-primary-dark: #7e1820;
  --color-primary-deep: #4a1116;
  --color-primary-soft: #f4dadd;
  --color-primary-tint: #fbf0f1;
  --color-accent: #d94a54;
  --color-accent-dark: #981b24;
  --color-bg: #ffffff;
  --color-bg-soft: #f7f7f8;
  --color-surface: #fcfcfd;
  --color-surface-warm: #faf7f7;
  --color-text: #1e1e24;
  --color-muted: #666a73;
  --color-border: #e5e7eb;
  --color-border-brand: #e6c5c8;
  --color-dark-section: #2b1618;
  --color-graphite: #211f23;
  --color-graphite-soft: #343036;
  --color-white: #ffffff;
  --color-transparent: transparent;

  --hero-bg-a: rgba(43, 22, 24, 0.98);
  --hero-bg-b: rgba(74, 17, 22, 0.92);
  --hero-line: rgba(255, 255, 255, 0.055);
  --hero-line-red: rgba(217, 74, 84, 0.16);
  --hero-text-muted: rgba(255, 255, 255, 0.78);
  --panel-bg: rgba(255, 255, 255, 0.065);
  --panel-row-bg: rgba(255, 255, 255, 0.045);
  --panel-line: rgba(255, 255, 255, 0.13);
  --panel-muted: rgba(255, 255, 255, 0.68);
  --header-bg: rgba(255, 255, 255, 0.94);
  --footer-muted: rgba(255, 255, 255, 0.68);

  --shadow-soft: 0 12px 34px rgba(30, 30, 36, 0.07);
  --shadow-medium: 0 22px 62px rgba(30, 30, 36, 0.13);
  --shadow-dark: 0 28px 80px rgba(43, 22, 24, 0.32);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 74px;
  padding: 14px clamp(20px, 5vw, 72px);
  color: var(--color-text);
  background: var(--header-bg);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
  transition: background 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.site-header.is-scrolled {
  background: var(--header-bg);
  color: var(--color-text);
  box-shadow: var(--shadow-soft);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-logo-shell {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 122px;
  height: 42px;
  padding: 0;
  border-radius: 0;
  background: var(--color-transparent);
  box-shadow: none;
}

.brand-logo-shell img {
  width: 100%;
  max-height: 32px;
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 16px;
  line-height: 1.1;
}

.brand small {
  max-width: 310px;
  margin-top: 3px;
  color: currentColor;
  font-size: 11px;
  opacity: 0.72;
  letter-spacing: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
  font-weight: 700;
}

.site-nav a {
  opacity: 0.88;
}

.site-nav a:hover {
  color: var(--color-accent);
  opacity: 1;
}

.nav-cta {
  padding: 10px 15px;
  border: 1px solid var(--color-primary);
  border-radius: var(--radius);
  background: var(--color-primary);
  color: var(--color-white);
}

.is-scrolled .nav-cta {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: var(--color-white);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--panel-line);
  border-radius: var(--radius);
  background: var(--color-transparent);
  color: currentColor;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 92vh;
  padding: 150px clamp(20px, 5vw, 72px) 72px;
  color: var(--color-white);
  background: var(--color-dark-section);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--color-dark-section) 0%, var(--hero-bg-a) 36%, var(--color-transparent) 72%),
    linear-gradient(180deg, var(--hero-bg-a) 0%, var(--color-transparent) 46%, var(--hero-bg-a) 100%),
    url("../img/jda-hero-platform.png") center / cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(var(--hero-line) 1px, var(--color-transparent) 1px),
    linear-gradient(90deg, var(--hero-line) 1px, var(--color-transparent) 1px);
  background-size: 76px 76px;
  opacity: 0.22;
}

.hero::after {
  content: "";
  position: absolute;
  left: clamp(20px, 5vw, 72px);
  bottom: 64px;
  width: min(420px, 42vw);
  height: 4px;
  background: linear-gradient(90deg, var(--color-transparent), var(--color-accent), var(--color-transparent));
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  gap: clamp(32px, 6vw, 84px);
  align-items: end;
}

.hero-copy-block {
  max-width: 820px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--color-accent);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.hero h1,
.section h2 {
  margin: 0;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 860px;
  font-size: clamp(38px, 5.7vw, 64px);
  line-height: 1.05;
  text-wrap: balance;
}

.hero-copy {
  max-width: 760px;
  margin: 24px 0 0;
  color: var(--hero-text-muted);
  font-size: 18px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 0;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.button.primary {
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 16px 34px var(--hero-line-red);
}

.button.primary:hover {
  background: var(--color-accent-dark);
}

.button:disabled {
  cursor: wait;
  opacity: 0.68;
  pointer-events: none;
}

.button.secondary {
  background: var(--color-transparent);
  color: var(--color-white);
  box-shadow: inset 0 0 0 1px var(--panel-line);
}

.hero-panel,
.command-panel,
.case-group,
.solution-card,
.project-card,
.contact-form,
.intro-grid article {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.hero-panel {
  overflow: hidden;
  border-color: var(--panel-line);
  background: var(--panel-bg);
  box-shadow: var(--shadow-dark);
  backdrop-filter: blur(18px);
}

.system-status {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border-bottom: 1px solid var(--panel-line);
}

.system-status div {
  padding: 16px;
  background: var(--panel-row-bg);
}

.system-status small,
.endpoint-card p {
  display: block;
  margin: 0 0 6px;
  color: var(--panel-muted);
  font-size: 12px;
}

.system-status strong {
  color: var(--color-primary-soft);
  font-size: 18px;
}

.endpoint-card {
  margin: 14px;
  padding: 14px;
  border: 1px solid var(--panel-line);
  border-radius: var(--radius);
  background: var(--panel-row-bg);
}

.endpoint-card code {
  display: block;
  overflow-wrap: anywhere;
  color: var(--color-primary-soft);
  font-family: "Courier New", monospace;
  font-size: 12px;
  line-height: 1.5;
}

.panel-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--panel-line);
  color: var(--panel-muted);
  font-size: 13px;
}

.panel-header span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-primary);
}

.panel-header span:nth-child(2) {
  background: var(--color-accent);
}

.panel-header span:nth-child(3) {
  margin-right: 8px;
  background: var(--color-primary-soft);
}

.tech-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px;
  border-top: 1px solid var(--panel-line);
}

.tech-chips span {
  padding: 7px 10px;
  border: 1px solid var(--panel-line);
  border-radius: var(--radius);
  color: var(--hero-text-muted);
  font-size: 12px;
  font-weight: 800;
}

.section {
  padding: 90px clamp(20px, 5vw, 72px);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading.wide {
  max-width: 960px;
}

.section h2 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.07;
  text-wrap: balance;
}

.section-heading p:not(.eyebrow),
.brand-text p,
.suite-copy p,
.custom-content p,
.contact-copy p {
  color: var(--color-muted);
  font-size: 18px;
}

.intro,
.use-cases,
.projects {
  background: var(--color-bg);
}

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

.intro-grid article {
  position: relative;
  overflow: hidden;
  padding: 24px;
  background: var(--color-surface);
}

.intro-grid article::before,
.solution-card::before,
.project-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--color-primary);
  opacity: 0;
  transition: opacity 180ms ease;
}

.intro-grid article:hover::before,
.solution-card:hover::before,
.project-card:hover::before {
  opacity: 1;
}

.icon-box {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border-radius: var(--radius);
  background: var(--color-primary-tint);
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 800;
  box-shadow: inset 0 0 0 1px var(--color-border-brand);
}

h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.22;
}

.intro-grid p,
.solution-card p,
.case-group li,
.project-card p,
.project-card li,
.process-list p,
.site-footer p {
  color: var(--color-muted);
}

.brand-architecture {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 1.05fr);
  gap: 42px;
  align-items: center;
  background:
    linear-gradient(135deg, var(--color-bg), var(--color-bg-soft)),
    url("../brand/jda-network-bg.png") center / cover;
}

.brand-text {
  max-width: 760px;
}

.brand-architecture-diagram {
  position: relative;
  display: grid;
  gap: 16px;
}

.brand-architecture-diagram::before {
  content: "";
  position: absolute;
  top: 90px;
  bottom: 72px;
  left: 50%;
  width: 1px;
  background: var(--color-border-brand);
}

.architecture-node {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 22px;
  align-items: center;
  padding: 24px;
  border: 1px solid var(--color-border-brand);
  border-radius: var(--radius);
  background: var(--color-bg);
  box-shadow: var(--shadow-soft);
}

.architecture-node::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--color-primary);
}

.architecture-node-platform {
  border-color: var(--color-primary-soft);
  background: var(--color-surface);
}

.node-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 92px;
}

.node-logo img {
  max-width: 150px;
  max-height: 72px;
  object-fit: contain;
}

.node-logo-netbox img {
  max-width: 170px;
}

.node-kicker {
  margin: 0 0 6px;
  color: var(--color-primary);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.architecture-node h3 {
  margin-bottom: 8px;
}

.architecture-node p:not(.node-kicker) {
  margin: 0;
  color: var(--color-muted);
}

.architecture-connector {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  min-height: 46px;
  color: var(--color-primary);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.architecture-connector span {
  align-self: center;
  padding: 7px 12px;
  border: 1px solid var(--color-border-brand);
  border-radius: var(--radius);
  background: var(--color-bg);
}

.architecture-connector::before,
.architecture-connector::after {
  content: "";
  width: 1px;
  height: 12px;
  background: var(--color-primary);
}

.architecture-connector-small {
  min-height: 34px;
}

.architecture-connector-small::before,
.architecture-connector-small::after {
  height: 8px;
}

.module-map {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--color-border-brand);
  border-radius: var(--radius);
  background: var(--color-bg);
  box-shadow: var(--shadow-soft);
}

.module-map span {
  display: grid;
  place-items: center;
  min-height: 42px;
  padding: 8px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-primary-tint);
  color: var(--color-primary-dark);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.platform,
.custom-build {
  color: var(--color-white);
  background: linear-gradient(135deg, var(--color-dark-section), var(--color-graphite));
}

.platform .section-heading p:not(.eyebrow),
.custom-build p {
  color: var(--hero-text-muted);
}

.platform-grid,
.custom-build,
.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: 36px;
  align-items: start;
}

.command-panel {
  overflow: hidden;
  border-color: var(--panel-line);
  background: var(--panel-bg);
  box-shadow: var(--shadow-dark);
}

.signal-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin: 14px;
  padding: 15px;
  border: 1px solid var(--panel-line);
  border-radius: var(--radius);
  background: var(--panel-row-bg);
  font-family: "Courier New", monospace;
}

.signal-row span {
  color: var(--panel-muted);
}

.signal-row strong {
  color: var(--color-primary-soft);
  text-align: right;
}

.platform-points,
.process-list {
  display: grid;
  gap: 14px;
}

.platform-points article,
.process-list div {
  padding: 22px;
  border: 1px solid var(--panel-line);
  border-radius: var(--radius);
  background: var(--panel-bg);
}

.platform-points span,
.process-list span {
  display: inline-flex;
  margin-bottom: 16px;
  color: var(--color-accent);
  font-weight: 800;
}

.platform-points p,
.process-list p {
  margin-bottom: 0;
  color: var(--hero-text-muted);
}

.solutions {
  background: var(--color-bg-soft);
}

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

.solution-card {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  padding: 24px;
  background: var(--color-bg);
  box-shadow: var(--shadow-soft);
}

.solution-card.featured {
  border-color: var(--color-border-brand);
  box-shadow: var(--shadow-medium);
}

.solution-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  color: var(--color-muted);
  font-size: 13px;
}

.solution-top span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius);
  background: var(--color-primary);
  color: var(--color-white);
  font-weight: 800;
}

.solution-card ul,
.project-card ul,
.case-group ul {
  display: grid;
  gap: 9px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.solution-card li,
.project-card li,
.case-group li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
}

.solution-card li::before,
.project-card li::before,
.case-group li::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-primary);
}

.custom-build {
  align-items: start;
}

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

.case-group {
  padding: 24px;
  background: var(--color-surface);
  border-top: 4px solid var(--color-primary);
}

.case-group:nth-child(2),
.case-group:nth-child(4) {
  border-top-color: var(--color-accent);
}

.case-group:nth-child(3) {
  border-top-color: var(--color-primary-dark);
}

.integrations {
  background: var(--color-bg-soft);
}

.integration-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.integration-strip span {
  padding: 12px 15px;
  border: 1px solid var(--color-border-brand);
  border-radius: var(--radius);
  background: var(--color-bg);
  color: var(--color-primary-dark);
  font-weight: 800;
  box-shadow: var(--shadow-soft);
}

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

.project-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  background: var(--color-bg);
  box-shadow: var(--shadow-soft);
}

.tag {
  display: inline-flex;
  margin: 0 0 16px;
  padding: 6px 10px;
  border-radius: var(--radius);
  background: var(--color-primary-tint);
  color: var(--color-primary-dark);
  font-size: 12px;
  font-weight: 800;
}

.contact {
  background: linear-gradient(135deg, var(--color-bg), var(--color-primary-tint));
}

.contact-methods {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.contact-methods a {
  color: var(--color-primary);
  font-weight: 800;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 24px;
  background: var(--color-bg);
  box-shadow: var(--shadow-medium);
}

label {
  display: grid;
  gap: 7px;
  color: var(--color-text);
  font-size: 14px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 12px 13px;
  color: var(--color-text);
  font: inherit;
  background: var(--color-bg);
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 1px;
}

textarea {
  resize: vertical;
}

.captcha-box {
  min-height: 65px;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 28px;
  padding: 44px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-text);
}

.footer-brand {
  margin-bottom: 14px;
}

.site-footer p {
  max-width: 560px;
  margin: 0;
  color: var(--color-muted);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  justify-content: flex-end;
  gap: 14px 20px;
  font-weight: 700;
}

.site-footer nav a:hover {
  color: var(--color-accent);
}

.result-page {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 24px;
  background:
    linear-gradient(120deg, var(--hero-bg-a), var(--hero-bg-b)),
    var(--color-dark-section);
}

.result-card {
  width: min(560px, 100%);
  padding: 32px;
  border: 1px solid var(--panel-line);
  border-radius: var(--radius);
  background: var(--color-bg);
  box-shadow: var(--shadow-dark);
}

.result-card h1 {
  margin: 0;
  color: var(--color-text);
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.08;
}

.result-card p:not(.eyebrow) {
  color: var(--color-muted);
}

.result-note {
  padding: 12px;
  border: 1px solid var(--color-border-brand);
  border-radius: var(--radius);
  background: var(--color-primary-tint);
}

.copyright {
  grid-column: 1 / -1;
  padding-top: 22px;
  border-top: 1px solid var(--color-border);
  font-size: 14px;
}

@media (max-width: 1080px) {
  .site-nav {
    gap: 14px;
  }

  .intro-grid,
  .case-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 20px;
    left: 20px;
    display: none;
    align-items: stretch;
    padding: 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-bg);
    color: var(--color-text);
    box-shadow: var(--shadow-medium);
  }

  .site-nav.is-open {
    display: grid;
  }

  .nav-cta,
  .is-scrolled .nav-cta {
    border-color: var(--color-primary);
    background: var(--color-primary);
    color: var(--color-white);
  }

  .hero-content,
  .brand-architecture,
  .platform-grid,
  .custom-build,
  .contact {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 680px) {
  .site-header {
    min-height: 68px;
    padding: 12px 18px;
  }

  .brand-logo-shell {
    width: 96px;
  }

  .site-header .brand-header-text {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 120px 18px 54px;
  }

  .hero h1 {
    font-size: 38px;
    line-height: 1.03;
  }

  .hero-copy {
    font-size: 16px;
  }

  .hero-actions,
  .hero-actions .button {
    width: 100%;
  }

  .section {
    padding: 64px 18px;
  }

  .intro-grid,
  .solution-grid,
  .case-groups,
  .project-grid,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .solution-card {
    min-height: auto;
  }

  .signal-row {
    display: grid;
  }

  .architecture-node {
    grid-template-columns: 1fr;
  }

  .node-logo {
    justify-content: flex-start;
  }

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


  .site-footer nav {
    justify-content: flex-start;
  }
}
