:root {
  --bg: #05070d;
  --bg-soft: #0b1020;
  --panel: rgba(11, 17, 31, 0.72);
  --panel-strong: rgba(15, 24, 42, 0.86);
  --line: rgba(156, 177, 205, 0.18);
  --text: #eef6ff;
  --muted: #91a4bb;
  --cyan: #36d8ff;
  --violet: #9b7bff;
  --green: #65f0b1;
  --amber: #ffc76b;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(115deg, rgba(54, 216, 255, 0.08), transparent 28%),
    linear-gradient(245deg, rgba(155, 123, 255, 0.08), transparent 32%),
    linear-gradient(180deg, #05070d 0%, #07101a 46%, #05070d 100%);
  font-family: var(--sans);
  letter-spacing: 0;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 86%);
}

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

#infraCanvas {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  opacity: 0.62;
}

.noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.28;
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.032), rgba(255,255,255,0.032) 1px, transparent 1px, transparent 4px);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 16px 0;
  backdrop-filter: blur(18px);
}

.brand,
nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand {
  font-weight: 700;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(54, 216, 255, 0.46);
  border-radius: 8px;
  color: var(--cyan);
  background: rgba(8, 18, 31, 0.78);
  font-family: var(--mono);
  font-size: 0.82rem;
  box-shadow: 0 0 28px rgba(54, 216, 255, 0.14);
}

nav {
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  background: rgba(6, 10, 18, 0.64);
  scrollbar-width: none;
}

nav::-webkit-scrollbar {
  display: none;
}

nav a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.88rem;
  transition: color 180ms ease, background 180ms ease;
}

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

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.section {
  padding: 92px 0;
}

.hero {
  min-height: calc(100vh - 72px);
  padding: 96px 0 76px;
  align-items: center;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  gap: 56px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 24px;
  font-size: clamp(3rem, 8vw, 7.6rem);
  line-height: 0.9;
  letter-spacing: 0;
}

h1 > span {
  display: block;
}

.terminal-title {
  min-height: 1.12em;
  margin-top: 18px;
  color: transparent;
  background: linear-gradient(90deg, var(--cyan), var(--green), var(--amber));
  -webkit-background-clip: text;
  background-clip: text;
  font-family: var(--mono);
  font-size: clamp(1rem, 2.3vw, 1.65rem);
  line-height: 1.35;
}

.terminal-title::after {
  content: "_";
  color: var(--cyan);
  animation: blink 900ms steps(2, jump-none) infinite;
}

.hero-statement {
  max-width: 690px;
  margin-bottom: 28px;
  color: #c5d5e8;
  font-size: clamp(1.08rem, 2vw, 1.42rem);
  line-height: 1.65;
}

.hero-actions,
.signal-strip,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions .button {
  width: 166px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 700;
  white-space: nowrap;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover,
.stack-card:hover,
.system-card:hover {
  transform: translateY(-4px);
}

.primary {
  color: #03111a;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  box-shadow: 0 14px 42px rgba(54, 216, 255, 0.22);
}

.secondary {
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.signal-strip {
  margin-top: 34px;
}

.signal-strip span {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.045);
  font-size: 0.86rem;
}

.signal-strip strong {
  color: var(--text);
  font-family: var(--mono);
}

.ops-panel,
.glass-block,
.stack-card,
.system-card,
.timeline-item,
.contact-panel {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(16, 26, 45, 0.78), rgba(5, 9, 17, 0.66));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.ops-panel {
  overflow: hidden;
  border-radius: 18px;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.82rem;
}

.traffic {
  display: flex;
  gap: 6px;
}

.traffic i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cyan);
}

.traffic i:nth-child(2) {
  background: var(--amber);
}

.traffic i:nth-child(3) {
  background: var(--green);
}

.status-pill {
  padding: 5px 9px;
  border: 1px solid rgba(101, 240, 177, 0.28);
  border-radius: 999px;
  color: var(--green);
  background: rgba(101, 240, 177, 0.08);
}

.terminal {
  min-height: 312px;
  padding: 24px 20px;
  font-family: var(--mono);
  font-size: 0.9rem;
  line-height: 1.7;
}

.terminal p {
  margin-bottom: 8px;
  color: #aec2d8;
}

.terminal span {
  color: var(--cyan);
}

.terminal .ok {
  color: var(--green);
}

.pulse-line {
  color: var(--amber);
  animation: pulseText 1800ms ease-in-out infinite;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}

.metrics-grid div {
  padding: 16px;
  border-right: 1px solid var(--line);
}

.metrics-grid div:last-child {
  border-right: 0;
}

.metrics-grid span,
.time,
.role-switch {
  display: block;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
}

.metrics-grid strong {
  display: block;
  margin-top: 6px;
  color: var(--text);
  font-size: 0.94rem;
}

.section-heading h2 {
  max-width: 680px;
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.05;
}

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

.glass-block {
  padding: 32px;
  border-radius: 16px;
}

.glass-block p,
.system-card p,
.timeline-item p,
.contact-panel p {
  color: #b5c5d8;
  font-size: 1rem;
  line-height: 1.75;
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.stack-card {
  min-height: 220px;
  padding: 24px;
  border-radius: 14px;
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.stack-card:hover,
.system-card:hover {
  border-color: rgba(54, 216, 255, 0.38);
  background: linear-gradient(145deg, rgba(19, 35, 55, 0.88), rgba(6, 11, 20, 0.72));
}

.card-index {
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 0.8rem;
}

.stack-card h3,
.system-card h3,
.timeline-item h3 {
  margin: 28px 0 12px;
  font-size: 1.18rem;
}

.stack-card p {
  color: var(--muted);
  line-height: 1.65;
}

.systems-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 16px;
}

.system-card {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  padding: 26px;
  border-radius: 14px;
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.system-card.featured {
  grid-row: span 3;
}

.system-map {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 36px;
  padding: 16px;
  border: 1px solid rgba(54, 216, 255, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  overflow-x: auto;
}

.system-map span {
  flex: 0 0 auto;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #dbf7ff;
  background: rgba(54, 216, 255, 0.08);
  font-family: var(--mono);
  font-size: 0.78rem;
}

.system-map i {
  flex: 0 0 34px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  animation: dataFlow 1300ms linear infinite;
}

.system-card ul {
  margin: 24px 0 0;
  padding-left: 18px;
  color: #bfd0e2;
  line-height: 1.8;
}

.tag-row {
  margin-top: 24px;
}

.tag-row span {
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #d6e6f6;
  background: rgba(255, 255, 255, 0.055);
  font-family: var(--mono);
  font-size: 0.78rem;
}

.timeline {
  position: relative;
  display: grid;
  gap: 18px;
}

.timeline::before {
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 18px;
  width: 1px;
  content: "";
  background: linear-gradient(var(--cyan), var(--violet), transparent);
}

.timeline-item {
  position: relative;
  padding: 26px 26px 26px 62px;
  border-radius: 14px;
}

.timeline-dot {
  position: absolute;
  top: 30px;
  left: 11px;
  width: 15px;
  height: 15px;
  border: 2px solid var(--cyan);
  border-radius: 50%;
  background: var(--bg);
  box-shadow: 0 0 24px rgba(54, 216, 255, 0.45);
}

.timeline-item h3 {
  margin-top: 12px;
  margin-bottom: 6px;
}

.role {
  margin-bottom: 14px;
  color: var(--cyan) !important;
  font-weight: 700;
}

.role-switch {
  margin-top: 16px;
  color: var(--amber);
}

.credentials {
  padding-top: 40px;
}

.badge-cloud {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(8, 13, 24, 0.56);
}

.cert-card {
  display: grid;
  gap: 12px;
  min-height: 190px;
  align-content: start;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.045);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.cert-card:hover {
  transform: translateY(-3px);
  border-color: rgba(54, 216, 255, 0.42);
  background: rgba(54, 216, 255, 0.07);
}

.cert-card span {
  color: #f0f7ff;
  font-weight: 700;
  line-height: 1.4;
}

.cert-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.contact-section {
  padding-bottom: 110px;
}

.contact-panel {
  display: grid;
  grid-template-columns: 0.82fr 1fr;
  gap: 28px;
  align-items: center;
  padding: 34px;
  border-radius: 18px;
}

.contact-panel h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 4vw, 4.5rem);
  line-height: 1;
}

.command-box {
  display: grid;
  gap: 12px;
}

.command-box a {
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: 52px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #d7e6f6;
  background: rgba(0, 0, 0, 0.22);
  font-family: var(--mono);
  overflow-wrap: anywhere;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.command-box a:hover {
  transform: translateX(4px);
  border-color: rgba(54, 216, 255, 0.42);
  background: rgba(54, 216, 255, 0.07);
}

.command-box span {
  color: var(--green);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms ease, transform 700ms ease;
}

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

@keyframes blink {
  50% {
    opacity: 0;
  }
}

@keyframes pulseText {
  50% {
    opacity: 0.58;
  }
}

@keyframes dataFlow {
  from {
    background-position: -34px 0;
  }
  to {
    background-position: 34px 0;
  }
}

@media (max-width: 920px) {
  .site-header {
    align-items: flex-start;
    gap: 12px;
  }

  nav {
    max-width: 62vw;
    overflow-x: auto;
  }

  .hero {
    padding-top: 72px;
  }

  .section-grid,
  .systems-grid,
  .contact-panel {
    grid-template-columns: 1fr;
  }

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

  .system-card.featured {
    grid-row: auto;
  }
}

@media (max-width: 640px) {
  main,
  .site-header {
    width: min(100% - 24px, 1180px);
  }

  .site-header {
    position: relative;
    flex-direction: column;
  }

  nav {
    width: 100%;
    max-width: none;
    justify-content: flex-start;
    gap: 4px;
    border-radius: 10px;
    overflow: hidden;
  }

  nav a {
    flex: 1 1 auto;
    padding-inline: 6px;
    font-size: 0.78rem;
    text-align: center;
  }

  .hero,
  .section {
    padding: 62px 0;
  }

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

  .hero-copy {
    display: flex;
    min-height: calc(100svh - 142px);
    flex-direction: column;
    justify-content: flex-end;
    padding-top: 28px;
    padding-bottom: max(28px, env(safe-area-inset-bottom));
  }

  .hero .signal-strip {
    display: none;
  }

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

  .hero-actions .button {
    width: 100%;
    padding-inline: 8px;
    font-size: 0.92rem;
  }

  h1 {
    font-size: clamp(2.72rem, 18vw, 4.6rem);
  }

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

  .stack-grid,
  .metrics-grid {
    grid-template-columns: 1fr;
  }

  .badge-cloud {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .metrics-grid div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .metrics-grid div:last-child {
    border-bottom: 0;
  }

  .glass-block,
  .stack-card,
  .system-card,
  .timeline-item,
  .contact-panel {
    padding: 22px;
  }

  .timeline-item {
    padding-left: 54px;
  }

  .command-box a {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  #infraCanvas {
    opacity: 0.24;
  }
}
