/* ==================================================
   ROOFITECH — Cinematic 3D Marketing Site
   Automate. Integrate. Dominate.
================================================== */

:root {
  --bg: #030510;
  --bg-2: #060a1a;
  --bg-3: #0a1224;
  --surface-glass: rgba(14, 22, 44, 0.55);
  --surface-glass-hover: rgba(20, 32, 62, 0.72);
  --border: rgba(88, 152, 255, 0.14);
  --border-strong: rgba(88, 152, 255, 0.4);

  --text: #eaeef8;
  --text-dim: #a0accc;
  --text-mute: #6b7590;

  --blue: #1e6bff;
  --blue-2: #3b8dff;
  --cyan: #22d3ee;
  --silver: #c8d2e4;
  --silver-2: #f0f4ff;

  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 24px;

  --shadow-blue: 0 20px 60px -18px rgba(30, 107, 255, 0.6);
  --shadow-cyan: 0 20px 60px -18px rgba(34, 211, 238, 0.4);
  --shadow-card: 0 20px 50px -20px rgba(0, 0, 0, 0.7);

  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;

  --container: 1200px;
}

* , *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  cursor: default;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font: inherit; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 32px);
  position: relative;
  z-index: 2;
}

/* ============= TYPOGRAPHY ============= */
h1, h2, h3, h4, h5 { font-family: var(--font-display); letter-spacing: -0.02em; margin: 0; color: var(--silver-2); }
h1 {
  font-size: clamp(2.6rem, 8vw + 0.5rem, 6rem);
  line-height: 0.95;
  font-weight: 700;
  letter-spacing: -0.035em;
}
h2 { font-size: clamp(1.9rem, 3vw + 0.6rem, 3.2rem); line-height: 1.05; font-weight: 700; }
h3 { font-size: 1.25rem; line-height: 1.3; font-weight: 600; }
h4 { font-size: 1.05rem; line-height: 1.3; font-weight: 600; }
h5 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--text-dim); font-weight: 600; }
p { margin: 0 0 1em; color: var(--text-dim); }
.lead { font-size: 1.1rem; color: var(--text-dim); max-width: 62ch; }

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-mute);
  font-weight: 600;
  margin-bottom: 1rem;
}
.eyebrow-blue { color: var(--blue-2); }

.grad-blue {
  background: linear-gradient(90deg, #3b8dff 0%, #22d3ee 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  filter: drop-shadow(0 0 20px rgba(30, 107, 255, 0.4));
}
.grad-cyan {
  background: linear-gradient(90deg, #22d3ee 0%, #3b8dff 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  filter: drop-shadow(0 0 20px rgba(34, 211, 238, 0.5));
}

/* ============= 3D CANVAS + OVERLAYS ============= */
#scene3d {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}
.scene-vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 70% at 50% 50%, transparent 0%, rgba(3, 5, 16, 0.4) 70%, rgba(3, 5, 16, 0.9) 100%);
}
.scene-godrays {
  position: fixed;
  bottom: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 1400px;
  height: 1400px;
  z-index: 1;
  pointer-events: none;
  background: conic-gradient(from 45deg at 50% 100%,
    transparent 340deg,
    rgba(59, 141, 255, 0.06) 350deg,
    rgba(34, 211, 238, 0.08) 0deg,
    rgba(59, 141, 255, 0.06) 10deg,
    transparent 20deg);
  filter: blur(40px);
  opacity: 0.6;
  animation: godrays-pulse 8s ease-in-out infinite;
}
@keyframes godrays-pulse {
  0%, 100% { opacity: 0.4; transform: translateX(-50%) rotate(-2deg); }
  50% { opacity: 0.7; transform: translateX(-50%) rotate(2deg); }
}

/* ============= FLOATING BRAND & PRODUCT DECOR ============= */
.floating-decor {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
  /* Mask a soft hole in the center so brand chips don't cross the hero logo/CTA */
  -webkit-mask-image: radial-gradient(ellipse 34% 42% at 50% 42%, transparent 0%, transparent 55%, black 85%);
  mask-image: radial-gradient(ellipse 34% 42% at 50% 42%, transparent 0%, transparent 55%, black 85%);
}
.decor-item {
  position: absolute;
  opacity: 0;
  will-change: transform, opacity;
  animation: decor-drift var(--dur, 34s) linear infinite;
  animation-delay: var(--delay, 0s);
}
@keyframes decor-drift {
  0%   { transform: translate3d(var(--x-start, 0), 110vh, 0) rotate(var(--rot-start, 0deg)); opacity: 0; }
  8%   { opacity: var(--peak, 0.55); }
  50%  { transform: translate3d(calc(var(--x-start, 0) + var(--drift, 40px)), 40vh, 0) rotate(calc(var(--rot-start, 0deg) + var(--rot-delta, 20deg))); opacity: var(--peak, 0.55); }
  92%  { opacity: var(--peak, 0.55); }
  100% { transform: translate3d(calc(var(--x-start, 0) + var(--drift-end, 80px)), -20vh, 0) rotate(calc(var(--rot-start, 0deg) + var(--rot-total, 40deg))); opacity: 0; }
}
.decor-product {
  filter: drop-shadow(0 0 14px rgba(59, 141, 255, 0.3));
}
.decor-product svg { width: 100%; height: 100%; display: block; }

/* Mobile: smaller products */
@media (max-width: 640px) {
  .floating-decor { opacity: 0.55; }
}

/* ============= CURSOR GLOW ============= */
.cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(30, 107, 255, 0.15) 0%, transparent 60%);
  pointer-events: none;
  z-index: 2;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
  opacity: 0;
  mix-blend-mode: screen;
}
@media (hover: hover) and (pointer: fine) {
  .cursor-glow { opacity: 1; }
}

/* ============= BUTTONS ============= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.2s ease;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}
.btn-sm { padding: 9px 18px; font-size: 0.85rem; }
.btn-lg { padding: 16px 32px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-primary {
  background: linear-gradient(135deg, #1e6bff 0%, #22d3ee 100%);
  color: white;
  box-shadow: var(--shadow-blue), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #3b8dff 0%, #67e8f9 100%);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 25px 65px -15px rgba(30, 107, 255, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.2); }
.btn-primary:hover::after { opacity: 1; }
.btn-primary > * { position: relative; z-index: 1; }
.btn-ghost {
  background: rgba(20, 30, 60, 0.4);
  backdrop-filter: blur(10px);
  color: var(--silver-2);
  border-color: var(--border-strong);
}
.btn-ghost:hover { background: rgba(30, 107, 255, 0.15); border-color: var(--blue); color: white; }

/* ============= GLASSMORPHISM ============= */
.glass {
  background: var(--surface-glass);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* ============= HEADER ============= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 40;
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  background: rgba(3, 5, 16, 0.5);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.site-header.scrolled {
  background: rgba(3, 5, 16, 0.85);
  border-bottom-color: var(--border);
  box-shadow: 0 8px 30px -10px rgba(0, 0, 0, 0.6);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
}
.brand { display: flex; align-items: center; filter: drop-shadow(0 0 8px rgba(30, 107, 255, 0.4)); }
.brand-logo { height: 40px; width: auto; }
.primary-nav { display: flex; gap: 28px; align-items: center; }
.primary-nav a {
  font-size: 0.9rem;
  color: var(--text-dim);
  font-weight: 500;
  position: relative;
  transition: color 0.15s ease;
}
.primary-nav a:hover { color: white; }
.primary-nav a:hover::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px;
  height: 2px; background: linear-gradient(90deg, var(--blue), var(--cyan));
  border-radius: 2px;
  box-shadow: 0 0 8px var(--blue);
}
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--silver); border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 16px 24px 28px;
  border-top: 1px solid var(--border);
  background: rgba(3, 5, 16, 0.98);
  backdrop-filter: blur(20px);
}
.mobile-nav a { padding: 12px 4px; border-bottom: 1px solid var(--border); color: var(--silver); font-weight: 500; }
.mobile-nav a.btn { border-bottom: none; margin-top: 12px; text-align: center; justify-content: center; }
.mobile-nav.open { display: flex; }

/* ============= HERO ============= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 130px 0 90px;
  z-index: 2;
}
.hero-inner {
  text-align: center;
  max-width: 1100px;
}

/* HERO LOGO with triple-halo */
.hero-logo-wrap {
  position: relative;
  display: inline-block;
  margin: 0 auto 40px;
  animation: hero-logo-float 5s ease-in-out infinite;
  transform-style: preserve-3d;
}
.hero-logo {
  position: relative;
  z-index: 4;
  height: clamp(140px, 20vw, 260px);
  width: auto;
  max-width: 90vw;
  filter: drop-shadow(0 0 30px rgba(30, 107, 255, 0.7)) drop-shadow(0 0 60px rgba(34, 211, 238, 0.35));
  animation: hero-logo-drop 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.halo {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
}
.halo-1 {
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, rgba(30, 107, 255, 0.9) 0%, rgba(30, 107, 255, 0) 70%);
  filter: blur(30px);
  z-index: 1;
  animation: halo-pulse 3s ease-in-out infinite;
}
.halo-2 {
  width: 90%;
  height: 90%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.5) 0%, transparent 60%);
  filter: blur(50px);
  z-index: 2;
  animation: halo-pulse 4s ease-in-out infinite 0.5s;
}
.halo-3 {
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, rgba(59, 141, 255, 0.25) 0%, transparent 70%);
  filter: blur(80px);
  z-index: 0;
  animation: halo-corona 6s ease-in-out infinite;
}
@keyframes halo-pulse {
  0%, 100% { opacity: 0.7; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}
@keyframes halo-corona {
  0%, 100% { opacity: 0.4; transform: translate(-50%, -50%) scale(1) rotate(0deg); }
  50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.2) rotate(180deg); }
}
@keyframes hero-logo-float {
  0%, 100% { transform: translateY(0) rotate(-1.5deg); }
  50% { transform: translateY(-14px) rotate(1.5deg); }
}
@keyframes hero-logo-drop {
  0% { opacity: 0; transform: scale(0.4) translateY(-30px); filter: blur(20px); }
  60% { opacity: 1; transform: scale(1.08) translateY(0); filter: blur(0); }
  100% { transform: scale(1); filter: drop-shadow(0 0 30px rgba(30, 107, 255, 0.7)) drop-shadow(0 0 60px rgba(34, 211, 238, 0.35)); }
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgba(30, 107, 255, 0.1);
  backdrop-filter: blur(10px);
  font-size: 0.82rem;
  color: var(--silver);
  margin-bottom: 32px;
  font-weight: 500;
}
.pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { box-shadow: 0 0 0 12px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.hero-title {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4em;
  margin: 0 auto 32px;
}
.hero-title span {
  display: inline-block;
  opacity: 0;
  transform: translateY(30px);
  filter: blur(8px);
  animation: hero-word-in 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: var(--d, 0ms);
}
@keyframes hero-word-in {
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

.hero-sub {
  max-width: 65ch;
  margin: 0 auto 40px;
  font-size: 1.15rem;
  color: var(--text-dim);
  line-height: 1.55;
}
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 70px; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 820px;
  margin: 0 auto;
  padding: 30px;
  border-radius: var(--radius-lg);
  background: rgba(10, 18, 40, 0.4);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
}
.hero-stats > div { text-align: center; }
.hero-stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.7vw, 2.1rem);
  color: var(--silver-2);
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #f0f4ff, #22d3ee);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-stats span { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-mute); }

/* SCROLL INDICATOR */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--text-mute);
  opacity: 0;
  animation: fade-in-late 1s ease 2s forwards;
}
@keyframes fade-in-late { to { opacity: 1; } }
.scroll-mouse {
  width: 22px; height: 34px;
  border: 2px solid var(--text-mute);
  border-radius: 12px;
  position: relative;
  display: flex; justify-content: center;
}
.scroll-mouse span {
  width: 3px; height: 6px;
  background: var(--blue-2);
  border-radius: 3px;
  margin-top: 6px;
  animation: scroll-dot 1.6s ease-in-out infinite;
}
@keyframes scroll-dot {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(14px); opacity: 0; }
}
.scroll-text { font-size: 0.7rem; letter-spacing: 0.25em; }

/* ============= SECTIONS ============= */
.section {
  padding: clamp(80px, 10vw, 140px) 0;
  position: relative;
  z-index: 2;
}
.section-head { max-width: 720px; margin-bottom: 60px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { margin-bottom: 16px; }

/* ============= SERVICES ============= */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  position: relative;
  padding: 32px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}
.service-card::before {
  content: "";
  position: absolute;
  top: -100px; right: -100px;
  width: 250px; height: 250px;
  background: radial-gradient(circle, rgba(30, 107, 255, 0.35) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-blue), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.service-card:hover::before { opacity: 1; }

/* Coming soon variant */
.service-card-soon { opacity: 0.85; }
.service-card-soon .service-icon { opacity: 0.7; }
.soon-badge {
  position: absolute;
  top: 22px;
  right: 22px;
  padding: 5px 11px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: linear-gradient(135deg, rgba(59, 141, 255, 0.22), rgba(34, 211, 238, 0.22));
  border: 1px solid rgba(34, 211, 238, 0.45);
  color: #a5f3fc;
  box-shadow: 0 0 22px rgba(34, 211, 238, 0.35);
}
.service-num {
  font-family: var(--font-display);
  font-size: 0.75rem;
  color: var(--blue-2);
  font-weight: 700;
  letter-spacing: 0.2em;
  margin-bottom: 20px;
  opacity: 0.7;
}
.service-icon {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 14px;
  background: rgba(30, 107, 255, 0.15);
  border: 1px solid var(--border-strong);
  color: var(--blue-2);
  margin-bottom: 20px;
  box-shadow: 0 0 24px rgba(30, 107, 255, 0.35);
}
.service-icon svg { width: 26px; height: 26px; }
.service-card h3 { margin-bottom: 10px; }
.service-card > p { margin: 0 0 22px; font-size: 0.95rem; }

/* --- MOCK LIVE DATA WIDGETS --- */
.mock {
  margin-top: auto;
  padding: 16px;
  border-radius: 12px;
  background: rgba(3, 5, 16, 0.6);
  border: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-dim);
  display: flex; flex-direction: column; gap: 8px;
}
.mock-row { display: flex; align-items: center; gap: 10px; }
.mock-row .dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.dot-green { background: #22c55e; box-shadow: 0 0 8px #22c55e; }
.dot-blue { background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.mock-row > span:nth-child(2) { flex: 1; color: var(--silver); }
.mock-tag {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 3px 8px;
  border-radius: 999px;
}
.mock-tag.hot { background: rgba(239, 68, 68, 0.2); color: #fca5a5; border: 1px solid rgba(239, 68, 68, 0.4); }
.mock-tag.warm { background: rgba(251, 146, 60, 0.2); color: #fdba74; border: 1px solid rgba(251, 146, 60, 0.4); }
.mock-tag.new { background: rgba(59, 141, 255, 0.2); color: #93c5fd; border: 1px solid rgba(59, 141, 255, 0.4); }

.mock-cal-head {
  color: var(--blue-2);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}
.mock-cal-row { display: flex; justify-content: space-between; align-items: center; }
.mock-cal-row > span:first-child { color: var(--text-mute); font-size: 0.75rem; }
.mock-slot { padding: 3px 10px; border-radius: 6px; font-size: 0.78rem; }
.mock-slot.booked { background: rgba(30, 107, 255, 0.2); color: #93c5fd; }
.mock-slot.open { background: rgba(34, 197, 94, 0.15); color: #86efac; border: 1px dashed rgba(34, 197, 94, 0.4); }

.mock-chat { padding: 12px; }
.mock-msg {
  padding: 8px 12px;
  border-radius: 12px;
  max-width: 85%;
  font-size: 0.8rem;
  line-height: 1.4;
}
.mock-msg.them { background: rgba(30, 107, 255, 0.2); color: var(--silver-2); align-self: flex-start; border-bottom-left-radius: 4px; }
.mock-msg.me { background: rgba(255, 255, 255, 0.1); color: var(--silver); align-self: flex-end; border-bottom-right-radius: 4px; }

.mock-stars { color: #fbbf24; font-weight: 600; margin-bottom: 4px; }
.mock-stars span { color: var(--silver-2); margin-left: 4px; }
.mock-review { font-size: 0.78rem; font-style: italic; color: var(--text-dim); padding-left: 8px; border-left: 2px solid rgba(251, 191, 36, 0.4); }

.mock-workflow {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.flow-node {
  flex: 1;
  padding: 8px 4px;
  text-align: center;
  border-radius: 8px;
  background: rgba(30, 107, 255, 0.15);
  color: var(--silver-2);
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid var(--border-strong);
}
.flow-node.hot {
  background: linear-gradient(135deg, #1e6bff, #22d3ee);
  color: white;
  box-shadow: 0 0 20px rgba(30, 107, 255, 0.5);
}
.flow-conn { flex: 0.5; height: 2px; background: linear-gradient(90deg, var(--blue), var(--cyan)); border-radius: 2px; }

.mock-metrics {
  flex-direction: row;
  justify-content: space-between;
  gap: 8px;
}
.mock-metric { flex: 1; display: flex; flex-direction: column; }
.mock-metric span { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-mute); }
.mock-metric strong { font-family: var(--font-display); font-size: 1.1rem; color: var(--silver-2); }
.mock-metric em { font-style: normal; font-size: 0.7rem; color: #86efac; font-weight: 600; }

/* ============= TRADES ============= */
.trades-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.trade {
  padding: 28px;
  border-radius: var(--radius);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.trade:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow-blue); }
.trade-icon { font-size: 2.4rem; margin-bottom: 14px; filter: drop-shadow(0 0 12px rgba(30, 107, 255, 0.4)); }
.trade h4 { margin-bottom: 8px; }
.trade p { margin: 0; font-size: 0.9rem; }

/* ============= AUTOMATION FLOW ============= */
.flow {
  display: flex;
  align-items: stretch;
  gap: 8px;
  overflow-x: auto;
  padding: 20px 4px 30px;
  margin-bottom: 50px;
  scrollbar-width: thin;
  scrollbar-color: var(--blue) transparent;
}
.flow::-webkit-scrollbar { height: 6px; }
.flow::-webkit-scrollbar-thumb { background: var(--blue); border-radius: 3px; }
.flow-step {
  flex: 1 1 190px;
  min-width: 200px;
  padding: 24px;
  border-radius: var(--radius);
  position: relative;
}
.flow-num {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue) 0%, var(--cyan) 100%);
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 14px;
  box-shadow: 0 6px 18px rgba(30, 107, 255, 0.5);
}
.flow-time {
  position: absolute;
  top: 24px; right: 24px;
  font-size: 0.72rem;
  color: var(--cyan);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-shadow: 0 0 8px rgba(34, 211, 238, 0.5);
}
.flow-step h4 { margin-bottom: 4px; font-size: 0.98rem; }
.flow-step p { margin: 0; font-size: 0.85rem; color: var(--text-mute); }
.flow-arrow {
  display: flex; align-items: center;
  color: var(--blue-2);
  font-size: 1.6rem;
  font-weight: 300;
  flex-shrink: 0;
  text-shadow: 0 0 8px rgba(30, 107, 255, 0.6);
}
.integrations { text-align: center; padding-top: 40px; border-top: 1px solid var(--border); }
.integ-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 20px;
  margin-top: 22px;
}
.integ-row span {
  padding: 8px 20px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-dim);
  font-size: 0.88rem;
  background: rgba(14, 22, 44, 0.5);
  backdrop-filter: blur(10px);
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.integ-row span:hover { color: white; border-color: var(--border-strong); transform: translateY(-2px); }

/* ============= RESULTS ============= */
.results-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 60px;
}
.stat-card {
  padding: 32px 26px;
  border-radius: var(--radius);
  text-align: center;
  transition: transform 0.3s ease;
}
.stat-card:hover { transform: translateY(-4px); }
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.2vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, #f0f4ff, #22d3ee);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
  line-height: 1;
  text-shadow: 0 0 30px rgba(30, 107, 255, 0.25);
}
.stat-card p { margin: 0; font-size: 0.9rem; color: var(--text-dim); }

.testimonial {
  max-width: 900px;
  margin: 0 auto;
  padding: 48px;
  border-radius: var(--radius-lg);
  border-color: var(--border-strong);
  position: relative;
}
.testimonial::before {
  content: "\201C";
  position: absolute;
  top: 12px; left: 26px;
  font-family: var(--font-display);
  font-size: 7rem;
  color: var(--blue-2);
  opacity: 0.25;
  line-height: 1;
}
.testimonial blockquote {
  margin: 0 0 26px;
  font-size: clamp(1.1rem, 1.7vw, 1.35rem);
  line-height: 1.55;
  color: var(--silver-2);
  font-weight: 500;
  padding-left: 12px;
}
.testimonial-meta { color: var(--text-dim); font-size: 0.95rem; padding-left: 12px; }
.testimonial-meta strong { color: white; margin-right: 6px; }

/* ============= BOOK / FORM ============= */
.book-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 70px;
  align-items: start;
}
.book-grid h2 { margin-bottom: 20px; }
.book-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 34px;
  padding-top: 30px;
  border-top: 1px solid var(--border);
}
.book-meta > div strong { display: block; color: var(--silver-2); font-size: 1rem; font-weight: 600; }
.book-meta > div span { font-size: 0.85rem; color: var(--text-mute); }
.lead-form {
  padding: 38px;
  border-radius: var(--radius-lg);
}
.lead-form h3 { margin-bottom: 22px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lead-form label {
  display: block;
  margin-bottom: 14px;
  font-size: 0.85rem;
  color: var(--text-dim);
  font-weight: 500;
}
.lead-form input,
.lead-form select,
.lead-form textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 13px 14px;
  background: rgba(3, 5, 16, 0.6);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 0.95rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(30, 107, 255, 0.25);
  background: rgba(3, 5, 16, 0.85);
}
.lead-form textarea { resize: vertical; min-height: 90px; }
.form-fine { font-size: 0.78rem; color: var(--text-mute); text-align: center; margin: 14px 0 0; }
.form-success {
  margin-top: 20px;
  padding: 18px;
  border-radius: 10px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #86efac;
  font-size: 0.95rem;
  text-align: center;
}
.form-success strong { color: #4ade80; margin-right: 6px; }

/* ============= FOOTER ============= */
.site-footer {
  padding: 70px 0 30px;
  background: rgba(3, 5, 16, 0.7);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 2;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 60px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}
.footer-brand p { font-size: 0.92rem; color: var(--text-dim); margin-top: 16px; max-width: 32ch; }
.footer-logo { height: 46px; width: auto; filter: drop-shadow(0 0 12px rgba(30, 107, 255, 0.4)); }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.footer-cols h5 { margin-bottom: 14px; }
.footer-cols a { display: block; padding: 5px 0; color: var(--text-dim); font-size: 0.9rem; transition: color 0.15s ease; }
.footer-cols a:hover { color: white; }
.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  color: var(--text-mute);
  font-size: 0.82rem;
  gap: 12px;
  flex-wrap: wrap;
}

/* ============= CHECK LIST ============= */
.check-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.check-list li {
  position: relative;
  padding-left: 30px;
  font-size: 0.95rem;
  color: var(--text);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 4px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(30, 107, 255, 0.3), rgba(34, 211, 238, 0.3));
  border: 1px solid var(--blue);
  box-shadow: 0 0 10px rgba(30, 107, 255, 0.4);
}
.check-list li::after {
  content: "";
  position: absolute;
  left: 6px; top: 9px;
  width: 8px; height: 4px;
  border-left: 2px solid var(--cyan);
  border-bottom: 2px solid var(--cyan);
  transform: rotate(-45deg);
}
.check-list-lg li { font-size: 1rem; padding-left: 34px; }

/* ============= PILOT AI CHAT ============= */
.chat-fab {
  position: fixed;
  bottom: 26px; right: 26px;
  width: 62px; height: 62px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue) 0%, var(--cyan) 100%);
  color: white;
  z-index: 50;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 30px -8px rgba(30, 107, 255, 0.7);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.chat-fab:hover { transform: scale(1.08); box-shadow: 0 16px 40px -8px rgba(30, 107, 255, 0.9); }
.chat-fab svg { width: 26px; height: 26px; position: relative; z-index: 2; }
.chat-fab.attention { animation: chat-attention 0.6s ease-in-out 3; }
@keyframes chat-attention {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15) rotate(-5deg); }
}
.chat-fab-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--blue-2);
  opacity: 0.8;
  animation: chat-ring 2s ease-out infinite;
}
.chat-fab-ring-2 { animation-delay: 1s; }
@keyframes chat-ring {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.7); opacity: 0; }
}
.chat-fab-badge {
  position: absolute;
  top: -4px; right: -4px;
  background: #ef4444;
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  width: 20px; height: 20px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--bg);
  z-index: 3;
}
.chat-fab-badge.hidden { display: none; }

.chat-panel {
  position: fixed;
  bottom: 100px; right: 26px;
  width: min(380px, calc(100vw - 40px));
  height: min(560px, calc(100vh - 140px));
  background: rgba(6, 10, 26, 0.95);
  backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7), 0 0 40px -10px rgba(30, 107, 255, 0.4);
  z-index: 49;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  pointer-events: none;
  transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1), transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}
.chat-panel.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.chat-header {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}
.chat-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 700; font-size: 0.9rem;
  position: relative;
}
.chat-avatar::before { content: "P"; font-family: var(--font-display); }
.chat-avatar-dot {
  position: absolute;
  bottom: 1px; right: 1px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid var(--bg);
  box-shadow: 0 0 6px #22c55e;
}
.chat-header-info { flex: 1; }
.chat-header-info strong { display: block; color: white; font-size: 0.95rem; }
.chat-header-info span { font-size: 0.75rem; color: var(--text-mute); }
.chat-close {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: var(--silver);
  font-size: 1.3rem;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
  transition: background 0.15s ease;
}
.chat-close:hover { background: rgba(255, 255, 255, 0.12); }

.chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.chat-msg {
  padding: 10px 14px;
  border-radius: 14px;
  max-width: 85%;
  font-size: 0.9rem;
  line-height: 1.45;
  animation: chat-msg-in 0.3s ease;
}
@keyframes chat-msg-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.chat-msg.bot { background: rgba(30, 107, 255, 0.15); color: var(--silver-2); border-bottom-left-radius: 4px; align-self: flex-start; }
.chat-msg.user { background: linear-gradient(135deg, var(--blue), var(--cyan)); color: white; border-bottom-right-radius: 4px; align-self: flex-end; }
.chat-quickreplies { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.chat-quickreplies button {
  font-size: 0.78rem;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(30, 107, 255, 0.1);
  border: 1px solid var(--border-strong);
  color: var(--silver-2);
  transition: background 0.15s ease, transform 0.15s ease;
}
.chat-quickreplies button:hover { background: rgba(30, 107, 255, 0.25); transform: translateY(-1px); }

.chat-input {
  padding: 14px 18px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 10px;
  align-items: center;
}
.chat-input input {
  flex: 1;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(3, 5, 16, 0.7);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.9rem;
  outline: none;
}
.chat-input input:focus { border-color: var(--blue); }
.chat-input button[type="submit"] {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: white;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.chat-input button svg { width: 16px; height: 16px; }

/* ============= REVEAL ANIMATIONS ============= */
.reveal-up { opacity: 0; transform: translateY(30px); transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal-up.visible { opacity: 1; transform: translateY(0); }

/* ============= RESPONSIVE ============= */
@media (max-width: 960px) {
  .primary-nav, .header-inner > .btn { display: none; }
  .nav-toggle { display: flex; }
  .service-grid, .trades-grid, .results-grid { grid-template-columns: 1fr 1fr; }
  .book-grid { grid-template-columns: 1fr; gap: 50px; }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}
@media (max-width: 640px) {
  .service-grid, .trades-grid, .results-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .book-meta { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  .cursor-glow { display: none; }
  .chat-fab { bottom: 20px; right: 20px; width: 56px; height: 56px; }
  .chat-panel { bottom: 88px; right: 20px; width: calc(100vw - 40px); height: calc(100vh - 120px); }
}

/* Focus visibility */
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  #scene3d, .halo, .scene-godrays, .floating-decor { display: none; }
}
