/* StoreGuard techno theme — homepage & blog */

:root {
  --sg-bg: #020408;
  --sg-surface: #0a0f18;
  --sg-cyan: #22d3ee;
  --sg-cyan-dim: rgba(34, 211, 238, 0.15);
  --sg-emerald: #34d399;
  --sg-grid: rgba(34, 211, 238, 0.06);
  --sg-border: rgba(34, 211, 238, 0.18);
  --sg-glow: rgba(34, 211, 238, 0.35);
}

body {
  font-family: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
}

.font-mono {
  font-family: "JetBrains Mono", "IBM Plex Mono", ui-monospace, monospace;
}

/* Background */
.techno-bg {
  background-color: var(--sg-bg);
  background-image:
    radial-gradient(ellipse 90% 60% at 50% -20%, rgba(34, 211, 238, 0.12), transparent 50%),
    radial-gradient(ellipse 50% 40% at 100% 50%, rgba(52, 211, 153, 0.06), transparent 45%),
    radial-gradient(ellipse 40% 30% at 0% 80%, rgba(34, 211, 238, 0.05), transparent 40%),
    linear-gradient(180deg, #020408 0%, #060b14 50%, #020408 100%);
}

.techno-grid {
  background-image:
    linear-gradient(var(--sg-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--sg-grid) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, black 0%, black 40%, transparent 100%);
}

.techno-scanlines {
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.12) 2px,
    rgba(0, 0, 0, 0.12) 4px
  );
  opacity: 0.4;
  pointer-events: none;
}

/* Header */
.techno-header {
  border-bottom: 1px solid var(--sg-border);
  background: rgba(2, 4, 8, 0.85);
  box-shadow: 0 1px 0 rgba(34, 211, 238, 0.08), 0 8px 32px rgba(0, 0, 0, 0.4);
}

.techno-nav a {
  position: relative;
  transition: color 0.15s ease, text-shadow 0.15s ease;
}

.techno-nav a:hover {
  color: var(--sg-cyan);
  text-shadow: 0 0 12px var(--sg-glow);
}

.techno-nav a[aria-current="page"],
.techno-nav a.is-active {
  color: var(--sg-cyan);
  text-shadow: 0 0 16px var(--sg-glow);
}

/* Typography */
.techno-hero-title {
  text-shadow: 0 0 40px rgba(34, 211, 238, 0.15);
  letter-spacing: -0.02em;
}

.techno-label {
  font-family: "JetBrains Mono", "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(34, 211, 238, 0.7);
}

.techno-label::before {
  content: "// ";
  color: rgba(52, 211, 153, 0.6);
}

/* Badges */
.techno-badge {
  font-family: "JetBrains Mono", "IBM Plex Mono", ui-monospace, monospace;
  border-radius: 2px;
  border: 1px solid var(--sg-border);
  background: rgba(34, 211, 238, 0.06);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.65rem;
}

.techno-badge--accent {
  border-color: rgba(34, 211, 238, 0.35);
  background: rgba(34, 211, 238, 0.1);
  color: #67e8f9;
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.12);
}

.techno-badge--muted {
  border-color: rgba(148, 163, 184, 0.15);
  background: rgba(255, 255, 255, 0.02);
  color: #94a3b8;
}

/* Cards & panels */
.techno-panel {
  border: 1px solid var(--sg-border);
  border-radius: 4px;
  background: linear-gradient(135deg, rgba(10, 15, 24, 0.9) 0%, rgba(2, 4, 8, 0.95) 100%);
  box-shadow:
    inset 0 1px 0 rgba(34, 211, 238, 0.06),
    0 0 24px rgba(34, 211, 238, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.techno-panel:hover {
  border-color: rgba(34, 211, 238, 0.35);
  box-shadow:
    inset 0 1px 0 rgba(34, 211, 238, 0.1),
    0 0 32px rgba(34, 211, 238, 0.1);
}

.techno-panel--accent-left {
  border-left: 2px solid var(--sg-cyan);
}

.techno-stat-value {
  font-family: "JetBrains Mono", "IBM Plex Mono", ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 20px rgba(34, 211, 238, 0.2);
}

/* Links */
.techno-link {
  color: #67e8f9;
  text-decoration: underline;
  text-decoration-color: rgba(34, 211, 238, 0.35);
  text-underline-offset: 3px;
  transition: color 0.15s ease, text-decoration-color 0.15s ease, text-shadow 0.15s ease;
}

.techno-link:hover {
  color: var(--sg-cyan);
  text-decoration-color: var(--sg-cyan);
  text-shadow: 0 0 12px var(--sg-glow);
}

/* Footer */
.techno-footer {
  border-top: 1px solid var(--sg-border);
  background: rgba(2, 4, 8, 0.95);
  box-shadow: 0 -1px 0 rgba(34, 211, 238, 0.06);
}

/* Blog prose */
.techno-prose p {
  margin-top: 1.25rem;
  line-height: 1.8;
  color: #94a3b8;
}

.techno-prose h2 {
  margin-top: 2rem;
  font-family: "JetBrains Mono", "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #67e8f9;
}

.techno-prose h2::before {
  content: "> ";
  color: rgba(52, 211, 153, 0.7);
}

.techno-prose strong {
  color: #e2e8f0;
  font-weight: 500;
}

.techno-table-wrap {
  margin-top: 2rem;
}

.techno-table-caption {
  margin-bottom: 0.75rem;
  font-family: "JetBrains Mono", "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #67e8f9;
}

.techno-table-scroll {
  overflow-x: auto;
  border: 1px solid rgba(34, 211, 238, 0.12);
  border-radius: 2px;
  background: rgba(2, 4, 8, 0.6);
}

.techno-table {
  width: 100%;
  min-width: 36rem;
  border-collapse: collapse;
  font-size: 0.875rem;
  line-height: 1.5;
}

.techno-table th,
.techno-table td {
  padding: 0.65rem 0.85rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(34, 211, 238, 0.08);
  color: #94a3b8;
}

.techno-table th {
  font-family: "JetBrains Mono", "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #67e8f9;
  background: rgba(34, 211, 238, 0.04);
}

.techno-table tbody tr:last-child td {
  border-bottom: none;
}

.techno-table-note {
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  line-height: 1.65;
  color: #64748b;
}

/* Subtle pulse on hero accent line */
@keyframes techno-pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.techno-pulse-line {
  animation: techno-pulse 3s ease-in-out infinite;
}
