:root {
  --bg: #07111f;
  --bg-2: #0d1b2a;
  --panel: #112438;
  --blue: #2878ff;
  --cyan: #35c6f4;
  --green: #28d19c;
  --ink: #142033;
  --muted: #a9b7c6;
  --line: rgba(169, 183, 198, 0.24);
  --light: #f6f8fb;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(7, 17, 31, 0.18);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--white);
  font-family: Inter, system-ui, sans-serif;
  line-height: 1.5;
}

body.admin-bar .site-header {
  top: 32px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 76px;
  padding: 0 6vw;
  background: rgba(7, 17, 31, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

.site-header.is-scrolled {
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 800;
  letter-spacing: 0;
}

.brand-logo {
  display: block;
  width: clamp(132px, 15vw, 190px);
  height: auto;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border: 2px solid var(--cyan);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(40, 120, 255, 0.82), rgba(53, 198, 244, 0.16)),
    var(--panel);
  box-shadow: inset 0 0 0 6px rgba(255, 255, 255, 0.06);
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.main-nav .menu-item,
.site-footer .menu-item {
  display: contents;
}

.main-nav a:hover,
.site-footer a:hover {
  color: var(--white);
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.header-cta {
  background: var(--white);
  color: var(--ink);
}

.section-dark,
.section-light,
.section-white,
.section-blue {
  padding: 96px 6vw;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  gap: 7vw;
  align-items: center;
  min-height: calc(100vh - 76px);
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 20%, rgba(53, 198, 244, 0.18), transparent 28%),
    linear-gradient(145deg, #07111f 0%, #0a1627 50%, #101b24 100%);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(54px, 7vw, 98px);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 20px;
  color: inherit;
  font-size: clamp(34px, 4.2vw, 64px);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 14px;
  font-size: 22px;
  line-height: 1.14;
  letter-spacing: 0;
}

.hero-text {
  max-width: 620px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 14px 36px rgba(40, 120, 255, 0.34);
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--white);
}

.button-dark {
  margin-top: 12px;
  background: var(--ink);
  color: var(--white);
}

.button-light {
  background: var(--white);
  color: var(--blue);
}

.architecture-visual {
  position: relative;
  width: min(100%, 660px);
  aspect-ratio: 1.04;
  margin-inline: auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(145deg, rgba(17, 36, 56, 0.88), rgba(13, 27, 42, 0.72));
  background-size: 44px 44px, 44px 44px, auto;
  box-shadow: var(--shadow);
}

.node {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  min-width: 112px;
  min-height: 54px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(7, 17, 31, 0.9);
  color: var(--white);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.node-ai {
  top: 10%;
  left: 50%;
  min-width: 124px;
  min-height: 64px;
  color: var(--bg);
  background: linear-gradient(135deg, var(--cyan), #a8f1ff);
  transform: translateX(-50%);
}

.node-api {
  top: 38%;
  left: 9%;
}

.node-services {
  top: 38%;
  left: 50%;
  transform: translateX(-50%);
}

.node-data {
  top: 38%;
  right: 9%;
}

.node-java {
  bottom: 24%;
  left: 50%;
  min-width: 164px;
  transform: translateX(-50%);
}

.node-cloud {
  bottom: 8%;
  left: 50%;
  min-width: 188px;
  background: rgba(40, 120, 255, 0.9);
  transform: translateX(-50%);
}

.line {
  position: absolute;
  z-index: 1;
  display: block;
  height: 2px;
  background: linear-gradient(90deg, rgba(53, 198, 244, 0.12), rgba(53, 198, 244, 0.72), rgba(40, 120, 255, 0.18));
  transform-origin: left center;
}

.line-ai-api {
  top: 31%;
  left: 33%;
  width: 22%;
  transform: rotate(148deg);
}

.line-ai-services {
  top: 29%;
  left: 50%;
  width: 17%;
  transform: rotate(90deg);
}

.line-ai-data {
  top: 31%;
  left: 51%;
  width: 22%;
  transform: rotate(32deg);
}

.line-api-java {
  top: 55%;
  left: 26%;
  width: 25%;
  transform: rotate(32deg);
}

.line-services-java {
  top: 55%;
  left: 50%;
  width: 19%;
  transform: rotate(90deg);
}

.line-data-java {
  top: 55%;
  right: 26%;
  width: 25%;
  transform: rotate(148deg);
}

.line-java-cloud {
  bottom: 21%;
  left: 50%;
  width: 14%;
  transform: rotate(90deg);
}

.pulse {
  position: absolute;
  z-index: 3;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 8px rgba(40, 209, 156, 0.12);
  animation: drift 5.6s linear infinite;
}

.pulse-one {
  top: 31%;
  left: 42%;
}

.pulse-two {
  top: 57%;
  left: 64%;
  animation-delay: -1.8s;
}

.pulse-three {
  top: 72%;
  left: 50%;
  animation-delay: -3.4s;
}

@keyframes drift {
  0% {
    opacity: 0.28;
    transform: translateY(0) scale(0.92);
  }
  50% {
    opacity: 1;
    transform: translateY(-12px) scale(1);
  }
  100% {
    opacity: 0.28;
    transform: translateY(0) scale(0.92);
  }
}

.section-light {
  background: var(--light);
  color: var(--ink);
}

.section-white {
  background: var(--white);
  color: var(--ink);
}

.section-blue {
  background:
    linear-gradient(120deg, rgba(40, 120, 255, 0.96), rgba(21, 92, 214, 0.96)),
    var(--blue);
  color: var(--white);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(210px, 0.46fr) minmax(0, 1fr);
  gap: 7vw;
  align-items: start;
  margin-bottom: 46px;
}

.section-heading h2,
.wide-copy h2 {
  max-width: 920px;
}

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

.service-card {
  display: flex;
  flex-direction: column;
  min-height: 370px;
  padding: 26px;
  border: 1px solid #dbe4ef;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 16px 48px rgba(20, 32, 51, 0.07);
}

.service-card-accent {
  border-color: rgba(40, 120, 255, 0.3);
  background: linear-gradient(180deg, #ffffff 0%, #eef7ff 100%);
}

.service-index {
  margin-bottom: 42px;
  color: var(--blue);
  font-weight: 800;
}

.service-card p {
  color: #4d5d70;
}

.service-card ul,
.check-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 18px 0 24px;
  list-style: none;
}

.service-card li,
.check-list li {
  position: relative;
  padding-left: 20px;
  color: #344256;
}

.service-card li::before,
.check-list li::before {
  position: absolute;
  left: 0;
  color: var(--green);
  content: "";
  width: 8px;
  height: 8px;
  top: 0.7em;
  border-radius: 999px;
  background: currentColor;
}

.service-card a {
  margin-top: auto;
  color: var(--blue);
  font-weight: 800;
}

.process {
  background:
    linear-gradient(120deg, rgba(7, 17, 31, 0.92), rgba(13, 27, 42, 0.9)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 120px);
}

.wide-copy {
  max-width: 980px;
}

.wide-copy p {
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 44px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.12);
}

.process-steps div {
  min-height: 132px;
  padding: 26px;
  background: rgba(17, 36, 56, 0.72);
  font-size: 22px;
  font-weight: 800;
}

.process-steps span {
  display: block;
  margin-bottom: 28px;
  color: var(--cyan);
  font-size: 14px;
}

.ai-section {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  gap: 7vw;
  align-items: center;
}

.ai-copy p {
  max-width: 660px;
  color: #4d5d70;
  font-size: 18px;
}

.data-flow {
  display: grid;
  gap: 18px;
  padding: 28px;
  border: 1px solid #dbe4ef;
  border-radius: 8px;
  background:
    linear-gradient(rgba(20, 32, 51, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 32, 51, 0.045) 1px, transparent 1px),
    #ffffff;
  background-size: 38px 38px;
  box-shadow: var(--shadow);
}

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

.source-card,
.flow-card {
  display: grid;
  place-items: center;
  min-height: 72px;
  border: 1px solid #dbe4ef;
  border-radius: 8px;
  background: #f9fbfe;
  color: var(--ink);
  font-weight: 800;
  text-align: center;
}

.flow-join {
  justify-self: center;
  width: 2px;
  height: 28px;
  background: var(--blue);
}

.flow-card {
  position: relative;
  min-height: 88px;
  background: var(--panel);
  color: var(--white);
}

.flow-card::before {
  position: absolute;
  top: -19px;
  left: 50%;
  width: 2px;
  height: 18px;
  background: var(--blue);
  content: "";
}

.flow-card span {
  display: block;
  margin-top: 4px;
  color: var(--cyan);
  font-size: 13px;
}

.flow-output {
  background: linear-gradient(135deg, var(--blue), #155cd6);
}

.tech-matrix {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid #dbe4ef;
  border-radius: 8px;
  overflow: hidden;
}

.tech-matrix div {
  display: grid;
  gap: 12px;
  padding: 28px;
  border-right: 1px solid #dbe4ef;
  background: #ffffff;
}

.tech-matrix div:last-child {
  border-right: 0;
}

.tech-matrix h3 {
  margin-bottom: 10px;
}

.tech-matrix span {
  display: block;
  color: #4d5d70;
  font-weight: 600;
}

.about {
  background:
    linear-gradient(145deg, rgba(7, 17, 31, 0.94), rgba(17, 36, 56, 0.92)),
    linear-gradient(90deg, transparent 0 72%, rgba(53, 198, 244, 0.16) 72% 100%);
}

.cta {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(360px, 1fr);
  gap: 7vw;
  align-items: start;
  min-height: 360px;
}

.cta h2 {
  margin-bottom: 28px;
}

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

.contact-copy p:not(.eyebrow) {
  max-width: 540px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
}

.contact-form {
  display: grid;
  gap: 18px;
  width: 100%;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(7, 17, 31, 0.34);
  box-shadow: 0 24px 70px rgba(7, 17, 31, 0.18);
  text-align: left;
}

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

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--white);
  font-size: 13px;
  font-weight: 800;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  font: inherit;
  font-weight: 500;
}

.contact-form textarea {
  min-height: 136px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--cyan);
  outline: 3px solid rgba(53, 198, 244, 0.28);
}

.contact-form button {
  justify-self: start;
  cursor: pointer;
}

.form-message {
  margin: 0;
  padding: 12px 14px;
  border-radius: 8px;
  font-weight: 800;
}

.form-message-success {
  background: rgba(40, 209, 156, 0.16);
  color: #dffdf4;
}

.form-message-error {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.website-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  padding: 44px 6vw;
  background: #050b14;
  color: var(--muted);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 16px 24px;
  max-width: 620px;
  font-size: 14px;
  font-weight: 600;
}

.site-footer p {
  margin: 12px 0 0;
}

.default-content {
  min-height: 60vh;
}

.default-content article {
  max-width: 920px;
  margin: 0 auto;
}

.entry-content {
  color: #344256;
  font-size: 18px;
}

.entry-content a {
  color: var(--blue);
  font-weight: 700;
}

.entry-content img {
  max-width: 100%;
  height: auto;
}

@media (max-width: 1080px) {
  .site-header {
    flex-wrap: wrap;
    min-height: auto;
    padding-block: 18px;
  }

  .main-nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero,
  .ai-section,
  .cta {
    grid-template-columns: 1fr;
  }

  .architecture-visual {
    max-width: 620px;
  }

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

  .tech-matrix div:nth-child(2) {
    border-right: 0;
  }

  .tech-matrix div:nth-child(-n + 2) {
    border-bottom: 1px solid #dbe4ef;
  }
}

@media (max-width: 760px) {
  body.admin-bar .site-header {
    top: 46px;
  }

  .section-dark,
  .section-light,
  .section-white,
  .section-blue {
    padding: 68px 22px;
  }

  .site-header {
    padding-inline: 22px;
  }

  .header-cta {
    width: 100%;
  }

  .hero {
    min-height: auto;
    padding-top: 72px;
  }

  h1 {
    font-size: 54px;
  }

  .hero-text {
    font-size: 18px;
  }

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

  .architecture-visual {
    min-height: 430px;
    aspect-ratio: auto;
  }

  .node {
    min-width: 94px;
    padding-inline: 12px;
    font-size: 12px;
  }

  .node-api {
    left: 4%;
  }

  .node-data {
    right: 4%;
  }

  .section-heading,
  .service-grid,
  .process-steps,
  .source-row,
  .tech-matrix,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 320px;
  }

  .process-steps div {
    min-height: 104px;
  }

  .source-row {
    gap: 8px;
  }

  .tech-matrix div,
  .tech-matrix div:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid #dbe4ef;
  }

  .tech-matrix div:last-child {
    border-bottom: 0;
  }

  .site-footer {
    flex-direction: column;
  }

  .site-footer nav {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .pulse {
    animation: none;
  }
}
