:root {
  color-scheme: dark;
  --bg: #050811;
  --bg-2: #08111f;
  --panel: rgba(8, 14, 28, 0.72);
  --panel-strong: rgba(10, 18, 34, 0.9);
  --line: rgba(148, 163, 184, 0.18);
  --line-strong: rgba(103, 232, 249, 0.34);
  --text: #f8fafc;
  --muted: #a8b3c7;
  --soft: #64748b;
  --cyan: #22d3ee;
  --blue: #3b82f6;
  --violet: #8b5cf6;
  --green: #10b981;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  --radius: 8px;
  --radius-lg: 18px;
  --shell: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 8%, rgba(34, 211, 238, 0.16), transparent 28rem),
    radial-gradient(circle at 86% 18%, rgba(139, 92, 246, 0.14), transparent 30rem),
    linear-gradient(180deg, var(--bg), #07101e 48%, #050811);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.035) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.9), transparent 78%);
  z-index: -1;
}

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

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

button {
  font: inherit;
}

.shell {
  width: min(100% - 40px, var(--shell));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  transform: translateY(-140%);
  z-index: 100;
  padding: 10px 14px;
  border-radius: var(--radius);
  background: var(--cyan);
  color: #03111d;
  font-weight: 800;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background 180ms ease, border-color 180ms ease, backdrop-filter 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(5, 8, 17, 0.78);
  border-color: var(--line);
  backdrop-filter: blur(18px);
}

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

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

.brand img {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 0 30px rgba(34, 211, 238, 0.2);
}

.brand strong {
  display: block;
  font-size: 18px;
  line-height: 1;
  letter-spacing: 0;
}

.brand small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.brand.compact strong {
  font-size: 15px;
}

.brand.compact img {
  width: 36px;
  height: 36px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.36);
  backdrop-filter: blur(18px);
}

.nav-menu a {
  border-radius: 999px;
  padding: 9px 14px;
  color: #dbeafe;
  font-size: 13px;
  font-weight: 700;
  transition: background 160ms ease, color 160ms ease;
}

.nav-menu a:hover,
.nav-menu a:focus-visible {
  background: rgba(34, 211, 238, 0.12);
  color: var(--text);
  outline: none;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.7);
  color: var(--text);
  cursor: pointer;
}

.nav-toggle span:not(.sr-only) {
  width: 18px;
  height: 2px;
  border-radius: 99px;
  background: currentColor;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.68;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5,8,17,0.96) 0%, rgba(5,8,17,0.76) 42%, rgba(5,8,17,0.18) 100%),
    linear-gradient(0deg, rgba(5,8,17,0.98) 0%, rgba(5,8,17,0.18) 38%, rgba(5,8,17,0.66) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: block;
  padding: 130px 0 64px;
}

.hero-content {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(56px, 9vw, 112px);
  line-height: 0.9;
  letter-spacing: 0;
  text-shadow: 0 0 42px rgba(34, 211, 238, 0.18);
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(30px, 4.5vw, 52px);
  line-height: 1.03;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 18px;
  line-height: 1.2;
}

.hero-lead,
.section-heading p,
.contact-card p,
.timeline-item p,
.service-card p,
.industry-card p {
  color: var(--muted);
}

.hero-lead {
  max-width: 620px;
  margin-bottom: 28px;
  font-size: clamp(17px, 2vw, 21px);
}

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

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 900;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

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

.button-primary {
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: #03111d;
  box-shadow: 0 18px 44px rgba(34, 211, 238, 0.2);
}

.button-ghost {
  border-color: var(--line);
  background: rgba(15, 23, 42, 0.48);
  color: #e2e8f0;
}

.wide {
  width: 100%;
}

.service-card,
.industry-card,
.timeline-item,
.contact-card {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.section {
  padding: 92px 0;
}

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

.section-heading p {
  font-size: 17px;
}

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

.service-card {
  position: relative;
  min-height: 338px;
  padding: 22px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.service-card::after {
  content: "";
  position: absolute;
  inset: auto 18px 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.82), transparent);
  opacity: 0;
  transition: opacity 180ms ease;
}

.service-card:hover::after {
  opacity: 1;
}

.service-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(34,211,238,0.16), rgba(139,92,246,0.12));
  color: var(--cyan);
}

.service-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card ul {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  color: #cbd5e1;
  font-size: 13px;
}

.service-card li {
  position: relative;
  padding-left: 18px;
}

.service-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--cyan);
  box-shadow: 0 0 14px rgba(34, 211, 238, 0.72);
}

.industries {
  position: relative;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(circle at 8% 18%, rgba(139, 92, 246, 0.12), transparent 28rem),
    radial-gradient(circle at 92% 18%, rgba(34, 211, 238, 0.1), transparent 30rem),
    linear-gradient(180deg, rgba(2, 6, 23, 0.16), rgba(8, 17, 31, 0.34));
}

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

.industry-card {
  min-height: 342px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 26px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(71, 85, 105, 0.72), rgba(30, 64, 96, 0.58)),
    rgba(15, 23, 42, 0.68);
  box-shadow: 0 18px 58px rgba(0, 0, 0, 0.24);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.industry-card:nth-child(1),
.industry-card:nth-child(2) {
  background:
    linear-gradient(135deg, rgba(83, 72, 110, 0.68), rgba(51, 65, 85, 0.66)),
    rgba(15, 23, 42, 0.68);
}

.industry-card:nth-child(3),
.industry-card:nth-child(4) {
  background:
    linear-gradient(135deg, rgba(54, 89, 130, 0.72), rgba(31, 83, 103, 0.62)),
    rgba(15, 23, 42, 0.68);
}

.industry-card:hover {
  transform: translateY(-3px);
  border-color: rgba(226, 232, 240, 0.42);
}

.industry-icon {
  width: 58px;
  height: 58px;
  margin-bottom: 20px;
  color: rgba(248, 250, 252, 0.82);
}

.industry-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.industry-card h3 {
  margin-bottom: 14px;
  font-size: 24px;
  line-height: 1.12;
}

.industry-card p {
  margin-bottom: 24px;
  font-size: 16px;
  font-weight: 650;
}

.industry-card a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  color: #f8fafc;
  font-size: 14px;
  font-weight: 950;
  text-transform: uppercase;
}

.industry-card a span {
  font-size: 22px;
  line-height: 1;
  transition: transform 160ms ease;
}

.industry-card a:hover span,
.industry-card a:focus-visible span {
  transform: translateX(4px);
}

.method {
  border-block: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.28), rgba(2, 6, 23, 0.18));
}

.method-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.76fr) minmax(0, 1.12fr);
  gap: 42px;
  align-items: start;
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline-item {
  display: grid;
  grid-template-columns: minmax(150px, 0.42fr) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  min-height: 148px;
  padding: 14px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.timeline-image {
  width: 100%;
  height: 100%;
  min-height: 120px;
  border: 1px solid var(--line);
  border-radius: 14px;
  object-fit: cover;
  background: #050811;
}

.timeline-content {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  min-width: 0;
  padding: 8px 8px 8px 0;
}

.timeline-step {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(34, 211, 238, 0.1);
  color: var(--cyan);
  font-size: 13px;
  font-weight: 900;
}

.timeline-item h3 {
  margin-bottom: 6px;
  color: var(--text);
}

.timeline-item p {
  max-width: 56ch;
  margin-bottom: 0;
  overflow-wrap: anywhere;
}

.contact {
  padding-top: 92px;
}

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

.contact-card {
  display: grid;
  gap: 12px;
  padding: 24px;
  border-radius: var(--radius-lg);
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(2, 6, 23, 0.45);
}

.contact-row span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 10px;
  background: rgba(34, 211, 238, 0.11);
  color: var(--cyan);
  font-size: 11px;
  font-weight: 900;
}

.contact-row strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 14px;
}

.contact-note {
  margin: 4px 0 6px;
  font-size: 12px;
}

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

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

.footer p {
  margin: 0;
  font-size: 13px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.error-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.error-shell {
  width: min(100%, 560px);
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.error-shell .brand {
  margin-bottom: 34px;
}

.error-shell h1 {
  margin-bottom: 14px;
  font-size: clamp(34px, 7vw, 58px);
}

.error-shell p:not(.eyebrow) {
  color: var(--muted);
}

@media (max-width: 960px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-menu {
    position: fixed;
    left: 20px;
    right: 20px;
    top: 82px;
    display: grid;
    border-radius: 18px;
    padding: 12px;
    background: rgba(5, 8, 17, 0.94);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
  }

  .nav-menu.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-menu a {
    border-radius: 12px;
    padding: 13px 14px;
  }

  .hero {
    min-height: auto;
  }

  .method-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    padding-top: 124px;
  }

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

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

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

  .nav {
    min-height: 70px;
  }

  .brand small {
    display: none;
  }

  .hero-inner {
    padding-top: 112px;
    padding-bottom: 42px;
    gap: 26px;
  }

  .hero-actions,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .service-grid,
  .industry-grid,
  .contact-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .section {
    padding: 68px 0;
  }

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

  .industry-card {
    min-height: 0;
    padding: 22px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }

  .timeline-content {
    grid-template-columns: 46px minmax(0, 1fr);
    padding: 2px 0 0;
  }

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
