:root {
  color-scheme: dark;
  --bg: #03131a;
  --panel: rgba(4, 26, 38, 0.88);
  --panel-soft: rgba(6, 29, 45, 0.92);
  --text: #f4f7fb;
  --muted: #b9c4d1;
  --accent: #00b8d9;
  --accent-soft: #4d9fff;
  --contrast: #c5b8a5;
  --border: rgba(255, 255, 255, 0.1);
  --shadow: 0 34px 90px rgba(0, 0, 0, 0.32);
}

html {
  font-family: 'Inter', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
}

.brand-logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
  border-radius: 16px;
  background: rgba(0, 184, 217, 0.14);
  padding: 0.5rem;
  transition: transform 300ms ease, box-shadow 300ms ease;
  backface-visibility: hidden;
}

.brand-logo--large {
  width: 126px;
  height: 126px;
  border-radius: 20px;
  padding: 0.75rem;
  background: radial-gradient(circle at 30% 30%, rgba(0, 184, 217, 0.25), rgba(0, 184, 217, 0.08));
  box-shadow: 0 0 40px rgba(0, 184, 217, 0.4), 0 15px 40px rgba(0, 184, 217, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transform: translateZ(0);
  will-change: transform, box-shadow;
}

@keyframes logo-pulse {
  0% { transform: scale(1); box-shadow: 0 0 40px rgba(0, 184, 217, 0.4), 0 15px 40px rgba(0, 184, 217, 0.15); }
  50% { transform: scale(1.06); box-shadow: 0 0 60px rgba(0, 184, 217, 0.5), 0 20px 50px rgba(0, 184, 217, 0.25); }
  100% { transform: scale(1); box-shadow: 0 0 40px rgba(0, 184, 217, 0.4), 0 15px 40px rgba(0, 184, 217, 0.15); }
}

@media (prefers-reduced-motion: no-preference) {
  .brand-logo--large {
    animation: logo-pulse 4.5s ease-in-out infinite;
  }
  .logo-wrap {
    cursor: pointer;
    perspective: 900px;
    display: inline-block;
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand-logo--large {
    animation: none;
  }
}

.brand-logo:focus {
  outline: 2px solid rgba(0, 184, 217, 0.12);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 128px;
  padding: 0 40px;
  background: linear-gradient(135deg, #003B46 0%, #001F24 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-shrink: 0;
}

.logo-wrap {
  display: grid;
  place-items: center;
}

.brand-name {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.brand-subtitle {
  color: rgba(255, 255, 255, 0.75);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 400;
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 0.5rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  border-radius: 999px;
}

.site-navigation {
  display: flex;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-list a {
  color: rgba(255, 255, 255, 0.75);
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-list a:hover,
.nav-list a:focus-visible {
  color: var(--text);
  transform: translateY(-1px);
}

.section-header {
  max-width: 760px;
  margin-bottom: 2rem;
}

.section-eyebrow,
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.26em;
  color: var(--accent);
  font-size: 0.78rem;
  margin-bottom: 0.85rem;
}

.hero {
  padding: 5rem 2rem 4rem;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 15% 14%, rgba(77, 159, 255, 0.18), transparent 16%),
    radial-gradient(circle at 85% 18%, rgba(0, 184, 217, 0.14), transparent 18%);
  pointer-events: none;
}

 .network-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255,255,255,0.04), transparent 25%);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(3rem, 5vw, 4.8rem);
  line-height: 0.95;
  margin: 0;
  max-width: 13ch;
}

.hero-text {
  color: var(--muted);
  max-width: 42rem;
  margin: 1.6rem 0 2.2rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.7rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(0, 184, 217, 0.18);
}

.button-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  color: #061924;
}

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

.hero-flash {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.content {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.services {
  padding: 4rem 0;
}

.service-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: stretch;
}

.service-media {
  position: relative;
}

.media-frame {
  border-radius: 34px;
  padding: 2rem;
  background: linear-gradient(155deg, rgba(217, 181, 165, 0.04), rgba(0, 184, 217, 0.08));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 38px 100px rgba(0,0,0,0.25);
}

.media-topbar {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.media-topbar span {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.45);
}

.media-surface {
  position: relative;
  min-height: 480px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(1, 16, 25, 0.98), rgba(3, 27, 39, 0.96));
  overflow: hidden;
  padding: 2rem;
  display: grid;
  gap: 1.5rem;
}

.media-highlight {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 25%, rgba(77,159,255,0.14), transparent 22%),
    radial-gradient(circle at 80% 18%, rgba(0,184,217,0.08), transparent 24%);
  opacity: 0.8;
  pointer-events: none;
}

.media-note {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.75rem;
  max-width: 18rem;
}

.media-note strong {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-soft);
}

.media-note p {
  margin: 0;
  color: var(--text);
  line-height: 1.7;
}

.media-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.media-card {
  padding: 1.2rem 1.3rem;
  border-radius: 20px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02);
}

.media-card--wide {
  grid-column: span 2;
}

.media-card h4 {
  margin: 0 0 0.75rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
}

.media-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.service-copy {
  display: grid;
  gap: 0.75rem;
  align-content: space-between;
}

.section-header {
  max-width: 760px;
  margin-bottom: 0.75rem;
}

.service-lead {
  max-width: 44rem;
  color: var(--muted);
  line-height: 1.8;
}

.service-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.service-pill-row span {
  background: rgba(0,184,217,0.12);
  color: var(--text);
  padding: 0.75rem 1rem;
  border-radius: 999px;
  font-size: 0.95rem;
}

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

.summary-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  padding: 1.5rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.18);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.summary-card strong {
  display: block;
  margin-bottom: 0.9rem;
  font-family: 'Montserrat', sans-serif;
}

.summary-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.summary-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 72px rgba(0,0,0,0.22);
}

.hero-flash div {
  border-radius: 18px;
  padding: 1rem 1.2rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-flash strong {
  display: block;
  font-family: 'Montserrat', sans-serif;
  margin-bottom: 0.45rem;
}

.about {
  padding: 3rem 0 1.5rem;
}

.about-video__wrap {
  width: 100%;
  max-width: 940px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 38px 120px rgba(0, 0, 0, 0.24);
  background: #03121b;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.about-video__player {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  background: #03131a;
}

.hero-flash span {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.hero-aside {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-visual {
  position: relative;
  width: min(100%, 560px);
  min-height: 560px;
  border-radius: 36px;
  background: linear-gradient(180deg, rgba(2, 22, 34, 0.88), rgba(1, 13, 21, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
  overflow: hidden;
  padding: 2rem;
}

.hero-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at top left, rgba(0, 184, 217, 0.12), transparent 24%),
    linear-gradient(135deg, rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(45deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 140px 140px, 56px 56px, 56px 56px;
  pointer-events: none;
}

.hero-visual::after {
  content: '';
  position: absolute;
  inset: 10% 12% 12% 10%;
  background: radial-gradient(circle at 30% 30%, rgba(0, 184, 217, 0.14), transparent 30%),
    radial-gradient(circle at 70% 68%, rgba(77, 159, 255, 0.1), transparent 28%);
  pointer-events: none;
}

.visual-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(0deg, rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.35;
}

.visual-orb {
  position: absolute;
  top: 32%;
  left: 50%;
  width: 220px;
  height: 220px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(0, 184, 217, 0.9), transparent 40%),
    radial-gradient(circle at 70% 70%, rgba(77, 159, 255, 0.6), transparent 38%);
  filter: blur(4px);
}

.visual-orb span {
  position: absolute;
  border-radius: 999px;
  opacity: 0.8;
}

.visual-orb span:nth-child(1) {
  width: 88px;
  height: 8px;
  top: 30%;
  left: 25%;
  background: rgba(255, 255, 255, 0.25);
}

.visual-orb span:nth-child(2) {
  width: 64px;
  height: 64px;
  bottom: 14%;
  left: 45%;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.visual-orb span:nth-child(3) {
  width: 18px;
  height: 18px;
  top: 20%;
  right: 20%;
  background: rgba(0, 184, 217, 0.8);
}

.visual-card {
  position: absolute;
  width: 210px;
  padding: 1.25rem 1.3rem;
  border-radius: 22px;
  background: rgba(7, 22, 34, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.24);
}

.visual-card span {
  display: block;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.72rem;
  margin-bottom: 0.75rem;
}

.visual-card strong {
  font-family: 'Montserrat', sans-serif;
  display: block;
  font-size: 1.1rem;
}

.card-1 {
  top: 2rem;
  left: 2rem;
}

.card-2 {
  bottom: 4rem;
  right: 2rem;
}

.card-3 {
  top: 48%;
  right: 12%;
}

.about-grid {
  display: grid;
  gap: 2rem;
}

.about-grid--futuristic {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.about-stats div {
  padding: 1.4rem 1.35rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.service-card,
.portfolio-card,
.testimonial-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  padding: 2rem;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.22);
}

.service-card--glow {
  border-color: rgba(0, 184, 217, 0.2);
  background: linear-gradient(180deg, rgba(0, 184, 217, 0.06), rgba(4, 25, 34, 0.95));
}

.service-card h3,
.portfolio-card h3 {
  font-family: 'Montserrat', sans-serif;
  margin-bottom: 1rem;
}

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

.portfolio-card {
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.portfolio-card:hover {
  transform: translateY(-8px);
  border-color: rgba(77, 159, 255, 0.28);
}

.portfolio-card--wide {
  min-height: 260px;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.testimonial-card--accent {
  background: rgba(0, 184, 217, 0.08);
  border-color: rgba(0, 184, 217, 0.18);
}

.testimonial-card footer {
  color: var(--text);
  font-weight: 600;
}

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

.contact-info {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 0.8rem;
}

.contact-info li {
  color: var(--muted);
}

.contact-form {
  display: grid;
  gap: 1rem;
}

label {
  font-weight: 600;
  color: var(--text);
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-radius: 18px;
  padding: 1rem 1.15rem;
  outline: none;
}

input:focus,
textarea:focus {
  border-color: rgba(0, 184, 217, 0.9);
  box-shadow: 0 0 0 3px rgba(0, 184, 217, 0.14);
}

.site-footer {
  padding: 2rem;
  text-align: center;
  color: var(--muted);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.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;
}

@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 4rem;
  }

  .service-hero {
    grid-template-columns: 1fr;
  }

  .service-summary-grid {
    grid-template-columns: 1fr;
  }

  .media-surface {
    min-height: 360px;
  }

  .about-grid--futuristic,
  .service-grid,
  .portfolio-grid,
  .testimonial-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-flash {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .site-header {
    flex-wrap: wrap;
    padding: 1.25rem;
    min-height: 110px;
    gap: 1rem;
  }

  .brand-logo--large {
    width: 96px;
    height: 96px;
    border-radius: 18px;
    padding: 0.6rem;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-navigation {
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .site-navigation.open {
    max-height: 320px;
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
  }

  .hero {
    padding: 3.5rem 1.25rem 2.5rem;
  }

  .hero-aside {
    order: -1;
  }

  .hero-visual {
    width: 100%;
    min-height: 420px;
    padding: 1.5rem;
  }

  .network-canvas {
    display: none;
  }

  .visual-card {
    width: 170px;
  }
}

@media (max-width: 520px) {
  .hero h1 {
    font-size: 2.75rem;
  }

  .site-header {
    padding: 1rem;
    min-height: 100px;
  }

  .brand-logo--large {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    padding: 0.5rem;
    box-shadow: 0 0 30px rgba(0, 184, 217, 0.35), 0 10px 30px rgba(0, 184, 217, 0.12);
  }

  .brand-name {
    font-size: 1.1rem;
  }

  .nav-list a {
    font-size: 14px;
  }

  .button {
    width: 100%;
  }
}
