:root {
  --warm-white: #faf8f2;
  --paper: #ffffff;
  --blue: #2563eb;
  --blue-dark: #1e40af;
  --sky: #dbeafe;
  --gold: #d6a84f;
  --green: #16a34a;
  --ink: #172033;
  --muted: #64748b;
  --line: #dde7f3;
  --shadow: 0 24px 80px rgba(37, 99, 235, 0.12);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 12% 12%, rgba(37, 99, 235, 0.14), transparent 28rem),
    radial-gradient(circle at 92% 18%, rgba(214, 168, 79, 0.18), transparent 24rem),
    linear-gradient(180deg, #f8fbff 0%, var(--warm-white) 54%, #eff7ff 100%);
  color: var(--ink);
  overflow-x: hidden;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.site-shell {
  position: relative;
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 32px));
  margin: 16px auto 0;
  padding: 12px;
  border: 1px solid rgba(221, 231, 243, 0.88);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 48px rgba(23, 32, 51, 0.08);
  backdrop-filter: blur(18px);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue), var(--green));
  color: #fff;
  font-weight: 800;
  letter-spacing: 0;
}

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

.brand strong {
  font-size: 0.98rem;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.78rem;
}

.topbar-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar-links a,
.footer-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--blue-dark);
  font-weight: 700;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.topbar-links a:hover,
.footer-contact:hover {
  border-color: rgba(37, 99, 235, 0.35);
  background: var(--sky);
  transform: translateY(-2px);
}

.section-panel {
  width: min(1180px, calc(100% - 32px));
  margin: 56px auto;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.78fr);
  gap: 28px;
  min-height: 680px;
  padding: 56px;
  overflow: hidden;
  border: 1px solid rgba(221, 231, 243, 0.88);
  border-radius: 8px;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 251, 255, 0.86) 56%, rgba(219, 234, 254, 0.74) 100%),
    repeating-linear-gradient(90deg, rgba(37, 99, 235, 0.08) 0 1px, transparent 1px 54px);
  box-shadow: var(--shadow);
}

.hero::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: conic-gradient(from 160deg, transparent, rgba(37, 99, 235, 0.14), transparent, rgba(214, 168, 79, 0.14), transparent);
  animation: slowSpin 18s linear infinite;
}

.hero-copy,
.hero-visual,
.hero-grid {
  position: relative;
  z-index: 1;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(3.05rem, 7vw, 6.6rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 4.1rem);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.2rem;
}

.hero-lede,
.section-heading p,
.form-copy p,
.contact-ribbon p,
.footer p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-lede {
  max-width: 690px;
  font-size: 1.16rem;
}

.hero-actions,
.ribbon-actions,
.form-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero-actions {
  margin-top: 20px;
}

.cta,
.submit-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
  letter-spacing: 0;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.cta::after,
.submit-button::after {
  content: "";
  position: absolute;
  top: 0;
  left: -85%;
  width: 54%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.42), transparent);
  transform: skewX(-18deg);
  transition: left 460ms ease;
}

.cta:hover::after,
.submit-button:hover::after {
  left: 130%;
}

.cta:hover,
.submit-button:hover {
  transform: translateY(-2px);
}

.primary,
.submit-button {
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: #fff;
  box-shadow: 0 14px 34px rgba(37, 99, 235, 0.26);
}

.ghost {
  border-color: rgba(37, 99, 235, 0.24);
  background: rgba(255, 255, 255, 0.76);
  color: var(--blue-dark);
}

.line {
  border-color: rgba(214, 168, 79, 0.36);
  background: rgba(255, 255, 255, 0.54);
  color: #8a641b;
}

.wide {
  width: fit-content;
  margin-top: 16px;
}

.pulse-link {
  animation: contactPulse 2.4s ease-in-out infinite;
}

.hero-visual {
  align-self: center;
  display: grid;
  gap: 16px;
}

.case-orbit {
  position: relative;
  height: 210px;
  border: 1px solid rgba(37, 99, 235, 0.15);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(219, 234, 254, 0.76)),
    repeating-linear-gradient(0deg, rgba(37, 99, 235, 0.08) 0 1px, transparent 1px 28px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.78);
}

.case-orbit::before,
.case-orbit::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 50%;
}

.case-orbit::before {
  inset: 34px;
  animation: orbitScale 5s ease-in-out infinite;
}

.case-orbit::after {
  inset: 72px;
  border-color: rgba(214, 168, 79, 0.28);
  animation: orbitScale 5s ease-in-out 1s infinite;
}

.orbit-dot {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 10px rgba(37, 99, 235, 0.12);
}

.dot-one {
  top: 28px;
  left: 22%;
  animation: floatDot 4s ease-in-out infinite;
}

.dot-two {
  right: 24%;
  bottom: 38px;
  background: var(--gold);
  box-shadow: 0 0 0 10px rgba(214, 168, 79, 0.14);
  animation: floatDot 5s ease-in-out 500ms infinite;
}

.dot-three {
  top: 48%;
  right: 18px;
  background: var(--green);
  box-shadow: 0 0 0 10px rgba(22, 163, 74, 0.12);
  animation: floatDot 4.5s ease-in-out 900ms infinite;
}

.status-card,
.service-card,
.team-card,
.intake-form,
.contact-ribbon {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 50px rgba(23, 32, 51, 0.08);
}

.status-card {
  padding: 22px;
}

.status-label {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.status-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.24rem;
}

.status-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.metric-row div,
.mini-stats div {
  padding: 16px;
  border: 1px solid rgba(221, 231, 243, 0.82);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
}

.metric-row strong,
.mini-stats strong {
  display: block;
  color: var(--blue-dark);
  font-size: 1.52rem;
}

.metric-row span,
.mini-stats span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.flow-board {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto;
  align-items: center;
  gap: 8px;
}

.flow-node {
  display: inline-flex;
  justify-content: center;
  min-width: 68px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fff;
  color: var(--blue-dark);
  font-size: 0.82rem;
  font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.14);
}

.flow-node.active {
  background: var(--green);
  color: #fff;
}

.flow-line {
  display: block;
  height: 3px;
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.15), var(--blue), rgba(37, 99, 235, 0.15));
  background-size: 200% 100%;
  animation: lineMove 2.2s linear infinite;
}

.hero-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-grid span {
  position: absolute;
  display: block;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.4);
  box-shadow: 0 16px 50px rgba(37, 99, 235, 0.1);
  animation: backgroundLift 7s ease-in-out infinite;
}

.hero-grid span:nth-child(1) {
  width: 140px;
  height: 70px;
  left: 6%;
  top: 16%;
}

.hero-grid span:nth-child(2) {
  width: 90px;
  height: 90px;
  left: 43%;
  top: 8%;
  animation-delay: 800ms;
}

.hero-grid span:nth-child(3) {
  width: 170px;
  height: 84px;
  right: 8%;
  top: 18%;
  animation-delay: 1.2s;
}

.hero-grid span:nth-child(4) {
  width: 118px;
  height: 118px;
  left: 38%;
  bottom: 10%;
  animation-delay: 1.8s;
}

.hero-grid span:nth-child(5) {
  width: 120px;
  height: 64px;
  right: 20%;
  bottom: 18%;
  animation-delay: 2.4s;
}

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

.trust-strip a {
  min-height: 96px;
  padding: 18px;
  border: 1px solid rgba(221, 231, 243, 0.86);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--ink);
  font-weight: 800;
  line-height: 1.35;
  box-shadow: 0 16px 38px rgba(23, 32, 51, 0.06);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.trust-strip a:hover {
  border-color: rgba(37, 99, 235, 0.34);
  color: var(--blue-dark);
  transform: translateY(-4px);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 24px;
}

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

.service-card {
  position: relative;
  min-height: 300px;
  padding: 22px;
  overflow: hidden;
  transition:
    transform 200ms ease,
    box-shadow 200ms ease,
    border-color 200ms ease;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: auto -20% -46% -20%;
  height: 120px;
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.12), rgba(22, 163, 74, 0.1), rgba(214, 168, 79, 0.14));
  transform: rotate(-6deg);
  transition: transform 220ms ease;
}

.service-card:hover {
  border-color: rgba(37, 99, 235, 0.34);
  box-shadow: 0 20px 62px rgba(37, 99, 235, 0.12);
  transform: translateY(-6px);
}

.service-card:hover::before {
  transform: rotate(-2deg) translateY(-8px);
}

.service-index {
  display: inline-flex;
  margin-bottom: 44px;
  color: var(--gold);
  font-weight: 900;
}

.service-card p {
  position: relative;
  z-index: 1;
  color: var(--muted);
  line-height: 1.65;
}

.service-card a {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--blue-dark);
  font-weight: 800;
}

.form-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.86fr) minmax(320px, 1.14fr);
  gap: 22px;
  align-items: start;
}

.form-copy {
  padding: 34px;
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(219, 234, 254, 0.72), rgba(255, 255, 255, 0.76));
}

.mini-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 20px 0 6px;
}

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

.intake-form label,
.intake-form span {
  display: block;
}

.intake-form label span {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 800;
}

.intake-form input,
.intake-form select,
.intake-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(250, 252, 255, 0.96);
  color: var(--ink);
  outline: none;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.intake-form input,
.intake-form select {
  min-height: 48px;
  padding: 0 14px;
}

.intake-form textarea {
  resize: vertical;
  min-height: 126px;
  padding: 14px;
}

.intake-form input:focus,
.intake-form select:focus,
.intake-form textarea:focus {
  border-color: rgba(37, 99, 235, 0.68);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.full-span {
  grid-column: 1 / -1;
}

.form-response {
  min-height: 26px;
  margin: 0;
  color: var(--green);
  font-weight: 800;
  line-height: 1.5;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
}

.team-card {
  min-height: 150px;
  padding: 18px;
  transition:
    transform 190ms ease,
    background 190ms ease,
    border-color 190ms ease;
}

.team-card:hover {
  border-color: rgba(214, 168, 79, 0.44);
  background: #fffdf6;
  transform: translateY(-5px);
}

.team-card strong {
  display: block;
  margin-bottom: 10px;
  line-height: 1.28;
}

.team-card span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.contact-ribbon {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  margin-top: 24px;
  padding: 30px;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(255, 255, 255, 0.92) 46%, rgba(214, 168, 79, 0.14)),
    #fff;
}

.contact-ribbon h2 {
  margin-bottom: 10px;
  font-size: clamp(1.8rem, 3vw, 3.2rem);
}

.contact-ribbon p {
  margin-bottom: 0;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(1180px, calc(100% - 32px));
  margin: 48px auto 108px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.footer p {
  margin: 6px 0 0;
}

.mobile-contact {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 30;
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 18px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue), var(--green));
  color: #fff;
  font-weight: 900;
  box-shadow: 0 18px 48px rgba(37, 99, 235, 0.28);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 680ms ease,
    transform 680ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes contactPulse {
  0%,
  100% {
    box-shadow: 0 14px 34px rgba(37, 99, 235, 0.24);
  }
  50% {
    box-shadow: 0 18px 52px rgba(22, 163, 74, 0.3);
  }
}

@keyframes slowSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes orbitScale {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.76;
  }
  50% {
    transform: scale(1.06);
    opacity: 1;
  }
}

@keyframes floatDot {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

@keyframes lineMove {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 200% 0;
  }
}

@keyframes backgroundLift {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-18px);
  }
}

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

  .hero {
    min-height: 0;
    padding: 38px;
  }

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

  .team-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .topbar {
    align-items: flex-start;
    margin-top: 10px;
  }

  .topbar-links {
    display: none;
  }

  .section-panel {
    width: min(100% - 24px, 1180px);
    margin: 36px auto;
  }

  .hero {
    padding: 26px;
  }

  h1 {
    font-size: clamp(2.55rem, 16vw, 4.5rem);
  }

  .hero-actions,
  .ribbon-actions,
  .form-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .cta,
  .submit-button {
    width: 100%;
  }

  .metric-row,
  .trust-strip,
  .service-grid,
  .mini-stats,
  .intake-form,
  .team-grid {
    grid-template-columns: 1fr;
  }

  .form-copy {
    padding: 24px;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 96px;
  }

  .mobile-contact {
    display: inline-flex;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
