/* ==========================================================================
   FORGE AI — SYSTEM VARIABLES & RESET (BRUTALIST-REFINED)
   ========================================================================== */

:root {
  /* Color Palette */
  --bg: #0D0F12;
  --surface: #13171D;
  --surface-2: #1C212B;
  --text: #F5F7FA;
  --muted: #8E9BAE;
  --primary: #FF5A1F;
  --primary-hover: #E0430B;
  --secondary: #00E5FF;
  --accent: #FFE600;
  --border: #262E3B;
  
  /* Fonts */
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 8rem;
  --max-width: 1280px;
  --section-padding: clamp(4rem, 8vw, 7rem) 0;
  
  /* Structural Accents */
  --shadow-brutal: 4px 4px 0px 0px var(--primary);
  --shadow-brutal-secondary: 4px 4px 0px 0px var(--secondary);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 16px;
  line-height: 1.6;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Scanning Grid Background Pattern */
body::before, .scanning-grid::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(rgba(18, 21, 26, 0.4) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 21, 26, 0.4) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 1;
}

/* Media handling */
img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Typography Scale */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.05;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.15;
}

h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  line-height: 1.25;
  font-weight: 500;
}

p {
  font-size: clamp(0.9rem, 1vw, 1.05rem);
  color: var(--muted);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 180ms ease;
}

/* Base Layout Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-right: auto;
  margin-left: auto;
  padding-right: var(--space-md);
  padding-left: var(--space-md);
  position: relative;
}

/* ==========================================================================
   REUSABLE UTILITIES & COMPONENTS
   ========================================================================== */

.mono-text {
  font-family: var(--font-mono);
}

.uppercase {
  text-transform: uppercase;
}

.font-xs {
  font-size: 0.75rem;
}

.text-primary {
  color: var(--primary) !important;
}

.text-secondary {
  color: var(--secondary) !important;
}

.text-accent {
  color: var(--accent) !important;
}

.text-muted {
  color: var(--muted) !important;
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Button System (Brutalist Solid with +4px Offset Shadow) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 0.85rem 1.75rem;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 2px solid var(--text);
  border-radius: 0;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease;
  position: relative;
}

.btn-primary {
  background-color: var(--primary);
  color: #000;
  border-color: #000;
  box-shadow: var(--shadow-brutal);
}

.btn-primary:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0px 0px var(--primary);
  background-color: var(--primary-hover);
}

.btn-primary:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0px 0px var(--primary);
}

.btn-secondary {
  background-color: var(--secondary);
  color: #000;
  border-color: #000;
  box-shadow: var(--shadow-brutal-secondary);
}

.btn-secondary:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0px 0px var(--secondary);
  background-color: #00bcd4;
}

.btn-outline {
  background-color: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  background-color: var(--surface-2);
  border-color: var(--muted);
  transform: translateY(-1px);
}

.btn-full {
  width: 100%;
}

.btn-arrow {
  display: inline-block;
  transition: transform 180ms ease;
}

.btn:hover .btn-arrow {
  transform: translateX(4px);
}

/* Badges & Micro-elements */
.ticker-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background-color: var(--surface);
  border: 1px solid var(--border);
  padding: 0.5rem 1rem;
  margin-bottom: var(--space-md);
}

.ticker-badge.compact {
  padding: 0.35rem 0.75rem;
  margin-bottom: var(--space-sm);
}

.accent-text {
  color: var(--primary);
  font-weight: 700;
}

.badge-divider {
  color: var(--border);
}

.pulse-indicator {
  width: 8px;
  height: 8px;
  background-color: var(--secondary);
  border-radius: 50%;
  display: inline-block;
  position: relative;
}

.pulse-indicator::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-color: var(--secondary);
  border-radius: 50%;
  animation: pulse 1.8s infinite ease-in-out;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(2.8); opacity: 0; }
}

/* ==========================================================================
   STICKY TRANSLUCENT NAVIGATION
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(13, 15, 18, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: all 300ms ease;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.25rem var(--space-md);
}

.logo-link {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
  color: var(--text);
}

.logo-accent {
  color: var(--primary);
  margin-right: 2px;
}

.logo-highlight {
  color: var(--secondary);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.nav-link {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--muted);
  text-transform: uppercase;
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width 180ms ease;
}

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

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: var(--text);
  font-weight: 500;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.status-badge-container {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: var(--surface);
  border: 1px solid var(--border);
  padding: 0.4rem 0.8rem;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.mobile-menu-toggle .bar {
  width: 100%;
  height: 2px;
  background-color: var(--text);
  transition: transform 250ms ease, opacity 250ms ease;
}

/* ==========================================================================
   HERO SECTIONS
   ========================================================================== */

.hero-section {
  position: relative;
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  padding: var(--section-padding);
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.absolute-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(13, 15, 18, 0.4) 0%, rgba(13, 15, 18, 0.95) 100%);
}

.hero-content {
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 900px;
}

.hero-subtitle {
  margin-top: var(--space-sm);
  margin-bottom: var(--space-lg);
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  max-width: 760px;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
}

/* Generic Inner Page Hero style */
.page-hero {
  position: relative;
  padding: clamp(5rem, 10vw, 8rem) 0;
  border-bottom: 1px solid var(--border);
  background-color: var(--surface);
  text-align: center;
}

.page-hero .hero-content {
  align-items: center;
  margin: 0 auto;
}

.relative-z {
  position: relative;
  z-index: 2;
}

/* ==========================================================================
   TRANSFORMATION SLIDER SECTION & WINDOW CONSTRUCTS
   ========================================================================== */

.transformation-box {
  width: 100%;
  margin-top: var(--space-lg);
  background-color: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.box-header {
  background-color: var(--surface-2);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.window-controls {
  display: flex;
  gap: 6px;
}

.control-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.control-dot.close { background-color: #ff5f56; }
.control-dot.shrink { background-color: #ffbd2e; }
.control-dot.expand { background-color: #27c93f; }

.window-title {
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.window-status {
  font-size: 0.75rem;
  font-weight: 700;
}

/* Side-by-Side Slider Box */
.slider-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  background-color: #000;
}

.slider-side {
  position: relative;
  overflow: hidden;
}

.slider-side::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(0deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 40%);
}

.slider-img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.slider-badge {
  position: absolute;
  bottom: var(--space-sm);
  left: var(--space-sm);
  z-index: 5;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 8px;
  border: 1px solid transparent;
}

.label-before {
  background-color: rgba(0, 0, 0, 0.85);
  color: var(--muted);
  border-color: var(--border);
}

.label-after {
  background-color: var(--primary);
  color: #000;
  border-color: var(--accent);
}

/* ==========================================================================
   INTERACTIVE WORKFLOW & TIMELINE (24 HOUR DESIGNS)
   ========================================================================== */

.workflow-section {
  padding: var(--section-padding);
  border-bottom: 1px solid var(--border);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-lg);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  margin-top: var(--space-xs);
  margin-bottom: var(--space-sm);
}

.section-desc {
  color: var(--muted);
}

.timeline-pipeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-lg);
  position: relative;
}

/* Connecting physical pipeline path line */
.timeline-pipeline::before {
  content: "";
  position: absolute;
  top: 40px;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--border);
  z-index: 1;
}

.timeline-node {
  background-color: var(--surface);
  border: 1px solid var(--border);
  padding: var(--space-md);
  position: relative;
  z-index: 2;
  transition: transform 180ms ease, border-color 180ms ease;
}

.timeline-node:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
}

.node-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-md);
}

.node-hour {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  background-color: var(--surface-2);
  border: 1px solid var(--border);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.node-status {
  background-color: rgba(255, 90, 31, 0.1);
  color: var(--primary);
  padding: 2px 8px;
  font-size: 0.65rem;
  font-weight: 700;
  border: 1px solid var(--primary);
}

.node-title {
  margin-bottom: var(--space-sm);
  font-size: 1.15rem;
}

.node-desc {
  font-size: 0.85rem;
  color: var(--muted);
}

/* ==========================================================================
   INDUSTRIES MARQUEE & LIVE TICKER SECTIONS
   ========================================================================== */

.marquee-section {
  background-color: var(--surface);
  overflow: hidden;
  white-space: nowrap;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.marquee-wrapper {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.marquee-title {
  font-weight: 700;
  color: var(--accent);
  padding-left: var(--space-md);
}

.marquee-content {
  display: inline-flex;
  gap: var(--space-lg);
  animation: marquee 25s linear infinite;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--text);
}

@keyframes marquee {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}

/* ==========================================================================
   SERVICES GRID & PERFORMANCE COMPARISON CAPABILITIES
   ========================================================================== */

.services-grid-section {
  padding: var(--section-padding);
  border-bottom: 1px solid var(--border);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.feature-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  padding: var(--space-md);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 320px;
  transition: all 180ms ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--secondary);
}

.card-tick-top {
  position: absolute;
  top: -1px;
  left: 20px;
  width: 15px;
  height: 2px;
  background-color: var(--accent);
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-md);
  font-size: 0.75rem;
}

.feature-card-title {
  font-size: 1.3rem;
  margin-bottom: var(--space-sm);
  color: var(--text);
}

.feature-card-desc {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: var(--space-md);
  flex-grow: 1;
}

.feature-card-footer {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-top: auto;
}

.tech-badge {
  background-color: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.7rem;
  padding: 3px 8px;
}

/* ==========================================================================
   PRICING MATRIX & STRIPE PROTOCOLS
   ========================================================================== */

.pricing-section {
  padding: var(--section-padding);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  align-items: flex-start;
}

.pricing-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  padding: var(--space-lg) var(--space-md);
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Bestseller high-velocity highlighted card */
.pricing-card.featured {
  border-color: var(--secondary);
  background-color: var(--surface-2);
  box-shadow: 0 10px 30px rgba(0, 229, 255, 0.05);
  transform: scale(1.02);
  z-index: 5;
}

.featured-ribbon {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: var(--secondary);
  color: #000;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.badge-mono {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--primary);
  margin-bottom: var(--space-sm);
}

.tier-title {
  font-size: 1.75rem;
  margin-bottom: var(--space-xs);
}

.tier-desc {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: var(--space-md);
}

.price-container {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: var(--space-md);
}

.currency {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
}

.amount {
  font-size: 3.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1;
}

.frequency {
  color: var(--muted);
  font-size: 0.85rem;
}

.divider {
  height: 1px;
  background-color: var(--border);
  margin-bottom: var(--space-md);
}

.tier-features {
  list-style: none;
  font-size: 0.85rem;
  color: var(--text);
  margin-bottom: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tier-features li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-decor {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.05);
  text-align: center;
  margin-top: var(--space-md);
}

/* ==========================================================================
   TESTIMONIALS SECTION
   ========================================================================== */

.testimonials-section {
  padding: var(--section-padding);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.testimonial-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  padding: var(--space-md);
  position: relative;
}

.quote-icon {
  font-size: 2.5rem;
  color: var(--primary);
  line-height: 1;
  position: absolute;
  top: var(--space-sm);
  right: var(--space-md);
  opacity: 0.2;
}

.testimonial-text {
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: var(--space-md);
  position: relative;
  z-index: 2;
}

.client-meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.client-avatar {
  width: 48px;
  height: 48px;
  border-radius: 0;
  border: 1px solid var(--border);
  object-fit: cover;
}

.client-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
}

.client-title {
  font-size: 0.75rem;
  color: var(--muted);
}

/* ==========================================================================
   CONTACT WORKSHOP BRIEF FORM & INTERACTIVE BUILDER
   ========================================================================== */

.contact-section {
  padding: var(--section-padding);
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: flex-start;
}

.brief-container {
  background-color: var(--surface);
  border: 1px solid var(--border);
}

.form-body {
  padding: var(--space-md);
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  color: var(--text);
}

/* Industrial-style form input controls */
.form-input, .form-textarea, .form-select {
  width: 100%;
  background-color: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.8rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  transition: all 180ms ease;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--primary);
  background-color: var(--bg);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

/* Checkbox alignment groups */
.checkbox-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 8px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.85rem !important;
  color: var(--muted) !important;
}

.checkbox-label input[type="checkbox"] {
  accent-color: var(--primary);
  width: 16px;
  height: 16px;
  border: 1px solid var(--border);
}

/* Terminal logs and compiler elements */
.terminal-card {
  background-color: #05070a;
  border: 1px solid var(--border);
  min-height: 400px;
  display: flex;
  flex-direction: column;
}

.terminal-body {
  padding: var(--space-md);
  flex-grow: 1;
  font-size: 0.8rem;
  line-height: 1.5;
  color: #39ff14; /* Neon green fallback for classic terminal vibe */
}

.terminal-line {
  margin-bottom: 8px;
}

/* ==========================================================================
   SYSTEM FOOTER
   ========================================================================== */

.site-footer {
  background-color: var(--surface);
  border-top: 1px solid var(--border);
  padding: var(--space-lg) 0 var(--space-md);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-desc {
  max-width: 320px;
  font-size: 0.85rem;
}

.footer-column-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.footer-links a {
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-links a:hover {
  color: var(--primary);
  transform: translateX(2px);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: var(--space-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

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

/* Decorative Corner Ticks */
.corner-tick {
  position: absolute;
  width: 8px;
  height: 8px;
  border: 2px solid var(--accent);
  z-index: 10;
}

.corner-tick.top-left { top: -2px; left: -2px; border-right: none; border-bottom: none; }
.corner-tick.top-right { top: -2px; right: -2px; border-left: none; border-bottom: none; }
.corner-tick.bottom-left { bottom: -2px; left: -2px; border-right: none; border-top: none; }
.corner-tick.bottom-right { bottom: -2px; right: -2px; border-left: none; border-top: none; }

/* ==========================================================================
   RESPONSIVE DESIGN (BREAKPOINTS & LAYOUT REBUILD)
   ========================================================================== */

/* Breakpoint 1: 960px (Tablets & Medium Laptops) */
@media (max-width: 960px) {
  .features-grid,
  .pricing-grid,
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .timeline-pipeline {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
  }

  .timeline-pipeline::before {
    display: none; /* Strip out line connection on layout wrapping */
  }

  .contact-container {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Breakpoint 2: 640px (Mobile Devices) */
@media (max-width: 640px) {
  html {
    font-size: 14px;
  }

  .header-container {
    padding: 1rem var(--space-sm);
  }

  /* Nav collapse setup */
  .main-nav {
    display: none; /* JS interaction changes this class state */
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: var(--space-md);
    gap: var(--space-sm);
  }

  .main-nav.active {
    display: flex;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .nav-actions {
    display: none; /* Hide status and sub CTAs on very small widths to preserve space */
  }

  .features-grid,
  .pricing-grid,
  .testimonials-grid,
  .timeline-pipeline,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .slider-wrapper {
    grid-template-columns: 1fr; /* Stack comparison images vertically on phones */
  }

  .pricing-card.featured {
    transform: none;
    margin: 10px 0;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
</style>/* Responsive Horizontal Scrolling for Tables if needed */
.scroll-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ── Styles for remaining classes (round 1) ── */
/* ==========================================================================
   FORGE AI - BRUTALIST HIGH-VELOCITY ADDITIONS
   ========================================================================== */

/* Typography & Layout Fundamentals */
.logo-wrapper {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.logo-accent {
  color: var(--primary);
  font-family: var(--font-mono);
  font-weight: 700;
}

.logo-highlight {
  color: var(--secondary);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: var(--space-md);
}

/* Before / After Showcase */
.before-side, .after-side {
  position: relative;
  flex: 1;
  min-width: 280px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.before-side:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 90, 31, 0.4);
}

.after-side {
  box-shadow: var(--shadow-brutal-secondary);
}

.after-side:hover {
  transform: translateY(-4px);
  border-color: var(--secondary);
}

/* Section Dividers & Accent Elements */
.section-border-line {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border) 15%, var(--border) 85%, transparent);
  margin: var(--space-lg) 0;
}

/* Features Grid */
.features-section {
  padding: var(--section-padding);
  background: var(--bg);
  position: relative;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  display: inline-block;
  margin-bottom: var(--space-sm);
}

.grid {
  display: grid;
  gap: var(--space-md);
}

.grid-2 {
  grid-template-columns: 1fr;
}

.grid-3 {
  grid-template-columns: 1fr;
}

.grid-4 {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Brutalist Cards */
.card-accent-line {
  height: 3px;
  width: 100%;
  background: var(--border);
  margin-bottom: var(--space-sm);
  transition: background-color 0.3s ease, width 0.3s ease;
}

.pricing-card:hover .card-accent-line,
.features-section .card:hover .card-accent-line {
  background: var(--primary);
}

.card-num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: var(--space-xs);
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--space-sm);
}

.card-text {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.6;
}

/* Workflow Timeline & Pipeline Overlay */
.workflow-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.05;
  filter: grayscale(100%) contrast(150%);
  pointer-events: none;
}

.workflow-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 30%, var(--bg) 90%);
  pointer-events: none;
}

.timeline-container {
  position: relative;
  margin: var(--space-lg) auto;
  padding-left: 2rem;
}

.timeline-line {
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-step {
  position: relative;
  padding-bottom: var(--space-lg);
}

.timeline-step:last-child {
  padding-bottom: 0;
}

.timeline-indicator {
  position: absolute;
  left: -2rem;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.indicator-inner {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.timeline-step:hover .indicator-inner {
  transform: scale(1.3);
  background-color: var(--secondary);
}

.timeline-step:hover .timeline-indicator {
  border-color: var(--secondary);
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.4);
}

.timeline-content {
  padding-left: var(--space-sm);
}

.step-time {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--secondary);
  background: rgba(0, 225, 255, 0.1);
  padding: 2px 8px;
  border-radius: 2px;
  display: inline-block;
  margin-bottom: var(--space-xs);
}

.step-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--space-xs);
}

.step-desc {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.6;
}

.text-success {
  color: #00FF66;
}

/* Live Terminal Component */
.live-terminal-section {
  padding: var(--section-padding);
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

.terminal-container {
  background: #07090C;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.5;
  color: #00FF66;
  padding: var(--space-sm);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  position: relative;
  overflow: hidden;
}

.terminal-header {
  height: 24px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--space-sm);
  padding-bottom: var(--space-xs);
}

.terminal-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #FF5F56;
}
.terminal-dot:nth-child(2) { background: #FFBD2E; }
.terminal-dot:nth-child(3) { background: #27C93F; }

.cursor-line {
  display: flex;
  align-items: center;
}

.blink {
  animation: cursor-blink 1s infinite steps(2);
  display: inline-block;
  background: #00FF66;
  width: 6px;
  height: 15px;
  margin-left: 4px;
}

@keyframes cursor-blink {
  to { opacity: 0; }
}

/* Video & Loop Container */
.video-preview-wrapper {
  position: relative;
  border: 1px solid var(--border);
  background: var(--surface-2);
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 16/9;
}

.video-container {
  width: 100%;
  height: 100%;
  position: relative;
}

.hero-looping-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.2) contrast(1.1);
}

/* Rich Media / Structural Gallery */
.gallery-section {
  padding: var(--section-padding);
  background: var(--bg);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-sm);
}

@media (min-width: 640px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 4/3;
  border: 1px solid var(--border);
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease;
  filter: grayscale(40%);
}

.gallery-info {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(13, 15, 18, 0.95) 0%, rgba(13, 15, 18, 0.4) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-md);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}

.gallery-item:hover .gallery-img {
  transform: scale(1.05);
  filter: grayscale(0%);
}

.gallery-item:hover .gallery-info {
  opacity: 1;
}

/* Testimonials System */
.quote-symbol {
  font-family: var(--font-mono);
  font-size: 3rem;
  line-height: 1;
  color: var(--primary);
  opacity: 0.3;
}

.testimonial-quote {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: var(--space-md);
}

.testimonial-user {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.user-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
}

.user-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
}

.user-title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
}

/* Advanced Pricing System Matrix */
.pricing-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--secondary);
  background: rgba(0, 229, 255, 0.1);
  padding: 4px 10px;
  border-radius: 2px;
  margin-bottom: var(--space-sm);
}

.pricing-tier {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--space-sm);
}

.price-val {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}

.price-sub {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: var(--space-md);
}

.pricing-list {
  list-style: none;
  padding: 0;
  margin: var(--space-md) 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.pricing-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text);
}

.bullet {
  color: var(--primary);
  font-weight: bold;
}

.btn-full-width {
  width: 100%;
  text-align: center;
  display: block;
}

.featured-pricing {
  background: var(--surface-2);
  border: 2px solid var(--secondary);
  position: relative;
  transform: scale(1.02);
  box-shadow: var(--shadow-brutal-secondary);
}

@media (max-width: 1024px) {
  .featured-pricing {
    transform: none;
  }
}

.pricing-tag-featured {
  position: absolute;
  top: -12px;
  right: var(--space-md);
  background: var(--secondary);
  color: #000;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 2px;
}

/* Immersive Contact & Form Layout */
.contact-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.08;
  pointer-events: none;
  filter: saturate(1.5) contrast(1.1);
}

.contact-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 20%, var(--bg) 95%);
  pointer-events: none;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
}

.info-item .icon {
  color: var(--primary);
  margin-top: 4px;
}

.info-item h4 {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--muted);
  text-transform: uppercase;
}

.info-item p {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--text);
  font-weight: 500;
}


/* ── Styles for remaining classes (round 2) ── */
/* ==========================================================================
   FORGE AI - HIGH-VELOCITY STYLES ADDITIONS
   Refined Brutalist & Tactical Engineering Aesthetic
   ========================================================================== */

/* Utility Typography Classes & Helpers */
.font-sm {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  letter-spacing: -0.01em;
  color: var(--muted);
}

.uppercase {
  text-transform: uppercase;
}

.mono-text {
  font-family: var(--font-mono);
}

.text-gradient {
  background: linear-gradient(135deg, var(--text) 30%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.accent-text {
  color: var(--primary);
  font-family: var(--font-mono);
  font-weight: 700;
}

.secondary-text {
  color: var(--secondary);
}

/* Base Components & Global Enhancements */
.scanning-grid {
  background-image: 
    linear-gradient(to right, rgba(38, 46, 59, 0.15) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(38, 46, 59, 0.15) 1px, transparent 1px);
  background-size: 40px 40px;
}

.corner-tick {
  position: absolute;
  width: 12px;
  height: 12px;
  border-color: var(--border);
  border-style: solid;
  pointer-events: none;
}
.corner-tick.top-left { top: 0; left: 0; border-width: 2px 0 0 2px; }
.corner-tick.top-right { top: 0; right: 0; border-width: 2px 2px 0 0; }
.corner-tick.bottom-left { bottom: 0; left: 0; border-width: 0 0 2px 2px; }
.corner-tick.bottom-right { bottom: 0; right: 0; border-width: 0 2px 2px 0; }

.shadow-offset {
  box-shadow: var(--shadow-brutal);
}

.shadow-heavy {
  box-shadow: 8px 8px 0px 0px #000;
}

/* Page & Section Layouts */
.services-hero {
  padding-top: calc(var(--space-xl) + 2rem);
}

/* Performance Audit Comparison Section */
.performance-audit-section {
  padding: var(--section-padding);
  background: var(--bg);
  border-top: 1px solid var(--border);
  position: relative;
}

.section-title-wrapper {
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--space-lg) auto;
}

.section-subtitle {
  font-family: var(--font-mono);
  color: var(--muted);
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  margin-top: var(--space-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.audit-matrix {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  max-width: var(--max-width);
  margin: 0 auto;
}

@media (min-width: 768px) {
  .audit-matrix {
    grid-template-columns: 1fr 1fr;
  }
}

.audit-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: var(--space-md);
  border-radius: 4px;
  position: relative;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
}

.audit-card:hover {
  transform: translateY(-2px);
  border-color: var(--muted);
}

.audit-card.old-audit {
  border-left: 4px solid #EF4444;
}

.audit-card:not(.old-audit) {
  border-left: 4px solid var(--secondary);
}

.audit-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  padding-bottom: var(--space-sm);
  margin-bottom: var(--space-md);
}

.audit-metric-group {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.metric-circle-placeholder {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 4px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.old-audit .metric-circle-placeholder {
  border-color: rgba(239, 68, 68, 0.2);
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.1);
}

.audit-card:not(.old-audit) .metric-circle-placeholder {
  border-color: rgba(0, 229, 255, 0.2);
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.1);
}

.red-glow {
  color: #EF4444;
  text-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
}

.metric-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
}

.info-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
  display: block;
}

.info-val {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text);
  font-weight: 500;
}

/* Video Showcase Section */
.video-showcase-section {
  padding: var(--section-padding);
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.terminal-shell {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  max-width: 960px;
  margin: 0 auto;
  box-shadow: var(--shadow-brutal-secondary);
}

.video-aspect-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
}

.showcase-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  object-fit: cover;
}

.video-overlay-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-sm);
  padding: var(--space-md);
  background: var(--surface-2);
  border-top: 1px solid var(--border);
}

.metric-overlay-card {
  padding: var(--space-sm);
  border-left: 2px solid var(--secondary);
}

.metric-huge {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1;
  color: var(--text);
  margin-bottom: 4px;
}

/* Tech Stack Section */
.tech-stack-section {
  padding: var(--section-padding);
  background: var(--bg);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--space-sm);
  max-width: var(--max-width);
  margin: 0 auto;
}

.tech-item-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: var(--space-md);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  transition: all 0.2s ease;
}

.tech-item-card:hover {
  background: var(--surface-2);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.tech-icon-shell {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  color: var(--primary);
}

.tech-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
}

.tech-desc {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.4;
}

/* Workflow & Timeline Pipeline */
.workflow-timeline-section {
  padding: var(--section-padding);
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.timeline-marker {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.marker-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent);
  border-radius: 50%;
  display: inline-block;
}

/* Custom Interactive Brief Builder (Contact) */
.brief-builder-container {
  max-width: 800px;
  margin: var(--space-lg) auto 0 auto;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 8px;
  padding: var(--space-md) var(--space-lg);
  box-shadow: var(--shadow-brutal);
}

.brief-form {
  display: grid;
  gap: var(--space-md);
}

/* Pricing Grid Card Mechanics */
.pricing-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, transform 0.2s ease;
  position: relative;
}

.pricing-card:hover {
  border-color: var(--secondary);
  transform: translateY(-4px);
}

.card-header {
  padding: var(--space-md);
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}

.badge-mono {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--primary);
  letter-spacing: 0.1em;
}

.tier-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: var(--space-xs) 0;
  font-weight: 700;
}

.tier-desc {
  font-size: 0.9rem;
  color: var(--muted);
}

.card-footer-action {
  padding: var(--space-md);
  margin-top: auto;
  border-top: 1px solid var(--border);
  background: var(--surface-2);
}

/* Tactical CTA Banner */
.cta-section {
  padding: var(--section-padding);
  background: var(--bg);
}

.cta-card-wrapper {
  max-width: var(--max-width);
  margin: 0 auto;
  background: var(--surface-2);
  border: 2px solid var(--primary);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.cta-content {
  padding: clamp(2rem, 5vw, 4rem);
  position: relative;
  z-index: 2;
}

.cta-heading {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.1;
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--space-sm);
}

.cta-text {
  color: var(--muted);
  max-width: 650px;
  margin-bottom: var(--space-md);
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

/* Multi-Column Brutalist Footer */
.site-footer {
  background: var(--bg);
  border-top: 2px solid var(--border);
  padding: var(--space-lg) 0 var(--space-md) 0;
}

.footer-brand-column {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-brand-desc {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
  max-width: 320px;
}

.footer-brand-col {
  grid-column: span 1;
}

.footer-links-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-title,
.footer-col-title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text);
}

.footer-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.footer-link {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease, padding-left 0.15s ease;
}

.footer-link:hover {
  color: var(--secondary);
  padding-left: 4px;
}

.footer-subscribe-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.footer-input {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  border-radius: 4px;
}

.footer-input:focus {
  outline: none;
  border-color: var(--primary);
}

.footer-btn {
  background: var(--primary);
  color: var(--text);
  border: none;
  font-family: var(--font-mono);
  font-weight: 700;
  padding: 10px 14px;
  cursor: pointer;
  border-radius: 4px;
  text-transform: uppercase;
  font-size: 0.85rem;
  transition: background 0.15s ease;
}

.footer-btn:hover {
  background: var(--primary-hover);
}

.system-status {
  margin-top: var(--space-sm);
}

.system-status-logs {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent);
  border-left: 2px solid var(--accent);
  padding-left: 8px;
  line-height: 1.4;
}

.footer-bottom-bar {
  border-top: 1px solid var(--border);
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
}

.footer-bottom-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  justify-content: space-between;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
}

@media (min-width: 768px) {
  .footer-bottom-container {
    flex-direction: row;
  }
}


/* ── Styles for remaining classes (round 3) ── */
/* ==========================================================================
   FORGE AI - BRUTALIST METRIC ELEMENTS & DIAGNOSTICS
   ========================================================================== */

.metric-item {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: var(--space-md);
  position: relative;
  transition: all 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

.metric-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--primary);
  opacity: 0;
  transition: opacity 180ms ease;
}

.metric-item:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  box-shadow: var(--shadow-brutal);
}

.metric-item:hover::before {
  opacity: 1;
}

.metric-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: var(--space-xs);
}

.metric-details {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text);
  margin: 0;
}

/* ==========================================================================
   TERMINAL LOGS, STATUSES & UTILITIES
   ========================================================================== */

.terminal-log {
  background: #06080a;
  border: 1px solid var(--border);
  padding: var(--space-sm) var(--space-md);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--muted);
  overflow-x: auto;
}

.new-audit {
  border-left: 2px solid var(--secondary);
  padding-left: var(--space-sm);
  animation: scanlinePulse 2s infinite ease-in-out;
}

.error-text {
  color: #ff3333;
  font-weight: 700;
}

.success-text {
  color: var(--secondary);
  font-weight: 700;
}

.cyan-glow {
  text-shadow: 0 0 10px rgba(0, 229, 255, 0.4);
  color: var(--secondary);
}

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

@keyframes scanlinePulse {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; border-color: var(--accent); }
}

/* ==========================================================================
   TECH CARDS & HARDWARE STRUCTS
   ========================================================================== */

.tech-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: var(--space-md);
  position: relative;
  transition: all 200ms ease;
}

.tech-card:hover {
  border-color: var(--secondary);
  box-shadow: var(--shadow-brutal-secondary);
  transform: translate(-2px, -2px);
}

.tech-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 229, 255, 0.05);
  border: 1px solid var(--secondary);
  color: var(--secondary);
  margin-bottom: var(--space-md);
  transition: all 180ms ease;
}

.tech-card:hover .tech-icon {
  background: var(--secondary);
  color: var(--bg);
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.3);
}

/* ==========================================================================
   FAQ SECTION & COLLAPSIBLE SYSTEM
   ========================================================================== */

.faq-section {
  padding: var(--section-padding);
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.faq-grid {
  max-width: 800px;
  margin: var(--space-lg) auto 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color 180ms ease;
}

.faq-item:hover {
  border-color: var(--muted);
}

.faq-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  transition: color 180ms ease;
}

.faq-trigger::after {
  content: '+';
  font-family: var(--font-mono);
  font-size: 1.5rem;
  color: var(--secondary);
  transition: transform 180ms ease;
}

.faq-item[open] .faq-trigger::after {
  content: '-';
  transform: rotate(180deg);
  color: var(--accent);
}

.faq-content {
  padding: 0 var(--space-md) var(--space-md) var(--space-md);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--muted);
}

/* ==========================================================================
   ROBUST BRUTALIST FOOTER
   ========================================================================== */

.footer-border-line {
  height: 2px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%);
  width: 100%;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.system-status-indicator {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  background: rgba(0, 229, 255, 0.05);
  border: 1px solid rgba(0, 229, 255, 0.15);
  padding: 6px var(--space-sm);
  border-radius: 2px;
}

.status-dot-green {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--secondary);
  box-shadow: 0 0 8px var(--secondary);
}

.footer-links-column {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.column-title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-xs);
}

.footer-terminal-column {
  display: flex;
  flex-direction: column;
}

.terminal-footer-box {
  background: #090b0e;
  border: 1px solid var(--border);
  padding: var(--space-sm) var(--space-md);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.terminal-accent {
  color: var(--accent);
  font-weight: 700;
}

.copyright {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
}

.current-year {
  color: var(--text);
  font-weight: 700;
}

.legal-links {
  display: flex;
  gap: var(--space-md);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.legal-links a {
  color: var(--muted);
  text-decoration: none;
  transition: color 180ms ease;
}

.legal-links a:hover {
  color: var(--secondary);
}

/* ==========================================================================
   RESPONSIVE OVERRIDES
   ========================================================================== */

@media (max-width: 768px) {
  .faq-trigger {
    font-size: 1rem;
    padding: var(--space-sm) var(--space-md);
  }
  
  .legal-links {
    flex-wrap: wrap;
    gap: var(--space-sm);
  }
}

/* Page load: fade-in + spinner preloader */
@keyframes fa-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes fa-spin { to { transform: rotate(360deg); } }
@keyframes fa-loader-out { to { opacity: 0; visibility: hidden; } }
body { animation: fa-fade-in .5s ease both; }
.page-loader, .app-loading { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; background: var(--bg); }
.page-loader { animation: fa-loader-out .5s ease 1s forwards; }
.loader-ring, .spinner { width: 48px; height: 48px; border-radius: 50%; border: 4px solid var(--border); border-top-color: var(--primary); animation: fa-spin .8s linear infinite; }
/* Kill any model-invented preloader after 2s — it expects JS handlers we
   didn't write, so left alone it spins forever. Fires even if script.js
   fails to load, so the page is never permanently stuck. */
@keyframes fa-preloader-kill { 0%, 90% { opacity: 1; visibility: visible; } 100% { opacity: 0; visibility: hidden; } }
#preloader, .preloader, #pre-loader, .pre-loader,
#loading-overlay, .loading-overlay, #loading-screen, .loading-screen,
.site-preloader, .page-preloader {
  animation: fa-preloader-kill 2s ease forwards !important;
  pointer-events: none !important;
}
/* body.loading-state and friends: the JS scrub removes these; belt-and-suspenders
   is to make sure they never hide the body content even while set. */
body.loading-state, body.loading, body.is-loading, body.preload,
html.loading-state, html.loading, html.is-loading, html.preload {
  overflow: auto !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* ── Final deterministic fixes (win over generated CSS) ── */
.gradient-text, .text-gradient { background-image: linear-gradient(100deg, var(--primary, #6d5efb), var(--accent, #22d3ee)); }
.gradient-text, .text-gradient {
  -webkit-background-clip: text !important; background-clip: text !important;
  -webkit-text-fill-color: transparent !important; color: transparent !important;
  padding: 0 !important; box-shadow: none !important; border-radius: 0 !important;
}

/* ── Mobile hamburger nav (deterministic) ── */
.nav-toggle { display: none; align-items: center; justify-content: center; flex-direction: column; gap: 5px; width: 44px; height: 44px; padding: 0; background: transparent; border: 0; cursor: pointer; color: inherit; z-index: 60; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text, #1a1a1a); border-radius: 2px; }
@media (max-width: 780px) {
  header, .site-header, .navbar, .main-header { position: relative; }
  .nav-toggle { display: inline-flex !important; }
  /* !important is required: the model often puts inline style="display:flex" on
     the <nav>, and inline styles beat class/media-query CSS without it. */
  header nav, .site-header nav, .navbar nav, header .nav-links {
    display: none !important; position: absolute !important; top: 100%; left: 0; right: 0;
    flex-direction: column !important; align-items: flex-start !important; gap: .15rem !important;
    background: color-mix(in srgb, var(--bg, #ffffff) 97%, transparent); padding: .75rem 1.25rem 1rem;
    border-top: 1px solid var(--border, rgba(0,0,0,.12)); box-shadow: 0 18px 34px -22px rgba(0,0,0,.55); max-height: 76vh; overflow-y: auto;
  }
  header nav.nav-open, .site-header nav.nav-open, .navbar nav.nav-open, header .nav-links.nav-open { display: flex !important; }
  header nav ul, .site-header nav ul, .navbar nav ul { flex-direction: column !important; align-items: flex-start !important; width: 100%; }
  header nav a, .site-header nav a, .navbar nav a, header .nav-links a { width: 100%; padding: .55rem 0; }
}

/* Reveal safety net — nothing stays invisible past 3s regardless of which
   class-name convention Gemini invented on this particular build. */
/* Only assert opacity + visibility. Locking transform via animation-forwards
   kills every subsequent hover translation on the same element (:hover { transform: translateY(-6px) } stops firing because the animation's held !important wins). */
@keyframes fa-reveal-safety { to { opacity: 1 !important; visibility: visible !important; } }
.scroll-reveal:not(.is-visible),
.reveal:not(.active):not(.is-visible),
.fade-in:not(.visible):not(.in),
.slide-in:not(.visible):not(.in),
.fade-up:not(.is-visible),
.fade-down:not(.is-visible),
.zoom-in:not(.is-visible),
.animate:not(.animated),
.will-animate:not(.animated),
.animate-on-scroll:not(.animated):not(.in-view),
.animate-on-load:not(.in-view):not(.visible),
[data-aos]:not(.aos-animate),
[data-reveal]:not(.in-view):not(.is-visible),
[data-scroll]:not(.is-inview):not(.in-view),
[data-animate]:not(.is-visible):not(.animated) {
  animation: fa-reveal-safety .8s ease 3s forwards !important;
}

/* ── Hero contrast safety net (deterministic override) ── */
/* Any hero/banner/masthead section that carries a background image gets:
   - a dark gradient overlay via ::before so any text is legible
   - forced light text on every text descendant */
.hero, .hero-section, .hero-container, .hero-wrapper,
.banner, .banner-hero, .site-hero, .page-hero, .masthead, .jumbotron,
[class*="hero" i][class*="section" i], section[id*="hero" i] {
  position: relative;
}
.hero:has(img), .hero-section:has(img), .banner:has(img),
.hero[style*="background"], .hero-section[style*="background"], .banner[style*="background"] {
  /* Dark gradient overlay so any text on top stays readable regardless of the
     photo behind it. Sits above the image but below the content. */
}
.hero::before, .hero-section::before, .banner-hero::before,
.site-hero::before, .page-hero::before, .masthead::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.7) 100%);
  z-index: 1;
  pointer-events: none;
}
/* Hero image and content both need to sit above the overlay */
.hero > *:not(.hero-bg-wrapper):not(.hero-bg):not(img),
.hero-section > *:not(.hero-bg-wrapper):not(.hero-bg):not(img),
.banner > *:not(.banner-bg):not(img),
.masthead > *:not(img) { position: relative; z-index: 2; }

/* Force high-contrast text on every text element inside any hero-like
   section, and any element with a "hero" or "banner" class ancestor.
   This is deliberately aggressive — a hero must be readable. */
.hero *, .hero-section *, .hero-container *, .hero-content *,
.banner *, .banner-hero *, .site-hero *, .page-hero *,
.masthead *, .jumbotron *,
section[id*="hero" i] *, section[class*="hero" i] * {
  color: #ffffff !important;
}
/* Muted subheads inside heroes: still light, just slightly dimmed */
.hero .subtitle, .hero .subhead, .hero .hero-subtitle, .hero p:not([class]),
.hero-section .subtitle, .hero-section .subhead, .hero-section .hero-subtitle, .hero-section p:not([class]),
.banner .subtitle, .banner .subhead, .banner p:not([class]),
.masthead .subtitle, .masthead .subhead, .masthead p:not([class]) {
  color: rgba(255, 255, 255, 0.85) !important;
}
/* Eyebrow / small labels above the hero headline */
.hero .eyebrow, .hero .sub-eyebrow, .hero .tagline, .hero .badge,
.hero-section .eyebrow, .hero-section .sub-eyebrow, .hero-section .tagline,
.banner .eyebrow, .masthead .eyebrow {
  color: rgba(255, 255, 255, 0.75) !important;
}
/* Text-only CTA links in heroes ("Learn more →") — need to stand out */
.hero a:not(.btn):not(.button), .hero-section a:not(.btn):not(.button),
.banner a:not(.btn):not(.button), .masthead a:not(.btn):not(.button) {
  color: #ffffff !important;
  opacity: 0.95;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ── Claude QA polish ── */
/* Focus accessibility */
:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
  transition: outline-offset 0.15s ease;
}

/* Refined interactive transitions */
a,
button,
.btn,
[class*="card"],
[class*="Card"] {
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

/* Brutal shadow hover polish */
[class*="card"]:hover,
[class*="Card"]:hover,
.btn:hover,
button:hover {
  transform: translate(-2px, -2px);
}

/* Buttons using primary shadow get a satisfying press state */
.btn:active,
button:active {
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0px 0px var(--primary);
}

/* Secondary shadow variant press state */
[style*="--shadow-brutal-secondary"]:active,
.btn-secondary:active {
  box-shadow: 2px 2px 0px 0px var(--secondary);
}

/* Spacing rhythm for stacked sections */
section + section {
  margin-top: var(--space-sm);
}

/* Consistent vertical rhythm inside content blocks */
p + p,
p + ul,
p + ol {
  margin-top: var(--space-xs);
}

/* Links get a subtle underline animation */
a:not(.btn) {
  position: relative;
  text-decoration: none;
}

a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0%;
  height: 1px;
  background: currentColor;
  transition: width 0.25s ease;
}

a:not(.btn):hover::after {
  width: 100%;
}

/* Selection color for brand consistency */
::selection {
  background: var(--primary);
  color: var(--text);
}

/* Scrollbar polish (WebKit) */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--surface);
}

::-webkit-scrollbar-thumb {
  background: var(--surface-2);
  border: 2px solid var(--surface);
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--border);
}

/* Responsive spacing tweaks */
@media (max-width: 768px) {
  :root {
    --section-padding: clamp(2.5rem, 10vw, 4rem) 0;
  }

  section + section {
    margin-top: var(--space-xs);
  }
}

@media (max-width: 480px) {
  .shadow-brutal,
  [style*="--shadow-brutal"] {
    box-shadow: 2px 2px 0px 0px var(--primary);
  }
}

/* Reduced motion respect */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
