/* ============================================
   HOME CONSULTING AI — Main site
   Blue-only · centered · bold · with scroll FX
   ============================================ */

:root {
  /* Light theme */
  --bg: #f7f9fc;
  --bg-2: #ffffff;
  --bg-3: #eef3fb;
  --fg: #0a1130;
  --fg-dim: #4a5474;
  --fg-mute: #8892b0;
  --line: #e3e9f4;
  --line-2: #d4ddee;
  --surface: #ffffff;

  --blue: #2c6bff;
  --blue-bright: #1f5cf0;
  --blue-deep: #0e3fb3;
  --blue-glow: #2c6bff;
  --blue-pale: #d6e3ff;

  --gradient: linear-gradient(135deg, #0e3fb3 0%, #2c6bff 50%, #4f8bff 100%);
  --gradient-bright: linear-gradient(135deg, #1f5cf0 0%, #4f8bff 100%);
  --gradient-soft: linear-gradient(135deg, rgba(44,107,255,0.10), rgba(109,164,255,0.04));
  --gradient-radial: radial-gradient(circle at center, rgba(44,107,255,0.4), transparent 70%);

  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --sans: 'Geist', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --display: 'Geist', 'Helvetica Neue', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body { overflow-x: hidden; min-height: 100vh; text-align: center; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { max-width: 100%; display: block; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }

/* ---------- Decorative bg ---------- */
.grid-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(44,107,255,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(44,107,255,0.07) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 30%, black 0%, transparent 75%);
}
.orb { position: fixed; border-radius: 50%; pointer-events: none; z-index: 0; filter: blur(120px); }
.orb-a { top: -240px; left: 50%; transform: translateX(-50%); width: 900px; height: 900px; background: radial-gradient(circle, rgba(44,107,255,0.18), transparent 70%); }
.orb-b { bottom: -300px; left: 50%; transform: translateX(-50%); width: 700px; height: 700px; background: radial-gradient(circle, rgba(109,164,255,0.14), transparent 70%); }

/* ---------- Floating particles (drifting on scroll) ---------- */
.particles { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.particle {
  position: absolute;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 10px rgba(44,107,255,0.6), 0 0 20px rgba(44,107,255,0.3);
  opacity: 0;
  animation: drift 14s linear infinite;
}
@keyframes drift {
  0% { transform: translateY(110vh) translateX(0); opacity: 0; }
  10% { opacity: 0.8; }
  90% { opacity: 0.8; }
  100% { transform: translateY(-10vh) translateX(40px); opacity: 0; }
}

/* ---------- NAV ---------- */
.nav {
  position: sticky; top: 0; z-index: 60;
  backdrop-filter: blur(18px) saturate(140%);
  background: rgba(255,255,255,0.85);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; gap: 24px; }
.brand {
  display: inline-flex; align-items: center; line-height: 1; padding: 4px 0;
}
.brand-text {
  display: inline-flex; align-items: center; gap: 2px; line-height: 1;
  font-family: var(--display);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.01em;
}
.brand-hex { width: 24px; height: 24px; object-fit: contain; margin: 0 2px; }

.nav-links {
  display: flex; gap: 4px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--fg-dim);
}
.nav-links > a, .nav-links > .has-drop > a {
  padding: 9px 16px;
  border-radius: 100px;
  transition: all 0.18s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav-links a:hover, .nav-links a.active { color: var(--fg); background: rgba(44,107,255,0.08); }

/* Services dropdown */
.has-drop { position: relative; }
.has-drop > a::after {
  content: ''; width: 6px; height: 6px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translate(-1px, -1px);
  transition: transform 0.2s;
}
.has-drop:hover > a::after { transform: rotate(225deg) translate(-1px, -1px); }
.dropdown {
  position: absolute; top: calc(100% + 6px); left: 50%;
  transform: translateX(-50%) translateY(-6px);
  width: 360px;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: 16px;
  padding: 10px;
  box-shadow: 0 30px 80px rgba(10,17,48,0.18), 0 0 0 1px rgba(44,107,255,0.06);
  opacity: 0; pointer-events: none;
  transition: all 0.2s ease;
  z-index: 70;
}
.has-drop:hover .dropdown,
.has-drop:focus-within .dropdown {
  opacity: 1; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.dropdown-head {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-mute);
  padding: 12px 14px 8px;
  text-align: left;
}
.drop-item {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  text-align: left;
  transition: all 0.15s;
}
.drop-item:hover { background: rgba(44,107,255,0.12); }
.drop-item .di-ic {
  width: 36px; height: 36px;
  border-radius: 9px;
  background: var(--gradient-soft);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 14px;
  color: var(--blue-glow);
  flex-shrink: 0;
}
.drop-item .di-name { font-size: 14px; font-weight: 600; color: var(--fg); }
.drop-item .di-sub { font-size: 12px; color: var(--fg-dim); margin-top: 2px; }

.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-mobile-toggle { display: none; }
.nav-mobile-toggle span { display: block; width: 22px; height: 2px; background: var(--fg); margin: 5px 0; transition: 0.3s; border-radius: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px; border-radius: 100px;
  font-family: var(--sans); font-size: 14px; font-weight: 700; letter-spacing: -0.005em;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gradient);
  color: white;
  box-shadow: 0 8px 30px rgba(44,107,255,0.4), inset 0 1px 0 rgba(255,255,255,0.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(44,107,255,0.55), inset 0 1px 0 rgba(255,255,255,0.3); }
.btn-ghost { border-color: var(--line-2); color: var(--fg); background: var(--bg-2); }
.btn-ghost:hover { border-color: var(--blue); background: rgba(44,107,255,0.06); }
.btn-link { color: var(--fg); padding: 10px 4px; font-size: 14px; font-weight: 600; }

/* ---------- Typography ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--blue-bright);
  text-transform: uppercase;
  padding: 8px 16px;
  border: 1px solid var(--line-2);
  border-radius: 100px;
  background: rgba(44,107,255,0.06);
  backdrop-filter: blur(10px);
}
.eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 10px rgba(44,107,255,0.6); animation: pulse 1.8s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

.h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(48px, 7vw, 96px);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--fg);
}
.h1 em {
  font-style: normal;
  background: var(--gradient-bright);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(36px, 5.5vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--fg);
}
.h2 em {
  font-style: normal;
  background: var(--gradient-bright);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.lede {
  font-size: 19px;
  color: var(--fg-dim);
  line-height: 1.6;
  max-width: 60ch;
  margin: 0 auto;
  font-weight: 400;
}
.lede strong { color: var(--fg); font-weight: 600; }

/* ---------- Sections ---------- */
.sec { position: relative; padding: 130px 0; z-index: 2; }
.sec-head { margin-bottom: 64px; max-width: 800px; margin-left: auto; margin-right: auto; }
.sec-head .eyebrow { margin-bottom: 24px; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  padding: 96px 0 72px;
  z-index: 2;
}
.hero-actions { display: flex; gap: 12px; margin-top: 40px; flex-wrap: wrap; justify-content: center; }
.hero-trust { display: inline-flex; align-items: center; gap: 18px; margin-top: 36px; font-family: var(--mono); font-size: 12px; color: var(--fg-dim); letter-spacing: 0.06em; flex-wrap: wrap; justify-content: center; }
.hero-trust .stars { color: var(--blue-glow); letter-spacing: 2px; }
.hero-trust .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--fg-mute); }

/* ---------- Stat strip ---------- */
.stat-strip {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line-2);
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg-2);
  box-shadow: 0 30px 60px rgba(10,17,48,0.08);
}
.stat-cell { padding: 36px 28px; border-right: 1px solid var(--line); position: relative; text-align: center; }
.stat-cell:last-child { border-right: 0; }
.stat-cell .sv {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(48px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -0.04em;
  background: var(--gradient-bright);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-cell .sv .unit { font-size: 0.5em; margin-left: 4px; }
.stat-cell .sl { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg); margin-top: 14px; font-weight: 500; }
.stat-cell .sd { font-size: 13px; color: var(--fg-dim); margin-top: 10px; line-height: 1.55; }

/* ---------- Features (cards) ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 56px;
}
.feature {
  position: relative;
  border: 1px solid var(--line);
  padding: 36px 28px;
  border-radius: 20px;
  background: var(--bg-2);
  min-height: 280px;
  text-align: left;
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  overflow: hidden;
}
.feature::before {
  content: ''; position: absolute; inset: 0;
  background: var(--gradient-soft);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.feature:hover {
  border-color: var(--blue);
  transform: translateY(-6px);
  box-shadow: 0 30px 60px rgba(44,107,255,0.15);
}
.feature:hover::before { opacity: 1; }
.feature > * { position: relative; z-index: 1; }
.feature-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--gradient);
  display: flex; align-items: center; justify-content: center;
  color: white;
  font-family: var(--mono); font-size: 18px;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(44,107,255,0.4);
}
.feature-tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--blue-bright);
  text-transform: uppercase;
  margin-top: 28px;
  font-weight: 500;
}
.feature h3 {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-top: 12px;
  color: var(--fg);
}
.feature p {
  color: var(--fg-dim);
  font-size: 15px;
  line-height: 1.6;
  margin-top: 16px;
}
.feature-num {
  position: absolute; top: 24px; right: 28px;
  font-family: var(--mono); font-size: 11px;
  color: var(--fg-mute); letter-spacing: 0.12em;
}

/* Industry cards (links) - flip card style */
.industry-card {
  cursor: pointer;
  perspective: 1000px;
  border: none;
  padding: 0;
  background: transparent;
  min-height: 280px;
  text-align: left;
}
.industry-card:hover { transform: none; box-shadow: none; }
.industry-card::before { display: none; }
.industry-inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 280px;
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
  transform-style: preserve-3d;
}
.industry-card:hover .industry-inner { transform: rotateY(180deg); }
.industry-front, .industry-back {
  position: absolute; inset: 0;
  border-radius: 20px;
  padding: 32px 28px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  flex-direction: column;
}
.industry-back {
  transform: rotateY(180deg);
  background: var(--gradient);
  border-color: var(--blue-bright);
  justify-content: center;
  align-items: center;
  text-align: center;
}
.industry-back h4 {
  font-family: var(--display);
  font-weight: 800;
  font-size: 22px;
  color: white;
  margin-bottom: 12px;
}
.industry-back p {
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  margin-bottom: 24px;
  max-width: 26ch;
}
.industry-back .go {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 100px;
  background: white;
  color: var(--blue-deep);
  font-weight: 700;
  font-size: 13px;
}

/* ---------- Big "icons" / numbered steps ---------- */
.steps {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 18px; margin-top: 56px;
}
.step {
  text-align: center;
  padding: 32px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg-2);
  transition: all 0.3s;
}
.step:hover { border-color: var(--blue); transform: translateY(-4px); box-shadow: 0 16px 32px rgba(44,107,255,0.10); }
.step .num {
  font-family: var(--display);
  font-weight: 800;
  font-size: 56px;
  line-height: 1;
  letter-spacing: -0.04em;
  background: var(--gradient-bright);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.step h4 { font-family: var(--display); font-weight: 800; font-size: 17px; margin-top: 16px; letter-spacing: -0.015em; }
.step p { font-size: 13px; color: var(--fg-dim); margin-top: 8px; line-height: 1.55; }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.quote {
  border: 1px solid var(--line);
  padding: 32px 28px;
  border-radius: 20px;
  background: var(--bg-2);
  text-align: left;
  position: relative;
  transition: all 0.3s;
}
.quote:hover { border-color: var(--blue); transform: translateY(-4px); box-shadow: 0 20px 40px rgba(44,107,255,0.10); }
.stars { color: var(--blue); font-size: 15px; letter-spacing: 3px; margin-bottom: 16px; }
.quote q {
  display: block;
  font-family: var(--display);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--fg);
  quotes: none;
}
.quote q::before, .quote q::after { content: none; }
.quote-foot {
  display: flex; gap: 12px; align-items: center;
  margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line);
}
.qf-name { font-size: 14px; font-weight: 700; color: var(--fg); }
.qf-meta { font-family: var(--mono); font-size: 11px; color: var(--fg-dim); margin-top: 3px; }
.qf-metric { margin-left: auto; text-align: right; }
.qf-metric .v {
  font-family: var(--display); font-weight: 800; font-size: 22px;
  background: var(--gradient-bright);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  letter-spacing: -0.02em;
}
.qf-metric .l { font-family: var(--mono); font-size: 10px; color: var(--fg-mute); letter-spacing: 0.12em; text-transform: uppercase; }

/* ---------- Logos row ---------- */
.logo-row {
  display: flex; justify-content: center; align-items: center;
  gap: 56px; margin-top: 64px; padding: 32px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.logo-row .li {
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
  color: var(--fg-dim);
  letter-spacing: -0.01em;
  white-space: nowrap;
  opacity: 0.6;
  transition: all 0.2s;
}
.logo-row .li:hover { opacity: 1; color: var(--fg); }

/* ---------- FAQ ---------- */
.faq-list { border-top: 1px solid var(--line); margin-top: 40px; max-width: 880px; margin-left: auto; margin-right: auto; }
.faq-item { border-bottom: 1px solid var(--line); padding: 24px 0; cursor: pointer; text-align: left; }
.faq-q { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.faq-q h4 { font-family: var(--display); font-size: 20px; font-weight: 700; color: var(--fg); letter-spacing: -0.015em; }
.faq-plus {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--gradient-soft);
  border: 1px solid var(--line-2);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 16px; color: var(--blue-bright);
  transition: transform 0.3s;
  flex-shrink: 0;
}
.faq-item.open .faq-plus { transform: rotate(45deg); background: var(--gradient); color: white; border-color: var(--blue); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  color: var(--fg-dim); font-size: 16px; line-height: 1.6; max-width: 70ch;
}
.faq-item.open .faq-a { max-height: 400px; padding-top: 16px; }

/* ---------- CTA ---------- */
.cta-wrap {
  position: relative;
  padding: 130px 0;
  border-top: 1px solid var(--line);
  overflow: hidden;
}
.cta-wrap::before {
  content: ''; position: absolute; inset: -50%;
  background: radial-gradient(circle, rgba(44,107,255,0.12), transparent 55%);
  pointer-events: none;
}
.cta-wrap > * { position: relative; z-index: 2; }
.cta-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(42px, 6.5vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  max-width: 18ch;
  margin: 0 auto;
  color: var(--fg);
}
.cta-title em {
  font-style: normal;
  background: var(--gradient-bright);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.cta-sub { color: var(--fg-dim); font-size: 19px; margin: 28px auto 40px; max-width: 56ch; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.foot {
  border-top: 1px solid var(--line);
  padding: 64px 0 32px;
  position: relative; z-index: 2;
  background: var(--bg);
  text-align: left;
}
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 56px; }
.foot h6 {
  font-family: var(--mono); font-size: 11px;
  color: var(--fg-mute); letter-spacing: 0.16em;
  text-transform: uppercase; margin-bottom: 20px; font-weight: 500;
}
.foot ul { list-style: none; }
.foot li { padding: 8px 0; font-size: 14px; color: var(--fg-dim); transition: color 0.2s; }
.foot li a { color: inherit; }
.foot li:hover { color: var(--fg); }
.foot-brand-desc { color: var(--fg-dim); font-size: 14px; margin-top: 16px; max-width: 36ch; line-height: 1.65; }
.foot-legal {
  display: flex; justify-content: space-between;
  margin-top: 56px; padding-top: 24px;
  border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 11px; color: var(--fg-mute);
  letter-spacing: 0.08em; text-transform: uppercase;
  flex-wrap: wrap; gap: 16px;
}

/* ---------- BOOK page ---------- */
.book-page { padding: 72px 0 96px; }
.book-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; margin-top: 56px; align-items: start; text-align: left; }
.book-left h1 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(48px, 6vw, 76px); line-height: 1.02;
  letter-spacing: -0.04em; margin: 24px 0; color: var(--fg);
}
.book-left h1 em {
  font-style: normal;
  background: var(--gradient-bright);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.book-left p { color: var(--fg-dim); font-size: 18px; line-height: 1.6; max-width: 46ch; }
.book-facts { margin-top: 40px; display: flex; flex-direction: column; gap: 18px; }
.book-fact { display: flex; gap: 16px; align-items: flex-start; }
.book-fact .f-ic {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--gradient); display: flex; align-items: center; justify-content: center;
  color: white; font-family: var(--mono); font-size: 14px; font-weight: 700;
  flex-shrink: 0;
}
.book-fact h5 { font-size: 15px; font-weight: 700; color: var(--fg); }
.book-fact p { font-size: 14px; color: var(--fg-dim); margin-top: 4px; line-height: 1.55; }
.calendly-wrap {
  border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
  background: var(--bg-2); min-height: 760px; position: relative;
}
.calendly-fallback {
  padding: 48px; text-align: center; color: var(--fg-dim);
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  min-height: 760px; gap: 18px;
}
.calendly-fallback h3 { font-family: var(--display); font-weight: 800; font-size: 28px; color: var(--fg); letter-spacing: -0.02em; }
.calendly-inline-widget { min-height: 760px !important; }

/* ---------- Industry demo subpage container ---------- */
.demo-subpage-hero { padding: 64px 0 24px; }
.demo-subpage-hero h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(40px, 5.5vw, 72px);
  line-height: 1;
  letter-spacing: -0.04em;
}
.demo-subpage-hero h1 em {
  font-style: normal;
  background: var(--gradient-bright);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.demo-site-frame {
  border: 1px solid var(--line-2);
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg-2);
  box-shadow: 0 40px 100px rgba(10,17,48,0.15), 0 0 0 1px rgba(44,107,255,0.05);
  margin-top: 40px;
}
.demo-site-bar {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 20px; border-bottom: 1px solid var(--line);
  background: var(--bg-3);
  font-family: var(--mono); font-size: 12px; color: var(--fg-dim);
}
.demo-dots { display: flex; gap: 6px; }
.demo-dots span { width: 11px; height: 11px; border-radius: 50%; background: var(--line-2); }
.demo-site-bar .url {
  flex: 1; padding: 7px 14px; border-radius: 100px;
  background: var(--bg); border: 1px solid var(--line);
  color: var(--fg-dim); font-size: 12px;
}
.demo-site-bar .url em { color: var(--blue-bright); font-style: normal; }

/* ---------- SCROLL ANIMATIONS ---------- */
[data-anim] {
  opacity: 0;
  transition: opacity 0.9s cubic-bezier(0.2, 0.8, 0.2, 1),
              transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1),
              filter 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity, transform;
}
[data-anim="fade-up"] { transform: translateY(50px); }
[data-anim="fade-down"] { transform: translateY(-30px); }
[data-anim="pop"] { transform: scale(0.85); filter: blur(8px); }
[data-anim="flip"] { transform: rotateX(-25deg) translateY(40px); transform-origin: bottom; }
[data-anim="particles"] { transform: scale(0.92); filter: blur(20px); }
[data-anim="slide-left"] { transform: translateX(-60px); }
[data-anim="slide-right"] { transform: translateX(60px); }

[data-anim].in {
  opacity: 1;
  transform: none;
  filter: none;
}

[data-anim-stagger] > * {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.8, 0.2, 1),
              transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
[data-anim-stagger].in > * {
  opacity: 1;
  transform: none;
}
[data-anim-stagger].in > *:nth-child(1) { transition-delay: 0ms; }
[data-anim-stagger].in > *:nth-child(2) { transition-delay: 80ms; }
[data-anim-stagger].in > *:nth-child(3) { transition-delay: 160ms; }
[data-anim-stagger].in > *:nth-child(4) { transition-delay: 240ms; }
[data-anim-stagger].in > *:nth-child(5) { transition-delay: 320ms; }
[data-anim-stagger].in > *:nth-child(6) { transition-delay: 400ms; }

/* Particle burst on enter (reveal sweep) */
.particle-burst { position: relative; overflow: hidden; }
.particle-burst::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(44,107,255,0.18), transparent 60%);
  opacity: 0; transition: opacity 1s; pointer-events: none;
}
.particle-burst.in::after { opacity: 1; animation: burst 1.2s ease-out forwards; }
@keyframes burst {
  0% { opacity: 0; transform: scale(0.5); }
  40% { opacity: 1; }
  100% { opacity: 0; transform: scale(1.3); }
}

/* ---------- Mobile viewport simulation (for tweaks preview) ---------- */
html[data-viewport="mobile"] body { max-width: 420px; margin: 0 auto; border-left: 1px solid var(--line); border-right: 1px solid var(--line); box-shadow: 0 0 0 2000px rgba(20,30,60,0.45); }
html[data-viewport="mobile"] .wrap { padding: 0 20px; max-width: 420px; }
html[data-viewport="mobile"] .sec { padding: 70px 0; }
html[data-viewport="mobile"] .hero { padding: 56px 0 48px; }
html[data-viewport="mobile"] .nav-links { display: none; }
html[data-viewport="mobile"] .nav-links.open { display: flex; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg-2); flex-direction: column; padding: 20px; border-bottom: 1px solid var(--line); gap: 8px; }
html[data-viewport="mobile"] .nav-links.open .has-drop { width: 100%; }
html[data-viewport="mobile"] .nav-links.open .has-drop > a { display: flex; width: 100%; justify-content: flex-start; text-align: left; padding: 9px 16px; }
html[data-viewport="mobile"] .nav-links.open .has-drop > a::after { display: none; }
html[data-viewport="mobile"] .nav-links.open > a { justify-content: flex-start; text-align: left; }
html[data-viewport="mobile"] .nav-links.open .dropdown { position: static; opacity: 0; pointer-events: none; transform: none; width: 100%; box-shadow: none; background: var(--bg-3); margin-top: 0; max-height: 0; overflow: hidden; padding: 0 14px; transition: max-height 0.3s ease, opacity 0.2s ease, padding 0.3s ease, margin 0.3s ease; }
html[data-viewport="mobile"] .nav-links.open .has-drop.open .dropdown { opacity: 1; pointer-events: auto; max-height: 600px; padding: 14px; margin-top: 4px; }
html[data-viewport="mobile"] .nav-mobile-toggle { display: block; }
html[data-viewport="mobile"] .nav-cta .btn-primary { display: none; }
html[data-viewport="mobile"] .features { grid-template-columns: 1fr; }
html[data-viewport="mobile"] .stat-strip { grid-template-columns: 1fr; }
html[data-viewport="mobile"] .stat-strip .stat-cell { border-right: 0; border-bottom: 1px solid var(--line); }
html[data-viewport="mobile"] .stat-strip .stat-cell:last-child { border-bottom: 0; }
html[data-viewport="mobile"] .quotes { grid-template-columns: 1fr; }
html[data-viewport="mobile"] .steps { grid-template-columns: 1fr; }
html[data-viewport="mobile"] .book-grid { grid-template-columns: 1fr; }
html[data-viewport="mobile"] .foot-grid { grid-template-columns: 1fr; gap: 32px; }
html[data-viewport="mobile"] .logo-row { gap: 18px; }
html[data-viewport="mobile"] .industry-card:hover .industry-inner { transform: none; }

@media (max-width: 1100px) {
  .features { grid-template-columns: 1fr 1fr; }
  .stat-strip { grid-template-columns: 1fr 1fr; }
  .stat-strip .stat-cell:nth-child(2) { border-right: 0; }
  .stat-strip .stat-cell:nth-child(1), .stat-strip .stat-cell:nth-child(2) { border-bottom: 1px solid var(--line); }
  .quotes { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .logo-row { gap: 32px; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .book-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 20px; }
  .sec { padding: 80px 0; }
  .hero { padding: 56px 0 56px; }
  .nav-links { display: none; }
  .nav-links.open { display: flex; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg-2); flex-direction: column; padding: 20px; border-bottom: 1px solid var(--line); gap: 8px; }
  .nav-links.open .has-drop { width: 100%; }
  .nav-links.open .has-drop > a { display: flex; width: 100%; justify-content: flex-start; text-align: left; padding: 9px 16px; }
  .nav-links.open .has-drop > a::after { display: none; }
  .nav-links.open > a { justify-content: flex-start; text-align: left; }
  .nav-links.open .dropdown { position: static; opacity: 0; pointer-events: none; transform: none; width: 100%; box-shadow: none; background: var(--bg-3); margin-top: 0; max-height: 0; overflow: hidden; padding: 0 14px; transition: max-height 0.3s ease, opacity 0.2s ease, padding 0.3s ease, margin 0.3s ease; }
  .nav-links.open .has-drop.open .dropdown { opacity: 1; pointer-events: auto; max-height: 600px; padding: 14px; margin-top: 4px; }
  .nav-mobile-toggle { display: block; }
  .nav-cta .btn-ghost { display: none; }
  .features { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: 1fr; }
  .stat-strip .stat-cell { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat-strip .stat-cell:last-child { border-bottom: 0; }
  .steps { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .industry-card:hover .industry-inner { transform: none; }
}

/* ---------- INDUSTRY DEMO STYLES (overridden by per-demo files) ---------- */
/* These are only loaded inside the .dsite frame on demo subpages — see /demos/*.css */
