/* ============================================================
   BRIDGE360.AI — OBSIDIAN FORGE DESIGN SYSTEM
   Volcanic obsidian meets precision-forged steel.
   Dark, weighty, premium. Molten energy in geometric form.
   ============================================================ */

/* SECTION: CSS Custom Properties */
:root {
  --bg-primary:     #0C0C0E;
  --bg-secondary:   #131318;
  --bg-card:        #1A1A22;
  --bg-card-hover:  #22222E;
  --accent-forge:   #E8622A;
  --accent-ember:   #C4440F;
  --accent-steel:   #6B8FA8;
  --border-subtle:  #2A2A36;
  --border-glow:    rgba(232, 98, 42, 0.2);
  --text-primary:   #F0EDE8;
  --text-secondary: #9896A0;
  --text-muted:     #5C5A66;
  --font-display:   'Syne', sans-serif;
  --font-body:      'Inter', sans-serif;
  --font-mono:      'JetBrains Mono', monospace;
  --radius-sm:      4px;
  --radius-md:      8px;
  --radius-lg:      12px;
  --transition:     200ms ease;
  --max-width:      1200px;
  --section-pad:    clamp(64px, 8vw, 120px);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

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

/* SECTION: Grain texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
  z-index: 0;
}

/* SECTION: Skip Link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--accent-forge);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  z-index: 9999;
  text-decoration: none;
  transition: top var(--transition);
}
.skip-link:focus {
  top: 1rem;
}

/* SECTION: Typography */
/* h1 + h2: Syne — geometric, engineered, display weight */
h1, h2 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-primary);
  letter-spacing: -0.025em;
}

/* h3 + h4: Inter 600 — clean, legible, confident at smaller sizes */
h3, h4, h5, h6 {
  font-family: var(--font-body);
  font-weight: 600;
  line-height: 1.25;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); }
h3 { font-size: clamp(1.125rem, 2vw, 1.375rem); }
h4 { font-size: 1.0625rem; }

p {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 1rem;
}

a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover { color: var(--accent-forge); }

ul, ol { list-style: none; }

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* SECTION: Layout Utilities */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
}

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

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
}

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }

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

/* SECTION: Section Label */
.section-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-forge);
  border-left: 2px solid var(--accent-forge);
  padding-left: 0.75rem;
  margin-bottom: 1.25rem;
}

/* SECTION: Section Divider */
.section-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--accent-forge), transparent);
  border: none;
  margin: 0;
  opacity: 0.4;
}

/* SECTION: Section Header */
.section-header {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-header p {
  max-width: 600px;
  margin-top: 1rem;
  font-size: 1.0625rem;
}

.section-header.centered {
  text-align: center;
}

.section-header.centered p {
  margin-left: auto;
  margin-right: auto;
}

/* SECTION: Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.625rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9375rem;
  cursor: pointer;
  text-decoration: none;
  border: none;
  transition: all var(--transition);
  white-space: nowrap;
  outline: none;
}

.btn:focus-visible {
  outline: 2px solid var(--accent-forge);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--accent-forge);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-ember);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(232, 98, 42, 0.3);
}

.btn-primary:active { transform: scale(0.98); }

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

.btn-secondary:hover {
  border-color: var(--accent-forge);
  color: var(--accent-forge);
  background: rgba(232, 98, 42, 0.05);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding-left: 0;
  padding-right: 0;
}

.btn-ghost:hover { color: var(--accent-forge); }

.btn-full { width: 100%; justify-content: center; }

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

/* SECTION: Cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.card:hover {
  border-color: rgba(232, 98, 42, 0.3);
  box-shadow: 0 0 24px var(--border-glow);
  background: var(--bg-card-hover);
}

.card-icon {
  width: 44px;
  height: 44px;
  background: rgba(232, 98, 42, 0.1);
  border: 1px solid rgba(232, 98, 42, 0.2);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--accent-forge);
}

.card-icon svg { width: 20px; height: 20px; }

.card h3 {
  font-size: 1.0625rem;
  margin-bottom: 0.625rem;
}

.card p { font-size: 0.9375rem; }

/* SECTION: Navigation */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition);
}

.site-header.scrolled {
  background: rgba(19, 19, 24, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border-subtle);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  text-decoration: none;
}

.nav-logo:hover { opacity: 0.85; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex: 1;
  justify-content: center;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
  background: rgba(255,255,255,0.05);
}

.nav-cta {
  flex-shrink: 0;
}

.nav-hamburger {
  display: none;
  background: none;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  cursor: pointer;
  padding: 0.5rem;
  line-height: 0;
  transition: border-color var(--transition);
}

.nav-hamburger:hover { border-color: var(--accent-forge); }
.nav-hamburger:focus-visible { outline: 2px solid var(--accent-forge); }

.nav-mobile-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  /* Use dvh (dynamic viewport height) for iOS Safari — falls back to 100vh */
  height: 100vh;
  height: 100dvh;
  background: rgba(13, 13, 18, 0.99);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 999;
  padding: calc(68px + 1.5rem) clamp(1rem, 4vw, 2rem) env(safe-area-inset-bottom, 2rem);
  padding-bottom: max(2rem, env(safe-area-inset-bottom));
  overflow-y: scroll;
  -webkit-overflow-scrolling: touch;
  /* Force GPU layer for smooth iOS scroll */
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

.nav-mobile-overlay ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.nav-mobile-overlay a {
  display: block;
  padding: 0.875rem 1rem;
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  transition: all var(--transition);
}

.nav-mobile-overlay a:hover {
  color: var(--text-primary);
  background: var(--bg-card);
  border-color: var(--border-subtle);
}

.nav-mobile-overlay .btn-primary {
  margin-top: 1rem;
  text-align: center;
  display: block;
}

body.nav-open .nav-mobile-overlay {
  display: block;
}

/* Lock body scroll when mobile nav is open */
body.nav-open {
  overflow: hidden;
  /* Do NOT use position:fixed here — it causes overlay height issues on iOS.
     Scroll position is saved/restored in nav.js instead. */
}

/* Ensure header always sits above overlay — critical for X button visibility */
.site-header {
  z-index: 1001 !important;
  position: fixed !important;
}

@media (max-width: 1024px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
}

/* SECTION: Footer */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid transparent;
  border-image: linear-gradient(to right, transparent, var(--accent-forge), transparent) 1;
  padding: clamp(3rem, 6vw, 5rem) 0 2rem;
}

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

.footer-brand p {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  max-width: 260px;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.footer-social a:hover {
  border-color: var(--accent-forge);
  color: var(--accent-forge);
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.footer-col a {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.footer-col a:hover { color: var(--accent-forge); }

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

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

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

.footer-bottom a:hover { color: var(--accent-forge); }

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* SECTION: Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 68px;
  position: relative;
  overflow: hidden;
}

.hero-bg-glow {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(26, 10, 6, 0.6) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.hero-content { max-width: 600px; }

.hero-content h1 {
  margin-bottom: 1.25rem;
  font-size: clamp(2.5rem, 5.5vw, 4rem);
}

.hero-content p {
  font-size: 1.125rem;
  line-height: 1.75;
  margin-bottom: 2rem;
  max-width: 520px;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
}

.hero-visual::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(232,98,42,0.15), transparent 50%);
  pointer-events: none;
  z-index: 1;
}

@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-visual { order: -1; }
}

/* SECTION: Social Proof Ticker */
.ticker-wrap {
  overflow: hidden;
  padding: 1.25rem 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
}

.ticker-track {
  display: flex;
  gap: 3rem;
  animation: ticker 28s linear infinite;
  width: max-content;
}

.ticker-track:hover { animation-play-state: paused; }

.ticker-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  white-space: nowrap;
  font-size: 0.875rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.ticker-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent-forge);
  flex-shrink: 0;
}

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

/* SECTION: Stats Strip */
.stats-strip {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: clamp(2.5rem, 4vw, 4rem) 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-value {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--accent-forge);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* SECTION: Pain Cards */
.pain-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border-top: 3px solid var(--accent-forge);
}

/* SECTION: Process Steps */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(to right, var(--accent-forge), var(--accent-steel));
  opacity: 0.3;
}

.process-step {
  text-align: center;
  position: relative;
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--accent-forge);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--accent-forge);
  position: relative;
  z-index: 1;
}

.process-step h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.process-step p { font-size: 0.875rem; }

@media (max-width: 768px) {
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .process-steps::before { display: none; }
}

@media (max-width: 480px) {
  .process-steps { grid-template-columns: 1fr; }
}

/* SECTION: Case Study Cards */
.case-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.case-card:hover {
  border-color: rgba(232, 98, 42, 0.3);
  box-shadow: 0 0 32px var(--border-glow);
}

.case-card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.case-card-body { padding: 1.75rem; }

.case-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-forge);
  background: rgba(232, 98, 42, 0.1);
  border: 1px solid rgba(232, 98, 42, 0.2);
  border-radius: var(--radius-sm);
  padding: 0.25rem 0.625rem;
  margin-bottom: 1rem;
}

.case-metrics {
  display: flex;
  gap: 1.5rem;
  margin: 1.25rem 0;
  flex-wrap: wrap;
}

.metric-value {
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--accent-forge);
  line-height: 1;
}

.metric-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.case-quote {
  font-style: italic;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  border-left: 2px solid var(--accent-forge);
  padding-left: 1rem;
  margin-top: 1.25rem;
}

/* SECTION: Pricing Cards */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.pricing-card:hover {
  border-color: rgba(232, 98, 42, 0.3);
  box-shadow: 0 0 32px var(--border-glow);
}

.pricing-card.popular {
  border-color: var(--accent-forge);
  background: linear-gradient(135deg, rgba(232,98,42,0.08) 0%, var(--bg-card) 100%);
}

.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-forge);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.875rem;
  border-radius: 999px;
  white-space: nowrap;
}

.pricing-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.pricing-price {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent-forge);
  line-height: 1;
  margin: 1rem 0 0.25rem;
}

.pricing-price span {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 400;
}

.pricing-tagline {
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

.pricing-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 1.5rem 0;
}

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.pricing-feature {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.pricing-feature i {
  color: var(--accent-forge);
  flex-shrink: 0;
  margin-top: 2px;
}

@media (max-width: 768px) {
  .pricing-grid { grid-template-columns: 1fr; }
}

/* SECTION: Comparison Table */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.comparison-table th,
.comparison-table td {
  padding: 1rem 1.25rem;
  text-align: center;
  font-size: 0.9375rem;
  border-bottom: 1px solid var(--border-subtle);
}

.comparison-table th {
  background: var(--bg-card);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-primary);
}

.comparison-table th:first-child,
.comparison-table td:first-child {
  text-align: left;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.comparison-table td {
  background: var(--bg-secondary);
  color: var(--text-secondary);
}

.comparison-table tr:last-child td { border-bottom: none; }

.comparison-table .highlight-col {
  background: rgba(232, 98, 42, 0.06);
  color: var(--text-primary);
  font-weight: 500;
}

.comparison-table .check { color: var(--accent-forge); font-weight: 700; }
.comparison-table .cross { color: var(--text-muted); }

/* SECTION: Services Grid */
.service-category {
  margin-bottom: 3rem;
}

.service-category-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-steel);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.service-category-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-subtle);
}

/* SECTION: Platform Comparison */
.platform-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.platform-col {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.platform-col.bridge360 {
  border-color: rgba(232, 98, 42, 0.3);
  background: linear-gradient(135deg, rgba(232,98,42,0.06) 0%, var(--bg-card) 100%);
}

.platform-col h3 {
  font-size: 1.0625rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.platform-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.platform-col li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.platform-col li i { color: var(--accent-forge); flex-shrink: 0; margin-top: 2px; }

@media (max-width: 768px) {
  .platform-comparison { grid-template-columns: 1fr; }
}

/* SECTION: Contact Form */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.form-group label span[aria-hidden] {
  color: var(--accent-forge);
  margin-left: 2px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  padding: 0.75rem 1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  -webkit-appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent-forge);
  box-shadow: 0 0 0 3px rgba(232, 98, 42, 0.1);
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239896A0' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-group select option {
  background: var(--bg-card);
  color: var(--text-primary);
}

#form-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: #fca5a5;
  margin-bottom: 1rem;
}

#form-success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
}

#form-success h3 {
  color: #4ade80;
  margin-bottom: 0.5rem;
}

/* Cloudflare Turnstile */
.cf-turnstile {
  margin-bottom: 1.25rem;
}

/* What Happens Next */
.next-steps {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.next-step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.next-step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(232, 98, 42, 0.1);
  border: 1px solid rgba(232, 98, 42, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--accent-forge);
  flex-shrink: 0;
}

.next-step-content h4 { font-size: 0.9375rem; margin-bottom: 0.25rem; }
.next-step-content p { font-size: 0.875rem; }

@media (max-width: 768px) {
  .contact-layout { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* SECTION: Featured Case Study */
.case-featured {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.case-featured-image {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.case-featured-body {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.case-featured-body h3 { font-size: 1.375rem; margin-bottom: 1rem; }

.case-featured-metrics {
  display: flex;
  gap: 2rem;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .case-featured { grid-template-columns: 1fr; }
  .case-featured-image { min-height: 220px; }
}

/* SECTION: Integration Logos Strip */
.integrations-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

.integration-badge {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  transition: border-color var(--transition), color var(--transition);
}

.integration-badge:hover {
  border-color: var(--accent-steel);
  color: var(--text-primary);
}

/* SECTION: Why It Matters */
.before-after {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.before-col, .after-col {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.before-col { border-top: 3px solid #ef4444; }
.after-col { border-top: 3px solid #22c55e; }

.before-col h3 { color: #f87171; }
.after-col h3 { color: #4ade80; }

.before-col ul, .after-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  margin-top: 1rem;
}

.before-col li, .after-col li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.before-col li i { color: #f87171; flex-shrink: 0; }
.after-col li i { color: #4ade80; flex-shrink: 0; }

@media (max-width: 768px) {
  .before-after { grid-template-columns: 1fr; }
}

/* SECTION: CTA Section */
.cta-section {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: clamp(4rem, 8vw, 7rem) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(232, 98, 42, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section h2 { margin-bottom: 1rem; }
.cta-section p { max-width: 520px; margin: 0 auto 2rem; font-size: 1.0625rem; }
.cta-trust { margin-top: 1rem; font-size: 0.875rem; color: var(--text-muted); }

/* SECTION: Blog Cards */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.blog-card:hover {
  border-color: rgba(232, 98, 42, 0.3);
  box-shadow: 0 0 24px var(--border-glow);
}

.blog-card-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-card-body { padding: 1.5rem; }

.blog-category {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-forge);
  margin-bottom: 0.75rem;
}

.blog-card h2 {
  font-size: 1.0625rem;
  margin-bottom: 0.625rem;
  line-height: 1.4;
}

.blog-card h2 a { color: var(--text-primary); }
.blog-card h2 a:hover { color: var(--accent-forge); }

.blog-meta {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.blog-card p { font-size: 0.875rem; }

.blog-read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  color: var(--accent-forge);
  margin-top: 1rem;
  font-weight: 500;
  transition: gap var(--transition);
}

.blog-read-more:hover { gap: 0.625rem; color: var(--accent-forge); }

@media (max-width: 768px) {
  .blog-grid { grid-template-columns: 1fr; }
}

/* SECTION: Scroll Animations */
[data-animate] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-animate-delay="1"] { transition-delay: 0.1s; }
[data-animate-delay="2"] { transition-delay: 0.2s; }
[data-animate-delay="3"] { transition-delay: 0.3s; }
[data-animate-delay="4"] { transition-delay: 0.4s; }
[data-animate-delay="5"] { transition-delay: 0.5s; }

/* SECTION: Utility Classes */
.text-forge { color: var(--accent-forge); }
.text-steel { color: var(--accent-steel); }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.mono { font-family: var(--font-mono); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* SECTION: Page Hero (inner pages) */
.page-hero {
  padding: calc(68px + clamp(3rem, 6vw, 5rem)) 0 clamp(3rem, 5vw, 4rem);
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--accent-forge), transparent);
  opacity: 0.3;
}

.page-hero h1 { margin-top: 0.5rem; margin-bottom: 1rem; }
.page-hero p { font-size: 1.125rem; max-width: 600px; }

/* SECTION: Responsive Overrides */
@media (max-width: 480px) {
  .btn { padding: 0.6875rem 1.25rem; font-size: 0.875rem; }
  .hero-ctas { flex-direction: column; align-items: flex-start; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  h1 { font-size: clamp(2rem, 8vw, 2.5rem); }
}

/* SECTION: Print */
@media print {
  .site-header, .site-footer, .ticker-wrap { display: none; }
  body { background: white; color: black; }
}
