:root {
  --ink: #2f3338;
  --ink-soft: #4b4c4e;
  --ink-muted: #7f8081;
  --blue: #3871c2;
  --blue-deep: #244f8f;
  --blue-soft: #e3ebf6;
  --line: #d8e3f2;
  --sky: #f5f8fc;
  --card: #ffffff;
  --accent: #638fcf;
  --shadow-sm: 0 10px 24px rgba(47, 51, 56, 0.07);
  --shadow-md: 0 20px 44px rgba(47, 51, 56, 0.12);
  --radius: 8px;
  --radius-lg: 12px;
  --section: clamp(56px, 8vw, 92px);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 16px;
  color: var(--ink);
  background: var(--sky);
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  margin: 0;
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: 0;
}

h1 {
  max-width: 820px;
  font-size: clamp(38px, 5vw, 60px);
  font-weight: 700;
}

h2 {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 650;
}

h3 {
  font-size: 21px;
  font-weight: 650;
}

p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.6;
}

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

button,
input,
textarea {
  font: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(56, 113, 194, 0.32);
  outline-offset: 3px;
}

.svg-sprite {
  display: none;
}

.card-heading {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  align-items: center;
  min-height: 76px;
  margin-bottom: 16px;
}

.card-heading h3 {
  margin: 0;
}

.icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(56, 113, 194, 0.26);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(56, 113, 194, 0.14), rgba(99, 143, 207, 0.1));
  color: var(--blue-deep);
}

.icon-box svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.page-bg {
  position: relative;
  isolation: isolate;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(245, 248, 252, 0.96) 52%, #e3ebf6 100%);
  min-height: 100vh;
}

.page-bg::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(56, 113, 194, 0.12) 1px, transparent 0),
    linear-gradient(rgba(56, 113, 194, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 113, 194, 0.045) 1px, transparent 1px);
  background-size: 28px 28px, 56px 56px, 56px 56px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.22));
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.site-header {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(217, 226, 238, 0.8);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}

.logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 7px 12px;
  border: 1px solid rgba(217, 226, 238, 0.9);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(47, 51, 56, 0.06);
}

.logo img {
  display: block;
  height: 32px;
  width: auto;
}

.logo-fallback {
  display: none;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.nav-links {
  display: flex;
  gap: 28px;
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 500;
}

.nav-links a {
  position: relative;
  padding: 8px 0;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--blue);
  transition: width 0.3s ease;
}

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

.nav-links a:hover::after {
  width: 100%;
}

.cta {
  background: var(--blue-deep);
  color: #ffffff;
  min-height: 44px;
  padding: 11px 18px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.cta:hover {
  background: #1d447e;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(56, 113, 194, 0.22);
}

.hero {
  padding: 64px 0 var(--section);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 12px;
  font-weight: 600;
  color: var(--blue-deep);
  margin-bottom: 24px;
}

.lead {
  max-width: 650px;
  font-size: 17px;
  line-height: 1.75;
}

.lead + .lead {
  margin-top: 18px;
}

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

.ghost {
  border: 1px solid rgba(255, 255, 255, 0.46);
  color: var(--blue-deep);
  min-height: 44px;
  padding: 11px 18px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.72);
}

.services {
  padding: var(--section) 0;
  background: #ffffff;
  border-block: 1px solid var(--line);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(280px, 1fr);
  gap: 40px;
  align-items: start;
  margin-bottom: 36px;
}

.section-head p {
  font-size: 16px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.cards article {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}

.cards article p {
  font-size: 16px;
}

.story {
  padding: var(--section) 0;
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.story-panel {
  background: linear-gradient(160deg, #2f3338 0%, #244f8f 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: 0 18px 38px rgba(47, 51, 56, 0.18);
}

.story-panel h3,
.story-panel .card-heading h3 {
  color: #ffffff;
}

.story-panel p + p {
  margin-top: 14px;
}

.story-panel p,
.story-panel li {
  font-size: 16px;
}

.story-panel ul {
  margin: 20px 0 0;
  padding-left: 18px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.8;
}

.story-panel p,
.story-panel li {
  color: rgba(255, 255, 255, 0.82);
}

.story-panel .icon-box {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.technology {
  padding: var(--section) 0;
  background: #ffffff;
  border-top: 1px solid var(--line);
}

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

.tech-list article {
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.tech-list p {
  font-size: 16px;
}

.contact {
  padding: var(--section) 0;
  background: var(--blue-deep);
}

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

.contact h2,
.contact p {
  color: #ffffff;
}

.contact > .container > div > p {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 16px;
  margin-top: 16px;
}

.contact-meta {
  display: grid;
  gap: 8px;
  margin-top: 28px;
}

.contact-meta p {
  color: rgba(255, 255, 255, 0.82);
}

.contact-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

input, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 11px 12px;
  color: var(--ink);
  background: #ffffff;
  font-size: 15px;
}

textarea {
  resize: vertical;
}

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

.form-status {
  border-radius: var(--radius);
  padding: 12px 14px;
  font-size: 15px;
  line-height: 1.45;
}

.form-status.success {
  border: 1px solid rgba(56, 113, 194, 0.28);
  background: var(--blue-soft);
  color: var(--blue-deep);
}

.form-status.error,
.field-error {
  color: #8a1f1f;
}

.form-status.error {
  border: 1px solid rgba(138, 31, 31, 0.22);
  background: #fff1f1;
}

.field-error {
  font-size: 13px;
  font-weight: 500;
}

.cf-turnstile {
  min-height: 65px;
}

button {
  border: none;
  background: var(--accent);
  color: #ffffff;
  min-height: 44px;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

button:hover {
  background: #467bc6;
  transform: translateY(-1px);
}

.site-footer {
  padding: 28px 0;
  text-align: center;
  background: #2f3338;
}

.site-footer p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.hero-banner {
  background:
    linear-gradient(90deg, rgba(47, 51, 56, 0.95) 0%, rgba(36, 79, 143, 0.84) 50%, rgba(56, 113, 194, 0.45) 100%),
    url("../img/hero-server-rack.0466475c64d2.jpg") center right/cover no-repeat;
  border-radius: var(--radius-lg);
  min-height: 560px;
  display: flex;
  align-items: center;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.hero-overlay {
  color: #ffffff;
  padding: clamp(48px, 7vw, 88px);
  max-width: 780px;
}

.hero-overlay h1 {
  margin-bottom: 28px;
}

.hero-overlay h1,
.hero-overlay p,
.hero-overlay .eyebrow {
  color: #ffffff;
}

.hero-overlay .eyebrow {
  opacity: 0.9;
}

.hero-overlay .lead {
  color: #e3ebf6;
}

.hero-overlay .ghost {
  color: #ffffff;
}

@media (max-width: 900px) {
  .section-head,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .tech-list {
    grid-template-columns: 1fr;
  }

  .hero-banner {
    min-height: 500px;
  }
}

@media (max-width: 720px) {
  .nav-wrap {
    flex-wrap: wrap;
    min-height: auto;
    padding: 14px 0;
    gap: 14px;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 18px;
    order: 3;
    width: 100%;
  }

  .nav-wrap > .cta {
    padding-inline: 14px;
  }

  .hero {
    padding-top: 40px;
  }

  .hero-banner {
    min-height: auto;
  }

}

@media (max-width: 520px) {
  .container {
    width: min(100% - 32px, 1120px);
  }

  .nav-wrap {
    align-items: stretch;
  }

  .logo {
    justify-content: center;
    justify-self: center;
    width: fit-content;
    margin: 0 auto;
  }

  .nav-wrap > .cta,
  .hero-actions .cta,
  .hero-actions .ghost {
    width: 100%;
  }

  .hero-overlay {
    padding: 34px 28px;
  }
}
