/* Design System Variables */
:root {
  --bg: #0a0a0a;
  --bg-card: #0e0e0e;
  --bg-card-hover: #121212;
  
  --text-primary: #ffffff;
  --text-secondary: #a0a0a5;
  --text-muted: #4e4e52;
  
  --accent: #ff3b00; /* Neon Orange-Red */
  --accent-glow: rgba(255, 59, 0, 0.08);
  
  --border: #1a1a1c;
  --border-hover: #ff3b00;
  
  --font-sans: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', monospace;
  
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --chamfer-size: 10px;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

/* Background & Texture Overlays */
.radial-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1600px;
  height: 800px;
  background: radial-gradient(circle 500px at 50% 250px, rgba(255, 59, 0, 0.04), transparent 85%);
  pointer-events: none;
  z-index: -1;
}

/* Concentric Radar Circles in Background */
.grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 50% 30%, transparent 120px, rgba(255, 255, 255, 0.01) 121px, rgba(255, 255, 255, 0.01) 122px, transparent 123px),
    radial-gradient(circle at 50% 30%, transparent 240px, rgba(255, 255, 255, 0.01) 241px, rgba(255, 255, 255, 0.01) 242px, transparent 243px),
    radial-gradient(circle at 50% 30%, transparent 360px, rgba(255, 255, 255, 0.01) 361px, rgba(255, 255, 255, 0.01) 362px, transparent 363px),
    radial-gradient(circle at 50% 30%, transparent 480px, rgba(255, 255, 255, 0.01) 481px, rgba(255, 255, 255, 0.01) 482px, transparent 483px),
    radial-gradient(circle at 50% 30%, transparent 600px, rgba(255, 255, 255, 0.01) 601px, rgba(255, 255, 255, 0.01) 602px, transparent 603px);
  pointer-events: none;
  z-index: -2;
}

/* Film Grain Texture */
.grid-overlay::after {
  content: '';
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.022;
  pointer-events: none;
  z-index: 10;
}

/* Typography Details */
.mono-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: lowercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  margin-bottom: 24px;
  display: block;
}

.header-right-group {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.header-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  text-transform: lowercase;
  letter-spacing: 0.02em;
  line-height: 1.4;
  text-align: right;
  display: block;
}

@media (max-width: 991px) {
  .header-meta {
    display: none;
  }
}

.text-uppercase {
  text-transform: uppercase !important;
}

.mono-text {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
  letter-spacing: -0.01em;
}

.section-title,
.hero-title,
.card-title {
  font-family: var(--font-serif);
  text-transform: lowercase;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 0.95;
  color: var(--text-primary);
}

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

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

.bold-mono {
  font-weight: 700;
}

/* Layout Grid Container */
.container {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 60px;
}

@media (max-width: 991px) {
  .container {
    padding: 0 24px;
  }
}

.border-top {
  border-top: 1px solid var(--border);
}

.pt-40 { padding-top: 40px; }
.pb-40 { padding-bottom: 40px; }
.pt-60 { padding-top: 60px; }
.pt-80 { padding-top: 100px; }
.pb-80 { padding-bottom: 100px; }
.mb-20 { margin-bottom: 20px; }

/* Buttons with Chamfered Clips */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  text-transform: lowercase;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  z-index: 1;
}

/* Primary Button (Solid Light) */
.btn-primary {
  background: #e2e2e5;
  color: #000;
  padding: 14px 28px;
  border: none;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--chamfer-size)), calc(100% - var(--chamfer-size)) 100%, 0 100%);
}

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

/* Outline Button */
.btn-outline {
  background: transparent;
  color: var(--text-primary);
  padding: 13px 27px;
  border: none;
}

.btn-outline::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--border);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--chamfer-size)), calc(100% - var(--chamfer-size)) 100%, 0 100%);
  z-index: -2;
  transition: var(--transition);
}

.btn-outline::after {
  content: '';
  position: absolute;
  top: 1px; left: 1px; right: 1px; bottom: 1px;
  background: var(--bg);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--chamfer-size)), calc(100% - var(--chamfer-size)) 100%, 0 100%);
  z-index: -1;
  transition: var(--transition);
}

.btn-outline:hover::before {
  background: var(--accent); /* Highlight border on hover */
}

.btn-outline:hover::after {
  background: #101012;
}

.btn-large {
  font-size: 14px;
  padding: 16px 36px;
}

/* Site Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgb(0, 0, 0);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 90px;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 60px;
}

@media (max-width: 991px) {
  .header-container {
    padding: 0 24px;
    height: 80px;
  }
}

.logo {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: 0.05em;
  text-transform: lowercase;
  transition: var(--transition);
}

.primary-navigation {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav-link {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  text-transform: lowercase;
  transition: var(--transition);
  padding: 8px 0;
}

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

/* Hamburger mobile toggle */
.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 110;
}

.hamburger {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  position: relative;
  transition: var(--transition);
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition);
}

.hamburger::before { top: -6px; }
.hamburger::after { bottom: -6px; }

.mobile-nav-toggle[aria-expanded="true"] .hamburger {
  background: transparent;
}
.mobile-nav-toggle[aria-expanded="true"] .hamburger::before {
  transform: rotate(45deg);
  top: 0;
}
.mobile-nav-toggle[aria-expanded="true"] .hamburger::after {
  transform: rotate(-45deg);
  bottom: 0;
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 100px 0;
  background-color: #000000;
}

#canvas3d {
  position: absolute;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  border-radius: 0 !important;
  border: none !important;
  margin: 0 !important;
  padding: 0 !important;
  z-index: 0;
  pointer-events: auto;
}

.hero-container-overlay {
  position: relative;
  z-index: 10;
  pointer-events: none;
  width: 100%;
}

.hero-content {
  max-width: 780px;
  pointer-events: none;
}

.hero-content h1,
.hero-content p {
  text-shadow: 0 2px 20px rgba(10, 10, 10, 0.4);
}

.hero-content a,
.hero-content button,
.hero-content .btn {
  pointer-events: auto;
}

.hero-meta-labels {
  position: absolute;
  top: 30px;
  right: 60px;
  text-align: right;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  text-transform: lowercase;
  letter-spacing: 0.02em;
  line-height: 1.4;
  z-index: 20;
}

@media (min-width: 1300px) {
  .hero-meta-labels {
    right: calc((100vw - 1300px) / 2 + 60px);
  }
}

.hero-title {
  font-size: clamp(44px, 7vw, 84px);
  margin-bottom: 28px;
}

.hero-subtitle {
  font-size: 20px;
  color: var(--text-primary);
  max-width: 540px;
  margin-bottom: 24px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.4;
}

.hero-tagline {
  max-width: 480px;
  margin-bottom: 44px;
}

/* Less Work. More Customers. */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

.section-title {
  font-size: clamp(36px, 4vw, 56px);
}

.intro-lead {
  font-size: 16px;
  color: var(--text-primary);
  margin-bottom: 30px;
  line-height: 1.6;
}

.bullet-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bullet-list li {
  position: relative;
  padding-left: 20px;
}

.bullet-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--text-muted);
}

.bullet-list li.highlight-bullet {
  color: var(--text-primary);
  font-weight: 700;
}

.bullet-list li.highlight-bullet::before {
  color: var(--accent);
}

/* Grid of Cards (01, 02, 03) */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
}

/* Custom visual layout for card */
.card-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: transparent;
  transition: var(--transition);
}

/* Keep card flat, only transition border color to accent (neon orange-red) */
.card-item:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent);
}

.card-item:hover::before {
  background: var(--accent);
}

.card-num {
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 24px;
}

.card-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
}

/* Cost Section */
.cost-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 80px;
}

.missed-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.missed-item {
  font-size: 16px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 12px;
  transition: var(--transition);
}

.bullet-cross {
  color: var(--text-muted);
  font-weight: bold;
}

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

.highlight-cross .bullet-cross {
  color: var(--accent);
}

.cost-conclusion {
  border-top: 1px solid var(--border);
}

/* Targets & Infinite Scrolling Marquee */
.targets-marquee-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 30px 0;
  background: #000;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: scroll-marquee 25s linear infinite;
}

.marquee-content {
  display: flex;
  gap: 60px;
  padding-right: 60px;
}

.marquee-content span {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-primary);
  white-space: nowrap;
  display: inline-block;
  opacity: 0.15;
  transition: var(--transition);
}

.marquee-content span:hover {
  opacity: 0.95;
  color: var(--accent);
}

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

.targets-cta-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.targets-subtext {
  max-width: 500px;
  font-size: 15px;
}

/* Site Footer */
.site-footer {
  background: #040404;
  padding: 80px 0;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
}

.footer-logo {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: 0.05em;
  text-transform: lowercase;
  margin-bottom: 8px;
  display: inline-block;
}

.footer-tagline {
  font-size: 13px;
}

.footer-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  font-size: 11px;
  color: var(--text-muted);
}

.footer-meta span {
  text-transform: lowercase;
}

/* Mobile responsive adjustments */
@media (max-width: 991px) {
  /* Hero Section */
  .hero-section {
    text-align: center;
    justify-content: center;
    min-height: 80vh;
    min-height: 550px;
    padding: 80px 0;
    display: flex;
    flex-direction: column;
    background-color: #000000;
  }
  
  #canvas3d {
    pointer-events: none; /* Prevent WebGL scene from blocking scroll gestures on touchscreens */
  }
  
  .hero-meta-labels {
    position: static !important;
    text-align: center !important;
    margin-bottom: 24px !important;
    font-size: clamp(8px, 2.5vw, 10px) !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .hero-content {
    margin: 0 auto;
  }
  
  .hero-subtitle,
  .hero-tagline {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-title {
    font-size: clamp(38px, 8vw, 56px);
  }
  
  /* Section Spacings & Grid Layouts */
  .pt-80 { padding-top: 60px; }
  .pb-80 { padding-bottom: 60px; }
  
  .intro-grid,
  .cost-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  /* Responsive Cards Grid: 2 columns on tablets, 1 column on phones */
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  
  .cards-grid > :last-child {
    grid-column: span 2;
  }
  
  /* Footer Mobile Styles */
  .footer-container {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .footer-meta {
    align-items: flex-start;
  }

  /* Navigation drawer styling */
  .mobile-nav-toggle {
    display: block;
  }

  .primary-navigation {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    height: calc(100vh - 80px);
    background: #0a0a0a;
    flex-direction: column;
    padding: 60px 40px;
    gap: 40px;
    align-items: flex-start;
    border-top: 1px solid var(--border);
    transform: translateX(100%);
    visibility: hidden;
    overflow-y: auto;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .primary-navigation.active {
    transform: translateX(0);
    visibility: visible;
  }

  .nav-links {
    flex-direction: column;
    gap: 24px;
    width: 100%;
  }

  .nav-link {
    font-size: 20px;
    width: 100%;
    border-bottom: 1px solid var(--border);
    padding-bottom: 12px;
  }
  
  .nav-cta {
    width: 100%;
  }
}

/* Extra small mobile adjustments */
@media (max-width: 640px) {
  .cards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .cards-grid > :last-child {
    grid-column: auto;
  }
  
  .card-item {
    padding: 32px 24px;
  }
}

/* Scroll Animation Utilities */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Hide Spline Watermark Logo */
a[href*="spline.design"],
a[href*="spline"],
#spline-logo,
.spline-logo,
#logo,
[class*="spline-watermark"],
[id*="spline-watermark"] {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  height: 0 !important;
  width: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}
