:root {
  --blue: #0867e8;
  --blue-dark: #044aaa;
  --ink: #172033;
  --muted: #5c667a;
  --line: #dfe6f2;
  --soft: #f6f9fd;
  --white: #ffffff;
  --green: #1f9d6a;
  --gold: #c79222;
  --shadow: 0 22px 70px rgba(22, 38, 68, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  background: var(--white);
}

body.nav-open {
  overflow: hidden;
}

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

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  width: 100%;
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px clamp(18px, 5vw, 72px);
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid rgba(223, 230, 242, 0.8);
  backdrop-filter: blur(18px);
  transition: box-shadow 180ms ease, background 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 40px rgba(22, 38, 68, 0.08);
}

.brand {
  width: clamp(160px, 14vw, 180px);
  flex: 0 0 auto;
}

.brand img {
  width: 100%;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 34px);
  color: #33405a;
  font-size: 0.88rem;
  font-weight: 700;
}

.site-nav a {
  position: relative;
  padding: 5px 0;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
  transition: transform 180ms ease, opacity 180ms ease;
}

.hero {
  position: relative;
  min-height: min(760px, 92vh);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 390px);
  align-items: end;
  gap: clamp(26px, 5vw, 70px);
  overflow: hidden;
  padding: clamp(92px, 13vh, 132px) clamp(18px, 6vw, 84px) clamp(44px, 8vh, 78px);
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.9) 48%, rgba(235, 244, 255, 0.82) 100%),
    radial-gradient(circle at 78% 12%, rgba(8, 103, 232, 0.14), transparent 35%),
    var(--soft);
}

.hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  content: "";
  background: var(--line);
}

.hero-bg {
  position: absolute;
  inset: 8% -16% auto auto;
  width: min(900px, 75vw);
  opacity: 0.08;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 780px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 920px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(3.1rem, 8vw, 7.4rem);
  line-height: 0.94;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4.2vw, 4rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 12px;
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  line-height: 1.2;
}

.hero-copy {
  max-width: 680px;
  margin: 24px 0 0;
  color: #31405a;
  font-size: clamp(1.05rem, 2vw, 1.34rem);
}

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

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.button:hover,
.button:focus-visible,
.contact-card:hover,
.contact-card:focus-visible {
  transform: translateY(-2px);
}

.button.primary {
  color: var(--white);
  background: var(--blue);
  box-shadow: 0 16px 36px rgba(8, 103, 232, 0.26);
}

.button.secondary {
  color: var(--blue-dark);
  background: var(--white);
  border-color: var(--line);
}

.hero-panel {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  align-self: center;
}

.hero-panel div {
  min-height: 114px;
  padding: 22px;
  border: 1px solid rgba(223, 230, 242, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 18px 60px rgba(22, 38, 68, 0.08);
  backdrop-filter: blur(14px);
}

.hero-panel span {
  display: block;
  margin-bottom: 8px;
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-panel strong {
  display: block;
  font-size: 1.06rem;
  line-height: 1.35;
}

.intro-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.intro-stat {
  min-height: 136px;
  padding: clamp(24px, 4vw, 42px) clamp(18px, 4vw, 58px);
  border-right: 1px solid var(--line);
}

.intro-stat:last-child {
  border-right: 0;
}

.intro-stat strong {
  display: block;
  margin-bottom: 6px;
  color: var(--blue-dark);
  font-size: 1.25rem;
}

.intro-stat span {
  color: var(--muted);
}

.section {
  padding: clamp(72px, 10vw, 126px) clamp(18px, 6vw, 84px);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.8fr);
  gap: clamp(24px, 6vw, 82px);
  align-items: end;
  max-width: 1240px;
  margin: 0 auto 44px;
}

.section-heading .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: -8px;
}

.section-heading p:not(.eyebrow),
.split-copy p,
.brand-proof p,
.contact-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.section-heading.compact {
  display: block;
  max-width: 820px;
  margin-left: 0;
}

.section-heading.compact p:not(.eyebrow) {
  margin-top: 18px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 1240px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
}

.service-card {
  min-height: 310px;
  padding: 28px;
  border-right: 1px solid var(--line);
}

.service-card:last-child {
  border-right: 0;
}

.service-card p,
.talent-layout p,
.process-grid p {
  margin: 0;
  color: var(--muted);
}

.service-mark {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  margin-bottom: 44px;
  border-radius: 50%;
  color: var(--white);
  background: var(--blue);
  font-size: 0.82rem;
  font-weight: 900;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(320px, 0.72fr);
  gap: clamp(24px, 5vw, 58px);
  align-items: center;
  background: #101827;
  color: var(--white);
}

.split-section .eyebrow {
  color: #78b6ff;
}

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

.split-copy p {
  margin-top: 22px;
  color: #c9d4e7;
}

.academy-section {
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.58fr);
}

.slogan-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.slogan-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid rgba(120, 182, 255, 0.28);
  border-radius: 8px;
  color: #eef6ff;
  background: rgba(8, 103, 232, 0.16);
  font-size: 0.92rem;
  font-weight: 800;
}

.academy-card {
  padding: clamp(24px, 4vw, 34px);
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(8, 103, 232, 0.28), rgba(31, 157, 106, 0.12)),
    rgba(255, 255, 255, 0.06);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.24);
}

.academy-badge {
  display: inline-flex;
  margin-bottom: 28px;
  padding: 7px 11px;
  border-radius: 999px;
  color: #0c1a2d;
  background: #ffffff;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.academy-card h3 {
  max-width: 420px;
  margin-bottom: 16px;
  font-size: clamp(1.5rem, 2.6vw, 2.35rem);
}

.academy-card p {
  margin: 0;
  color: #c9d4e7;
}

.academy-lines {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.academy-lines strong {
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.academy-code {
  grid-column: 1 / -1;
}

.check-list {
  display: grid;
  gap: 13px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  color: #eef5ff;
}

.check-list li::before {
  position: absolute;
  top: 0.65em;
  left: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  content: "";
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(31, 157, 106, 0.18);
}

.code-visual {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 8px;
  background: #07101e;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
}

.code-bar {
  display: flex;
  gap: 8px;
  padding: 15px 18px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.code-bar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ef6a5b;
}

.code-bar span:nth-child(2) {
  background: #f1bd49;
}

.code-bar span:nth-child(3) {
  background: #57c77b;
}

pre {
  margin: 0;
  overflow: auto;
  padding: clamp(22px, 4vw, 34px);
}

code {
  color: #d6e8ff;
  font-family: "Cascadia Code", Consolas, "Courier New", monospace;
  font-size: clamp(0.86rem, 1.5vw, 1rem);
  line-height: 1.8;
}

.talent-section {
  background: var(--soft);
}

.talent-layout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 1180px;
  margin-top: 36px;
}

.talent-layout article {
  min-height: 220px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.proof-section {
  overflow: hidden;
  background: var(--white);
}

.brand-proof {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(320px, 0.8fr);
  gap: clamp(30px, 6vw, 76px);
  align-items: center;
  max-width: 1220px;
  margin: 0 auto;
}

.brand-proof h2 {
  margin-bottom: 20px;
}

.idea-visual {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.idea-visual img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.process-section {
  background: #fdfefe;
  border-top: 1px solid var(--line);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  max-width: 1240px;
  margin-top: 42px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.process-grid div {
  min-height: 220px;
  padding: 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.process-grid span {
  display: block;
  margin-bottom: 48px;
  color: var(--gold);
  font-size: 1.2rem;
  font-weight: 900;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 0.78fr);
  gap: clamp(28px, 6vw, 86px);
  align-items: center;
  padding: clamp(72px, 10vw, 124px) clamp(18px, 6vw, 84px);
  color: var(--white);
  background:
    linear-gradient(120deg, rgba(5, 22, 54, 0.94), rgba(7, 70, 150, 0.92)),
    url("assets/forloop-logo.png") right 10% center / min(760px, 80vw) auto no-repeat;
}

.contact-copy {
  max-width: 780px;
}

.contact-copy .eyebrow {
  color: #8fc2ff;
}

.contact-copy p {
  margin-top: 18px;
  color: #d4e4fb;
}

.contact-actions {
  display: grid;
  gap: 14px;
}

.contact-card {
  display: grid;
  min-height: 94px;
  align-content: center;
  gap: 4px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  transition: transform 160ms ease, background 160ms ease;
}

.contact-card:hover,
.contact-card:focus-visible {
  background: rgba(255, 255, 255, 0.16);
}

.contact-card span {
  color: #a9ceff;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-card strong {
  font-size: clamp(1rem, 2.4vw, 1.3rem);
  line-height: 1.2;
}

.site-footer {
  display: grid;
  gap: 8px;
  justify-items: center;
  padding: 34px 18px;
  color: var(--muted);
  text-align: center;
  background: var(--white);
}

.site-footer img {
  width: 210px;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 980px) {
  .hero,
  .split-section,
  .brand-proof,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .academy-code {
    grid-column: auto;
  }

  .hero {
    align-items: start;
    min-height: auto;
  }

  .hero-panel {
    grid-template-columns: repeat(3, 1fr);
  }

  .intro-section,
  .service-grid,
  .talent-layout,
  .process-grid {
    grid-template-columns: 1fr 1fr;
  }

  .service-card:nth-child(2) {
    border-right: 0;
  }

  .service-card {
    border-bottom: 1px solid var(--line);
  }

  .service-card:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 760px) {
  .site-header {
    min-height: 52px;
    padding-top: 6px;
    padding-bottom: 6px;
  }

  .brand {
    width: 154px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .site-nav {
    position: fixed;
    inset: 54px 12px auto;
    display: grid;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 160ms ease, opacity 160ms ease;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    padding: 14px 12px;
  }

  .hero {
    padding-top: 98px;
  }

  .hero-panel,
  .intro-section,
  .service-grid,
  .talent-layout,
  .process-grid {
    grid-template-columns: 1fr;
  }

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

  .intro-stat,
  .service-card,
  .service-card:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .intro-stat:last-child,
  .service-card:last-child {
    border-bottom: 0;
  }

  .service-card:nth-last-child(2) {
    border-bottom: 1px solid var(--line);
  }

  .process-grid {
    border-right: 1px solid var(--line);
  }

  .process-grid span {
    margin-bottom: 18px;
  }
}

@media (max-width: 420px) {
  .brand {
    width: 146px;
  }

  h1 {
    font-size: 2.72rem;
  }

  .hero-copy,
  .section-heading p:not(.eyebrow),
  .split-copy p,
  .brand-proof p,
  .contact-copy p {
    font-size: 1rem;
  }

  .contact-card {
    padding: 18px 16px;
  }
}
