:root {
  color-scheme: dark;
  --bg: #071016;
  --bg-2: #0d1821;
  --surface: rgba(255, 255, 255, 0.075);
  --surface-strong: rgba(255, 255, 255, 0.12);
  --line: rgba(255, 255, 255, 0.16);
  --text: #f4f8fb;
  --muted: #b8c6d1;
  --soft: #7e95a6;
  --cyan: #42c8ff;
  --cyan-2: #8ee7ff;
  --amber: #f1b36d;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 85% 10%, rgba(66, 200, 255, 0.2), transparent 34rem),
    linear-gradient(180deg, #061017 0%, #0a1218 42%, #081015 100%);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 75%);
}

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

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px max(20px, calc((100vw - 1120px) / 2));
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(5, 12, 18, 0.72);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
  font-weight: 700;
}

.brand-mark {
  display: grid;
  min-width: 48px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(66, 200, 255, 0.44);
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(66, 200, 255, 0.18), rgba(241, 179, 109, 0.1));
  color: var(--cyan-2);
  letter-spacing: 0;
}

.brand-text {
  color: rgba(244, 248, 251, 0.9);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.nav a {
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--muted);
  font-size: 0.95rem;
  transition:
    color 160ms ease,
    background-color 160ms ease;
}

.nav a:hover,
.nav a:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  outline: none;
}

.hero {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  display: grid;
  align-items: center;
  padding: 160px 0 84px;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  background-image: url("assets/hero-it-consulting.png");
  background-position: center right;
  background-size: cover;
  transform: scale(1.02);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(5, 12, 18, 0.97) 0%, rgba(5, 12, 18, 0.86) 34%, rgba(5, 12, 18, 0.28) 78%),
    linear-gradient(180deg, rgba(5, 12, 18, 0.34) 0%, var(--bg) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--cyan-2);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(3.35rem, 7vw, 6.6rem);
  line-height: 0.94;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.15rem;
  line-height: 1.25;
}

.hero-copy {
  max-width: 620px;
  margin-bottom: 32px;
  color: var(--muted);
  font-size: clamp(1.12rem, 2vw, 1.35rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 52px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  padding: 12px 20px;
  font-weight: 700;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.button-primary {
  background: var(--cyan);
  color: #061017;
}

.button-secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: rgba(142, 231, 255, 0.55);
}

.hero-facts {
  display: grid;
  max-width: 760px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  box-shadow: var(--shadow);
}

.hero-facts div {
  padding: 18px;
  background: rgba(6, 16, 23, 0.74);
}

.hero-facts dt {
  color: var(--soft);
  font-size: 0.82rem;
}

.hero-facts dd {
  margin: 4px 0 0;
  color: var(--text);
  font-weight: 700;
}

.section {
  position: relative;
  padding: 92px 0;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  gap: 72px;
  align-items: start;
}

.intro-copy {
  color: var(--muted);
  font-size: 1.08rem;
}

.intro-copy p:last-child {
  margin-bottom: 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 36px;
}

.services-section {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0));
}

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

.service-card {
  min-height: 280px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.045)),
    rgba(8, 19, 27, 0.8);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
}

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

.icon {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 28px;
  border: 1px solid rgba(66, 200, 255, 0.38);
  border-radius: 6px;
  color: var(--cyan-2);
  font-size: 0.86rem;
  font-weight: 800;
}

.process-section {
  background: #f4f8fb;
  color: #081015;
}

.process-section .section-kicker {
  color: #106a87;
}

.process-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  min-height: 180px;
  border: 1px solid rgba(8, 16, 21, 0.12);
  border-radius: 8px;
  padding: 24px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(8, 16, 21, 0.08);
}

.process-list span {
  color: #1483a5;
  font-weight: 800;
}

.process-list p {
  margin-bottom: 0;
  color: #4c5c66;
}

.profile-panel,
.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(28px, 5vw, 52px);
  background:
    linear-gradient(135deg, rgba(66, 200, 255, 0.1), transparent 36%),
    var(--surface);
  box-shadow: var(--shadow);
}

.profile-panel p,
.contact-panel p {
  color: var(--muted);
}

.capability-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.capability-list span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 13px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(244, 248, 251, 0.88);
  font-weight: 650;
}

.contact-section {
  padding-top: 0;
}

.contact-panel {
  background:
    linear-gradient(135deg, rgba(241, 179, 109, 0.15), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.045));
}

.contact-card {
  display: grid;
  gap: 8px;
  border-left: 2px solid var(--amber);
  padding: 8px 0 8px 24px;
}

.contact-card .contact-label {
  margin-bottom: 2px;
  color: var(--soft);
  font-size: 0.9rem;
}

.contact-card a {
  color: var(--text);
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  font-weight: 800;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.contact-card span {
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 26px 0;
  color: var(--soft);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

.site-footer a {
  color: var(--muted);
  text-decoration: underline;
  text-decoration-color: rgba(184, 198, 209, 0.35);
  text-underline-offset: 4px;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--text);
  outline: none;
}

.legal-page {
  min-height: 100vh;
}

.legal-hero {
  position: relative;
  overflow: hidden;
  padding: 172px 0 72px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(5, 12, 18, 0.94), rgba(5, 12, 18, 0.78)),
    url("assets/hero-it-consulting.png") center right / cover;
}

.legal-hero h1 {
  margin-bottom: 16px;
}

.legal-section {
  padding-top: 72px;
}

.legal-grid {
  display: grid;
  max-width: 780px;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.legal-stack {
  display: grid;
  gap: 18px;
}

.legal-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(22px, 4vw, 30px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.04)),
    rgba(8, 19, 27, 0.8);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
}

.legal-card h2 {
  margin-bottom: 12px;
  font-size: 1.18rem;
  line-height: 1.25;
}

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

.legal-card strong,
.legal-card a {
  color: var(--text);
}

.legal-card a {
  text-decoration: underline;
  text-decoration-color: rgba(66, 200, 255, 0.42);
  text-underline-offset: 4px;
}

@media (max-width: 900px) {
  .site-header {
    position: absolute;
    align-items: flex-start;
    flex-direction: column;
  }

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

  .hero {
    min-height: 760px;
    padding-top: 210px;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(5, 12, 18, 0.96), rgba(5, 12, 18, 0.72)),
      linear-gradient(180deg, rgba(5, 12, 18, 0.2), var(--bg) 100%);
  }

  .split,
  .profile-panel,
  .contact-panel,
  .legal-grid {
    grid-template-columns: 1fr;
  }

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

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

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

  .brand-text {
    font-size: 0.95rem;
  }

  .nav a {
    padding: 7px 9px;
    font-size: 0.9rem;
  }

  .hero {
    min-height: 720px;
    padding: 210px 0 58px;
  }

  h1 {
    font-size: clamp(3rem, 18vw, 4.3rem);
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero-facts,
  .service-grid,
  .process-list {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 68px 0;
  }

  .service-card {
    min-height: auto;
  }
}
