:root {
  --color-background: #ffffff;
  --color-text: #111111;
  --color-accent: #000dff;
  --max-width: 1100px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Helvetica, Arial, sans-serif;
  background: var(--color-background);
  color: var(--color-text);
}

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

header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--color-background);
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

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

.brand img {
  display: block;
  width: 170px;
  height: auto;
}

nav {
  display: flex;
  gap: 1.5rem;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  flex-wrap: wrap;
}

nav a {
  position: relative;
  padding-bottom: 0.25rem;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.2s ease-in-out;
}

nav a:hover::after,
nav a:focus-visible::after,
nav a.current::after {
  transform: scaleX(1);
  transform-origin: left;
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 5rem 1rem 6rem;
}

body.home main {
  transition: transform 0.45s ease;
}

.hero {
  position: relative;
  display: grid;
  gap: 2rem;
  align-items: center;
  justify-items: center;
  text-align: center;
  padding: 6rem 1rem 5rem;
}

body.home .hero {
  min-height: 60vh;
}

.hero-tagline {
  font-size: clamp(2rem, 5vw, 3.4rem);
  text-transform: lowercase;
  line-height: 1.2;
  margin: 0;
  max-width: 20ch;
}

.hero-tagline .accent {
  color: var(--color-accent);
}

.hero-subtext {
  font-size: 1rem;
  max-width: 50ch;
  line-height: 1.7;
  margin: 0;
}

.hero-line {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(92vw, 820px);
  height: 18px;
  border-radius: 999px;
  background: var(--color-accent);
  transform: translate(-50%, 26px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.45s ease, opacity 0.45s ease;
}

section {
  margin-top: 8rem;
}

section:first-of-type {
  margin-top: 0;
}

h1,
h2,
h3 {
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

.section-badge {
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  color: rgba(17, 17, 17, 0.6);
}

.services-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.service-card,
.pillar,
.feature-card {
  padding: 1.75rem;
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 18px 36px rgba(0, 13, 255, 0.05);
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease,
    background 0.25s ease, color 0.25s ease;
}

.service-card:hover,
.service-card:focus-within,
.pillar:hover,
.pillar:focus-within,
.feature-card:hover,
.feature-card:focus-within {
  border-color: var(--color-accent);
  background: var(--color-accent);
  color: #ffffff;
  box-shadow: 0 24px 46px rgba(0, 13, 255, 0.18);
  transform: translateY(-6px);
}

.service-card h3,
.pillar h3,
.feature-card h3 {
  font-size: 1.15rem;
  margin-top: 0;
  margin-bottom: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.25s ease;
}

.service-card p,
.pillar p,
.feature-card p {
  margin: 0;
  line-height: 1.6;
  transition: color 0.25s ease;
}

.service-card:hover p,
.service-card:focus-within p,
.service-card:hover h3,
.service-card:focus-within h3,
.pillar:hover p,
.pillar:focus-within p,
.pillar:hover h3,
.pillar:focus-within h3,
.feature-card:hover p,
.feature-card:focus-within p,
.feature-card:hover h3,
.feature-card:focus-within h3 {
  color: #ffffff;
}

.mission-text {
  font-size: 1.1rem;
  line-height: 1.8;
  max-width: 70ch;
}

.safety-grid,
.feature-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.pillar-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.pillar-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(0, 13, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease;
}

.pillar-icon svg {
  width: 22px;
  height: 22px;
  fill: var(--color-accent);
  transition: fill 0.25s ease;
}

.pillar:hover .pillar-icon,
.pillar:focus-within .pillar-icon {
  background: rgba(255, 255, 255, 0.15);
}

.pillar:hover .pillar-icon svg,
.pillar:focus-within .pillar-icon svg {
  fill: #ffffff;
}

.feature {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.feature-copy {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.feature-media {
  position: relative;
  width: 100%;
}

.feature-media img {
  width: 100%;
  max-width: 520px;
  border-radius: 18px;
  box-shadow: 0 30px 60px rgba(0, 13, 255, 0.18);
  display: block;
  margin: 0 auto;
}

.workflow-section {
  margin-top: 6rem;
}

.workflow-content {
  display: grid;
  gap: 3rem;
  align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.workflow-copy {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.workflow-copy p {
  margin: 0;
  line-height: 1.7;
  max-width: 60ch;
}

.workflow-media {
  margin: 0;
}

.workflow-media img {
  width: 100%;
  max-width: 680px;
  display: block;
  margin: 0 auto;
  border-radius: 32px;
  box-shadow: 0 34px 72px rgba(0, 13, 255, 0.16);
}

.page-hero {
  position: relative;
  text-align: center;
  padding: 5rem 1rem 3rem;
}

.page-hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  margin: 0 0 1rem;
}

.page-hero p {
  margin: 0 auto;
  max-width: 70ch;
  font-size: 1.1rem;
  line-height: 1.8;
}

.page-content {
  display: grid;
  gap: 3rem;
}

.industries-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0;
  list-style: none;
}

.industries-list li {
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(17, 17, 17, 0.1);
  background: rgba(0, 13, 255, 0.08);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.shape {
  position: absolute;
  z-index: -1;
  opacity: 0.7;
  pointer-events: none;
}

.shape-squiggle {
  width: 160px;
  height: 80px;
  background: url("assets/shape-squiggle.svg") center/contain no-repeat;
}

.shape-blob {
  width: 180px;
  height: 180px;
  background: url("assets/shape-blob.svg") center/contain no-repeat;
}

.shape-orbit {
  width: 220px;
  height: 220px;
  background: url("assets/shape-orbit.svg") center/contain no-repeat;
}

footer {
  background: #000000;
  color: #ffffff;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1rem 2rem;
  display: grid;
  gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.footer-brand {
  display: flex;
  align-items: flex-start;
}

.footer-brand img {
  width: 180px;
  height: auto;
}

.footer-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-section h4 {
  margin: 0;
  font-size: 0.95rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.9rem;
}

.footer-contact {
  font-size: 0.95rem;
}

.footer-contact a {
  color: #ffffff;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding: 1.25rem 1rem 1.5rem;
}

.footer-bottom-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  main {
    padding: 4.5rem 1.25rem 5.5rem;
  }

  section {
    margin-top: 6rem;
  }

  .hero {
    padding: 5rem 1rem 4rem;
  }

  .feature {
    grid-template-columns: minmax(0, 1fr);
    text-align: center;
  }

  .feature-copy {
    align-items: center;
  }

  .feature-copy .service-card,
  .feature-copy .feature-card,
  .feature-copy .pillar {
    width: min(100%, 420px);
  }

  .feature-media {
    order: -1;
  }
}

@media (max-width: 820px) {
  .shape {
    opacity: 0.3;
  }

  .services-grid,
  .safety-grid,
  .feature-grid {
    gap: 1.75rem;
  }

  .workflow-media img {
    max-width: 520px;
  }
}

@media (max-width: 640px) {
  .header-inner {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }

  nav {
    width: 100%;
    justify-content: center;
    gap: 1rem;
  }

  nav a {
    font-size: 0.85rem;
  }

  .hero {
    padding: 3.5rem 1rem 3.5rem;
  }

  .hero-tagline {
    font-size: clamp(1.9rem, 9vw, 2.8rem);
  }

  .hero-subtext {
    font-size: 0.95rem;
  }

  .shape {
    display: none;
  }

  main {
    padding: 4.2rem 1rem 5rem;
  }

  section {
    margin-top: 4.5rem;
  }

  .services-grid,
  .safety-grid,
  .feature-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
  }

  .workflow-section {
    margin-top: 4rem;
  }

  .workflow-content {
    grid-template-columns: minmax(0, 1fr);
    text-align: center;
  }

  .workflow-copy {
    align-items: center;
  }

  .workflow-copy p {
    max-width: 48ch;
  }

  .feature {
    text-align: left;
  }

  .feature-copy {
    align-items: flex-start;
    width: 100%;
  }

  .feature-copy .service-card,
  .feature-copy .feature-card,
  .feature-copy .pillar {
    width: 100%;
  }

  .industries-list {
    justify-content: center;
  }

  .industries-list li {
    font-size: 0.75rem;
  }

  .page-hero {
    padding: 4rem 1rem 2.5rem;
  }

  .page-hero p {
    font-size: 1rem;
  }

  .footer-bottom-inner {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-tagline {
    font-size: clamp(1.8rem, 11vw, 2.4rem);
  }

  .industries-list li {
    padding: 0.5rem 0.95rem;
  }

  .footer-contact {
    font-size: 0.9rem;
  }

  .footer-nav {
    font-size: 0.85rem;
  }
}

body.home.scroll-active main {
  transform: translateY(-20px);
}

body.home.scroll-active .hero-line {
  transform: translate(-50%, 0);
  opacity: 1;
}
