/* ═══════════════════════════════════════════════════
   CARRILLO TECH SOLUTIONS — MASTER STYLESHEET
   Deep Space Cyberpunk Command Center Aesthetic
   ═══════════════════════════════════════════════════ */

/* ── CSS Variables ── */
:root {
  --bg:          #0B0C10;
  --bg-2:        #0f1117;
  --bg-3:        #131720;
  --bg-glass:    rgba(15, 17, 23, 0.75);
  --purple:      #9B5DE5;
  --purple-dim:  rgba(155, 93, 229, 0.15);
  --purple-glow: rgba(155, 93, 229, 0.4);
  --cyan:        #00F5D4;
  --cyan-dim:    rgba(0, 245, 212, 0.1);
  --cyan-glow:   rgba(0, 245, 212, 0.35);
  --text:        #e2e8f0;
  --text-muted:  #8a9ab5;
  --text-dim:    #4a5568;
  --border:      rgba(155, 93, 229, 0.2);
  --border-cyan: rgba(0, 245, 212, 0.2);
  --font-head:   'Orbitron', sans-serif;
  --font-sub:    'Rajdhani', sans-serif;
  --font-mono:   'Share Tech Mono', monospace;
  --r-sm:        6px;
  --r-md:        12px;
  --r-lg:        20px;
  --shadow-purple: 0 0 30px rgba(155, 93, 229, 0.25);
  --shadow-cyan:   0 0 30px rgba(0, 245, 212, 0.2);
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sub);
  font-size: 1rem;
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
}

/* ── Background Canvas ── */
#bgCanvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.45;
}

/* ── Scanlines ── */
.scanlines {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.08) 2px,
    rgba(0, 0, 0, 0.08) 4px
  );
}

/* ── Typography ── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  line-height: 1.15;
  letter-spacing: 0.03em;
}
h1 { font-size: clamp(2rem, 5vw, 3.75rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.75rem); font-weight: 700; }
h3 { font-size: clamp(1rem, 2vw, 1.3rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }

p { font-family: var(--font-sub); font-size: 1.05rem; font-weight: 400; color: var(--text-muted); }
strong { color: var(--cyan); font-weight: 600; }
a { color: inherit; text-decoration: none; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--purple); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--cyan); }

/* ══════════════════════════════════════
   NAVIGATION
══════════════════════════════════════ */
.nav-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0.75rem 0;
  background: rgba(11, 12, 16, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}
.nav-header.scrolled {
  padding: 0.5rem 0;
  background: rgba(11, 12, 16, 0.97);
  border-bottom-color: var(--purple-glow);
  box-shadow: 0 4px 40px rgba(155, 93, 229, 0.15);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  text-decoration: none;
}
.logo-img { height: 44px; width: auto; }
.logo-fallback {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.logo-icon {
  font-size: 1.8rem;
  color: var(--purple);
  filter: drop-shadow(0 0 8px var(--purple));
}
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-cts {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--cyan);
  letter-spacing: 0.1em;
  text-shadow: 0 0 10px var(--cyan-glow);
}
.logo-sub {
  font-family: var(--font-sub);
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin-left: auto;
}
.nav-link {
  padding: 0.5rem 0.85rem;
  font-family: var(--font-sub);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-radius: var(--r-sm);
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover { color: var(--cyan); background: var(--cyan-dim); }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.1rem;
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--purple);
  border-radius: var(--r-sm);
  border: 1px solid var(--purple);
  transition: all 0.25s ease;
  box-shadow: 0 0 20px var(--purple-glow);
}
.nav-cta:hover {
  background: var(--cyan);
  border-color: var(--cyan);
  box-shadow: 0 0 25px var(--cyan-glow);
  color: var(--bg);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  cursor: pointer;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--cyan);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ══════════════════════════════════════
   HERO
══════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  padding: 8rem 2rem 4rem;
  max-width: 1280px;
  margin: 0 auto;
  z-index: 2;
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(155, 93, 229, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(155, 93, 229, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 1rem;
  background: var(--purple-dim);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--cyan);
  margin-bottom: 1.5rem;
  animation: fadeSlideUp 0.8s ease both;
}
.badge-dot {
  width: 7px; height: 7px;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--cyan);
  animation: pulse 2s ease infinite;
}

.hero-headline {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--text);
  animation: fadeSlideUp 0.9s 0.1s ease both;
}
.headline-accent {
  color: var(--purple);
  text-shadow: 0 0 30px var(--purple-glow);
}

.hero-subheadline {
  margin-top: 1.5rem;
  font-size: 1.05rem;
  max-width: 580px;
  color: var(--text-muted);
  animation: fadeSlideUp 1s 0.2s ease both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.5rem;
  animation: fadeSlideUp 1.1s 0.3s ease both;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 3rem;
  animation: fadeSlideUp 1.2s 0.4s ease both;
}
.stat { display: flex; flex-direction: column; }
.stat-val {
  font-family: var(--font-head);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--cyan);
  text-shadow: 0 0 15px var(--cyan-glow);
  line-height: 1;
}
.stat-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.stat-divider {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, transparent, var(--border), transparent);
}

/* Hero Visual */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeSlideUp 1s 0.2s ease both;
}

.hex-ring {
  position: relative;
  width: 360px;
  height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hex-core {
  position: relative;
  z-index: 3;
  width: 130px; height: 130px;
  background: var(--bg-3);
  border: 2px solid var(--purple);
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 40px var(--purple-glow), inset 0 0 30px rgba(155, 93, 229, 0.1);
  transform: rotate(45deg);
}
.hero-logo-img {
  width: 90px;
  height: 90px;
  object-fit: contain;
  transform: rotate(-45deg);
}
.hero-logo-fallback {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 900;
  color: var(--purple);
  text-shadow: 0 0 20px var(--purple-glow);
  transform: rotate(-45deg);
  display: none;
}

.hex-orbit {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--border);
}
.hex-orbit-1 { animation: spin 20s linear infinite; }
.hex-orbit-2 { inset: -30px; border-color: var(--border-cyan); animation: spin 35s linear infinite reverse; }

.hex-node {
  position: absolute;
  width: 44px; height: 44px;
  background: var(--bg-3);
  border: 1px solid var(--purple);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple);
  font-size: 1rem;
  box-shadow: 0 0 15px var(--purple-glow);
  transform: rotate(-45deg) translate(-50%, -50%);
}

/* Position 3 nodes evenly on orbit-1 */
.hex-orbit-1 .hex-node:nth-child(1) { top: -22px; left: calc(50% - 0px); transform: translateX(-50%) rotate(0deg); }
.hex-orbit-1 .hex-node:nth-child(1) i { transform: rotate(0deg); }
.hex-orbit-1 .hex-node:nth-child(2) { bottom: 15px; left: -22px; transform: rotate(0deg); }
.hex-orbit-1 .hex-node:nth-child(3) { bottom: 15px; right: -22px; transform: rotate(0deg); }

.hex-node-sm {
  width: 12px; height: 12px;
  background: var(--cyan);
  border-color: var(--cyan);
  box-shadow: 0 0 8px var(--cyan-glow);
}

/* Position 6 small nodes evenly */
.hex-orbit-2 .hex-node-sm:nth-child(1)  { top: 0; left: 50%; transform: translate(-50%, -50%); }
.hex-orbit-2 .hex-node-sm:nth-child(2)  { top: 25%; right: 0; transform: translate(50%, -50%); }
.hex-orbit-2 .hex-node-sm:nth-child(3)  { bottom: 25%; right: 0; transform: translate(50%, 50%); }
.hex-orbit-2 .hex-node-sm:nth-child(4)  { bottom: 0; left: 50%; transform: translate(-50%, 50%); }
.hex-orbit-2 .hex-node-sm:nth-child(5)  { bottom: 25%; left: 0; transform: translate(-50%, 50%); }
.hex-orbit-2 .hex-node-sm:nth-child(6)  { top: 25%; left: 0; transform: translate(-50%, -50%); }

.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--text-dim);
}
.scroll-arrow {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--purple), transparent);
  animation: scrollPulse 2s ease infinite;
}

/* ══════════════════════════════════════
   BUTTONS
══════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--r-sm);
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.05), transparent);
  opacity: 0;
  transition: opacity 0.25s;
}
.btn:hover::before { opacity: 1; }

.btn-primary {
  background: var(--purple);
  color: var(--bg);
  border-color: var(--purple);
  box-shadow: 0 0 25px var(--purple-glow);
}
.btn-primary:hover {
  background: #b070ff;
  box-shadow: 0 0 40px rgba(155, 93, 229, 0.6);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--cyan);
  border-color: var(--cyan);
  box-shadow: 0 0 15px var(--cyan-dim);
}
.btn-outline:hover {
  background: var(--cyan-dim);
  box-shadow: 0 0 30px var(--cyan-glow);
  transform: translateY(-2px);
}

/* ══════════════════════════════════════
   SECTION SHARED STYLES
══════════════════════════════════════ */
section { position: relative; z-index: 2; }

.section-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 6rem 2rem;
}

.section-header { text-align: center; margin-bottom: 3.5rem; }

.section-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  color: var(--cyan);
  margin-bottom: 1rem;
}
.eyebrow-line {
  display: block;
  width: 40px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan));
}
.eyebrow-line:last-child {
  background: linear-gradient(270deg, transparent, var(--cyan));
}

.section-title {
  color: var(--text);
  margin-bottom: 1rem;
}
.title-accent {
  color: var(--purple);
  text-shadow: 0 0 25px var(--purple-glow);
}
.section-desc { max-width: 560px; margin: 0 auto; color: var(--text-muted); }

/* ══════════════════════════════════════
   SERVICES
══════════════════════════════════════ */
.services { background: var(--bg-2); }
.services::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--purple), transparent);
}

.services-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}
.services-grid > .service-card {
  width: calc(33.333% - 1rem);
}

.service-card {
  position: relative;
  padding: 2rem;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: all 0.35s ease;
  overflow: hidden;
  cursor: default;
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--purple-dim), transparent 60%);
  opacity: 0;
  transition: opacity 0.35s;
}
.service-card:hover {
  border-color: var(--purple);
  transform: translateY(-4px);
  box-shadow: var(--shadow-purple);
}
.service-card:hover::before { opacity: 1; }

.service-card.featured {
  border-color: var(--purple);
  background: linear-gradient(135deg, rgba(155,93,229,0.1), var(--bg-glass));
  box-shadow: var(--shadow-purple);
}

.card-glow {
  position: absolute;
  top: 0; right: 0;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--purple-glow), transparent 70%);
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}
.service-card:hover .card-glow { opacity: 1; }

.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}
.card-icon-wrap {
  width: 48px; height: 48px;
  background: var(--purple-dim);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--purple);
  transition: all 0.3s;
}
.service-card:hover .card-icon-wrap {
  background: var(--purple);
  color: var(--bg);
  box-shadow: 0 0 20px var(--purple-glow);
}
.card-number {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
}

.service-card h3 {
  margin-bottom: 0.75rem;
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.3;
}
.service-card p {
  font-size: 0.9rem;
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
}
.card-tags span {
  padding: 0.2rem 0.65rem;
  background: var(--cyan-dim);
  border: 1px solid var(--border-cyan);
  border-radius: 100px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--cyan);
  text-transform: uppercase;
}

/* ══════════════════════════════════════
   THE ARCHITECT
══════════════════════════════════════ */
.architect {
  position: relative;
  background: var(--bg);
}
.architect::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 60% at 80% 50%, rgba(155,93,229,0.06), transparent);
  pointer-events: none;
}

.architect-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.architect-bio {
  margin: 1.5rem 0 2rem;
}
.architect-bio p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.architect-profile-card {
  padding: 1.5rem;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  backdrop-filter: blur(12px);
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}
.profile-avatar { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.avatar-hex {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, var(--purple), #6a3bad);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.2rem;
  color: white;
  box-shadow: 0 0 20px var(--purple-glow);
  transform: rotate(0deg);
}
.profile-status {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  color: var(--cyan);
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.status-dot {
  width: 6px; height: 6px;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--cyan);
  animation: pulse 2s ease infinite;
}
.profile-meta { flex: 1; }
.meta-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.meta-row:last-child { border-bottom: none; }
.meta-row i { color: var(--purple); font-size: 0.75rem; width: 16px; text-align: center; }

/* Credential Panel */
.cred-panel {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  backdrop-filter: blur(12px);
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.cred-panel-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: var(--purple-dim);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-head);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--purple);
}
.cred-panel-header i { color: var(--cyan); }
.cred-count {
  margin-left: auto;
  padding: 0.2rem 0.65rem;
  background: var(--cyan-dim);
  border: 1px solid var(--border-cyan);
  border-radius: 100px;
  font-size: 0.6rem;
  color: var(--cyan);
}

.credentials-list { padding: 0.5rem 0; }
.cred-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 0.2s;
}
.cred-item:last-child { border-bottom: none; }
.cred-item:hover { background: rgba(255,255,255,0.03); }

.cred-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.cred-icon.google { background: rgba(66,133,244,0.15); color: #4285F4; border: 1px solid rgba(66,133,244,0.3); }
.cred-icon.ai { background: rgba(155,93,229,0.15); color: var(--purple); border: 1px solid var(--border); }
.cred-icon.excel { background: rgba(33,115,70,0.15); color: #22c55e; border: 1px solid rgba(33,115,70,0.3); }
.cred-icon.linkedin { background: rgba(10,102,194,0.15); color: #0A66C2; border: 1px solid rgba(10,102,194,0.3); }

.cred-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.cred-name { font-size: 0.85rem; font-weight: 600; color: var(--text); line-height: 1.3; }
.cred-issuer { font-family: var(--font-mono); font-size: 0.65rem; color: var(--text-dim); }
.cred-date { font-size: 0.7rem; color: var(--cyan); }

.cred-verify {
  color: var(--text-dim);
  font-size: 0.7rem;
  padding: 0.3rem;
  border-radius: 4px;
  transition: color 0.2s;
}
.cred-verify:hover { color: var(--cyan); }

/* Creator Panel */
.creator-panel {
  padding: 1.5rem;
  background: var(--bg-glass);
  border: 1px solid var(--border-cyan);
  border-radius: var(--r-md);
  backdrop-filter: blur(12px);
}
.creator-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-head);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--cyan);
  margin-bottom: 1rem;
}
.creator-header i { font-size: 1rem; }
.creator-panel p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}
.creator-platforms { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  border-radius: var(--r-sm);
  font-family: var(--font-sub);
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid;
  transition: all 0.25s;
}
.platform-badge.twitch { color: #9B5DE5; border-color: var(--border); background: var(--purple-dim); }
.platform-badge.twitch:hover { background: var(--purple); color: white; box-shadow: 0 0 15px var(--purple-glow); }
.platform-badge.youtube { color: #ff4444; border-color: rgba(255,68,68,0.25); background: rgba(255,68,68,0.08); }
.platform-badge.youtube:hover { background: #ff4444; color: white; box-shadow: 0 0 15px rgba(255,68,68,0.4); }

/* ══════════════════════════════════════
   PORTFOLIO
══════════════════════════════════════ */
.portfolio { background: var(--bg-2); }
.portfolio::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.portfolio-card {
  padding: 1.75rem;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  backdrop-filter: blur(12px);
  transition: all 0.3s ease;
}
.portfolio-card:hover {
  border-color: var(--cyan);
  transform: translateY(-4px);
  box-shadow: var(--shadow-cyan);
}

.portfolio-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.portfolio-tag {
  padding: 0.2rem 0.65rem;
  background: var(--purple-dim);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--purple);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.portfolio-status {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.portfolio-status.active { color: var(--cyan); }
.portfolio-status.complete { color: #22c55e; }

.portfolio-card h4 {
  color: var(--text);
  margin-bottom: 0.6rem;
  font-size: 1rem;
  line-height: 1.3;
}
.portfolio-card p { font-size: 0.85rem; line-height: 1.65; margin-bottom: 1.25rem; }

.portfolio-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.portfolio-tech span {
  padding: 0.15rem 0.55rem;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.65rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.portfolio-card.cms-placeholder {
  border-style: dashed;
  display: flex;
  align-items: center;
  justify-content: center;
}
.placeholder-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.9rem;
}
.placeholder-inner i { font-size: 1.5rem; color: var(--border); }
.placeholder-link {
  font-size: 0.75rem;
  color: var(--cyan);
  text-decoration: underline;
  transition: color 0.2s;
}
.placeholder-link:hover { color: var(--purple); }

/* ══════════════════════════════════════
   INTEL HUB
══════════════════════════════════════ */
.intel-hub { background: var(--bg); }

.blog-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 1.5rem;
}

.blog-card {
  padding: 1.75rem;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  backdrop-filter: blur(12px);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  border-color: var(--purple);
  box-shadow: var(--shadow-purple);
  transform: translateY(-3px);
}
.blog-card.featured-blog {
  border-color: var(--purple);
  background: linear-gradient(135deg, rgba(155,93,229,0.08), var(--bg-glass));
}

.blog-tag {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  background: var(--purple-dim);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--purple);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  width: fit-content;
}

.blog-card h4 {
  color: var(--text);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}
.blog-card p { font-size: 0.88rem; line-height: 1.65; flex: 1; margin-bottom: 1.5rem; }
.blog-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
  margin-top: auto;
}
.blog-read {
  color: var(--cyan);
  font-size: 0.75rem;
  font-weight: 600;
  transition: gap 0.2s, color 0.2s;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.blog-read:hover { color: var(--purple); }

/* ══════════════════════════════════════
   CONTACT
══════════════════════════════════════ */
.contact { background: var(--bg-2); }
.contact::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--purple), transparent);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: start;
}

.contact-desc {
  margin: 1.5rem 0 2rem;
  font-size: 1rem;
  line-height: 1.8;
}

.contact-info-items { display: flex; flex-direction: column; gap: 1rem; }
.contact-info-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  backdrop-filter: blur(8px);
}
.contact-info-item i {
  width: 36px; height: 36px;
  background: var(--purple-dim);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--purple);
  flex-shrink: 0;
}
.contact-info-item div { display: flex; flex-direction: column; gap: 0.1rem; }
.info-label { font-family: var(--font-mono); font-size: 0.6rem; color: var(--text-dim); letter-spacing: 0.1em; text-transform: uppercase; }
.info-val { font-size: 0.9rem; font-weight: 600; color: var(--text); }

/* Ticket Form */
.ticket-form-wrap {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  backdrop-filter: blur(16px);
  overflow: hidden;
}
.form-header {
  padding: 0.85rem 1.5rem;
  background: var(--purple-dim);
  border-bottom: 1px solid var(--border);
}
.form-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--cyan);
}

.ticket-form { padding: 1.75rem; display: flex; flex-direction: column; gap: 1.1rem; }

.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text);
  font-family: var(--font-sub);
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  -webkit-appearance: none;
}
.form-group select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239B5DE5' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--purple);
  box-shadow: 0 0 15px var(--purple-glow);
}
.form-group textarea { resize: vertical; min-height: 100px; }
::placeholder { color: var(--text-dim); }

.btn-submit { width: 100%; justify-content: center; }
.form-message {
  padding: 0.75rem 1rem;
  border-radius: var(--r-sm);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-align: center;
}
.form-message.success { background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.3); color: #22c55e; }
.form-message.error { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3); color: #ef4444; }

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
.footer {
  position: relative;
  z-index: 2;
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.footer-container { max-width: 1280px; margin: 0 auto; padding: 3.5rem 2rem 2rem; }

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

.footer-brand { }
.footer-logo-link { display: inline-block; margin-bottom: 1rem; }
.footer-logo-img { height: 48px; width: auto; }
.footer-logo-fallback {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--purple);
  text-shadow: 0 0 20px var(--purple-glow);
  display: none;
}
.footer-tagline { font-size: 0.85rem; line-height: 1.7; color: var(--text-muted); max-width: 250px; }

.footer-nav-col h5 {
  font-family: var(--font-head);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1.25rem;
}
.footer-nav-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-nav-col a {
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer-nav-col a:hover { color: var(--cyan); }

.footer-social-col h5 {
  font-family: var(--font-head);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1.25rem;
}
.social-links { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.social-node {
  width: 40px; height: 40px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--text-muted);
  transition: all 0.25s;
}
.social-node:hover {
  color: var(--purple);
  border-color: var(--purple);
  box-shadow: 0 0 15px var(--purple-glow);
  transform: translateY(-2px);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-dim);
  letter-spacing: 0.08em;
}
.footer-sig { color: var(--purple); opacity: 0.6; }

/* ══════════════════════════════════════
   ANIMATIONS
══════════════════════════════════════ */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(0.85); }
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50%       { opacity: 1; transform: scaleY(1.1); }
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; padding-top: 7rem; }
  .hero-visual { display: none; }
  .services-grid > .service-card { width: calc(50% - 0.75rem); }
  .architect-layout { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(11,12,16,0.98);
    border-top: 1px solid var(--border);
    padding: 1rem;
  }
  .nav-links.open { display: flex; }
  .nav-link { padding: 0.75rem 1rem; border-radius: var(--r-sm); text-align: center; }
  .nav-cta { justify-content: center; margin-top: 0.5rem; }

  .section-container { padding: 4rem 1.25rem; }
  .services-grid > .service-card { width: 100%; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .btn { justify-content: center; }
  .hero-stats { gap: 1rem; }
  .stat-val { font-size: 1.35rem; }
  .architect-profile-card { flex-direction: column; }
}
/* ══════════════════════════════════════
   DISPATCH MODAL (MARKDOWN RENDERER)
══════════════════════════════════════ */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(11, 12, 16, 0.95);
  backdrop-filter: blur(10px); z-index: 9999; display: none;
  align-items: center; justify-content: center; padding: 2rem;
  opacity: 0; transition: opacity 0.3s ease;
}
.modal-overlay.active { display: flex; opacity: 1; animation: fadeSlideUp 0.4s ease forwards; }
.modal-content {
  background: var(--bg-2); border: 1px solid var(--cyan);
  border-radius: var(--r-md); padding: 2.5rem; width: 100%; max-width: 800px;
  max-height: 85vh; overflow-y: auto; position: relative;
  box-shadow: 0 0 40px var(--cyan-glow);
}
.modal-close {
  position: absolute; top: 1.5rem; right: 1.5rem; background: transparent;
  border: none; color: var(--cyan); font-size: 1.5rem; cursor: pointer;
  transition: all 0.2s;
}
.modal-close:hover { color: var(--purple); transform: scale(1.1); }

/* Markdown Typography Fixes */
.markdown-body h1, .markdown-body h2 { color: var(--cyan); margin-bottom: 1rem; font-family: var(--font-head); margin-top: 1.5rem; }
.markdown-body p { margin-bottom: 1.5rem; line-height: 1.8; color: var(--text); }
.markdown-body blockquote { 
  border-left: 3px solid var(--purple); padding-left: 1rem; margin-bottom: 1.5rem; 
  font-style: italic; color: var(--text-muted); background: var(--purple-dim); padding: 1rem;
}
.markdown-body ul, .markdown-body ol { margin-left: 2rem; margin-bottom: 1.5rem; color: var(--text); line-height: 1.8; }
.markdown-body strong { color: var(--purple); }
