/* ============================================================
   DS Web: room-specific design system
   Steel and signal-blue, like a live network render. Loaded
   after ../ds-shared.css, which supplies the generic reset,
   nav/footer/button/form structure, and type scale.
   ============================================================ */

:root {
  --bg: #0a0e14;
  --bg-elevated: #10151d;
  --bg-card: #141a24;
  --accent: #3d8ef0;
  --accent-soft: rgba(61, 142, 240, 0.14);
  --accent-border: rgba(61, 142, 240, 0.4);
  --cream: #e8edf5;
  --text-primary: #eef2f7;
  --text-muted: rgba(238, 242, 247, 0.64);
  --text-faint: rgba(238, 242, 247, 0.62);
  --border: rgba(238, 242, 247, 0.1);
  --border-strong: rgba(238, 242, 247, 0.2);

  --shadow-accent: 0 3px 12px rgba(61, 142, 240, 0.3);
}

/* ============================================================
   Grid-scan: a faint moving network grid, DS Web's flourish
   (steel/blue answer to VideoArt's film light-leaks)
   ============================================================ */

.grid-scan {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(61, 142, 240, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(61, 142, 240, 0.07) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, black 40%, transparent 90%);
  animation: grid-drift 40s linear infinite;
}

@keyframes grid-drift {
  0% { background-position: 0 0, 0 0; }
  100% { background-position: 64px 64px, 64px 64px; }
}

@media (prefers-reduced-motion: reduce) {
  .grid-scan {
    animation: none;
  }
}

/* ============================================================
   Hero flourish
   ============================================================ */

.rec-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent);
  margin-bottom: 28px;
}

.rec-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: rec-pulse 1.6s ease-in-out infinite;
}

@keyframes rec-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

/* ============================================================
   Services grid
   ============================================================ */

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

.value-card {
  background: var(--bg-card);
  padding: 36px 32px;
  opacity: 0;
  transform: translateY(20px);
  transition: background 0.25s var(--ease-out);
}

.value-card.in-view {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.value-card:hover {
  background: color-mix(in srgb, var(--accent) 6%, var(--bg-card));
}

.value-card h3 {
  font-size: 19px;
  margin-bottom: 10px;
}

.value-card p {
  color: var(--text-muted);
  font-size: 15px;
}

.value-index {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 18px;
  display: block;
}

/* ============================================================
   Proof-of-work cards
   ============================================================ */

.proof-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.proof-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}

.proof-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.proof-media {
  aspect-ratio: 16/10;
  background: radial-gradient(circle at 30% 30%, var(--accent-soft) 0%, var(--bg-card) 70%);
  position: relative;
  overflow: hidden;
}

.proof-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.proof-body {
  padding: 22px;
}

.proof-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
}

.proof-body h3 {
  font-size: 19px;
  margin-bottom: 6px;
}

.proof-body p {
  font-size: 14px;
  color: var(--text-muted);
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1024px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .proof-grid {
    grid-template-columns: 1fr;
  }
}
