/* ─── BASE RESETS ──────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 4rem;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: rgba(255, 92, 0, 0.3);
  color: #fff;
}

/* ─── SCROLLBAR (Webkit) ───────────────────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #080F11;
}

::-webkit-scrollbar-thumb {
  background: #2d3b3e;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #ff5c00;
}

/* ─── HERO CANVAS ──────────────────────────────────────────────── */
#hero-canvas {
  opacity: 1;
}

/* ─── NAVIGATION ───────────────────────────────────────────────── */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: #ff5c00;
  transition: width 150ms ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* ─── BENTO CARDS ──────────────────────────────────────────────── */
.bento-card {
  position: relative;
  overflow: hidden;
}

.bento-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 92, 0, 0), transparent);
  opacity: 0;
  transition: opacity 200ms ease;
}

.bento-card:hover::before {
  background: linear-gradient(90deg, transparent, rgba(255, 92, 0, 0.5), transparent);
  opacity: 1;
}

/* ─── SECTION ENTRANCE ANIMATIONS ──────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 400ms ease, transform 400ms ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── TABLE ────────────────────────────────────────────────────── */
table {
  border-collapse: collapse;
}

td,
th {
  white-space: nowrap;
}

/* ─── RESPONSIVE TWEAKS ────────────────────────────────────────── */
@media (max-width: 799px) {

  td,
  th {
    white-space: normal;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  #architecture-svg {
    min-width: 560px;
  }
}

/* ─── GLOW EFFECTS ─────────────────────────────────────────────── */
.glow-orange {
  box-shadow: 0 0 40px rgba(255, 92, 0, 0.08);
}

.glow-green {
  box-shadow: 0 0 40px rgba(0, 229, 160, 0.06);
}

/* ─── HERO GRADIENT GRID LINES ─────────────────────────────────── */
#hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg,
      transparent 0%,
      #2d3b3e 20%,
      #2d3b3e 80%,
      transparent 100%);
  opacity: 0.3;
  pointer-events: none;
}

/* ─── PULSE KEYFRAME FOR SPECS ─────────────────────────────────── */
@keyframes pulse-subtle {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.7;
  }
}