:root {
  --bg: #03050a;
  --bg-strong: #02030a;
  --surface: rgba(255, 255, 255, 0.08);
  --surface-soft: rgba(255, 255, 255, 0.05);
  --text: #f5f7fb;
  --muted: rgba(231, 235, 245, 0.68);
  --line: rgba(255, 255, 255, 0.14);
  --white: #ffffff;
  --cyan: #f8fbff;
  --lime: #b5f4ff;
  --rose: #d8d5ff;
  --gold: #ffffff;
  --indigo: #9fb5ff;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 0%, rgba(116, 140, 255, 0.16), transparent 34rem),
    radial-gradient(circle at 85% 30%, rgba(45, 212, 191, 0.12), transparent 26rem),
    var(--bg);
}

body.nav-open {
  overflow: hidden;
}

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

.star-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.site-header,
main,
.site-footer {
  position: relative;
}

main,
.site-footer {
  z-index: 1;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 32px;
  color: var(--white);
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled,
.site-header.nav-active {
  background: rgba(3, 5, 10, 0.76);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(16px);
}

.brand,
.site-nav,
.hero-actions,
.contact-actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
  box-shadow: inset 0 0 22px rgba(255, 255, 255, 0.12);
}

.site-nav {
  gap: 26px;
  font-size: 0.95rem;
  font-weight: 700;
}

.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.78);
  padding: 9px 0;
  transition: color 180ms ease, transform 180ms ease;
}

.site-nav a:hover {
  color: var(--white);
  transform: translateY(-1px);
}

.site-nav a::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.95), transparent);
  opacity: 0;
  transform: scaleX(0.45);
  transition: opacity 180ms ease, transform 180ms ease;
}

.site-nav a:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.site-nav svg {
  width: 17px;
  height: 17px;
  stroke-width: 2.2;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--white);
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 128px 32px 84px;
  color: var(--white);
  background: transparent;
}

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

.hero-overlay {
  background:
    radial-gradient(circle at 72% 22%, rgba(255, 255, 255, 0.18), transparent 14rem),
    radial-gradient(circle at 28% 24%, rgba(159, 181, 255, 0.18), transparent 22rem),
    linear-gradient(90deg, rgba(2, 3, 10, 0.86), rgba(2, 3, 10, 0.42) 48%, rgba(2, 3, 10, 0.16)),
    linear-gradient(0deg, rgba(3, 5, 10, 0.98), rgba(3, 5, 10, 0.1) 36%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 860px;
}

.eyebrow {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 900px;
  margin: 0;
  font-size: 4.85rem;
  line-height: 1;
  letter-spacing: 0;
  text-shadow: 0 0 32px rgba(255, 255, 255, 0.18);
}

.hero-copy {
  max-width: 640px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.18rem;
  line-height: 1.75;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  max-width: 100%;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  line-height: 1.15;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
  will-change: transform;
}

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

.button-primary {
  color: #04060b;
  background: linear-gradient(180deg, #ffffff, #dce5ff);
  box-shadow: 0 18px 50px rgba(255, 255, 255, 0.18);
}

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

.button-icon {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  background: rgba(3, 5, 10, 0.12);
  font-size: 0.72rem;
  font-weight: 900;
}

.button-secondary .button-icon {
  background: rgba(255, 255, 255, 0.12);
}

.button-icon svg,
.card-icon svg,
.timeline svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.2;
}

.brand-icon-svg {
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.hero-panel {
  position: absolute;
  right: 32px;
  bottom: 36px;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  max-width: 560px;
  width: calc(100% - 64px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.hero-panel div {
  padding: 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-panel div:last-child {
  border-right: 0;
}

.hero-panel strong,
.hero-panel span {
  display: block;
}

.hero-panel strong {
  color: var(--white);
  font-size: 1.35rem;
}

.hero-panel span {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.84rem;
  line-height: 1.45;
}

.section {
  padding: 92px 32px;
}

.section-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.two-columns {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.section h2 {
  margin: 0;
  font-size: 2.4rem;
  line-height: 1.1;
  letter-spacing: 0;
}

.section p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
}

.intro {
  background: rgba(3, 5, 10, 0.64);
  backdrop-filter: blur(12px);
}

.intent {
  background: rgba(5, 8, 18, 0.68);
}

.services {
  background: rgba(255, 255, 255, 0.03);
}

.certifications {
  background: rgba(3, 5, 10, 0.54);
}

.section-heading {
  max-width: 640px;
  margin-bottom: 34px;
}

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

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

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

.service-card,
.project-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  transform-style: preserve-3d;
}

.service-card {
  padding: 24px;
}

.certification-card {
  min-height: 260px;
}

.certification-school {
  margin: 18px 0 -8px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.4;
  text-transform: uppercase;
}

.card-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: var(--radius);
  color: #04060b;
  background: var(--white);
  font-size: 0.82rem;
  font-weight: 900;
}

.service-card:nth-child(2) .card-icon {
  background: var(--lime);
}

.service-card:nth-child(3) .card-icon {
  background: var(--rose);
}

.service-card:nth-child(4) .card-icon {
  color: #04060b;
  background: var(--indigo);
}

.service-card h3,
.project-card h3,
.timeline h3 {
  margin: 18px 0 0;
  font-size: 1.1rem;
}

.projects {
  background: rgba(3, 5, 10, 0.54);
}

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

.project-card {
  overflow: hidden;
}

.project-visual {
  position: relative;
  height: 210px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.22), transparent 10rem),
    #050812;
}

.project-visual span {
  position: absolute;
  display: block;
}

.visual-support span:nth-child(1) {
  inset: 32px 26px auto;
  height: 42px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
}

.visual-support span:nth-child(2) {
  left: 26px;
  right: 80px;
  top: 94px;
  height: 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
}

.visual-support span:nth-child(3) {
  left: 26px;
  right: 42px;
  top: 130px;
  height: 20px;
  border-radius: 999px;
  background: rgba(181, 244, 255, 0.9);
}

.visual-dashboard span {
  border-radius: var(--radius);
}

.visual-dashboard span:nth-child(1) {
  left: 24px;
  top: 28px;
  width: 62px;
  height: 154px;
  background: rgba(216, 213, 255, 0.9);
}

.visual-dashboard span:nth-child(2) {
  left: 104px;
  top: 28px;
  right: 26px;
  height: 62px;
  background: rgba(255, 255, 255, 0.9);
}

.visual-dashboard span:nth-child(3) {
  left: 104px;
  top: 108px;
  width: 40%;
  height: 74px;
  background: rgba(255, 255, 255, 0.9);
}

.visual-dashboard span:nth-child(4) {
  right: 26px;
  top: 108px;
  width: 30%;
  height: 74px;
  background: rgba(181, 244, 255, 0.9);
}

.visual-automation span {
  width: 74px;
  height: 74px;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
}

.visual-automation span:nth-child(1) {
  left: 28px;
  top: 68px;
  background: rgba(255, 255, 255, 0.9);
}

.visual-automation span:nth-child(2) {
  left: calc(50% - 37px);
  top: 68px;
  background: rgba(181, 244, 255, 0.9);
}

.visual-automation span:nth-child(3) {
  right: 28px;
  top: 68px;
  background: rgba(216, 213, 255, 0.9);
}

.project-content {
  padding: 24px;
}

.project-tag {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.project-content h3 {
  margin-top: 8px;
}

.process {
  color: var(--white);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
}

.process .section p {
  color: rgba(255, 255, 255, 0.72);
}

.process p {
  color: rgba(255, 255, 255, 0.72);
}

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

.timeline li {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow);
  transform-style: preserve-3d;
}

.timeline span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  color: #04060b;
  background: var(--white);
  font-weight: 900;
}

.contact {
  background:
    linear-gradient(180deg, rgba(3, 5, 10, 0.34), rgba(3, 5, 10, 0.88)),
    rgba(255, 255, 255, 0.05);
}

.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
  gap: 48px;
  align-items: center;
}

.contact-actions {
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
}

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

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 32px;
  color: rgba(255, 255, 255, 0.7);
  background: var(--bg-strong);
  font-size: 0.92rem;
}

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

  .site-nav {
    position: fixed;
    top: 72px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius);
    background: rgba(5, 8, 18, 0.96);
  }

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

  .site-header.nav-active .site-nav {
    display: flex;
  }

  .hero {
    display: flex;
    min-height: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 28px;
    padding-bottom: 72px;
  }

  .hero-content {
    padding-top: 44px;
  }

  .hero h1 {
    font-size: 4rem;
  }

  .hero-panel {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    width: 100%;
    max-width: none;
    grid-template-columns: 1fr;
  }

  .hero-panel div {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }

  .hero-panel div:last-child {
    border-bottom: 0;
  }

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

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

  .contact-actions {
    justify-content: flex-start;
  }
}

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

  .brand span:last-child {
    max-width: 150px;
    line-height: 1.1;
  }

  .hero,
  .section {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero {
    min-height: auto;
    padding-top: 104px;
    padding-bottom: 58px;
    gap: 24px;
  }

  .hero h1 {
    font-size: 2.7rem;
    line-height: 1.05;
  }

  .hero-copy {
    font-size: 1.02rem;
  }

  .button {
    width: 100%;
    min-height: 52px;
    text-align: center;
  }

  .hero-panel {
    left: auto;
    right: auto;
    width: auto;
  }

  .section h2 {
    font-size: 2rem;
  }

  .service-grid,
  .intent-grid,
  .certification-grid,
  .project-list,
  .timeline {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
    padding: 24px 18px;
  }
}
