:root {
  color-scheme: dark;
  --bg: #050815;
  --bg-soft: #091021;
  --panel: rgba(9, 18, 38, 0.76);
  --panel-strong: rgba(12, 27, 58, 0.92);
  --line: rgba(126, 211, 255, 0.22);
  --text: #f5f9ff;
  --muted: #a8b7c8;
  --cyan: #00cfff;
  --blue: #0d63ff;
  --green: #39f2b0;
  --shadow: 0 24px 80px rgba(0, 101, 255, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 80% 8%, rgba(0, 207, 255, 0.22), transparent 28rem),
    radial-gradient(circle at 16% 20%, rgba(13, 99, 255, 0.28), transparent 25rem),
    linear-gradient(135deg, #040711 0%, #071225 48%, #04111d 100%);
  color: var(--text);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent 85%);
  z-index: -2;
}

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

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

#techCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.62;
  z-index: -1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(180px, 290px) 1fr auto;
  align-items: center;
  gap: 24px;
  width: min(1180px, calc(100% - 36px));
  margin: 18px auto 0;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(4, 9, 20, 0.76);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
}

.brand img {
  width: 268px;
  height: auto;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.main-nav a,
.nav-cta,
.button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-weight: 700;
  letter-spacing: 0;
}

.main-nav a {
  padding: 0 13px;
  color: var(--muted);
  font-size: 0.94rem;
}

.main-nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.nav-cta {
  padding: 0 16px;
  color: #02101f;
  background: linear-gradient(135deg, var(--cyan), var(--green));
}

.hero {
  width: min(1180px, calc(100% - 36px));
  min-height: calc(100vh - 154px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 44px;
  align-items: center;
  padding: 48px 0 54px;
}

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

.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 22px;
  font-size: clamp(2.45rem, 4.6vw, 4.15rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.lead {
  max-width: 680px;
  margin-bottom: 34px;
  color: #d7e3f0;
  font-size: clamp(1.08rem, 2vw, 1.28rem);
  line-height: 1.7;
}

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

.button {
  border: 1px solid transparent;
  padding: 0 20px;
  cursor: pointer;
  font: inherit;
}

.button.primary {
  color: #02101f;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  box-shadow: 0 0 34px rgba(0, 207, 255, 0.2);
}

.button.ghost {
  border-color: var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.hero-panel {
  position: relative;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(10, 28, 60, 0.9), rgba(4, 10, 24, 0.78)),
    var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, transparent 0 42%, rgba(0, 207, 255, 0.18) 45%, transparent 48%),
    repeating-linear-gradient(90deg, transparent 0 26px, rgba(255, 255, 255, 0.04) 27px 28px);
  opacity: 0.65;
  pointer-events: none;
}

.signal-card,
.metric,
.metric-row {
  position: relative;
  z-index: 1;
}

.signal-card {
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  padding: 10px 12px;
  border: 1px solid rgba(57, 242, 176, 0.3);
  border-radius: 6px;
  color: #cffff0;
  background: rgba(57, 242, 176, 0.08);
  font-weight: 800;
}

.signal-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 18px var(--green);
}

.metric {
  margin: 52px 0 42px;
}

.metric strong {
  display: block;
  font-size: clamp(5.5rem, 12vw, 9rem);
  line-height: 0.8;
  color: var(--cyan);
  text-shadow: 0 0 44px rgba(0, 207, 255, 0.42);
}

.metric span {
  display: block;
  max-width: 320px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.5;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.metric-row span {
  padding: 12px 8px;
  border: 1px solid rgba(126, 211, 255, 0.2);
  border-radius: 6px;
  text-align: center;
  color: #dbeeff;
  background: rgba(255, 255, 255, 0.045);
  font-size: 0.84rem;
  font-weight: 800;
}

.section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 82px 0;
}

.intro,
.split,
.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: 58px;
  align-items: start;
}

.section h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: 0;
}

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

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

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

.service-card {
  min-height: 260px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.18);
}

.card-index {
  display: block;
  margin-bottom: 46px;
  color: var(--cyan);
  font-weight: 900;
}

.service-card h3,
.timeline h3 {
  margin-bottom: 12px;
  font-size: 1.15rem;
  line-height: 1.28;
}

.integrations-section .section-heading {
  max-width: 900px;
}

.tech-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.tech-cloud span {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  border: 1px solid rgba(126, 211, 255, 0.24);
  border-radius: 6px;
  padding: 0 14px;
  color: #e8f2ff;
  background: rgba(255, 255, 255, 0.045);
  font-size: 0.94rem;
  font-weight: 800;
  box-shadow: 0 12px 34px rgba(0, 101, 255, 0.08);
}

.tech-cloud span:nth-child(3n + 1) {
  border-color: rgba(0, 207, 255, 0.34);
}

.tech-cloud span:nth-child(3n + 2) {
  border-color: rgba(57, 242, 176, 0.28);
}

.skill-stack {
  display: grid;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
  box-shadow: var(--shadow);
}

.skill div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 10px;
  color: #e8f2ff;
  font-weight: 800;
}

.skill strong {
  color: var(--cyan);
}

.skill i {
  display: block;
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.skill i::after {
  content: "";
  display: block;
  width: var(--value);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--cyan), var(--green));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.2s ease;
}

.skill-stack.is-visible .skill i::after {
  transform: scaleX(1);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  overflow: hidden;
}

.timeline article {
  min-height: 260px;
  padding: 24px;
  background: rgba(8, 17, 35, 0.92);
}

.timeline span {
  display: block;
  margin-bottom: 38px;
  color: var(--green);
  font-weight: 900;
}

.contact {
  align-items: stretch;
  padding-bottom: 56px;
}

.contact-details {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
}

.contact-details div {
  padding: 14px 16px;
  border: 1px solid rgba(126, 211, 255, 0.18);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.035);
}

.contact-details dt {
  margin-bottom: 4px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-details dd {
  margin: 0;
  color: #e8f2ff;
  font-weight: 800;
}

.contact-details a:hover {
  color: var(--green);
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
  box-shadow: var(--shadow);
}

label {
  display: grid;
  gap: 8px;
  color: #dcecff;
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(126, 211, 255, 0.24);
  border-radius: 6px;
  padding: 13px 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  font: inherit;
  outline: none;
}

textarea {
  resize: vertical;
  min-height: 126px;
}

input:focus,
textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 207, 255, 0.14);
}

.form-status {
  min-height: 24px;
  margin: 0;
  font-weight: 800;
}

.form-status.success {
  color: var(--green);
}

.form-status.error {
  color: #ff8c8c;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 26px 0 36px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .main-nav {
    grid-column: 1 / -1;
    order: 3;
    justify-content: flex-start;
    overflow-x: auto;
    padding-top: 4px;
  }

  .hero,
  .intro,
  .split,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 64px;
  }

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

@media (max-width: 620px) {
  .site-header {
    width: min(100% - 24px, 1180px);
    margin-top: 12px;
    gap: 12px;
  }

  .brand img {
    width: 196px;
  }

  .nav-cta {
    display: none;
  }

  .hero,
  .section,
  .site-footer {
    width: min(100% - 24px, 1180px);
  }

  .hero {
    padding-top: 44px;
  }

  .hero-panel,
  .contact-form,
  .skill-stack,
  .service-card,
  .timeline article {
    padding: 18px;
  }

  .metric-row,
  .service-grid,
  .timeline {
    grid-template-columns: 1fr;
  }

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