:root {
  --red: #c9151e;
  --red-dark: #9f1118;
  --ink: #121417;
  --muted: #5c6670;
  --line: #e7eaee;
  --paper: #ffffff;
  --soft: #f6f7f9;
  --dark: #12161c;
  --dark-2: #1d232c;
  --shadow: 0 24px 70px rgba(18, 20, 23, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Inter", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  padding: 0 clamp(20px, 5vw, 64px);
  color: #fff;
  transition: background 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 40px rgba(18, 20, 23, 0.08);
  backdrop-filter: blur(16px);
}

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

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: #fff;
  background: var(--red);
  border-radius: 7px;
  font-weight: 900;
  font-size: 24px;
  line-height: 1;
}

.brand-text {
  display: grid;
  gap: 0;
}

.brand-text strong {
  color: var(--red);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-text small {
  font-size: 12px;
  font-weight: 700;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 15px;
  font-weight: 700;
}

.site-nav a {
  opacity: 0.9;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.site-nav a:hover {
  color: var(--red);
  opacity: 1;
}

.nav-action {
  padding: 9px 16px;
  color: #fff;
  background: var(--red);
  border-radius: 6px;
}

.site-nav .nav-action:hover {
  color: #fff;
  background: var(--red-dark);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 6px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 92vh;
  overflow: hidden;
  color: #fff;
}

.hero-media {
  position: absolute;
  inset: 0;
  background-image: url("../images/hero-ai-infrastructure.png");
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 12, 15, 0.88) 0%, rgba(10, 12, 15, 0.66) 42%, rgba(10, 12, 15, 0.3) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.32) 0%, rgba(0, 0, 0, 0.12) 58%, rgba(255, 255, 255, 0.08) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 92vh;
  padding: 118px 0 112px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 16px;
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: 0;
}

.hero-name {
  margin: 14px 0 0;
  color: #ff4d55;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 900;
  line-height: 1.1;
}

.hero-copy {
  max-width: 660px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 20px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: #fff;
  background: var(--red);
}

.button.primary:hover {
  background: var(--red-dark);
}

.button.secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
}

.section {
  padding: 96px 0;
}

.intro-band {
  padding: 62px 0;
  background: var(--soft);
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 52px;
  align-items: end;
}

h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.18;
  font-weight: 900;
  letter-spacing: 0;
}

.intro-grid p:last-child,
.section-head p,
.about-copy p,
.contact-grid p,
.ecosystem-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

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

.section-head h2 {
  margin-bottom: 16px;
}

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

.service-card {
  min-height: 360px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 36px rgba(18, 20, 23, 0.05);
}

.service-index {
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
}

.service-card h3 {
  margin: 42px 0 14px;
  font-size: 25px;
  line-height: 1.24;
}

.service-card p {
  margin: 0;
  color: var(--muted);
}

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

.service-card li {
  position: relative;
  padding-left: 18px;
  color: #2d343c;
  font-weight: 700;
}

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

.dark-section {
  color: #fff;
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%);
}

.ecosystem-grid {
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  gap: 60px;
  align-items: center;
}

.ecosystem-grid p {
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.72);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.metrics div {
  min-height: 180px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.metrics strong {
  display: block;
  color: #ff4d55;
  font-size: 22px;
  font-weight: 900;
}

.metrics span {
  display: block;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.8);
}

.about-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 64px;
  align-items: start;
}

.about-copy p {
  margin-top: 20px;
}

.principles {
  display: grid;
  gap: 16px;
}

.principles div {
  padding: 26px 28px;
  border-left: 4px solid var(--red);
  background: var(--soft);
  border-radius: 0 8px 8px 0;
}

.principles h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.principles p {
  margin: 0;
  color: var(--muted);
}

.contact-section {
  background: var(--soft);
}

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

.contact-form {
  display: grid;
  gap: 16px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: #2c333a;
  font-size: 14px;
  font-weight: 800;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid #d9dee5;
  border-radius: 6px;
  padding: 12px 14px;
  color: var(--ink);
  background: #fff;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(201, 21, 30, 0.12);
}

.site-footer {
  padding: 28px 0;
  color: rgba(255, 255, 255, 0.74);
  background: #0f1216;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-inner div {
  display: grid;
}

.footer-inner strong {
  color: #ff4d55;
  font-size: 20px;
  font-weight: 900;
}

.footer-inner span,
.footer-inner p {
  margin: 0;
}

@media (max-width: 920px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px 20px 22px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 40px rgba(18, 20, 23, 0.1);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 12px 0;
  }

  .nav-action {
    margin-top: 8px;
    padding: 12px 16px;
    text-align: center;
  }

  .intro-grid,
  .service-grid,
  .ecosystem-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .metrics {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, 1160px);
  }

  .site-header {
    height: 68px;
    padding: 0 14px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .brand-text strong {
    font-size: 18px;
  }

  .site-nav {
    top: 68px;
  }

  .hero,
  .hero-content {
    min-height: 88vh;
  }

  .hero-content {
    padding: 104px 0 86px;
  }

  .hero-copy {
    font-size: 17px;
  }

  .button {
    width: 100%;
  }

  .section {
    padding: 68px 0;
  }

  .intro-band {
    padding: 48px 0;
  }

  .service-card,
  .contact-form {
    padding: 24px;
  }

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