:root {
  --bg: #050816;
  --panel: rgba(255, 255, 255, 0.08);
  --panel-strong: rgba(255, 255, 255, 0.14);
  --text: #f5f7ff;
  --muted: #aab4d6;
  --accent: #7c5cff;
  --accent-2: #22d3ee;
  --line: rgba(255, 255, 255, 0.15);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  background:
    radial-gradient(circle at 10% 10%, rgba(124, 92, 255, 0.35), transparent 30%),
    radial-gradient(circle at 85% 5%, rgba(34, 211, 238, 0.22), transparent 28%),
    linear-gradient(135deg, #050816 0%, #090d22 50%, #11162f 100%);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 8, 22, 0.78);
  backdrop-filter: blur(18px);
}

.nav {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand,
.nav-links,
.hero-actions,
.project-list,
.stack-cloud {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
}

.nav-links {
  gap: 28px;
  color: var(--muted);
  font-weight: 600;
}

.nav-links a:hover {
  color: var(--text);
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  margin: 6px 0;
  background: var(--text);
}

.hero,
.section {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  padding: 96px 0 70px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 460px;
  gap: 60px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(2.8rem, 7vw, 6.3rem);
  line-height: 0.92;
  letter-spacing: -0.08em;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.25rem;
}

.hero-text,
.intro p,
.showcase-copy p,
.contact p {
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-actions {
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 18px 45px rgba(124, 92, 255, 0.35);
}

.btn.ghost {
  border: 1px solid var(--line);
  color: var(--muted);
}

.hero-panel {
  position: relative;
  min-height: 500px;
  border: 1px solid var(--line);
  border-radius: 38px;
  overflow: hidden;
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03)),
    radial-gradient(circle at 50% 45%, rgba(34, 211, 238, 0.24), transparent 36%);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 38px;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 50%;
}

.orbit {
  position: absolute;
  width: 190px;
  height: 190px;
  left: 50%;
  top: 50%;
  border-radius: 44px;
  background: linear-gradient(135deg, #7c5cff, #22d3ee);
  transform: translate(-50%, -50%) rotate(18deg);
  filter: drop-shadow(0 24px 60px rgba(34, 211, 238, 0.35));
}

.metric-card {
  position: absolute;
  width: 220px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(5, 8, 22, 0.72);
  backdrop-filter: blur(18px);
}

.metric-card span {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
}

.metric-card strong {
  display: block;
  margin-top: 4px;
  font-size: 1.2rem;
}

.metric-card.main {
  left: 32px;
  bottom: 42px;
}

.metric-card.top {
  top: 42px;
  right: 28px;
}

.metric-card.bottom {
  right: 40px;
  bottom: 118px;
}

.code-window {
  position: absolute;
  left: 46px;
  right: 46px;
  top: 150px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(2, 6, 23, 0.78);
  box-shadow: inset 0 0 40px rgba(34, 211, 238, 0.08);
}

.dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 6px;
  border-radius: 50%;
}

.dot.red {
  background: #ff5f56;
}

.dot.yellow {
  background: #ffbd2e;
}

.dot.green {
  background: #27c93f;
}

.code-window pre {
  margin: 16px 0 0;
  color: #bff7ff;
  font: 700 0.9rem/1.8 "Courier New", monospace;
  white-space: pre-wrap;
}

.section {
  padding: 76px 0;
}

.intro {
  display: grid;
  grid-template-columns: 0.95fr 1fr;
  gap: 52px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 36px;
}

.lab {
  border-bottom: 1px solid var(--line);
}

.lab-header {
  max-width: 860px;
  margin-bottom: 34px;
}

.lab-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  grid-auto-rows: minmax(220px, auto);
  gap: 18px;
}

.lab-card,
.industry-grid article,
.faq-item {
  border: 1px solid var(--line);
  border-radius: 30px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.045));
}

.lab-card {
  padding: 30px;
}

.lab-card.wide {
  grid-column: span 2;
}

.lab-card.tall {
  grid-row: span 2;
  background:
    radial-gradient(circle at 80% 10%, rgba(34, 211, 238, 0.22), transparent 32%),
    rgba(255, 255, 255, 0.08);
}

.lab-card span {
  display: inline-flex;
  margin-bottom: 48px;
  color: var(--accent-2);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.service-card,
.step,
.project-detail,
.contact-card {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 28px;
}

.service-card {
  min-height: 280px;
  padding: 26px;
  transition: transform 0.25s ease, background 0.25s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  background: var(--panel-strong);
}

.service-card span {
  color: var(--accent-2);
  font-weight: 800;
}

.service-card p,
.step p,
.project-detail p,
.lab-card p,
.stack p,
.industry-grid p,
.faq-item p,
footer {
  color: var(--muted);
}

.stack {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) 1.1fr;
  gap: 40px;
  align-items: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stack-cloud {
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.06);
}

.stack-cloud span {
  padding: 13px 18px;
  border-radius: 999px;
  background: rgba(124, 92, 255, 0.22);
  color: #dff9ff;
  font-weight: 800;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 30px;
  overflow: hidden;
}

.step {
  min-height: 250px;
  padding: 28px;
  border-width: 0 1px 0 0;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.055);
}

.step:last-child {
  border-right: 0;
}

.step b {
  display: inline-flex;
  margin-bottom: 55px;
  color: var(--accent-2);
}

.showcase {
  display: grid;
  grid-template-columns: 0.9fr 0.75fr;
  gap: 28px;
  align-items: start;
}

.project-list {
  flex-direction: column;
  gap: 12px;
}

.project {
  width: 100%;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.project.active,
.project:hover {
  color: var(--text);
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.34), rgba(34, 211, 238, 0.16));
}

.project-detail {
  grid-column: 2;
  padding: 28px;
}

.industries {
  border-top: 1px solid var(--line);
}

.industry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.industry-grid article {
  min-height: 250px;
  padding: 28px;
}

.industry-grid article:nth-child(2) {
  transform: translateY(28px);
}

.faq {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 38px;
  align-items: start;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  width: 100%;
  padding: 22px 24px;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.faq-item span {
  display: block;
  font-weight: 900;
}

.faq-item p {
  display: none;
  margin: 12px 0 0;
}

.faq-item.active {
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.36), rgba(34, 211, 238, 0.16));
}

.faq-item.active p {
  display: block;
}

.contact {
  display: grid;
  grid-template-columns: 1fr 410px;
  gap: 44px;
  align-items: center;
}

.contact-card {
  padding: 34px;
}

.contact-card a {
  display: block;
  margin-top: 14px;
  color: var(--accent-2);
  font-weight: 800;
}

footer {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 46px;
  border-top: 1px solid var(--line);
}

@media (max-width: 960px) {
  .hero-grid,
  .intro,
  .showcase,
  .stack,
  .faq,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    min-height: 420px;
  }

  .cards,
  .timeline,
  .industry-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .lab-grid {
    grid-template-columns: 1fr 1fr;
  }

  .lab-card.wide,
  .lab-card.tall {
    grid-column: auto;
    grid-row: auto;
  }

  .project-detail {
    grid-column: auto;
  }
}

@media (max-width: 720px) {
  .nav-links {
    position: absolute;
    left: 20px;
    right: 20px;
    top: 78px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(5, 8, 22, 0.95);
  }

  .nav-links.open {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .hero {
    padding-top: 62px;
  }

  .cards,
  .timeline,
  .lab-grid,
  .industry-grid {
    grid-template-columns: 1fr;
  }

  .code-window {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    margin: 24px;
  }

  .industry-grid article:nth-child(2) {
    transform: none;
  }

  .step {
    border-width: 0 0 1px;
  }

  .metric-card {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    width: calc(100% - 48px);
    margin: 18px 24px;
  }

  .hero-panel {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
  }
}
