:root {
  --bg: #07111f;
  --bg-alt: #0c1b2d;
  --panel: rgba(14, 30, 51, 0.84);
  --panel-strong: #11243a;
  --line: rgba(126, 167, 220, 0.18);
  --text: #edf4ff;
  --muted: #a5b8cf;
  --accent: #41a5ff;
  --accent-soft: #7bc4ff;
  --teal: #27d3c3;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(39, 211, 195, 0.14), transparent 28%),
    radial-gradient(circle at top right, rgba(65, 165, 255, 0.18), transparent 32%),
    linear-gradient(180deg, #050d19 0%, #07111f 38%, #0a1727 100%);
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: radial-gradient(circle at center, black 35%, transparent 100%);
  pointer-events: none;
  z-index: -1;
}

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

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

.container {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(4, 10, 19, 0.68);
  border-bottom: 1px solid rgba(126, 167, 220, 0.08);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(65, 165, 255, 0.18), rgba(39, 211, 195, 0.16));
  border: 1px solid rgba(123, 196, 255, 0.2);
  display: grid;
  place-items: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 10px 30px rgba(65, 165, 255, 0.15);
  overflow: hidden;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.12);
  border-radius: 10px;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: none;
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-size: 0.95rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a.active {
  color: var(--text);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(126, 167, 220, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.28s ease, opacity 0.28s ease;
}

.nav-toggle span {
  position: relative;
}

.nav-toggle::before {
  position: absolute;
  transform: translateY(-7px);
}

.nav-toggle::after {
  position: absolute;
  transform: translateY(7px);
}

.nav-toggle.is-open span {
  opacity: 0;
}

.nav-toggle.is-open::before {
  transform: rotate(45deg);
}

.nav-toggle.is-open::after {
  transform: rotate(-45deg);
}

.page-main {
  padding-bottom: 56px;
}

.hero,
.page-hero {
  padding: 88px 0 72px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 42px;
  align-items: center;
}

.hero-copy,
.page-copy,
.section-head,
.stack {
  display: grid;
  gap: 20px;
}

.hero-copy > * {
  justify-self: start;
}

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

h1 {
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero-title {
  display: inline-block;
  max-width: 100%;
  overflow: visible;
  white-space: normal;
  border-right: 0;
  animation: none;
  width: auto;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

h3 {
  font-size: 1.32rem;
}

.lead {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 64ch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(123, 196, 255, 0.25);
  background: rgba(65, 165, 255, 0.08);
  color: var(--accent-soft);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--accent));
  box-shadow: 0 0 14px rgba(39, 211, 195, 0.8);
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease, background 0.28s ease, filter 0.28s ease;
  position: relative;
  overflow: hidden;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.18) 50%, transparent 80%);
  transform: translateX(-120%);
  transition: transform 0.7s ease;
}

.btn:hover::after,
.btn:focus-visible::after {
  transform: translateX(120%);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #1c73ff);
  box-shadow: 0 18px 30px rgba(28, 115, 255, 0.28);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(126, 167, 220, 0.18);
  color: var(--text);
}

.btn-ghost {
  background: rgba(39, 211, 195, 0.08);
  border-color: rgba(39, 211, 195, 0.22);
  color: var(--text);
}

.linkedin-icon {
  width: 20px;
  height: 20px;
  flex: none;
}

.btn-primary .linkedin-icon {
  width: 22px;
  height: 22px;
}

.section {
  padding: 84px 0;
}

.panel,
.service-card,
.info-card,
.team-card,
.visual-shell,
.highlight-card {
  border: 1px solid var(--line);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(17, 36, 58, 0.94), rgba(9, 19, 33, 0.96));
  box-shadow: var(--shadow);
}

.visual-shell {
  position: relative;
  width: min(100%, 520px);
  aspect-ratio: 1 / 1.04;
  overflow: hidden;
}

.visual-shell::before,
.visual-shell::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(16px);
  opacity: 0.6;
}

.visual-shell::before {
  width: 180px;
  height: 180px;
  top: -30px;
  right: -20px;
  background: rgba(65, 165, 255, 0.22);
}

.visual-shell::after {
  width: 140px;
  height: 140px;
  left: -30px;
  bottom: 14px;
  background: rgba(39, 211, 195, 0.16);
}

.hero-badge,
.hero-card {
  position: absolute;
  border: 1px solid rgba(126, 167, 220, 0.18);
  background: rgba(10, 22, 38, 0.44);
  backdrop-filter: blur(12px);
  border-radius: 22px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  animation: floatCard 6.6s ease-in-out infinite;
  opacity: 0.54;
  padding: 16px 18px;
}

.badge-top {
  top: 42px;
  left: -18px;
  width: 188px;
}

.metric-card {
  right: 28px;
  top: 76px;
  width: 174px;
  animation-delay: 0.4s;
}

.badge-bottom {
  right: -18px;
  bottom: 44px;
  width: 214px;
  animation-delay: 0.8s;
  z-index: 0;
}

.hero-badge span,
.hero-card span {
  color: var(--muted);
  font-size: 0.88rem;
}

.hero-badge strong,
.hero-card strong {
  display: block;
  margin-top: 6px;
  font-size: 1.05rem;
}

.hero-screen {
  position: absolute;
  inset: 48px;
  z-index: 1;
  border-radius: 26px;
  border: 1px solid rgba(126, 167, 220, 0.12);
  background:
    linear-gradient(180deg, rgba(18, 38, 61, 0.94), rgba(8, 18, 31, 0.96)),
    linear-gradient(120deg, rgba(65, 165, 255, 0.05), transparent 40%);
  padding: 26px;
  overflow: hidden;
}

.screen-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.dots {
  display: flex;
  gap: 8px;
}

.dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  display: block;
}

.screen-panel {
  border-radius: 20px;
  padding: 26px;
  background:
    linear-gradient(180deg, rgba(65, 165, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(126, 167, 220, 0.12);
  min-height: calc(100% - 20px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.service-delivery-title {
  display: block;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
}

.service-delivery-copy {
  margin-top: 14px;
  color: var(--muted);
  max-width: 28ch;
  font-size: 1.08rem;
  line-height: 1.75;
}

.services-grid,
.card-grid,
.team-grid {
  display: grid;
  gap: 22px;
}

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

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

.service-card,
.info-card,
.team-card,
.highlight-card {
  padding: 26px;
}

.service-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.32s ease, border-color 0.32s ease, box-shadow 0.32s ease;
}

.service-card:hover,
.service-card:focus-within {
  transform: translateY(-8px);
  border-color: rgba(123, 196, 255, 0.32);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.42);
}

.service-card::after {
  content: "";
  position: absolute;
  inset: auto -30px -50px auto;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(65, 165, 255, 0.18), transparent 70%);
}

.service-icon {
  width: 78px;
  height: 78px;
  margin-bottom: 22px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(65, 165, 255, 0.12), rgba(39, 211, 195, 0.12));
  border: 1px solid rgba(126, 167, 220, 0.18);
}

.muted {
  color: var(--muted);
}

.split-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 26px;
}

.service-card-centered {
  grid-column: 2;
}

.contact-list,
.terms-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.contact-item,
.terms-item {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(126, 167, 220, 0.12);
}

.contact-item span,
.terms-item span {
  display: block;
  color: var(--accent-soft);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.contact-item strong,
.contact-item a,
.terms-item p {
  font-size: 1rem;
  word-break: break-word;
}

.team-card {
  text-align: center;
}

.team-avatar {
  width: 132px;
  height: 132px;
  margin: 0 auto 18px;
  border-radius: 50%;
  border: 1px solid rgba(123, 196, 255, 0.24);
  background: linear-gradient(145deg, rgba(65, 165, 255, 0.16), rgba(39, 211, 195, 0.16));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 20px 40px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  position: relative;
}

.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-fallback {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  background: linear-gradient(145deg, rgba(65, 165, 255, 0.28), rgba(39, 211, 195, 0.18));
}

.hero-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 8px;
}

.highlight-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.footer {
  margin-top: 24px;
  padding: 32px 0 44px;
  border-top: 1px solid rgba(126, 167, 220, 0.1);
  background: linear-gradient(180deg, rgba(10, 19, 33, 0), rgba(4, 10, 18, 0.9));
}

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

.footer-copy {
  color: var(--muted);
  max-width: 64ch;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.delay-1 { transition-delay: 0.08s; }
.delay-2 { transition-delay: 0.16s; }
.delay-3 { transition-delay: 0.24s; }
.delay-4 { transition-delay: 0.32s; }

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@media (max-width: 1080px) {
  .hero-grid,
  .split-grid,
  .services-grid,
  .card-grid.two,
  .team-grid,
  .hero-highlights {
    grid-template-columns: 1fr 1fr;
  }

  .services-grid .service-card:last-child {
    grid-column: 1 / -1;
  }

  .service-card-centered {
    grid-column: 1 / -1;
    max-width: calc(50% - 11px);
    justify-self: center;
  }
}

@media (max-width: 860px) {
  .nav {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 14px 0 16px;
    min-height: auto;
  }

  .brand {
    justify-content: flex-start;
    text-align: left;
  }

  .nav-toggle {
    display: inline-flex;
    position: relative;
    justify-self: end;
  }

  .nav-links {
    display: none;
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
    gap: 8px;
    width: 100%;
    font-size: 0.94rem;
    padding: 12px;
    border: 1px solid rgba(126, 167, 220, 0.14);
    border-radius: 20px;
    background: rgba(9, 18, 31, 0.96);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.24);
  }

  .nav-links.is-open {
    display: grid;
  }

  .nav-links a {
    text-align: left;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(126, 167, 220, 0.12);
    background: rgba(255, 255, 255, 0.02);
  }

  .hero-grid,
  .split-grid,
  .services-grid,
  .card-grid.two,
  .team-grid,
  .hero-highlights {
    grid-template-columns: 1fr;
  }

  .hero,
  .page-hero {
    padding-top: 52px;
    padding-bottom: 56px;
  }

  .section {
    padding: 68px 0;
  }

  h1 {
    font-size: clamp(2.2rem, 9vw, 3.5rem);
    line-height: 1.06;
  }

  h2 {
    font-size: clamp(1.75rem, 7vw, 2.5rem);
  }

  .lead {
    font-size: 1rem;
  }

  .hero-screen {
    position: relative;
    inset: auto;
    min-height: 320px;
  }

  .hero-badge,
  .hero-card {
    position: static;
    width: 100%;
  }

  .visual-shell {
    display: grid;
    align-content: end;
    padding: 18px;
    gap: 14px;
    aspect-ratio: auto;
  }

  .screen-panel {
    min-height: 240px;
    padding: 22px;
  }

  .footer {
    padding: 28px 0 36px;
  }

  .footer-grid {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-copy {
    max-width: 100%;
  }

  .service-card-centered {
    max-width: none;
    justify-self: stretch;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(calc(100% - 22px), var(--max));
  }

  .site-header {
    position: static;
  }

  .brand {
    gap: 12px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }

  .brand span:last-child {
    min-width: 0;
  }

  .brand small {
    font-size: 0.64rem;
    letter-spacing: 0.08em;
  }

  .nav-links a {
    padding: 11px 12px;
  }

  .hero,
  .page-hero {
    padding: 40px 0 44px;
  }

  .section {
    padding: 56px 0;
  }

  h1 {
    font-size: clamp(1.95rem, 10vw, 2.7rem);
  }

  h2 {
    font-size: clamp(1.55rem, 8vw, 2rem);
  }

  .eyebrow {
    font-size: 0.78rem;
    padding: 9px 14px;
  }

  .hero-actions,
  .button-row,
  .footer-grid {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .panel,
  .service-card,
  .info-card,
  .team-card,
  .highlight-card {
    border-radius: 22px;
  }

  .hero-screen,
  .screen-panel {
    border-radius: 20px;
  }

  .hero-badge,
  .hero-card {
    display: none;
  }

  .service-icon {
    width: 68px;
    height: 68px;
    margin-bottom: 18px;
  }

  .team-avatar {
    width: 116px;
    height: 116px;
  }
}
