:root {
  --bg: #08070d;
  --panel: rgba(255, 255, 255, 0.045);
  --panel-strong: rgba(255, 255, 255, 0.075);
  --line: rgba(255, 255, 255, 0.12);
  --text: #f6f2ff;
  --muted: #b4adbf;
  --soft: #ded8eb;
  --purple: #9b72ff;
  --purple-soft: rgba(155, 114, 255, 0.18);
  --purple-line: rgba(155, 114, 255, 0.38);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(rgba(8, 7, 13, 0.84), rgba(8, 7, 13, 0.97)),
    url("assets/code-rain-background.png?v=4") top right / min(82vw, 1180px) auto no-repeat,
    linear-gradient(180deg, #0b0813 0%, var(--bg) 44%, #050509 100%);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.page-shell {
  width: min(1120px, calc(100% - 42px));
  margin: 0 auto;
  padding: 26px 0 34px;
}

.site-header {
  min-height: 66vh;
  border-bottom: 1px solid var(--line);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px 0;
}

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

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--purple-line);
  border-radius: 50%;
  background: var(--purple-soft);
  color: var(--purple);
  font-size: 24px;
  line-height: 1;
}

.brand strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 0.9rem;
}

.nav-links a:hover {
  color: var(--text);
}

.hero {
  display: grid;
  align-content: center;
  max-width: 720px;
  min-height: calc(66vh - 60px);
  padding: 72px 0 84px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--purple);
  font-size: 0.74rem;
  font-weight: 750;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 680px;
  margin-bottom: 28px;
  font-size: clamp(2.15rem, 4.6vw, 4.35rem);
  font-weight: 760;
  line-height: 1.04;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.45rem, 2.5vw, 2.45rem);
  font-weight: 720;
  line-height: 1.12;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.08rem;
  line-height: 1.35;
}

h4 {
  margin-bottom: 14px;
  color: var(--soft);
  font-size: 0.96rem;
  font-weight: 650;
  line-height: 1.55;
}

p {
  color: var(--muted);
  line-height: 1.78;
}

.primary-link,
.contact-section a,
.services-list a {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 40px;
  border-bottom: 1px solid var(--purple);
  color: var(--text);
  font-weight: 750;
}

.primary-link:hover,
.contact-section a:hover,
.services-list a:hover {
  color: var(--purple);
}

.intro-section,
.services-section,
.why-section,
.about-detail-section,
.services-detail-section,
.contact-section,
.cta-section {
  padding: 72px 0;
  border-bottom: 1px solid var(--line);
}

.intro-section,
.why-section,
.about-detail-section {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(300px, 1fr);
  gap: 70px;
  align-items: start;
}

.intro-section > p,
.why-section p:last-child,
.about-detail-section p:last-child {
  margin-bottom: 0;
}

.why-note {
  align-self: end;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, var(--panel), rgba(155, 114, 255, 0.05));
  overflow: hidden;
}

.why-subtitle {
  max-width: 560px;
  margin-bottom: 14px;
}

.why-subtitle-note {
  max-width: 430px;
  margin-bottom: 0;
  color: var(--soft);
  font-size: clamp(1rem, 1.35vw, 1.22rem);
  font-weight: 500;
  line-height: 1.55;
}

.why-note summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
  padding: 0 24px;
  cursor: pointer;
  color: var(--text);
  font-weight: 750;
  list-style: none;
}

.why-note summary::-webkit-details-marker {
  display: none;
}

.why-note summary::after {
  content: "+";
  display: grid;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--purple-line);
  border-radius: 50%;
  color: var(--purple);
}

.why-note[open] summary::after {
  content: "-";
}

.why-note div {
  padding: 0 24px 24px;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(210px, 0.35fr) minmax(0, 0.65fr);
  gap: 36px;
  align-items: end;
  margin-bottom: 38px;
}

.section-subheading {
  max-width: 720px;
  margin-bottom: 34px;
}

.services-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.services-list article {
  min-height: 300px;
  padding: 28px 22px 24px 0;
  border-bottom: 1px solid var(--line);
}

.services-list article + article {
  padding-left: 22px;
  border-left: 1px solid var(--line);
}

.services-list span,
.values-section span {
  display: inline-block;
  color: var(--purple);
  font-size: 0.8rem;
  font-weight: 800;
}

.services-list span {
  margin-bottom: 38px;
}

.services-list p {
  font-size: 0.94rem;
}

.services-list a {
  margin-top: 10px;
  min-height: 34px;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
}

.image-break {
  position: relative;
  display: grid;
  min-height: 310px;
  place-items: end start;
  margin-top: -1px;
  overflow: hidden;
  background:
    linear-gradient(180deg, var(--bg) 0%, rgba(8, 7, 13, 0.96) 6%, rgba(8, 7, 13, 0.42) 18%, rgba(8, 7, 13, 0) 34%, rgba(8, 7, 13, 0) 76%, var(--bg) 100%),
    linear-gradient(90deg, var(--bg) 0%, rgba(8, 7, 13, 0.24) 14%, rgba(8, 7, 13, 0.18) 84%, var(--bg) 100%),
    url("assets/code-rain-background.png?v=4") center / cover no-repeat;
}

.image-break-one {
  border-top: 0;
  background:
    linear-gradient(180deg, var(--bg) 0%, rgba(8, 7, 13, 0.98) 7%, rgba(8, 7, 13, 0.5) 20%, rgba(8, 7, 13, 0) 38%, rgba(8, 7, 13, 0) 78%, var(--bg) 100%),
    linear-gradient(90deg, var(--bg) 0%, rgba(8, 7, 13, 0.18) 16%, rgba(8, 7, 13, 0.12) 82%, var(--bg) 100%),
    url("assets/code-rain-background.png?v=4") top center / cover no-repeat;
}

.image-break::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 76% 28%, rgba(155, 114, 255, 0.1), transparent 30rem),
    linear-gradient(180deg, var(--bg) 0%, rgba(8, 7, 13, 0.62) 10%, transparent 38%, rgba(8, 7, 13, 0.34));
}

.image-break span {
  position: relative;
  z-index: 1;
  padding: 22px 0;
  color: rgba(246, 242, 255, 0.64);
  font-size: 0.82rem;
}

.image-break-two {
  background:
    linear-gradient(90deg, rgba(8, 7, 13, 0.62), rgba(8, 7, 13, 0.9)),
    url("assets/code-rain-background.png?v=4") center / cover no-repeat;
}

.image-break-three {
  min-height: 260px;
  background:
    linear-gradient(90deg, rgba(8, 7, 13, 0.76), rgba(8, 7, 13, 0.56)),
    url("assets/code-rain-background.png?v=4") center / cover no-repeat;
}

.image-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.image-pair .image-break {
  border: 1px solid var(--line);
  border-radius: 8px;
}

.values-section {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 0 0 72px;
  border-bottom: 1px solid var(--line);
}

.values-section article {
  position: relative;
  min-height: 190px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background:
    radial-gradient(circle at 82% 18%, rgba(155, 114, 255, 0.18), transparent 7rem),
    linear-gradient(145deg, var(--panel), rgba(155, 114, 255, 0.045));
  overflow: hidden;
  transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

.values-section article:hover {
  border-color: var(--purple-line);
  transform: translateY(-3px);
}

.values-section span {
  margin-bottom: 36px;
}

.values-section h3 {
  max-width: 180px;
  margin-bottom: 0;
}

.value-icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  margin-bottom: 26px;
  border: 1px solid var(--purple-line);
  border-radius: 50%;
  background: rgba(155, 114, 255, 0.1);
  font-size: 1.55rem;
}

.cta-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
}

.detail-list {
  display: grid;
  gap: 18px;
}

.detail-list details {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0;
  background: var(--panel);
  overflow: hidden;
}

.detail-list summary {
  position: relative;
  display: grid;
  grid-template-columns: minmax(90px, 0.18fr) minmax(0, 1fr) 24px;
  gap: 18px;
  align-items: center;
  min-height: 78px;
  padding: 22px 28px;
  cursor: pointer;
  list-style: none;
}

.detail-list summary::-webkit-details-marker {
  display: none;
}

.detail-list summary::after {
  content: "+";
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid var(--purple-line);
  border-radius: 50%;
  color: var(--purple);
  font-size: 1rem;
  line-height: 1;
}

.detail-list details[open] summary::after {
  content: "-";
}

.detail-list span {
  color: var(--purple);
  font-size: 1.02rem;
  font-weight: 800;
}

.detail-list strong {
  color: var(--soft);
  font-size: 0.98rem;
  line-height: 1.5;
}

.detail-list p {
  margin: 0;
  padding: 0 28px 28px calc(28px + 18% + 18px);
}

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

.contact-section h2 {
  margin-bottom: 18px;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 18px;
  padding-top: 28px;
  color: var(--muted);
  font-size: 0.82rem;
}

.site-footer address {
  font-style: normal;
  line-height: 1.65;
  text-align: center;
}

.site-footer span:last-child {
  text-align: right;
}

@media (max-width: 980px) {
  .site-header {
    min-height: auto;
  }

  .hero {
    min-height: auto;
  }

  .intro-section,
  .why-section,
  .about-detail-section,
  .section-heading,
  .cta-section {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .services-list,
  .values-section {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .services-list article:nth-child(3),
  .services-list article:nth-child(5) {
    border-left: 0;
    padding-left: 0;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 28px, 1120px);
    padding-top: 18px;
  }

  .nav-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
  }

  .hero {
    padding: 58px 0 66px;
  }

  h1 {
    font-size: clamp(2.15rem, 11vw, 3.5rem);
  }

  .intro-section,
  .services-section,
  .why-section,
  .about-detail-section,
  .services-detail-section,
  .contact-section,
  .cta-section {
    padding: 56px 0;
  }

  .services-list,
  .values-section,
  .image-pair {
    grid-template-columns: 1fr;
  }

  .services-list article,
  .services-list article + article {
    min-height: auto;
    padding: 24px 0;
    border-left: 0;
  }

  .services-list span,
  .values-section span {
    margin-bottom: 22px;
  }

  .detail-list summary {
    grid-template-columns: 1fr 24px;
    gap: 8px 16px;
    padding: 20px;
  }

  .detail-list summary span {
    grid-column: 1 / 2;
  }

  .detail-list summary strong {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .detail-list summary::after {
    grid-column: 2;
    grid-row: 1;
  }

  .detail-list p {
    padding: 0 20px 22px;
  }

  .values-section {
    padding-bottom: 56px;
  }

  .values-section article {
    min-height: auto;
  }

  .image-break {
    min-height: 230px;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .site-footer address,
  .site-footer span:last-child {
    text-align: left;
  }
}
