:root {
  --blue: #27258b;
  --blue-900: #14144f;
  --blue-050: #f1f3ff;
  --red: #b93135;
  --red-050: #fff1f1;
  --ink: #151827;
  --muted: #5c6376;
  --line: #dde1ee;
  --surface: #ffffff;
  --wash: #f7f8fc;
  --shadow: 0 24px 70px rgba(20, 20, 79, 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;
  background: var(--surface);
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 14px clamp(18px, 4vw, 64px);
  border-bottom: 1px solid rgba(221, 225, 238, 0.85);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: 178px;
}

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

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--blue-900);
  font-size: 0.94rem;
  font-weight: 700;
}

.site-nav a {
  padding: 10px 12px;
  border-radius: 8px;
}

.site-nav a:hover {
  background: var(--blue-050);
}

.site-nav .nav-cta {
  margin-left: 4px;
  color: #fff;
  background: var(--red);
}

.site-nav .nav-cta:hover {
  background: #9d272b;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--blue);
}

.section {
  padding: clamp(60px, 8vw, 108px) clamp(18px, 5vw, 76px);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.98fr);
  gap: clamp(36px, 6vw, 76px);
  align-items: center;
  min-height: min(780px, calc(100vh - 78px));
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(241, 243, 255, 0.92), rgba(255, 255, 255, 0.86) 48%, rgba(255, 241, 241, 0.9)),
    radial-gradient(circle at 82% 20%, rgba(185, 49, 53, 0.14), transparent 28%);
}

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

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

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

h1 {
  max-width: 860px;
  margin-bottom: 22px;
  color: var(--blue-900);
  font-size: clamp(3rem, 5.5vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  color: var(--blue-900);
  font-size: clamp(2rem, 4vw, 4.1rem);
  line-height: 1.03;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  color: var(--blue-900);
  font-size: 1.2rem;
  line-height: 1.25;
}

.hero-text {
  max-width: 690px;
  color: var(--muted);
  font-size: clamp(1.06rem, 1.8vw, 1.32rem);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
}

.button.primary {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 12px 28px rgba(39, 37, 139, 0.22);
}

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

.hero-visual {
  position: relative;
  min-height: 540px;
  border: 1px solid rgba(221, 225, 238, 0.95);
  border-radius: 8px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.88), rgba(241, 243, 255, 0.9)),
    repeating-linear-gradient(90deg, rgba(39, 37, 139, 0.08) 0 1px, transparent 1px 56px),
    repeating-linear-gradient(0deg, rgba(39, 37, 139, 0.07) 0 1px, transparent 1px 56px);
  box-shadow: var(--shadow);
}

.visual-core {
  position: absolute;
  inset: 50% auto auto 50%;
  width: min(72%, 370px);
  padding: 28px;
  border: 1px solid rgba(39, 37, 139, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 55px rgba(20, 20, 79, 0.13);
  transform: translate(-50%, -50%);
}

.visual-core img {
  width: 220px;
  margin-bottom: 22px;
}

.visual-core p {
  margin: 0;
  color: var(--muted);
  font-weight: 650;
}

.orbit-card {
  position: absolute;
  width: 190px;
  padding: 16px;
  border: 1px solid rgba(221, 225, 238, 0.95);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 42px rgba(20, 20, 79, 0.12);
}

.orbit-card span {
  display: block;
  color: var(--red);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.orbit-card strong {
  display: block;
  margin-top: 5px;
  color: var(--blue-900);
  line-height: 1.25;
}

.card-ai {
  top: 48px;
  left: 42px;
}

.card-cloud {
  right: 34px;
  top: 54px;
}

.card-code {
  bottom: 48px;
  left: 88px;
}

.intro {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) 1fr;
  gap: clamp(28px, 5vw, 68px);
  background: #fff;
}

.intro-grid,
.industry-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.intro-grid article,
.industry-grid article,
.project-strip article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.intro-grid article {
  padding: 24px;
}

.intro-grid article:first-child {
  grid-column: 1 / -1;
  background: var(--blue-050);
}

.section-heading {
  max-width: 900px;
  margin-bottom: clamp(28px, 4vw, 48px);
}

.services {
  background: var(--wash);
}

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

.service-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(20, 20, 79, 0.06);
}

.icon {
  display: grid;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 8px;
  color: var(--red);
  background: var(--red-050);
}

.icon svg {
  width: 25px;
  height: 25px;
  fill: currentColor;
}

.service-card p,
.industry-grid p,
.project-strip p,
.stack p,
.contact p,
.intro-grid p {
  color: var(--muted);
}

.service-card ul {
  display: grid;
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.service-card li {
  position: relative;
  padding-left: 18px;
  color: #33394b;
  font-size: 0.95rem;
}

.service-card li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 7px;
  height: 7px;
  background: var(--red);
}

.value-band {
  color: #fff;
  background: var(--blue-900);
}

.value-band h2,
.value-band .eyebrow {
  color: #fff;
}

.value-band .eyebrow {
  opacity: 0.82;
}

.value-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
}

.value-list div {
  min-height: 190px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.08);
}

.value-list strong {
  display: block;
  margin-bottom: 24px;
  color: #ffcbcc;
  font-size: 0.86rem;
}

.value-list span {
  display: block;
  font-weight: 750;
  line-height: 1.35;
}

.industries {
  background: #fff;
}

.industry-grid article {
  min-height: 220px;
  padding: 26px;
}

.industry-grid article:nth-child(1),
.industry-grid article:nth-child(4) {
  background: var(--blue-050);
}

.projects {
  overflow: hidden;
  background: linear-gradient(180deg, #fff, var(--wash));
}

.project-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(220px, 1fr));
  gap: 16px;
}

.project-strip article {
  min-height: 210px;
  padding: 22px;
}

.project-strip article::before {
  content: "";
  display: block;
  width: 42px;
  height: 5px;
  margin-bottom: 22px;
  background: var(--red);
}

.stack {
  display: grid;
  grid-template-columns: minmax(270px, 0.72fr) 1fr;
  gap: clamp(32px, 6vw, 76px);
  align-items: center;
  background: #fff;
}

.stack-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-content: center;
}

.stack-cloud span {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--blue-900);
  background: #fff;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(20, 20, 79, 0.06);
}

.contact {
  background: #fff;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(260px, 0.54fr);
  gap: 38px;
  padding: clamp(28px, 5vw, 54px);
  border-radius: 8px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(20, 20, 79, 0.98), rgba(39, 37, 139, 0.95) 58%, rgba(185, 49, 53, 0.95)),
    var(--blue-900);
  box-shadow: var(--shadow);
}

.contact-panel h2,
.contact-panel .eyebrow,
.contact-panel p {
  color: #fff;
}

.contact-panel p {
  opacity: 0.82;
}

.contact-links {
  display: grid;
  gap: 10px;
  align-content: center;
}

.contact-links a {
  display: block;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.contact-links a:hover {
  background: rgba(255, 255, 255, 0.16);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 28px clamp(18px, 5vw, 76px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: var(--wash);
}

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

.site-footer p {
  margin: 0;
  text-align: right;
}

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

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

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

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

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: 72px 14px auto;
    display: grid;
    gap: 6px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
    transform: translateY(-16px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
  }

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

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

  .site-nav .nav-cta {
    margin-left: 0;
  }

  .hero,
  .intro,
  .stack,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-visual {
    min-height: 470px;
  }

  .intro-grid,
  .industry-grid,
  .service-grid,
  .value-list,
  .project-strip {
    grid-template-columns: 1fr;
  }

  .intro-grid article:first-child {
    grid-column: auto;
  }

  .value-list div {
    min-height: 130px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer p {
    text-align: left;
  }
}

@media (max-width: 560px) {
  .brand {
    width: 142px;
  }

  h1 {
    font-size: clamp(2.45rem, 13vw, 3.5rem);
  }

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

  .hero-visual {
    min-height: 520px;
  }

  .visual-core {
    width: calc(100% - 40px);
    padding: 22px;
  }

  .visual-core img {
    width: 186px;
  }

  .orbit-card {
    width: 166px;
    padding: 13px;
  }

  .card-ai {
    top: 20px;
    left: 16px;
  }

  .card-cloud {
    top: 118px;
    right: 16px;
  }

  .card-code {
    bottom: 18px;
    left: 20px;
  }

  .section {
    padding-left: 16px;
    padding-right: 16px;
  }
}
