/* ══════════════════════════════════════════
   PRECISION GRID — Variant B Design System
   Exact match to VariantB mockup
══════════════════════════════════════════ */

/* ── Background canvas ── */
.pg-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.pg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(200,200,200,0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(200,200,200,0.07) 1px, transparent 1px);
  background-size: 60px 60px;
}
.pg-orb-a {
  position: absolute;
  width: 520px; height: 520px;
  border-radius: 50%;
  background: #F7941E;
  filter: blur(90px);
  opacity: 0.18;
  top: -140px; right: -100px;
  animation: pg-drift-a 14s ease-in-out infinite alternate;
}
.pg-orb-b {
  position: absolute;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: #4a90e2;
  filter: blur(90px);
  opacity: 0.10;
  bottom: 10%; left: -80px;
  animation: pg-drift-b 10s ease-in-out infinite alternate-reverse;
}

/* Wireframe globe (CSS icosphere approximation) */
.pg-wireframe {
  position: absolute;
  right: 12%;
  top: 50%;
  transform: translateY(-50%);
  width: 340px; height: 340px;
  display: flex; align-items: center; justify-content: center;
  opacity: 0.12;
  animation: pg-spin 30s linear infinite;
  pointer-events: none;
}
.pg-ico {
  width: 280px; height: 280px;
  border: 1px solid #F7941E;
  border-radius: 50%;
  position: relative;
  box-shadow:
    inset 0 0 0 1px rgba(247,148,30,0.5),
    0 0 0 40px rgba(247,148,30,0.02),
    0 0 0 80px rgba(247,148,30,0.015),
    0 0 0 130px rgba(247,148,30,0.01);
}
.pg-ico::before {
  content: '';
  position: absolute; inset: 20px;
  border: 1px solid rgba(247,148,30,0.4);
  border-radius: 50%;
  transform: rotateX(70deg);
}
.pg-ico::after {
  content: '';
  position: absolute; inset: 20px;
  border: 1px solid rgba(247,148,30,0.4);
  border-radius: 50%;
  transform: rotateY(70deg);
}

@keyframes pg-drift-a {
  from { transform: translateY(0) scale(1); }
  to   { transform: translateY(40px) scale(1.08); }
}
@keyframes pg-drift-b {
  from { transform: translateY(0); }
  to   { transform: translateY(-40px); }
}
@keyframes pg-spin {
  from { transform: translateY(-50%) rotateY(0deg) rotateX(20deg); }
  to   { transform: translateY(-50%) rotateY(360deg) rotateX(20deg); }
}

/* ── Page base ── */
.pg-page {
  font-family: 'Space Grotesk', 'Roboto', sans-serif;
  background: #0d1117;
  color: #c8c8c8;
  min-height: 100vh;
}

/* ══════════════════════════════════════════
   NAV — exact Variant B style
══════════════════════════════════════════ */
.pg-nav {
  display: block !important;
  padding: 0 !important;
  position: sticky !important;
  top: 0;
  z-index: 50;
  background: rgba(13,17,23,0.90);
  border-bottom: 1px solid rgba(200,200,200,0.15);
  backdrop-filter: blur(10px);
}
.pg-nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.pg-nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  flex-shrink: 0;
}
.pg-nav-logo svg { flex-shrink: 0; }
.pg-nav-right {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-left: auto;
}
.pg-nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.pg-nav-links a {
  color: #888;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: color 0.2s;
}
.pg-nav-links a:hover { color: #fff; }

/* Buttons */
.pg-btn-primary {
  display: inline-flex;
  align-items: center;
  background: #F7941E;
  color: #0d1117;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 0.55rem 1.2rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.pg-btn-primary:hover { background: #fff; color: #0d1117; }

.pg-btn-outline {
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 0.55rem 1.2rem;
  text-decoration: none;
  border: 1px solid rgba(200,200,200,0.25);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.pg-btn-outline:hover { border-color: #F7941E; color: #F7941E; }

.pg-btn-lg { padding: 1rem 2rem; font-size: 0.8rem; }

@media (max-width: 768px) {
  .pg-nav-links { display: none; }
  .pg-nav-right { gap: 1rem; }
}

/* ══════════════════════════════════════════
   MAIN CONTAINER
══════════════════════════════════════════ */
.pg-main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

/* ══════════════════════════════════════════
   HERO — 2/3 + 1/3 grid layout
══════════════════════════════════════════ */
.pg-hero-section {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  padding: 6rem 0 5rem;
  border-bottom: 1px solid rgba(200,200,200,0.15);
  align-items: center;
}
@media (max-width: 900px) {
  .pg-hero-section {
    grid-template-columns: 1fr;
    padding: 5rem 0 3rem;
  }
  .pg-wireframe { display: none; }
}

.pg-hero-left {
  border-right: 1px solid rgba(200,200,200,0.12);
  padding-right: 3rem;
}
@media (max-width: 900px) {
  .pg-hero-left { border-right: none; padding-right: 0; }
}

.pg-hero-h1 {
  font-family: 'Space Grotesk', 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: clamp(3rem, 8vw, 6.5rem);
  line-height: 0.9;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 2rem;
}
.pg-orange { color: #F7941E; }

.pg-hero-sub {
  color: #888;
  font-size: 1.05rem;
  line-height: 1.75;
  max-width: 520px;
  margin-bottom: 2.5rem;
}
.pg-hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Data panel (right column) */
.pg-data-panel {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  font-family: 'Courier New', monospace;
  font-size: 0.82rem;
  padding-left: 2rem;
}
@media (max-width: 900px) {
  .pg-data-panel { padding-left: 0; }
}
.pg-data-block {
  border: 1px solid rgba(200,200,200,0.15);
  padding: 1rem 1.2rem;
  background: rgba(13,17,23,0.50);
}
.pg-data-label {
  color: #999;
  margin-bottom: 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 1px;
}
.pg-data-value { color: #fff; }
.pg-data-online {
  color: #F7941E;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.pg-pulse {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #F7941E;
  flex-shrink: 0;
  animation: pg-pulse-anim 1.6s ease-in-out infinite;
}
@keyframes pg-pulse-anim {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ══════════════════════════════════════════
   SECTION HEADER
══════════════════════════════════════════ */
.pg-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 1px solid rgba(200,200,200,0.15);
  padding-bottom: 0.6rem;
  margin-bottom: 0;
  margin-top: 3rem;
}
.pg-section-title {
  font-family: 'Space Grotesk', 'Montserrat', sans-serif;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: #fff;
}
.pg-section-coord {
  font-family: 'Courier New', monospace;
  font-size: 0.65rem;
  color: #555;
  letter-spacing: 1px;
}

/* ══════════════════════════════════════════
   SERVICES — seamless border grid
══════════════════════════════════════════ */
#services {
  padding: 0 0 3rem;
}
.pg-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-left: 1px solid rgba(200,200,200,0.15);
  border-top: 1px solid rgba(200,200,200,0.15);
  margin-top: 0;
}
@media (max-width: 768px) {
  .pg-services-grid { grid-template-columns: 1fr; }
}
.pg-service-card {
  border-right: 1px solid rgba(200,200,200,0.15);
  border-bottom: 1px solid rgba(200,200,200,0.15);
  padding: 2rem;
  transition: background 0.2s;
  cursor: default;
}
.pg-service-card:hover { background: rgba(255,255,255,0.04); }
.pg-service-card:hover .pg-card-title { color: #F7941E; }

.pg-card-num {
  font-family: 'Courier New', monospace;
  font-size: 0.68rem;
  color: #555;
  margin-bottom: 2rem;
}
.pg-card-title {
  font-family: 'Space Grotesk', 'Montserrat', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
  transition: color 0.2s;
}
.pg-card-body {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.8;
}

/* ══════════════════════════════════════════
   STATS — single border container
══════════════════════════════════════════ */
#stats {
  padding: 0 0 3rem;
}
.pg-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid rgba(200,200,200,0.15);
}
@media (max-width: 768px) {
  .pg-stats-grid { grid-template-columns: repeat(2, 1fr); }
}
.pg-stat {
  padding: 1.5rem 2rem;
  text-align: center;
  border-right: 1px solid rgba(200,200,200,0.15);
}
.pg-stat:last-child { border-right: 0; }
.pg-stat-highlight {
  background: rgba(247,148,30,0.10);
}
.pg-stat-label {
  font-family: 'Courier New', monospace;
  font-size: 0.65rem;
  color: #555;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}
.pg-stat-highlight .pg-stat-label { color: #F7941E; }
.pg-stat-num {
  font-family: 'Space Grotesk', 'Montserrat', sans-serif;
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 700;
  color: #fff;
  line-height: 1;
}
.pg-stat-highlight .pg-stat-num { color: #F7941E; }
@media (max-width: 768px) {
  .pg-stat { padding: 1.5rem 1rem; }
  .pg-stat:nth-child(2) { border-right: 0; }
}

/* ══════════════════════════════════════════
   MANIFESTO — centered, no columns
══════════════════════════════════════════ */
.pg-manifesto-section {
  padding: 6rem 0;
  border-top: 1px solid rgba(200,200,200,0.15);
  margin-top: 3rem;
}
.pg-manifesto-inner {
  max-width: 56rem;
  margin: 0 auto;
  text-align: center;
}
.pg-manifesto-eyebrow {
  font-family: 'Courier New', monospace;
  font-size: 0.68rem;
  color: #555;
  letter-spacing: 2px;
  margin-bottom: 2rem;
}
.pg-manifesto-quote {
  font-family: 'Space Grotesk', 'Montserrat', sans-serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 2rem;
}
.pg-manifesto-body {
  color: #666;
  font-family: 'Courier New', monospace;
  font-size: 0.88rem;
  line-height: 1.8;
  max-width: 40rem;
  margin: 0 auto;
}

/* ══════════════════════════════════════════
   FOOTER — minimal single-row Variant B
══════════════════════════════════════════ */
.pg-footer-minimal {
  border-top: 1px solid rgba(200,200,200,0.15);
  background: #0d1117;
  position: relative;
  z-index: 1;
  margin-top: auto;
}
.pg-footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 3rem 2rem;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.pg-footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
}
.pg-footer-copy {
  font-family: 'Courier New', monospace;
  font-size: 0.75rem;
  color: #555;
  letter-spacing: 0.5px;
}
.pg-footer-social {
  display: flex;
  gap: 1.5rem;
}
.pg-footer-social a {
  font-family: 'Courier New', monospace;
  font-size: 0.72rem;
  color: #555;
  text-decoration: none;
  letter-spacing: 1px;
  transition: color 0.2s;
}
.pg-footer-social a:hover { color: #F7941E; }

/* ══════════════════════════════════════════
   GLOBAL SITE-WIDE Precision Grid overrides
   Applies to all pages with class="pg-page"
══════════════════════════════════════════ */

/* Hide theme toggles — always dark */
.pg-page .theme-toggle,
.pg-page .dash-theme-toggle { display: none !important; }

/* ── Global nav (non-index pages that still use the old nav structure) ── */
.pg-page nav {
  background: rgba(13,17,23,0.92) !important;
  border-bottom: 1px solid rgba(200,200,200,0.12) !important;
  backdrop-filter: blur(16px);
}
.pg-page nav .nav-links a { color: #c8c8c8; }
.pg-page nav .nav-links a:hover { color: #ffffff; }

/* ── Contact page ── */
.pg-page #contact-page {
  padding-top: 80px;
  min-height: 100vh;
  position: relative;
}
.pg-page .contact-info h2 { color: #fff; }
.pg-page .contact-detail-icon {
  background: rgba(247,148,30,0.06);
  border: 1px solid rgba(247,148,30,0.18);
  color: #F7941E;
}

/* ── Services page ── */
.pg-page .services-hero-section { position: relative; z-index: 1; }
.pg-page #product-lab,
.pg-page #client-studio,
.pg-page #creative-engineering { position: relative; z-index: 1; }

/* Case cards */
.pg-page .case-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(200,200,200,0.10);
}
.pg-page .case-card:hover {
  border-color: rgba(247,148,30,0.3);
  background: rgba(255,255,255,0.03);
}

/* Tech tags */
.pg-page .tech-tag {
  background: rgba(247,148,30,0.06);
  border: 1px solid rgba(247,148,30,0.18);
  color: #F7941E;
  font-family: 'Courier New', monospace;
  font-size: 0.65rem;
  letter-spacing: 1px;
}

/* ── Auth pages ── */
.pg-page .auth-page { background: #0d1117; }
.pg-page .glass-panel {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(200,200,200,0.12);
}
.pg-page .form-group input,
.pg-page .form-group textarea,
.pg-page .form-group select {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(200,200,200,0.15);
  color: #fff;
  font-family: 'Space Grotesk', 'Roboto', sans-serif;
}
.pg-page .form-group input::placeholder,
.pg-page .form-group textarea::placeholder { color: rgba(200,200,200,0.3); }
.pg-page .form-group input:focus,
.pg-page .form-group textarea:focus,
.pg-page .form-group select:focus { border-color: #F7941E; }

/* ── Dashboard ── */
.pg-page .dashboard-layout {
  position: relative;
  z-index: 1;
  background: transparent;
}
.pg-page .sidebar {
  background: rgba(10,16,32,0.98);
  border-right: 1px solid rgba(200,200,200,0.08);
}
.pg-page .sidebar-logo { border-bottom: 1px solid rgba(200,200,200,0.08); }
.pg-page .sidebar-nav a {
  font-family: 'Courier New', monospace;
  letter-spacing: 1px;
}
.pg-page .sidebar-nav a:hover,
.pg-page .sidebar-nav a.active {
  color: #fff;
  border-left-color: #F7941E;
  background: rgba(247,148,30,0.05);
}
.pg-page .sidebar-footer { border-top: 1px solid rgba(200,200,200,0.08); }
.pg-page .main-content {
  background-image:
    linear-gradient(to right, rgba(200,200,200,0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(200,200,200,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  background-color: transparent;
}
.pg-page .stat-card {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(200,200,200,0.10);
}
.pg-page .table-wrap {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(200,200,200,0.10);
}
.pg-page .chart-wrap {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(200,200,200,0.10);
}
.pg-page .modal {
  background: #0d1117;
  border: 1px solid rgba(200,200,200,0.12);
}
.pg-page .drop-zone {
  border-color: rgba(200,200,200,0.18);
  background: rgba(255,255,255,0.02);
}
.pg-page .drop-zone:hover,
.pg-page .drop-zone.drag-over {
  border-color: #F7941E;
  background: rgba(247,148,30,0.04);
}
.pg-page th {
  font-family: 'Courier New', monospace;
  color: rgba(200,200,200,0.5);
  border-bottom: 1px solid rgba(200,200,200,0.10);
}
.pg-page td { border-top: 1px solid rgba(200,200,200,0.06); }
.pg-page .page-title {
  font-family: 'Montserrat', sans-serif;
  letter-spacing: -0.02em;
}
.pg-page .tab-btn { font-family: 'Courier New', monospace; }
