@import "tailwindcss";

:root {
  --background: #ffffff;
  --foreground: #0f172a;
  --primary: #c6102e;
  --slate-200: #e2e8f0;
}

@theme inline {
  --color-background: var(--background);
  --color-foreground: var(--foreground);
  --color-primary: var(--primary);
  --color-slate-200: var(--slate-200);
  --font-sans: var(--font-inter);
  --font-mono: var(--font-geist-mono);
  --font-display: var(--font-inter);
}

body {
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-inter);
}

.blueprint-bg {
  background-image: radial-gradient(circle at 2px 2px, rgba(15, 23, 42, 0.05) 1px, transparent 0);
  background-size: 24px 24px;
}

.text-glow {
  text-shadow: 0 0 20px rgba(198, 16, 46, 0.4);
}

.technical-line {
  background: linear-gradient(90deg, transparent, rgba(198, 16, 46, 0.3), transparent);
  height: 1px;
  width: 100%;
}

.blueprint-overlay {
  background-image: linear-gradient(rgba(15, 23, 42, 0.03) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(15, 23, 42, 0.03) 1px, transparent 1px);
  background-size: 20px 20px;
}

.dashboard-border {
  border: 1px solid rgba(198, 16, 46, 0.2);
  position: relative;
}

.dashboard-border::before {
  content: '';
  position: absolute;
  top: -1px; left: -1px; width: 10px; height: 10px;
  border-top: 2px solid #c6102e; border-left: 2px solid #c6102e;
}

.dashboard-border::after {
  content: '';
  position: absolute;
  bottom: -1px; right: -1px; width: 10px; height: 10px;
  border-bottom: 2px solid #c6102e; border-right: 2px solid #c6102e;
}

.node-highlight {
  animation: node-pulse 2s ease-in-out infinite;
}

@keyframes node-pulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.5); opacity: 1; }
}

.chassis-glow {
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.15));
}

.app-card {
  transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  flex: 1;
}

.app-card:hover {
  flex: 2;
}

.app-card .overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.80) 0%, rgba(0,0,0,0.40) 45%, rgba(0,0,0,0.10) 100%);
}

.app-card:hover .overlay {
  background: linear-gradient(to top, rgba(20,2,6,0.90) 0%, rgba(198,16,46,0.30) 55%, rgba(0,0,0,0.05) 100%);
}

.hide-scrollbar::-webkit-scrollbar { display: none; }
.hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.animate-marquee {
  animation: marquee 28s linear infinite;
}
.animate-marquee:hover {
  animation-play-state: paused;
}

@keyframes scanning {
  0% { transform: translateY(-100%); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(1000%); opacity: 0; }
}
.animate-scanning {
  animation: scanning 8s linear infinite;
}

@keyframes data-pulse-glow {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}
.animate-data-pulse {
  animation: data-pulse-glow 3s ease-in-out infinite;
}

/* ── Typography System ─────────────────────────────────────── */
/* Revised for Premium Industrial Aesthetic */

.h-page {               /* Page hero h1 - High Impact */
  font-size: clamp(2.25rem, 7vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 0.9;
  text-transform: uppercase;
  color: #ffffff;
  font-family: var(--font-inter);
}

.h-section {            /* Section titles - Structured & Bold */
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  text-transform: uppercase;
  color: #0f172a;
  font-family: var(--font-inter);
}

.h-cta {                /* Massive CTA / Statement pieces */
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 0.9;
  text-transform: uppercase;
  color: #0f172a;
}

.h-card {               /* Card titles - Technical & Clear */
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  line-height: 1.1;
  color: #0f172a;
}

.h-subheading {         /* Sub-headers/Labels - Small & Punchy */
  font-size: 0.875rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #0f172a;
  line-height: 1.2;
}

.eyebrow {              /* Overline labels - Spaced Technical Labels */
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--primary);
}

.p-body {               /* Regular paragraph text - Highly readable */
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.7;
  color: #64748b;
}
@media (min-width: 1024px) { .p-body { font-size: 1.0625rem; } }

.font-technical {       /* Technical / Data font accent */
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* ── Section Rhythm ────────────────────────────────────────── */

.section-py {
  padding-top: 5rem;    /* 80px */
  padding-bottom: 5rem;
}
@media (min-width: 768px) {
  .section-py {
    padding-top: 8rem;  /* 128px */
    padding-bottom: 8rem;
  }
}

.section-px {
  padding-left: 1rem;   /* 16px */
  padding-right: 1rem;
}
@media (min-width: 768px) {
  .section-px {
    padding-left: 2rem; /* 32px */
    padding-right: 2rem;
  }
}
@media (min-width: 1024px) {
  .section-px {
    padding-left: 3rem; /* 48px */
    padding-right: 3rem;
  }
}

/* ── Refined Utilities ─────────────────────────────────────── */

.blueprint-overlay {
  background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
}

.dark-blueprint-overlay {
  background-image: linear-gradient(rgba(15, 23, 42, 0.03) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(15, 23, 42, 0.03) 1px, transparent 1px);
  background-size: 24px 24px;
}
