:root {
  --j77-blue: #3b82f6;
  --j77-blue-dark: #2563eb;
  --j77-red: #c92822;
  --j77-ink: #0d1526;
  --j77-black: #0d0b0b;
  --j77-muted: #f3f4f6;
  --j77-green: #06241a;
  --j77-white: #ffffff;
  --j77-copy: #4b5563;
  --j77-border: #e5e7eb;
  --j77-radius: 16px;
  --j77-shadow: 0 20px 50px rgba(13, 21, 38, 0.1);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

html body {
  margin: 0;
  background: var(--j77-white);
  color: #111827;
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

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

p {
  margin: 0 0 1rem;
}

h1,
h2,
h3 {
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 0;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.screen-reader-text,
.j77-skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.j77-skip-link:focus {
  z-index: 10000;
  top: 8px;
  left: 8px;
  width: auto;
  height: auto;
  padding: 10px 16px;
  overflow: visible;
  clip: auto;
  background: #fff;
  color: #000;
}

.j77-container {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

.j77-main {
  min-height: 60vh;
}

.j77-header {
  position: sticky;
  z-index: 100;
  top: 0;
  background: rgba(13, 21, 38, 0.97);
  color: #fff;
  transition: box-shadow 180ms ease, background 180ms ease;
}

.j77-header.is-scrolled {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
  background: rgba(13, 21, 38, 0.99);
}

.j77-header__inner {
  display: flex;
  min-height: 70px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.j77-brand {
  display: inline-flex;
  align-items: baseline;
  color: #fff;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1;
}

.j77-brand strong {
  color: var(--j77-red);
}

.j77-nav {
  display: flex;
  align-items: center;
  gap: 31px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.j77-nav > a:not(.j77-nav__cta) {
  color: rgba(255, 255, 255, 0.63);
  transition: color 150ms ease;
}

.j77-nav > a:hover,
.j77-nav > a:focus-visible {
  color: #fff;
}

.j77-nav__cta {
  padding: 14px 23px;
  border-radius: 4px;
  background: var(--j77-red);
  color: #fff;
}

.j77-menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 0;
  background: transparent;
}

.j77-menu-toggle i {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  background: #fff;
}

.j77-section {
  position: relative;
  padding: 104px 0;
  overflow: hidden;
}

.j77-section--white {
  background: #fff;
}

.j77-section--muted {
  background: var(--j77-muted);
}

.j77-section--green {
  background: #06241a;
  color: #fff;
}

.j77-section--dark {
  background: #111827;
  color: #fff;
}

.j77-section--green::before,
.j77-section--green::after,
.j77-section--dark::before {
  position: absolute;
  content: "";
  border-radius: 50%;
  pointer-events: none;
}

.j77-section--green::before {
  top: -60px;
  right: -80px;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.06);
}

.j77-section--green::after {
  bottom: -80px;
  left: -60px;
  width: 280px;
  height: 280px;
  background: rgba(255, 255, 255, 0.04);
}

.j77-section--dark::before {
  top: -100px;
  right: -100px;
  width: 480px;
  height: 480px;
  background: rgba(59, 130, 246, 0.06);
}

.j77-hero {
  position: relative;
  min-height: 650px;
  padding: 50px 0 70px;
  overflow: hidden;
  background: var(--j77-blue);
  color: #fff;
}

.j77-hero::before,
.j77-hero::after {
  position: absolute;
  content: "";
  border: 2px solid rgba(255, 255, 255, 0.045);
  border-radius: 50%;
  pointer-events: none;
}

.j77-hero::before {
  top: -330px;
  right: -80px;
  width: 720px;
  height: 720px;
  box-shadow: inset 0 0 0 90px rgba(255, 255, 255, 0.025);
}

.j77-hero::after {
  bottom: -350px;
  left: -210px;
  width: 620px;
  height: 620px;
}

.j77-hero__shape {
  position: absolute;
  top: 35px;
  left: 17%;
  width: 55%;
  height: 88%;
  border: 2px solid rgba(255, 255, 255, 0.03);
  border-radius: 46% 54% 40% 60%;
  transform: rotate(-8deg);
  pointer-events: none;
}

.j77-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 860px;
}

.j77-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin-bottom: 28px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.17);
  color: inherit;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.j77-hero h1 {
  max-width: 850px;
  color: #fff;
  font-size: clamp(54px, 5.4vw, 68px);
  font-weight: 800;
  line-height: 0.99;
}

.j77-hero__intro {
  max-width: 690px;
  margin-top: 26px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 17px;
  line-height: 1.75;
}

.j77-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.j77-button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border: 2px solid transparent;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  transition: transform 150ms ease, background 150ms ease, border-color 150ms ease;
}

.j77-button:hover {
  transform: translateY(-1px);
}

.j77-button--light {
  background: #fff;
  color: var(--j77-blue-dark);
}

.j77-button--outline {
  border-color: rgba(255, 255, 255, 0.62);
  color: #fff;
}

.j77-button--outline:hover {
  background: rgba(255, 255, 255, 0.12);
}

.j77-button--ghost {
  border-color: rgba(255, 255, 255, 0.25);
  background: transparent;
  color: #fff;
}

.j77-button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
  transform: none;
}

.j77-stats {
  display: grid;
  max-width: 760px;
  margin-top: 62px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  grid-template-columns: repeat(3, 1fr);
}

.j77-stat {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.j77-stat strong {
  font-size: 24px;
  font-weight: 800;
}

.j77-stat span {
  color: rgba(255, 255, 255, 0.64);
  font-size: 12px;
  font-style: italic;
}

.j77-section-head {
  max-width: 760px;
  margin-bottom: 50px;
}

.j77-section-head--compact {
  max-width: 560px;
  margin-bottom: 0;
}

.j77-section-head .j77-kicker {
  margin-bottom: 18px;
  background: rgba(59, 130, 246, 0.11);
  color: var(--j77-blue-dark);
}

.j77-section--green .j77-kicker,
.j77-section--dark .j77-kicker {
  min-height: auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.j77-section--green .j77-kicker {
  color: rgba(255, 255, 255, 0.65);
}

.j77-section--dark .j77-kicker {
  color: #f59e0b;
}

.j77-section-head h2,
.j77-about-copy h2,
.j77-contact-intro h2 {
  font-size: clamp(37px, 4.2vw, 57px);
  font-weight: 800;
}

.j77-about-copy h2,
.j77-contact-intro h2 {
  color: #fff;
}

.j77-section-head > p:last-child,
.j77-contact-intro > p:last-child {
  max-width: 680px;
  margin-top: 18px;
  color: var(--j77-copy);
  font-size: 17px;
}

.j77-section--green .j77-section-head > p:last-child,
.j77-section--dark .j77-section-head > p:last-child,
.j77-contact-intro > p:last-child {
  color: rgba(255, 255, 255, 0.65);
}

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

.j77-service-card {
  min-height: 278px;
  padding: 32px;
  border: 0;
  border-radius: 8px;
  background: var(--j77-muted);
  transition: transform 180ms ease, background 180ms ease;
}

.j77-service-card:nth-child(3n + 2) {
  background: #eff6ff;
}

.j77-service-card:nth-child(3n) {
  background: #f0fdf4;
}

.j77-service-card:hover {
  background: #e9eaec;
  transform: scale(1.02);
}

.j77-service-card:nth-child(3n + 2):hover {
  background: #dbeafe;
}

.j77-service-card:nth-child(3n):hover {
  background: #dcfce7;
}

.j77-service-card__icon {
  display: grid;
  width: 56px;
  height: 56px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--j77-blue);
  color: #fff;
  place-items: center;
  transition: transform 180ms ease;
}

.j77-service-card:nth-child(3n) .j77-service-card__icon {
  background: #059669;
}

.j77-service-card:hover .j77-service-card__icon {
  transform: scale(1.1);
}

.j77-service-card__icon svg {
  width: 25px;
  height: 25px;
}

.j77-service-card h3 {
  margin-bottom: 10px;
  font-size: 15.7px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.j77-service-card p {
  margin: 0;
  color: var(--j77-copy);
  font-size: 14px;
  line-height: 1.65;
}

.j77-logo-grid {
  display: flex;
  max-width: 1020px;
  margin-inline: auto;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.j77-logo-card {
  display: flex;
  width: 112px;
  min-height: 100px;
  align-items: center;
  justify-content: center;
  padding: 16px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  transition: transform 180ms ease, background 180ms ease;
}

.j77-logo-card:hover {
  background: #eff6ff;
  transform: scale(1.05);
}

.j77-logo-card img {
  max-width: 64px;
  max-height: 48px;
  object-fit: contain;
  transition: transform 180ms ease;
}

.j77-logo-card:hover img {
  transform: scale(1.08);
}

.j77-expertise-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 80px;
}

.j77-framework-grid {
  display: grid;
  margin-top: 32px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.j77-framework-card {
  display: flex;
  min-height: 68px;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border: 0;
  border-radius: 8px;
  background: var(--j77-muted);
  transition: transform 180ms ease, background 180ms ease;
}

.j77-framework-card:hover {
  background: #e5e7eb;
  transform: scale(1.02);
}

.j77-framework-card img {
  width: 36px;
  height: 36px;
  padding: 4px;
  border-radius: 6px;
  background: #fff;
  object-fit: contain;
  flex: 0 0 auto;
}

.j77-framework-card span {
  font-size: 14.7px;
  font-weight: 600;
}

.j77-tool-grid {
  display: flex;
  margin-top: 32px;
  flex-wrap: wrap;
  gap: 12px;
}

.j77-tool-card {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 6px;
  background: var(--j77-muted);
  font-size: 14px;
  font-weight: 600;
  transition: transform 180ms ease, background 180ms ease;
}

.j77-tool-card:hover {
  background: #e5e7eb;
  transform: scale(1.03);
}

.j77-tool-card img {
  width: 22px;
  height: 22px;
  padding: 2px;
  border-radius: 4px;
  background: #fff;
  object-fit: contain;
}

.j77-about-grid {
  position: relative;
  z-index: 1;
  display: grid;
  align-items: start;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 76px;
}

.j77-about-copy > p:not(.j77-kicker) {
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 16.8px;
  line-height: 1.75;
}

.j77-about-copy .j77-button {
  margin-top: 20px;
  border-color: #fff;
  background: #fff;
  color: #10b981;
}

.j77-about-copy .j77-button:hover {
  background: #f0fdf4;
}

.j77-credential-wrap > h3 {
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

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

.j77-credential {
  display: grid;
  min-height: 185px;
  padding: 24px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.15);
  grid-template-rows: 72px auto;
  transition: transform 180ms ease, background 180ms ease;
}

.j77-credential:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: scale(1.02);
}

.j77-credential img {
  max-width: 88px;
  max-height: 66px;
  object-fit: contain;
}

.j77-credential__icon {
  display: grid;
  width: 66px;
  height: 66px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  color: #fff;
  place-items: center;
}

.j77-credential__icon svg {
  width: 34px;
  height: 34px;
}

.j77-credential small {
  display: block;
  margin-bottom: 5px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 11px;
  text-transform: uppercase;
}

.j77-credential strong {
  display: block;
  color: #fff;
  font-size: 13px;
  line-height: 1.4;
}

/* CTF Arena homepage promotion, ported from the original Next.js homepage. */
.j77-ctf-promo {
  position: relative;
  padding: clamp(56px, 8vw, 88px) 24px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 45% 85% at 0% 50%, rgba(220, 38, 38, 0.13), transparent 70%),
    var(--j77-ink);
}

.j77-ctf-promo::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 44px 44px;
  content: "";
  mask-image: radial-gradient(ellipse 75% 90% at 50% 50%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 75% 90% at 50% 50%, #000 30%, transparent 100%);
  pointer-events: none;
}

.j77-ctf-inner {
  position: relative;
  display: grid;
  max-width: 1060px;
  margin: 0 auto;
  align-items: center;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(32px, 5vw, 64px);
}

.j77-ctf-visual {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  aspect-ratio: 4 / 3.4;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  transform: rotate(-1deg);
  transition: transform 300ms ease;
}

.j77-ctf-visual:hover {
  transform: rotate(0);
}

.j77-ctf-visual > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.75) contrast(1.08);
}

.j77-ctf-wash {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(200deg, rgba(220, 38, 38, 0.22), transparent 45%),
    linear-gradient(0deg, rgba(13, 21, 38, 0.9) 0%, rgba(13, 21, 38, 0.25) 45%, rgba(13, 21, 38, 0.15) 100%);
}

.j77-ctf-scan {
  position: absolute;
  top: -90px;
  right: 0;
  left: 0;
  height: 70px;
  border-bottom: 1px solid rgba(239, 68, 68, 0.45);
  background: linear-gradient(180deg, transparent, rgba(239, 68, 68, 0.1));
  animation: j77-ctf-scan 5.5s linear infinite;
}

@keyframes j77-ctf-scan {
  to {
    top: 110%;
  }
}

.j77-ctf-chip {
  position: absolute;
  top: 18px;
  left: 18px;
  display: inline-flex;
  padding: 8px 13px;
  border: 1px solid rgba(239, 68, 68, 0.5);
  border-radius: 8px;
  background: rgba(6, 11, 22, 0.85);
  color: #fff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  font-weight: 600;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: j77-ctf-float 4s ease-in-out infinite;
}

.j77-ctf-chip span {
  color: #4ade80;
}

@keyframes j77-ctf-float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

.j77-ctf-caption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  padding: 16px 18px 14px;
  color: #9aa7bd;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  align-items: flex-end;
  justify-content: space-between;
}

.j77-ctf-run {
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.j77-ctf-points {
  color: #fff;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.1;
}

.j77-ctf-points small {
  color: #ef4444;
  font-size: 11px;
}

.j77-ctf-categories {
  font-size: 10.5px;
  line-height: 1.8;
  text-align: right;
}

.j77-ctf-categories b {
  color: #fff;
  font-weight: 600;
}

.j77-ctf-eyebrow {
  display: inline-flex;
  padding: 7px 16px;
  margin-bottom: 22px;
  border: 1px solid rgba(220, 38, 38, 0.45);
  border-radius: 999px;
  background: rgba(220, 38, 38, 0.16);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  align-items: center;
  gap: 8px;
}

.j77-ctf-eyebrow > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ef4444;
  animation: j77-ctf-pulse 1.8s ease infinite;
}

@keyframes j77-ctf-pulse {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5);
  }

  50% {
    opacity: 0.6;
    box-shadow: 0 0 0 5px rgba(239, 68, 68, 0);
  }
}

.j77-ctf-copy h2 {
  margin-bottom: 18px;
  color: #fff;
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.12;
}

.j77-ctf-copy h2 span {
  color: #ef4444;
}

.j77-ctf-lead {
  max-width: 480px;
  margin-bottom: 28px;
  color: #9aa7bd;
  font-size: 15.5px;
  line-height: 1.7;
}

.j77-ctf-actions {
  display: flex;
  margin-bottom: 26px;
  flex-wrap: wrap;
  gap: 12px;
}

.j77-ctf-button {
  display: inline-flex;
  padding: 13px 26px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  align-items: center;
  gap: 9px;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease, border-color 150ms ease;
}

.j77-ctf-button svg {
  width: 16px;
  height: 16px;
}

.j77-ctf-button--primary {
  background: #dc2626;
  color: #fff;
  box-shadow: 0 6px 18px rgba(220, 38, 38, 0.35);
}

.j77-ctf-button--primary:hover {
  background: #b91c1c;
  box-shadow: 0 10px 26px rgba(220, 38, 38, 0.45);
  transform: translateY(-2px);
}

.j77-ctf-button--ghost {
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  color: #fff;
}

.j77-ctf-button--ghost:hover {
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

.j77-ctf-meta {
  display: flex;
  color: #9aa7bd;
  font-size: 12.5px;
  font-weight: 600;
  flex-wrap: wrap;
  gap: 20px;
}

.j77-ctf-meta span {
  display: flex;
  align-items: center;
  gap: 7px;
}

.j77-ctf-meta i {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: #4ade80;
  flex-shrink: 0;
}

.j77-ctf-credit {
  margin-top: 18px;
  color: rgba(154, 167, 189, 0.5);
  font-size: 10.5px;
}

.j77-ctf-credit a {
  color: inherit;
  text-decoration: underline;
}

@media (max-width: 880px) {
  .j77-ctf-inner {
    grid-template-columns: 1fr;
  }

  .j77-ctf-visual {
    max-width: 520px;
    order: 2;
  }
}

@media (max-width: 520px) {
  .j77-ctf-promo {
    padding-inline: 20px;
  }

  .j77-ctf-chip {
    top: 12px;
    left: 12px;
    font-size: 10px;
  }

  .j77-ctf-caption {
    padding: 12px;
  }

  .j77-ctf-categories {
    max-width: 150px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .j77-ctf-scan,
  .j77-ctf-chip,
  .j77-ctf-eyebrow > span {
    animation: none !important;
    transition: none !important;
  }
}

.j77-contact-grid {
  position: relative;
  z-index: 1;
  display: grid;
  align-items: start;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 70px;
}

.j77-contact-intro {
  position: sticky;
  top: 110px;
}

.j77-quote-shell {
  min-height: 520px;
  padding: 38px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  color: #111827;
}

.j77-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.j77-form-progress {
  display: grid;
  align-items: center;
  margin-bottom: 36px;
  grid-template-columns: 32px 1fr 32px 1fr 32px;
}

.j77-form-progress span {
  display: grid;
  width: 32px;
  height: 32px;
  border: 1px solid #d1d5db;
  border-radius: 50%;
  color: #6b7280;
  font-size: 12px;
  font-weight: 800;
  place-items: center;
}

.j77-form-progress span.is-active {
  border-color: var(--j77-blue);
  background: var(--j77-blue);
  color: #fff;
}

.j77-form-progress i {
  height: 1px;
  background: #e5e7eb;
}

.j77-form-step {
  animation: j77-fade 180ms ease;
}

@keyframes j77-fade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

.j77-form-step h3 {
  margin-bottom: 30px;
  font-size: 27px;
  color: #111827;
}

.j77-form-eyebrow {
  margin: 0 0 7px;
  color: #6b7280;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.j77-quote-form label {
  display: block;
  margin: 18px 0 7px;
  color: #111827;
  font-size: 13px;
  font-weight: 700;
}

.j77-quote-form input,
.j77-quote-form select,
.j77-quote-form textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 2px solid transparent;
  border-radius: 6px;
  outline: none;
  background: #f3f4f6;
  color: #111827;
  font-size: 15px;
}

.j77-quote-form select option {
  background: #fff;
  color: #111827;
}

.j77-quote-form textarea {
  resize: vertical;
}

.j77-quote-form input:focus,
.j77-quote-form select:focus,
.j77-quote-form textarea:focus {
  border-color: var(--j77-blue);
  background: #fff;
  box-shadow: none;
}

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

.j77-consent {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
}

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

.j77-form-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 34px;
}

.j77-quote-shell .j77-button--light {
  border-color: var(--j77-blue);
  background: var(--j77-blue);
  color: #fff;
}

.j77-quote-shell .j77-button--light:hover {
  border-color: var(--j77-blue-dark);
  background: var(--j77-blue-dark);
}

.j77-quote-shell .j77-button--ghost {
  border-color: #d1d5db;
  color: #4b5563;
}

.j77-quote-shell .j77-button--ghost:hover {
  background: #f3f4f6;
}

.j77-quote-shell [hidden] {
  display: none !important;
}

.j77-form-notice {
  margin-bottom: 24px;
  padding: 14px 16px;
  border-radius: 8px;
  font-size: 14px;
}

.j77-form-notice--success {
  background: #dcfce7;
  color: #14532d;
}

.j77-form-notice--error {
  background: #fee2e2;
  color: #7f1d1d;
}

.j77-footer {
  padding: 76px 0 24px;
  border-top: 4px solid var(--j77-red);
  background:
    radial-gradient(circle at 10% 0%, rgba(59, 130, 246, 0.1), transparent 32%),
    #080d18;
  color: #94a3b8;
}

.j77-footer__grid {
  display: grid;
  grid-template-columns: 1.45fr 0.65fr 1.1fr;
  gap: 80px;
}

.j77-brand--footer {
  margin-bottom: 22px;
  font-size: 27px;
}

.j77-footer__brand > p {
  max-width: 420px;
  margin-bottom: 16px;
  color: #94a3b8;
  line-height: 1.75;
}

.j77-footer__brand .j77-footer__reach {
  margin-top: 24px;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.j77-footer h2 {
  margin-bottom: 22px;
  color: #f8fafc;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.j77-footer__links > a {
  display: block;
  width: fit-content;
  margin: 11px 0;
  color: #94a3b8;
  font-size: 14px;
  font-weight: 600;
}

.j77-footer a:hover {
  color: #fff;
}

.j77-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.j77-socials a {
  display: grid;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  color: #94a3b8;
  place-items: center;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.j77-socials a:hover {
  border-color: rgba(201, 40, 34, 0.75);
  background: rgba(201, 40, 34, 0.12);
  color: #fff;
  transform: translateY(-2px);
}

.j77-socials svg {
  width: 21px;
  height: 21px;
}

.j77-footer__contact {
  display: flex;
  margin: 0;
  color: inherit;
  font-style: normal;
  flex-direction: column;
  gap: 15px;
}

.j77-footer__contact-row {
  display: grid;
  align-items: start;
  color: #94a3b8;
  font-size: 14px;
  font-weight: 500;
  grid-template-columns: 22px 1fr;
  gap: 12px;
}

.j77-footer__contact-row svg {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: #ef4444;
}

.j77-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 50px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  color: #64748b;
  font-size: 12px;
}

.j77-footer__bottom p {
  margin: 0;
}

.j77-page {
  min-height: 65vh;
  padding: 100px 0;
  background: #f8fafc;
}

.j77-page__inner {
  max-width: 850px;
  padding: 54px;
  border: 1px solid var(--j77-border);
  border-radius: var(--j77-radius);
  background: #fff;
}

.j77-page h1 {
  margin-bottom: 34px;
  font-size: clamp(40px, 6vw, 68px);
}

.j77-prose h2,
.j77-prose h3 {
  margin: 2em 0 0.7em;
}

.j77-prose a {
  color: var(--j77-blue-dark);
  text-decoration: underline;
}

.j77-post-grid {
  display: grid;
  gap: 20px;
}

.j77-post-card {
  padding: 28px;
  border: 1px solid var(--j77-border);
  border-radius: 12px;
}

@media (max-width: 980px) {
  .j77-menu-toggle {
    display: block;
  }

  .j77-nav {
    position: absolute;
    top: 70px;
    right: 0;
    left: 0;
    display: none;
    padding: 22px 24px 28px;
    background: var(--j77-ink);
    box-shadow: 0 22px 35px rgba(0, 0, 0, 0.25);
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }

  .j77-nav.is-open {
    display: flex;
  }

  .j77-nav__cta {
    text-align: center;
  }

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

  .j77-expertise-grid {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .j77-about-grid,
  .j77-contact-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .j77-contact-intro {
    position: static;
  }
}

@media (max-width: 680px) {
  .j77-container {
    width: min(100% - 32px, 1120px);
  }

  .j77-section {
    padding: 76px 0;
  }

  .j77-hero {
    min-height: auto;
    padding: 72px 0 58px;
  }

  .j77-hero h1 {
    font-size: clamp(47px, 15vw, 67px);
  }

  .j77-hero__intro {
    font-size: 15px;
  }

  .j77-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .j77-button {
    width: 100%;
  }

  .j77-stats {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .j77-service-grid,
  .j77-credential-grid {
    grid-template-columns: 1fr;
  }

  .j77-logo-card {
    width: 96px;
    min-height: 88px;
  }

  .j77-framework-grid {
    grid-template-columns: 1fr;
  }

  .j77-contact-grid {
    gap: 35px;
  }

  .j77-quote-shell {
    padding: 24px 20px;
  }

  .j77-form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .j77-form-actions {
    flex-direction: column-reverse;
  }

  .j77-footer__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .j77-footer__bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .j77-page {
    padding: 58px 0;
  }

  .j77-page__inner {
    padding: 30px 22px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
