:root {
  --ink: #08101c;
  --night: #0c1320;
  --text: #edf7f4;
  --muted: #9fb3ad;
  --line: rgba(255, 255, 255, 0.12);
  --paper: #0b111c;
  --panel: #111b2a;
  --panel-soft: #152233;
  --white: #ffffff;
  --teal: #1b998b;
  --teal-dark: #6ee7d2;
  --coral: #ff7056;
  --amber: #ffb954;
  --blue: #5f8cff;
  --green: #7bcf8e;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--paper);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  color: var(--white);
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  color: var(--white);
  background: rgba(8, 16, 28, 0.88);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 8px;
  color: var(--ink);
  background: linear-gradient(135deg, var(--amber), var(--green));
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.5vw, 34px);
  font-size: 0.95rem;
  font-weight: 700;
}

.site-nav a {
  opacity: 0.86;
}

.site-nav a:hover {
  opacity: 1;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid currentColor;
  border-radius: 8px;
  color: inherit;
  background: transparent;
}

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

.hero {
  position: relative;
  min-height: 88svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  isolation: isolate;
}

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

.hero-media {
  z-index: -2;
  background-image: url("assets/hero-operations.png");
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
}

.hero-overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(8, 16, 28, 0.88) 0%, rgba(8, 16, 28, 0.68) 43%, rgba(8, 16, 28, 0.18) 100%),
    linear-gradient(0deg, rgba(8, 16, 28, 0.58), rgba(8, 16, 28, 0.04) 42%);
}

.hero-content {
  width: min(760px, calc(100% - 36px));
  margin-left: clamp(18px, 7vw, 104px);
  padding-top: 70px;
}

.eyebrow,
.section-label {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--amber);
}

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

h1 {
  max-width: 10ch;
  margin-bottom: 22px;
  font-size: clamp(3.8rem, 10vw, 8.8rem);
  line-height: 0.9;
  letter-spacing: 0;
}

h2 {
  color: var(--white);
  font-size: clamp(2rem, 4.5vw, 4.5rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  color: var(--white);
  font-size: 1.08rem;
  line-height: 1.2;
}

.hero-copy {
  max-width: 660px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.05rem, 2vw, 1.32rem);
}

.hero-actions,
.contact .button {
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

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

.button.primary {
  color: var(--ink);
  background: var(--amber);
  box-shadow: 0 16px 36px rgba(255, 185, 84, 0.24);
}

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

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

.section {
  padding: clamp(70px, 10vw, 130px) clamp(18px, 5vw, 72px);
}

.intro {
  background: var(--paper);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: clamp(24px, 5vw, 80px);
  align-items: end;
}

.intro-grid p,
.industry-copy p,
.contact p {
  color: var(--muted);
  font-size: 1.08rem;
}

.section-heading {
  width: min(900px, 100%);
  margin-bottom: 38px;
}

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

.service-card {
  min-height: 270px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018)),
    var(--panel);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
}

.service-card p,
.approach p,
.approach-metric span {
  color: var(--muted);
}

.icon {
  position: relative;
  display: block;
  width: 46px;
  height: 46px;
  margin-bottom: 38px;
  border-radius: 8px;
  background: var(--teal);
}

.icon::after {
  position: absolute;
  inset: 12px;
  content: "";
  border: 2px solid var(--white);
  border-radius: 50%;
}

.icon.analytics {
  background: var(--blue);
}

.icon.analytics::after {
  inset: 13px 9px 9px 13px;
  border-width: 0 0 3px 3px;
  border-radius: 0;
}

.icon.operations {
  background: var(--coral);
}

.icon.operations::after {
  inset: 11px;
  border-radius: 4px;
}

.icon.transformation {
  background: var(--amber);
}

.icon.transformation::after {
  border-color: var(--ink);
  border-radius: 2px;
  transform: rotate(45deg);
}

.proof-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.proof-band div {
  padding: clamp(28px, 5vw, 54px);
  background: #070d16;
}

.proof-band strong,
.proof-band span {
  display: block;
}

.proof-band strong {
  color: var(--white);
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  line-height: 1.05;
}

.proof-band span {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.66);
}

.approach {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 14% 18%, rgba(27, 153, 139, 0.22), transparent 28%),
    radial-gradient(circle at 92% 84%, rgba(255, 112, 86, 0.16), transparent 30%),
    #0f1a27;
}

.approach-layout {
    display: grid;
    grid-template-columns: minmax(380px, 0.98fr) minmax(0, 1.12fr);
    gap: clamp(28px, 6vw, 86px);
    align-items: start;
}

.approach-panel {
  position: sticky;
  top: 110px;
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
    rgba(17, 27, 42, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.approach-panel h2 {
  margin-bottom: 22px;
}

.approach-panel p {
  font-size: 1.05rem;
}

.approach-metric {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.approach-metric strong,
.approach-metric span {
  display: block;
}

.approach-metric strong {
  color: var(--amber);
  font-size: 1.08rem;
}

.approach-metric span {
  margin-top: 8px;
}

.approach-steps {
  display: grid;
  gap: 16px;
}

.approach-steps article {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 20px;
  min-height: 168px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.02)),
    rgba(11, 17, 28, 0.72);
}

.approach-steps article:nth-child(even) {
  transform: translateX(28px);
}

.approach-steps span {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid rgba(110, 231, 210, 0.34);
  border-radius: 8px;
  color: var(--teal-dark);
  background: rgba(27, 153, 139, 0.12);
  font-weight: 800;
}

.approach-steps h3 {
  margin-bottom: 10px;
}

.industries {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1.2fr);
  gap: clamp(34px, 7vw, 92px);
  align-items: center;
  background: var(--paper);
}

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

.industry-list span {
  min-height: 58px;
  display: flex;
  align-items: center;
  padding: 14px 18px;
  border-left: 5px solid var(--teal);
  border-radius: 8px;
  background: var(--panel-soft);
  color: var(--white);
  font-weight: 800;
}

.industry-list span:nth-child(3n + 2) {
  border-left-color: var(--coral);
}

.industry-list span:nth-child(3n) {
  border-left-color: var(--amber);
}

.contact {
  padding: clamp(70px, 10vw, 120px) clamp(18px, 5vw, 72px);
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(3, 7, 14, 0.97), rgba(8, 43, 46, 0.94)),
    url("assets/astracta.png") center / cover;
}

.contact-content {
  width: min(760px, 100%);
}

.contact h2,
.contact .section-label {
  color: var(--white);
}

.contact p {
  color: rgba(255, 255, 255, 0.74);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(18px, 5vw, 72px);
  color: rgba(255, 255, 255, 0.68);
  border-top: 1px solid var(--line);
  background: #050912;
  font-size: 0.92rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--white);
  font-weight: 800;
}

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

  .intro-grid,
  .industries,
  .approach-layout {
    grid-template-columns: 1fr;
  }

  .approach-panel {
    position: relative;
    top: auto;
  }

  .approach-steps article:nth-child(even) {
    transform: none;
  }
}

@media (max-width: 720px) {
  .site-header {
    padding: 14px 18px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    inset: 64px 14px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(12, 19, 32, 0.98);
    color: var(--white);
    box-shadow: var(--shadow);
  }

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

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

  .hero {
    min-height: 86svh;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(8, 16, 28, 0.88), rgba(8, 16, 28, 0.56)),
      linear-gradient(0deg, rgba(8, 16, 28, 0.58), rgba(8, 16, 28, 0.05) 42%);
  }

  .hero-content {
    width: calc(100% - 36px);
    margin: 0 auto;
  }

  h1 {
    max-width: 8ch;
    font-size: clamp(3.15rem, 15vw, 4.6rem);
    line-height: 0.95;
  }

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

  .service-grid,
  .proof-band,
  .industry-list {
    grid-template-columns: 1fr;
  }

  .approach-steps article {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 22px;
  }

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