:root {
  --cs-navy: #07164a;
  --cs-navy-2: #0c2566;
  --cs-blue: #3155ff;
  --cs-teal: #23d8bd;
  --cs-ink: #0f172a;
  --cs-text: #536079;
  --cs-muted: #eef3f8;
  --cs-line: #dbe5ef;
  --cs-white: #ffffff;
  --cs-amber: #f5b83b;
  --cs-shadow: 0 24px 70px rgba(11, 35, 86, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: 118px;
}

body {
  margin: 0;
  color: var(--cs-ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0;
  background: var(--cs-white);
}

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

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

a:hover {
  color: var(--cs-blue);
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.codesplunk-logo {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  line-height: 0;
  white-space: nowrap;
}

.codesplunk-logo img {
  width: 238px;
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  object-fit: contain;
}

.cs-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(219, 229, 239, 0.9);
  backdrop-filter: blur(16px);
}

.cs-topbar {
  display: flex;
  justify-content: center;
  gap: 28px;
  padding: 9px 16px;
  color: #28355f;
  font-size: 14px;
  border-bottom: 1px solid var(--cs-line);
}

.cs-topbar a,
.cs-topbar span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.cs-topbar i {
  color: var(--cs-blue);
}

.cs-nav-wrap {
  width: min(1180px, calc(100% - 32px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cs-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  color: var(--cs-navy);
  font-weight: 700;
}

.cs-nav a {
  padding: 24px 0;
}

.cs-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--cs-blue);
  border-radius: 8px;
  color: var(--cs-white);
  background: var(--cs-blue);
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
}

.cs-button:hover {
  color: var(--cs-white);
  background: var(--cs-navy);
  border-color: var(--cs-navy);
}

.cs-button-small {
  min-height: 44px;
  padding: 0 18px;
}

.cs-button-ghost {
  color: var(--cs-white);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.45);
}

.cs-hero {
  position: relative;
  overflow: hidden;
  color: var(--cs-white);
  background: var(--cs-navy);
}

.cs-slider {
  position: relative;
  min-height: 760px;
}

.cs-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  min-height: 760px;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.02);
  transition: opacity 520ms ease, transform 720ms ease, visibility 520ms ease;
  background:
    linear-gradient(90deg, rgba(4, 13, 50, 0.96) 0%, rgba(7, 22, 74, 0.86) 42%, rgba(7, 22, 74, 0.42) 70%, rgba(7, 22, 74, 0.18) 100%),
    var(--slide-image) center / cover no-repeat;
}

.cs-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0 100%, rgba(49, 85, 255, 0.34), transparent 44%);
  pointer-events: none;
}

.cs-slide.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  z-index: 1;
}

.cs-slide-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
  padding: 118px 0 132px;
}

.cs-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 26px;
  color: var(--cs-teal);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}

.cs-eyebrow span {
  width: 46px;
  height: 2px;
  background: currentColor;
}

.cs-hero h1,
.cs-hero h2 {
  margin: 0;
  max-width: 900px;
  color: var(--cs-white);
  font-size: 72px;
  line-height: 1.08;
  letter-spacing: 0;
}

.cs-hero-lead {
  max-width: 680px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 19px;
  font-weight: 650;
}

.cs-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.cs-slider-nav {
  position: absolute;
  top: 50%;
  right: max(34px, calc((100vw - 1180px) / 2));
  z-index: 3;
  display: grid;
  gap: 38px;
  transform: translateY(-50%);
}

.cs-slider-nav::before {
  content: "";
  position: absolute;
  top: 34px;
  bottom: 34px;
  left: 50%;
  width: 1px;
  background: rgba(255, 255, 255, 0.3);
  transform: translateX(-50%);
}

.cs-slider-nav button {
  position: relative;
  z-index: 1;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  color: var(--cs-white);
  background: rgba(7, 22, 74, 0.18);
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.cs-slider-nav button:hover,
.cs-slider-nav button.is-active {
  background: var(--cs-blue);
  border-color: var(--cs-blue);
  transform: scale(1.04);
}

.cs-proof-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 620px;
  margin-top: 36px;
}

.cs-proof-row span {
  min-height: 82px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.76);
  background: rgba(255, 255, 255, 0.08);
}

.cs-proof-row strong {
  display: block;
  color: var(--cs-white);
  font-size: 26px;
  line-height: 1;
}

.cs-section {
  padding: 110px 0;
}

.cs-band {
  background: #f5f8fc;
}

.cs-section-head {
  max-width: 760px;
  margin-bottom: 44px;
}

.cs-section-head h2,
.cs-split h2,
.cs-contact h2 {
  margin: 0;
  color: var(--cs-navy);
  font-size: 42px;
  line-height: 1.12;
  letter-spacing: 0;
}

.cs-section-head p,
.cs-muted,
.cs-contact p {
  margin: 16px 0 0;
  color: var(--cs-text);
}

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

.cs-card {
  min-height: 285px;
  padding: 26px;
  border: 1px solid var(--cs-line);
  border-radius: 8px;
  background: var(--cs-white);
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.04);
}

.cs-card i {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  border-radius: 8px;
  color: var(--cs-blue);
  background: #eef3ff;
  font-size: 20px;
}

.cs-card h3,
.cs-work-card h3,
.cs-process-list h3,
.cs-plan h3 {
  margin: 0;
  color: var(--cs-navy);
  font-size: 20px;
  line-height: 1.24;
  letter-spacing: 0;
}

.cs-card p,
.cs-work-card p,
.cs-process-list p,
.cs-plan p,
.cs-faq p {
  margin: 12px 0 0;
  color: var(--cs-text);
}

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

.cs-work-card {
  overflow: hidden;
  border: 1px solid var(--cs-line);
  border-radius: 8px;
  background: var(--cs-white);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.06);
}

.cs-work-card img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
}

.cs-work-card div {
  padding: 24px;
}

.cs-work-card span,
.cs-plan span {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--cs-blue);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.cs-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.82fr);
  align-items: center;
  gap: 54px;
}

.cs-split-reverse {
  grid-template-columns: minmax(360px, 0.82fr) minmax(0, 1fr);
}

.cs-image-panel {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--cs-shadow);
}

.cs-image-panel img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.cs-process-list {
  display: grid;
  gap: 18px;
  margin-top: 30px;
}

.cs-process-list article {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--cs-line);
  border-radius: 8px;
  background: var(--cs-white);
}

.cs-process-list img {
  width: 110px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
}

.cs-dark {
  color: var(--cs-white);
  background:
    linear-gradient(rgba(7, 22, 74, 0.88), rgba(7, 22, 74, 0.9)),
    url("../img/codesplunk/cloud-cta.jpg") center / cover no-repeat;
}

.cs-section-head-light h2,
.cs-section-head-light p {
  color: var(--cs-white);
}

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

.cs-plan {
  min-height: 395px;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.cs-plan-featured {
  background: var(--cs-white);
}

.cs-plan-featured h3,
.cs-plan-featured p,
.cs-plan-featured li {
  color: var(--cs-navy);
}

.cs-plan h3 {
  color: var(--cs-white);
}

.cs-plan p,
.cs-plan li {
  color: rgba(255, 255, 255, 0.76);
}

.cs-plan.cs-plan-featured h3,
.cs-plan.cs-plan-featured li {
  color: var(--cs-navy);
}

.cs-plan.cs-plan-featured p {
  color: var(--cs-text);
}

.cs-plan ul {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.cs-plan li::before {
  content: "\f00c";
  margin-right: 10px;
  color: var(--cs-teal);
  font-family: "Font Awesome 6 Pro";
  font-weight: 900;
}

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

.cs-skill-grid span {
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border: 1px solid var(--cs-line);
  border-radius: 8px;
  color: var(--cs-navy);
  background: var(--cs-white);
  font-weight: 800;
  text-align: center;
}

.cs-faq {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.cs-faq details {
  border: 1px solid var(--cs-line);
  border-radius: 8px;
  background: var(--cs-white);
}

.cs-faq summary {
  cursor: pointer;
  padding: 18px 20px;
  color: var(--cs-navy);
  font-weight: 900;
}

.cs-faq p {
  padding: 0 20px 20px;
}

.cs-contact {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.9) 54%, rgba(255, 255, 255, 0.7) 100%),
    url("../img/codesplunk/cloud-banner.jpg") center / cover no-repeat;
}

.cs-contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(380px, 0.7fr);
  gap: 48px;
  align-items: start;
}

.cs-contact-list {
  display: grid;
  gap: 12px;
  margin-top: 28px;
  color: var(--cs-navy);
  font-weight: 800;
}

.cs-contact-list a,
.cs-contact-list span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.cs-contact-list i {
  color: var(--cs-blue);
}

.cs-form {
  display: grid;
  gap: 14px;
  padding: 28px;
  border: 1px solid var(--cs-line);
  border-radius: 8px;
  background: var(--cs-white);
  box-shadow: var(--cs-shadow);
}

.cs-form label {
  display: grid;
  gap: 7px;
  color: var(--cs-navy);
  font-weight: 800;
}

.cs-form input,
.cs-form select,
.cs-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--cs-line);
  border-radius: 8px;
  color: var(--cs-ink);
  font: inherit;
  outline: none;
}

.cs-form textarea {
  resize: vertical;
}

.cs-form input:focus,
.cs-form select:focus,
.cs-form textarea:focus {
  border-color: var(--cs-blue);
  box-shadow: 0 0 0 4px rgba(49, 85, 255, 0.12);
}

.cs-footer {
  padding: 70px 0 28px;
  color: rgba(255, 255, 255, 0.78);
  background: var(--cs-navy);
}

.cs-footer .codesplunk-logo {
  padding: 8px 12px;
  border-radius: 8px;
  background: #07164a;
}

.cs-footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 36px;
  align-items: start;
}

.cs-footer p {
  max-width: 520px;
  margin: 18px 0 0;
}

.cs-footer nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 10px 28px;
}

.cs-footer nav a {
  color: var(--cs-white);
  font-weight: 700;
}

.cs-footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 50px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.cs-footer-bottom a {
  color: var(--cs-white);
}

.cs-redirect,
.cs-notfound {
  min-height: 100vh;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 18px;
  width: min(760px, calc(100% - 32px));
  margin: 0 auto;
  padding: 70px 0;
}

.cs-redirect h1,
.cs-notfound h1 {
  margin: 0;
  color: var(--cs-navy);
  font-size: 42px;
  line-height: 1.12;
}

.cs-redirect p,
.cs-notfound p {
  margin: 0;
  color: var(--cs-text);
}

@media (max-width: 1100px) {
  .cs-service-grid,
  .cs-skill-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cs-split,
  .cs-split-reverse,
  .cs-contact-grid {
    grid-template-columns: 1fr;
  }

  .cs-slider,
  .cs-slide {
    min-height: 690px;
  }

  .cs-slide-content {
    max-width: 720px;
    padding: 96px 0 112px;
  }

  .cs-hero h1,
  .cs-hero h2 {
    font-size: 52px;
  }
}

@media (max-width: 860px) {
  section[id] {
    scroll-margin-top: 170px;
  }

  .cs-topbar {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .cs-nav-wrap {
    min-height: auto;
    padding: 16px 0;
    flex-wrap: wrap;
  }

  .cs-nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    gap: 18px;
    overflow-x: auto;
  }

  .cs-nav a {
    padding: 8px 0;
  }

  .cs-work-grid,
  .cs-plan-grid {
    grid-template-columns: 1fr;
  }

  .cs-section {
    padding: 80px 0;
  }

  .cs-section-head h2,
  .cs-split h2,
  .cs-contact h2 {
    font-size: 34px;
  }

  .cs-slider,
  .cs-slide {
    min-height: 680px;
  }

  .cs-slide {
    background:
      linear-gradient(90deg, rgba(4, 13, 50, 0.96) 0%, rgba(7, 22, 74, 0.88) 60%, rgba(7, 22, 74, 0.42) 100%),
      var(--slide-image) center / cover no-repeat;
  }

  .cs-slider-nav {
    top: auto;
    right: auto;
    bottom: 34px;
    left: 24px;
    display: flex;
    gap: 12px;
    transform: none;
  }

  .cs-slider-nav::before {
    display: none;
  }

  .cs-slider-nav button {
    width: 44px;
    height: 44px;
    font-size: 16px;
  }
}

@media (max-width: 575px) {
  section[id] {
    scroll-margin-top: 176px;
  }

  body {
    font-size: 15px;
  }

  .cs-topbar {
    justify-content: center;
  }

  .cs-topbar span,
  .cs-topbar a:last-child {
    display: none;
  }

  .container,
  .cs-nav-wrap {
    width: min(100% - 24px, 1180px);
  }

  .codesplunk-logo {
    max-width: 190px;
  }

  .cs-button {
    width: 100%;
  }

  .cs-nav-wrap .cs-button {
    width: auto;
  }

  .cs-slider,
  .cs-slide {
    min-height: 720px;
  }

  .cs-slide-content {
    padding: 70px 0 112px;
  }

  .cs-eyebrow {
    gap: 9px;
    margin-bottom: 18px;
    font-size: 12px;
  }

  .cs-eyebrow span {
    width: 32px;
  }

  .cs-hero h1,
  .cs-hero h2 {
    font-size: 39px;
  }

  .cs-hero-lead {
    font-size: 17px;
  }

  .cs-service-grid,
  .cs-skill-grid {
    grid-template-columns: 1fr;
  }

  .cs-process-list article {
    grid-template-columns: 1fr;
  }

  .cs-process-list img {
    width: 100%;
    aspect-ratio: 16 / 10;
  }

  .cs-form {
    padding: 20px;
  }

  .cs-footer-grid,
  .cs-footer-bottom {
    grid-template-columns: 1fr;
    flex-direction: column;
  }
}
