:root {
  --primary: #FF6B00;
  --cyan: #FFB300;
  --bg: #080601;
  --bg-secondary: #100A02;
  --bg-surface: #1A1006;
  --text: #FFFFFF;
  --text-body: #F5EDD8;
  --text-muted: #9E8A6E;
  --border: rgba(255, 107, 0, 0.12);
  --glow: rgba(255, 179, 0, 0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  line-height: 1.7;
  overflow-x: hidden;
  cursor: none;
  width: 100%;
  max-width: 100vw;
}

h1, h2, h3, h4 {
  font-family: 'Bricolage Grotesque', sans-serif;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

/* ── Custom cursor ── */
#cursor-dot {
  width: 8px; height: 8px;
  background: var(--cyan);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.08s ease, width 0.2s ease, height 0.2s ease, background 0.2s ease;
}
#cursor-ring {
  width: 36px; height: 36px;
  border: 1.5px solid rgba(255,179,0,0.4);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.18s cubic-bezier(0.16,1,0.3,1), width 0.3s ease, height 0.3s ease, border-color 0.2s ease;
}
body:has(a:hover) #cursor-dot,
body:has(button:hover) #cursor-dot { width: 12px; height: 12px; background: #fff; }
body:has(a:hover) #cursor-ring,
body:has(button:hover) #cursor-ring { width: 52px; height: 52px; border-color: rgba(255,179,0,0.7); }

/* ── Marquee ticker ── */
.marquee-wrap { overflow: hidden; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 0.875rem 0; }
.marquee-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: marquee 28s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }
.marquee-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0 2rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.marquee-dot { width: 4px; height: 4px; background: var(--cyan); border-radius: 50%; opacity: 0.6; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── Split-text chars ── */
.char {
  display: inline-block;
  opacity: 0;
  transform: translateY(40px) rotate(4deg);
  transition: opacity 0.5s cubic-bezier(0.16,1,0.3,1), transform 0.5s cubic-bezier(0.16,1,0.3,1);
}
.char.in { opacity: 1; transform: translateY(0) rotate(0deg); }

/* ── Counter number ── */
.stat-num { font-variant-numeric: tabular-nums; }

/* ── Grain texture ── */
body::after {
  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='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
}

/* ── All page content sits above canvas ── */
.page-content { position: relative; z-index: 2; }

/* ── Glass card ── */
.glass {
  background: rgba(10, 22, 40, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  box-shadow: 0 0 0 1px rgba(255,107,0,0.08), 0 8px 32px rgba(0,0,0,0.5), 0 0 60px rgba(255,107,0,0.04);
}

/* ── Primary button ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary);
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.875rem 2rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 24px rgba(255,107,0,0.45), 0 1px 0 rgba(255,255,255,0.1) inset;
  transition: transform 0.2s cubic-bezier(0.16,1,0.3,1), box-shadow 0.2s cubic-bezier(0.16,1,0.3,1);
  position: relative;
  overflow: hidden;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
  opacity: 0;
  transition: opacity 0.2s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(255,107,0,0.6), 0 0 0 1px rgba(255,179,0,0.3); }
.btn-primary:hover::before { opacity: 1; }
.btn-primary:active { transform: translateY(0); }

/* ── Secondary button ── */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--text-body);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.875rem 2rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s cubic-bezier(0.16,1,0.3,1), border-color 0.2s, color 0.2s;
}
.btn-secondary:hover { transform: translateY(-2px); border-color: rgba(0,87,255,0.4); color: #fff; }

/* ── Section label ── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--cyan);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.375rem 0.875rem;
  background: rgba(255, 179, 0, 0.06);
  border: 1px solid rgba(255, 179, 0, 0.15);
  border-radius: 100px;
  margin-bottom: 1.25rem;
  white-space: nowrap;
}

/* ── Glow orbs ── */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  max-width: 100vw;
}

section { overflow: hidden; }

/* ── Fade in on scroll ── */
.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1);
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ── Nav ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.25rem 0;
  transition: background 0.3s, backdrop-filter 0.3s;
}
nav.scrolled {
  background: rgba(4, 8, 18, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

/* ── Process steps ── */
.step-number {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--cyan);
  letter-spacing: 0.1em;
}

/* ── Service card ── */
.service-card {
  background: rgba(10, 22, 40, 0.6);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1), border-color 0.3s, box-shadow 0.3s;
  transform-style: preserve-3d;
  will-change: transform;
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,107,0,0.3);
  box-shadow: 0 16px 48px rgba(0,0,0,0.4), 0 0 40px rgba(255,107,0,0.08);
}

/* ── Tool badge ── */
.tool-badge {
  display: inline-flex;
  align-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8125rem;
  color: var(--text-muted);
  background: rgba(10, 22, 40, 0.8);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem 1rem;
  transition: color 0.2s, border-color 0.2s;
}
.tool-badge:hover { color: var(--cyan); border-color: rgba(255,179,0,0.2); }

/* ── FAQ ── */
.faq-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 0.75rem;
  background: rgba(10,22,40,0.4);
  overflow: hidden;
  transition: border-color 0.2s, background 0.2s;
}
.faq-item.open {
  border-color: rgba(255,107,0,0.3);
  background: rgba(10,22,40,0.7);
}
.faq-question {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 1.75rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  gap: 1rem;
  transition: color 0.2s;
}
.faq-question:hover { color: var(--cyan); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16,1,0.3,1);
}
.faq-answer.open { max-height: 300px; }
.faq-answer-inner {
  padding: 0 1.75rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.75;
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
}
.faq-icon {
  width: 28px; height: 28px;
  border: 1px solid rgba(255,107,0,0.3);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
  color: var(--primary);
  background: rgba(255,107,0,0.06);
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1), background 0.3s;
}
.faq-item.open .faq-icon { transform: rotate(45deg); background: rgba(255,107,0,0.15); border-color: rgba(255,107,0,0.5); }

/* ── Mobile nav ── */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(4,8,18,0.97);
  backdrop-filter: blur(20px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--cyan); }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(255,107,0,0.3); border-radius: 2px; }

/* ── Status dot ── */
.status-dot {
  width: 8px; height: 8px;
  background: #00D97E;
  border-radius: 50%;
  box-shadow: 0 0 8px #00D97E;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px #00D97E; }
  50% { opacity: 0.6; box-shadow: 0 0 16px #00D97E; }
}

/* ── Gradient text ── */
.gradient-text {
  background: linear-gradient(135deg, #fff 0%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Divider ── */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

/* ── Animated gradient border on glass card ── */
.glass-animated {
  background: rgba(10, 22, 40, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  position: relative;
}
.glass-animated::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 21px;
  background: linear-gradient(135deg, rgba(255,107,0,0.5), rgba(255,179,0,0.2), rgba(255,107,0,0.1), rgba(255,179,0,0.4));
  background-size: 300% 300%;
  animation: border-flow 5s ease infinite;
  z-index: -1;
}
@keyframes border-flow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ── Form checkbox group ── */
.check-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255,107,0,0.15);
  border-radius: 8px;
  background: rgba(255,107,0,0.03);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.check-option:hover { border-color: rgba(0,87,255,0.4); background: rgba(255,107,0,0.06); color: var(--text-body); }
.check-option input[type="checkbox"] { accent-color: var(--primary); width: 16px; height: 16px; cursor: pointer; flex-shrink: 0; }

/* ── Page hero banner (for sub-pages) ── */
.page-hero {
  padding: 10rem 2rem 5rem;
  text-align: center;
  position: relative;
}

/* ── Mobile: hide cursor ring ── */
@media (hover: none) {
  #cursor-dot, #cursor-ring { display: none; }
  body { cursor: auto; }
}

/* ── Built by Eddie signature ── */
.eddie-sig {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 0.75rem;
  color: rgba(138,155,181,0.5);
  letter-spacing: 0.04em;
}
.eddie-sig span { color: var(--primary); font-weight: 600; }

/* ── Hide Spline watermark ── */
spline-viewer::part(logo) { display: none !important; }
spline-viewer::part(watermark) { display: none !important; }

/* ── Mobile hero: show full robot ── */
@media (max-width: 768px) {
  #hero-section {
    min-height: 100svh;
    padding-top: 6rem !important;
    padding-bottom: 3rem !important;
    align-items: flex-start !important;
  }
  #spline-hero {
    top: -5% !important;
    height: 115% !important;
    transform-origin: top center;
  }
}

/* ── Mobile fixes ── */
@media (max-width: 768px) {
  .split-section { grid-template-columns: 1fr !important; gap: 3rem !important; }
  .form-row { grid-template-columns: 1fr !important; }
  .desktop-nav { display: none !important; }
  #hamburger { display: block !important; }
}

@media (max-width: 480px) {
  .section-label {
    font-size: 0.62rem;
    letter-spacing: 0.06em;
    padding: 0.3rem 0.625rem;
  }
}
