/* ==========================================================================
   Unity Technical Prototyping Landing Page
   Aesthetic: Clean, modern, developer-focused, dark mode with neon cyan/purple
   ========================================================================== */

/* Design Tokens */
:root {
  /* Color Palette */
  --bg-darkest: #07090e;
  --bg-darker: #0c0f17;
  --bg-card: #121724;
  --bg-card-hover: #161e30;
  --bg-input: #101420;
  
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  /* Neon Accents */
  --neon-cyan: #00f0ff;
  --neon-cyan-glow: rgba(0, 240, 255, 0.35);
  --neon-cyan-subtle: rgba(0, 240, 255, 0.12);
  
  --neon-purple: #a855f7;
  --neon-purple-glow: rgba(168, 85, 247, 0.4);
  --neon-purple-subtle: rgba(168, 85, 247, 0.12);

  --accent-green: #10b981;
  --accent-red: #ef4444;
  --accent-yellow: #f59e0b;
  
  /* Borders & Lines */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(0, 240, 255, 0.5);
  --border-card: rgba(148, 163, 184, 0.12);
  
  /* Typography */
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  
  /* Spacing */
  --container-max: 1200px;
  --section-pad-y: 100px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* CSS Reset & Global Rules */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-darkest);
  color: var(--text-main);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-darkest);
  color: var(--text-main);
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Background Atmosphere */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
  transition: opacity 0.5s ease;
}

.glow-cyan {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.18) 0%, rgba(0, 240, 255, 0) 70%);
  top: -150px;
  left: 20%;
}

.glow-purple {
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.15) 0%, rgba(168, 85, 247, 0) 70%);
  top: 40%;
  right: -100px;
}

.grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 1;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
  position: relative;
  z-index: 2;
}

.section {
  padding: var(--section-pad-y) 0;
  position: relative;
  z-index: 2;
}

.text-center {
  text-align: center;
}

/* Typography Helpers */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: #ffffff;
}

.section-header {
  max-width: 760px;
  margin: 0 auto 64px auto;
}

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--neon-cyan);
  margin-bottom: 14px;
  display: inline-block;
  padding: 4px 12px;
  background: var(--neon-cyan-subtle);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: 9999px;
}

.section-headline {
  font-size: 2.5rem;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.section-subheadline {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 100;
  background-color: rgba(7, 9, 14, 0.8);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand-logo {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  letter-spacing: -0.02em;
}

.logo-bracket {
  color: var(--neon-purple);
}

.logo-core {
  color: var(--neon-cyan);
  margin: 0 1px;
}

.logo-ext {
  color: var(--text-muted);
  font-size: 0.85em;
}

.header-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  background: rgba(16, 185, 129, 0.08);
  padding: 6px 14px;
  border-radius: 9999px;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-pulse {
  width: 8px;
  height: 8px;
  background-color: var(--accent-green);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-green);
  animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.7; }
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.nav-link:hover {
  color: var(--neon-cyan);
}

/* Button Component Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border-radius: var(--radius-md);
  padding: 14px 28px;
  cursor: pointer;
  transition: all var(--transition-smooth);
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--neon-cyan) 0%, #00b4d8 100%);
  color: #050a12;
  box-shadow: 0 4px 20px rgba(0, 240, 255, 0.25);
  font-weight: 700;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #33f3ff 0%, #00c7ee 100%);
  box-shadow: 0 6px 28px rgba(0, 240, 255, 0.5);
  transform: translateY(-2px);
  color: #000000;
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-outline-nav {
  padding: 8px 18px;
  font-size: 0.875rem;
  color: var(--neon-cyan);
  background: transparent;
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
}

.btn-outline-nav:hover {
  background: var(--neon-cyan-subtle);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 14px var(--neon-cyan-glow);
}

/* ==========================================
   1. HERO SECTION
   ========================================== */
.hero-section {
  padding-top: 80px;
  padding-bottom: 90px;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 50px;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.3);
  padding: 6px 14px;
  border-radius: 9999px;
  width: fit-content;
  margin-bottom: 24px;
}

.badge-icon {
  font-size: 0.9rem;
}

.badge-text {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: #d8b4fe;
  letter-spacing: 0.04em;
}

.hero-headline {
  font-size: 3.25rem;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin-bottom: 24px;
  color: #ffffff;
}

.hero-subheadline {
  font-size: 1.25rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 36px;
  max-width: 580px;
}

.hero-cta-wrapper {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 48px;
}

.btn-glow {
  position: relative;
  overflow: hidden;
  max-width: 280px;
}

.hero-guarantee {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.825rem;
  color: var(--text-dim);
}

.guarantee-check {
  color: var(--accent-green);
  font-weight: 700;
}

.hero-metrics {
  display: flex;
  gap: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--border-subtle);
}

.metric-card {
  display: flex;
  flex-direction: column;
}

.metric-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
}

.metric-unit {
  color: var(--neon-cyan);
  font-size: 1.2rem;
  margin-left: 2px;
}

.metric-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 6px;
  font-weight: 500;
}

/* Hero HUD Window */
.hud-window {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 240, 255, 0.06);
  overflow: hidden;
  position: relative;
}

.hud-header {
  background: rgba(12, 15, 23, 0.95);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
}

.hud-buttons {
  display: flex;
  gap: 6px;
}

.hud-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-red { background-color: #ef4444; }
.dot-yellow { background-color: #f59e0b; }
.dot-green { background-color: #10b981; }

.hud-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.hud-status {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--neon-cyan);
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-indicator {
  width: 6px;
  height: 6px;
  background-color: var(--neon-cyan);
  border-radius: 50%;
}

.hud-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.code-block {
  font-family: var(--font-mono);
  font-size: 0.775rem;
  background: #090c13;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.05);
  line-height: 1.5;
  color: #cbd5e1;
}

.code-line {
  white-space: pre-wrap;
}

.indent-1 { padding-left: 1.25rem; }
.indent-2 { padding-left: 2.5rem; }

.c-keyword { color: #f43f5e; }
.c-class { color: #38bdf8; }
.c-type { color: #c084fc; }
.c-var { color: #e2e8f0; }
.c-func { color: #fbbf24; }
.c-meta { color: #34d399; }

/* Canvas Interactive Simulation */
.hud-canvas-container {
  background: #07090f;
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: var(--radius-sm);
  padding: 12px;
  position: relative;
}

.canvas-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
}

.tag-live {
  color: var(--neon-cyan);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.canvas-coords {
  color: var(--text-dim);
}

#heroCanvas {
  width: 100%;
  height: 140px;
  display: block;
  background: #05070c;
  border-radius: 4px;
  cursor: pointer;
}

.canvas-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
}

.key-hint kbd {
  background: #1e293b;
  color: var(--neon-cyan);
  padding: 2px 6px;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.68rem;
}

.hud-footer {
  padding: 12px 20px;
  background: rgba(12, 15, 23, 0.95);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  gap: 16px;
}

.hud-footer-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--neon-cyan);
}

/* ==========================================
   2. THE PROBLEM / SOLUTION SECTION
   ========================================== */
.problem-solution-section {
  background: linear-gradient(180deg, transparent 0%, rgba(18, 23, 36, 0.4) 50%, transparent 100%);
}

.solution-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.solution-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.solution-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 240, 255, 0.4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 24px rgba(0, 240, 255, 0.1);
}

.solution-card-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple));
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.solution-card:hover .solution-card-glow {
  opacity: 1;
}

.solution-icon-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.solution-icon {
  color: var(--neon-cyan);
}

.solution-step-num {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.18);
}

.solution-title {
  font-size: 1.25rem;
  line-height: 1.35;
  margin-bottom: 16px;
  color: #ffffff;
}

.solution-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 24px;
  flex-grow: 1;
}

.solution-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill-tag {
  font-family: var(--font-mono);
  font-size: 0.725rem;
  background: rgba(255, 255, 255, 0.04);
  color: #cbd5e1;
  padding: 4px 10px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ==========================================
   3. PORTFOLIO / PREVIOUS WORK SECTION
   ========================================== */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.portfolio-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.portfolio-card:hover {
  transform: translateY(-6px);
  border-color: rgba(168, 85, 247, 0.4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 24px rgba(168, 85, 247, 0.12);
}

/* Media Box (Placeholder for GIFs) */
.portfolio-media-box {
  width: 100%;
  height: 220px;
  background: #090c14;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
}

.media-scanline {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 2px,
    rgba(0, 0, 0, 0.25) 3px,
    rgba(0, 0, 0, 0.25) 4px
  );
  pointer-events: none;
  z-index: 2;
}

.media-grid-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(to right, rgba(0, 240, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 240, 255, 0.05) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
  z-index: 1;
}

.media-placeholder-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 16px;
}

.gif-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(0, 240, 255, 0.4);
  padding: 4px 10px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  color: var(--neon-cyan);
  margin-bottom: 12px;
}

.gif-badge-icon {
  font-size: 0.6rem;
  color: var(--neon-cyan);
}

.media-upload-hint {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-dim);
  margin-top: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Diagrams inside the media placeholder */
.media-diagram {
  width: 180px;
  height: 70px;
  position: relative;
}

/* Platformer Diagram */
.diag-player {
  width: 18px;
  height: 24px;
  background: var(--neon-cyan);
  border-radius: 3px;
  position: absolute;
  bottom: 30px;
  left: 30px;
  box-shadow: 0 0 10px var(--neon-cyan-glow);
  animation: playerHop 3s infinite ease-in-out;
}

.diag-raycast {
  position: absolute;
  bottom: -10px;
  left: 8px;
  width: 2px;
  height: 10px;
  background: #f43f5e;
}

.diag-platform {
  position: absolute;
  height: 6px;
  background: #334155;
  border-radius: 2px;
}

.diag-platform.p-1 { width: 50px; bottom: 10px; left: 15px; }
.diag-platform.p-2 { width: 60px; bottom: 28px; left: 75px; background: rgba(0, 240, 255, 0.4); }
.diag-platform.p-3 { width: 40px; bottom: 48px; left: 135px; }

.diag-vector-label {
  position: absolute;
  top: 0;
  right: 0;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--neon-cyan);
}

@keyframes playerHop {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-22px) translateX(25px); }
}

/* Ecosystem Diagram */
.ecosystem-diagram {
  display: flex;
  align-items: center;
  justify-content: space-around;
  width: 200px;
}

.eco-node {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.node-a { background: rgba(16, 185, 129, 0.2); color: #34d399; border-color: #34d399; }
.node-b { background: rgba(56, 189, 248, 0.2); color: #38bdf8; border-color: #38bdf8; }
.node-c { background: rgba(168, 85, 247, 0.2); color: #c084fc; border-color: #c084fc; }

.eco-link {
  height: 2px;
  width: 25px;
  background: dashed rgba(255, 255, 255, 0.2);
}

.link-ab { background: linear-gradient(90deg, #34d399, #38bdf8); }
.link-bc { background: linear-gradient(90deg, #38bdf8, #c084fc); }

/* Combat Diagram */
.combat-diagram {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 160px;
}

.combat-reticle {
  width: 50px;
  height: 50px;
  border: 1px dashed var(--neon-cyan);
  border-radius: 50%;
  position: relative;
  animation: reticleSpin 12s linear infinite;
}

.reticle-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: #f43f5e;
  border-radius: 50%;
}

.enemy-blip {
  position: absolute;
  width: 5px;
  height: 5px;
  background: #f59e0b;
  border-radius: 50%;
}

.blip-1 { top: 8px; left: 34px; }
.blip-2 { bottom: 12px; left: 10px; }
.blip-3 { top: 22px; right: 6px; }

.combat-hud-stat {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: #f43f5e;
  margin-top: 8px;
  letter-spacing: 0.05em;
}

@keyframes reticleSpin {
  100% { transform: rotate(360deg); }
}

/* Portfolio Card Body */
.portfolio-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-meta {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.meta-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.03);
  padding: 2px 8px;
  border-radius: 4px;
}

.meta-tag.highlight-cyan {
  color: var(--neon-cyan);
  background: var(--neon-cyan-subtle);
}

.meta-tag.highlight-purple {
  color: var(--neon-purple);
  background: var(--neon-purple-subtle);
}

.portfolio-card-title {
  font-size: 1.15rem;
  line-height: 1.35;
  margin-bottom: 12px;
  color: #ffffff;
}

.portfolio-card-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 18px;
  flex-grow: 1;
}

.portfolio-spec-list {
  list-style: none;
  border-top: 1px solid var(--border-subtle);
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.portfolio-spec-list li {
  font-size: 0.825rem;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.spec-bullet {
  color: var(--neon-cyan);
  font-size: 0.8rem;
}

/* ==========================================
   4. HOW IT WORKS (THE PROCESS)
   ========================================== */
.process-section {
  background: linear-gradient(180deg, transparent 0%, rgba(12, 15, 23, 0.7) 50%, transparent 100%);
}

.process-timeline {
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 860px;
  margin: 0 auto;
}

.process-step {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 30px;
  position: relative;
}

.step-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.step-number-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: var(--bg-card);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: var(--radius-md);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.1);
  z-index: 2;
}

.step-badge {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: var(--neon-cyan);
  font-weight: 700;
  letter-spacing: 0.05em;
}

.step-num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
}

.step-line {
  position: absolute;
  top: 80px;
  bottom: -28px;
  width: 2px;
  background: linear-gradient(180deg, rgba(0, 240, 255, 0.4), rgba(168, 85, 247, 0.2));
  z-index: 1;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 30px 32px;
  transition: all var(--transition-smooth);
}

.step-card:hover {
  border-color: rgba(0, 240, 255, 0.4);
  transform: translateX(4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.step-title {
  font-size: 1.35rem;
  color: #ffffff;
  margin-bottom: 4px;
}

.step-subtitle {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--neon-cyan);
  margin-bottom: 16px;
}

.step-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 18px;
}

.step-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

.step-checklist li {
  font-size: 0.875rem;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  gap: 10px;
}

.step-checklist li span {
  color: var(--accent-green);
  font-weight: 700;
}

/* ==========================================
   PRICING PACKAGES SECTION
   ========================================== */
.pricing-section {
  background: linear-gradient(180deg, transparent 0%, rgba(18, 23, 36, 0.4) 50%, transparent 100%);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-smooth);
}

.pricing-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 240, 255, 0.4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 24px rgba(0, 240, 255, 0.12);
}

/* Middle card: elevated, always-on neon border + badge to draw the eye */
.pricing-card-featured {
  background: var(--bg-card-hover);
  border: 1px solid rgba(0, 240, 255, 0.4);
  box-shadow: 0 0 0 1px rgba(168, 85, 247, 0.15), 0 20px 45px rgba(0, 0, 0, 0.55), 0 0 30px rgba(0, 240, 255, 0.15);
}

@media (min-width: 769px) {
  .pricing-card-featured {
    transform: translateY(-12px);
  }
}

.pricing-card-featured:hover {
  transform: translateY(-18px);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 0 1px rgba(168, 85, 247, 0.25), 0 24px 50px rgba(0, 0, 0, 0.6), 0 0 36px rgba(0, 240, 255, 0.25);
}

@media (max-width: 768px) {
  .pricing-card-featured:hover {
    transform: translateY(-6px);
  }
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #050a12;
  background: linear-gradient(135deg, var(--neon-cyan) 0%, var(--neon-purple) 100%);
  padding: 6px 16px;
  border-radius: 9999px;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0, 240, 255, 0.35);
}

.pricing-card-header {
  margin-bottom: 28px;
}

.pricing-name {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: #ffffff;
}

.pricing-desc {
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.6;
  min-height: 44px;
}

.pricing-price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.pricing-price-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.pricing-price {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--neon-cyan);
  letter-spacing: -0.02em;
}

.pricing-card-featured .pricing-price {
  color: #ffffff;
  background: linear-gradient(135deg, var(--neon-cyan) 0%, var(--neon-purple) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.price-currency {
  font-size: 1.4rem;
  font-weight: 600;
  margin-right: 1px;
}

.pricing-feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
  flex-grow: 1;
}

.pricing-feature-list li {
  font-size: 0.925rem;
  color: #cbd5e1;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.4;
}

.feature-check {
  color: var(--neon-cyan);
  font-weight: 700;
  flex-shrink: 0;
}

.pricing-card-featured .feature-check {
  color: var(--neon-purple);
}

.btn-pricing-cta {
  width: 100%;
  background: transparent;
  color: var(--neon-cyan);
  border: 1px solid rgba(0, 240, 255, 0.3);
  padding: 14px 24px;
}

.btn-pricing-cta:hover {
  background: var(--neon-cyan-subtle);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 18px var(--neon-cyan-glow);
  transform: translateY(-2px);
  color: var(--neon-cyan);
}

.btn-pricing-cta-featured {
  background: linear-gradient(135deg, var(--neon-cyan) 0%, #00b4d8 100%);
  color: #050a12;
  border: none;
  box-shadow: 0 4px 20px rgba(0, 240, 255, 0.3);
}

.btn-pricing-cta-featured:hover {
  background: linear-gradient(135deg, #33f3ff 0%, #00c7ee 100%);
  box-shadow: 0 6px 26px rgba(0, 240, 255, 0.5);
  color: #000000;
}

.pricing-footnote {
  text-align: center;
  max-width: 640px;
  margin: 48px auto 0 auto;
  font-size: 0.875rem;
  color: var(--text-dim);
  line-height: 1.6;
}

/* ==========================================
   5. LEAD CAPTURE / CONTACT SECTION
   ========================================== */
.contact-section {
  padding-bottom: 120px;
}

.contact-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Crucial Technical Requirement: Empty, Centered HTML Block for CRM Iframe */
.crm-wrapper {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Empty centered container labeled for CRM iframe injection */
.crm-iframe-container {
  width: 100%;
  min-height: 480px;
  background: var(--bg-card);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 240, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
  transition: border-color var(--transition-fast);
}

/* When the user embeds their iframe, make sure it fills the container cleanly */
.crm-iframe-container iframe {
  width: 100%;
  height: 100%;
  min-height: 480px;
  border: none;
  display: block;
}

/* Fallback message inside empty container before user pastes their iframe */
.crm-iframe-container:empty::before {
  content: "PASTE CRM IFRAME HERE\A (Container is centered, responsive, and ready for your CRM embed code)";
  white-space: pre-wrap;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-dim);
  padding: 40px 24px;
  line-height: 1.8;
  border: 2px dashed rgba(0, 240, 255, 0.25);
  border-radius: var(--radius-md);
  margin: 24px;
  width: calc(100% - 48px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.crm-meta-note {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 6px;
}

.note-icon {
  font-size: 1rem;
}

/* ==========================================
   FOOTER
   ========================================== */
.site-footer {
  background: #05070a;
  border-top: 1px solid var(--border-subtle);
  padding: 60px 0 36px 0;
  position: relative;
  z-index: 10;
}

.footer-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.footer-brand {
  max-width: 420px;
}

.footer-logo {
  font-size: 1.35rem;
  margin-bottom: 12px;
  display: inline-block;
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 0.925rem;
}

.footer-links {
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.column-title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--neon-cyan);
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.column-item {
  font-size: 0.875rem;
  color: var(--text-dim);
}

.column-link {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.column-link:hover {
  color: var(--neon-cyan);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.825rem;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 12px;
}

/* ==========================================
   RESPONSIVE DESIGN (MOBILE & TABLET)
   ========================================== */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .hero-content {
    text-align: left;
  }
  
  .solution-grid,
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 768px) {
  :root {
    --section-pad-y: 70px;
  }

  .site-header .header-status {
    display: none;
  }

  .hero-headline {
    font-size: 2.35rem;
  }

  .hero-subheadline {
    font-size: 1.05rem;
  }

  .hero-metrics {
    gap: 20px;
  }

  .metric-value {
    font-size: 1.6rem;
  }

  .section-headline {
    font-size: 2rem;
  }

  .solution-grid,
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .process-step {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .step-header {
    flex-direction: row;
    gap: 14px;
  }

  .step-line {
    display: none;
  }

  .step-number-box {
    width: 60px;
    height: 60px;
  }

  .step-num {
    font-size: 1.4rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .hero-headline {
    font-size: 1.95rem;
  }

  .hero-metrics {
    flex-direction: column;
    gap: 14px;
  }

  .btn {
    width: 100%;
  }

  .crm-iframe-container {
    min-height: 400px;
  }
}
