/* industry-b2b-software.html — page-specific styles */

/* ══════════════════════════════════════════════
       B2B SOFTWARE PAGE  (prefix: bbs-)
    ══════════════════════════════════════════════ */

    /* ── Hero (dark) ── */
    .bbs-hero {
      background: var(--dark);
      min-height: 100vh;
      padding: 0;
      display: flex;
      align-items: center;
      position: relative;
      overflow: hidden;
    }
    .bbs-hero::before {
      content: '';
      position: absolute; top: 0; right: 0;
      width: 55%; height: 100%;
      background: radial-gradient(ellipse at 85% 35%, rgba(60,234,199,0.09) 0%, transparent 62%);
      pointer-events: none;
    }
    .bbs-hero::after {
      content: '';
      position: absolute; bottom: 0; left: 0; right: 0; height: 120px;
      background: linear-gradient(to bottom, transparent, rgba(0,26,21,0.55));
      pointer-events: none;
    }
    .bbs-hero > .container {
      padding-top: calc(var(--nav-h, 80px) + 2.5rem);
      padding-bottom: 3rem;
      width: 100%;
      position: relative; z-index: 1;
    }
    .bbs-hero-grid {
      display: grid;
      grid-template-columns: 1.05fr 0.95fr;
      gap: 5rem;
      align-items: center;
    }
    .bbs-hero .section-label {
      background: rgba(60,234,199,0.1);
      color: var(--teal-bright);
      border-color: rgba(60,234,199,0.2);
    }
    .bbs-hero h1 {
      font-family: var(--font-display);
      font-size: 62px;
      font-weight: 800;
      line-height: 1.08;
      color: var(--cream);
      margin: 0.85rem 0 0;
    }
    .bbs-hero-sub {
      font-size: 1.1rem;
      line-height: 1.8;
      color: rgba(246,246,242,0.62);
      margin: 1.15rem 0 0;
      max-width: 46ch;
    }
    .bbs-hero-cta {
      display: flex;
      gap: 1rem;
      flex-wrap: wrap;
      margin-top: 2.25rem;
    }
    .bbs-hero-cta .btn-ghost {
      color: var(--teal-light);
      border-color: rgba(60,234,199,0.25);
    }

    /* Trust pills — dark variant */
    .bbs-trust {
      display: flex;
      flex-wrap: wrap;
      gap: 0.65rem;
      margin-top: 2rem;
    }
    .bbs-trust-pill {
      display: inline-flex;
      align-items: center;
      gap: 0.45rem;
      padding: 0.3rem 0.85rem;
      border-radius: 999px;
      border: 1px solid rgba(60,234,199,0.18);
      font-size: 0.78rem;
      font-weight: 600;
      font-family: var(--font-mono);
      color: rgba(168,240,227,0.65);
      letter-spacing: 0.03em;
    }
    .bbs-trust-pill::before {
      content: '';
      width: 5px; height: 5px;
      border-radius: 50%;
      background: var(--teal-bright);
      opacity: 0.7;
      flex-shrink: 0;
    }

    /* Illustration wrapper */
    .bbs-ill-wrap {
      position: relative;
      filter: drop-shadow(0 0 60px rgba(60,234,199,0.1)) drop-shadow(0 32px 64px rgba(0,0,0,0.4));
    }
    .bbs-ill-svg { display: block; width: 100%; height: auto; }

    /* ── SVG Animations ── */
    @keyframes bbsBarGrow {
      from { transform: scaleY(0); }
      to   { transform: scaleY(1); }
    }
    @keyframes bbsTrendDraw {
      from { stroke-dashoffset: 200; }
      to   { stroke-dashoffset: 0; }
    }
    @keyframes bbsPanelIn {
      from { opacity: 0; transform: translateX(-16px); }
      to   { opacity: 1; transform: translateX(0); }
    }
    @keyframes bbsCardIn {
      from { opacity: 0; transform: translateX(16px); }
      to   { opacity: 1; transform: translateX(0); }
    }
    @keyframes bbsFlowDash {
      0%   { stroke-dashoffset: 40; opacity: 0; }
      10%  { opacity: 1; }
      90%  { opacity: 1; }
      100% { stroke-dashoffset: 0; opacity: 0; }
    }
    @keyframes bbsFlowPulse {
      0%, 100% { opacity: 0.15; }
      50%       { opacity: 0.65; }
    }
    @keyframes bbsGlow {
      0%, 100% { opacity: 0.07; }
      50%       { opacity: 0.18; }
    }
    @keyframes bbsFade {
      from { opacity: 0; }
      to   { opacity: 1; }
    }

    .bbs-anim-panel { animation: bbsPanelIn 0.6s var(--ease-spring) 0.4s both; }
    .bbs-anim-c1    { animation: bbsCardIn 0.45s var(--ease-spring) 1.0s both; }
    .bbs-anim-c2    { animation: bbsCardIn 0.45s var(--ease-spring) 1.25s both; }
    .bbs-anim-c3    { animation: bbsCardIn 0.45s var(--ease-spring) 1.5s both; }

    .bbs-bar {
      transform-box: fill-box;
      transform-origin: 50% 100%;
      animation: bbsBarGrow 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    }
    .bbs-bar-1 { animation-delay: 0.8s; }
    .bbs-bar-2 { animation-delay: 0.92s; }
    .bbs-bar-3 { animation-delay: 1.04s; }
    .bbs-bar-4 { animation-delay: 1.16s; }
    .bbs-bar-5 { animation-delay: 1.28s; }
    .bbs-bar-6 { animation-delay: 1.4s; }

    .bbs-trend {
      stroke-dasharray: 200;
      animation: bbsTrendDraw 0.85s ease-out 1.6s both;
    }
    .bbs-mrr-fade { animation: bbsFade 0.5s ease-out 1.85s both; }

    .bbs-flow-1 { animation: bbsFlowDash 2.5s linear 2.2s infinite; }
    .bbs-flow-2 { animation: bbsFlowDash 2.5s linear 2.7s infinite; }
    .bbs-flow-3 { animation: bbsFlowDash 2.5s linear 3.2s infinite; }
    .bbs-pulse-1 { animation: bbsFlowPulse 2.5s ease-in-out 2.2s infinite; }
    .bbs-pulse-2 { animation: bbsFlowPulse 2.5s ease-in-out 2.7s infinite; }
    .bbs-pulse-3 { animation: bbsFlowPulse 2.5s ease-in-out 3.2s infinite; }
    .bbs-glow    { animation: bbsGlow 3.5s ease-in-out infinite; }

    /* ── Customer Economics (light) ── */
    .bbs-econ {
      background: var(--cream-soft);
      padding: 6.5rem 0;
    }
    .bbs-econ-header { max-width: 640px; }

    /* shared heading style across light sections */
    .bbs-section-h2 {
      font-family: var(--font-display);
      font-size: clamp(1.85rem, 3.5vw, 2.5rem);
      font-weight: 800;
      line-height: 1.15;
      color: var(--ink);
      margin-top: 0.75rem;
    }
    .bbs-section-p {
      font-size: 1.05rem;
      line-height: 1.875;
      color: var(--ink-60);
      margin-top: 1rem;
    }

    /* Feature cards */
    .bbs-cards-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1.5rem;
      margin-top: 3rem;
    }
    .bbs-card {
      background: var(--cream);
      border-radius: 14px;
      padding: 2rem;
      border-left: 3px solid var(--teal);
      position: relative;
      overflow: hidden;
      transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
    }
    .bbs-card:hover {
      transform: translateY(-4px);
      box-shadow: 0 14px 44px rgba(0,26,21,0.09);
    }
    .bbs-card::before {
      content: '';
      position: absolute; top: 0; right: 0;
      width: 90px; height: 90px;
      background: radial-gradient(circle at top right, rgba(0,133,125,0.05), transparent 70%);
      pointer-events: none;
    }
    .bbs-card-icon {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 36px; height: 36px;
      background: var(--teal);
      border-radius: 9px;
      margin-bottom: 1.1rem;
    }
    .bbs-card-icon svg { width: 18px; height: 18px; color: #fff; }
    .bbs-card h3 {
      font-family: var(--font-display);
      font-size: 1.15rem;
      font-weight: 700;
      color: var(--ink);
      line-height: 1.35;
      margin-bottom: 0.7rem;
    }
    .bbs-card p {
      font-size: 0.9rem;
      line-height: 1.75;
      color: var(--ink-60);
      margin: 0;
    }

    /* ── Growth Infrastructure ── */
    .bbs-growth {
      background: var(--cream);
      padding: 6.5rem 0;
    }
    .bbs-growth .bbs-card { background: var(--cream-soft); }

    /* ── Process ── */
    .bbs-process {
      background: var(--cream-soft);
      padding: 6.5rem 0;
    }
    .bbs-process-header { max-width: 560px; margin-bottom: 3rem; }
    .bbs-process-row {
      display: grid;
      grid-template-columns: 56px 1fr;
      gap: 2rem;
      padding: 2rem 0;
      border-bottom: 1px solid rgba(24,15,6,0.07);
      align-items: start;
      transition: background 0.25s;
      border-radius: 4px;
    }
    .bbs-process-row:first-of-type { border-top: 1px solid rgba(24,15,6,0.07); }
    .bbs-process-row:hover { background: rgba(0,133,125,0.03); padding-left: 0.5rem; }
    .bbs-process-num {
      font-family: var(--font-display);
      font-size: 2rem;
      font-weight: 800;
      color: rgba(0,133,125,0.2);
      line-height: 1;
      padding-top: 0.1rem;
    }
    .bbs-process-content h3 {
      font-family: var(--font-display);
      font-size: 1.15rem;
      font-weight: 700;
      color: var(--ink);
      margin-bottom: 0.45rem;
    }
    .bbs-process-content p {
      font-size: 1.05rem;
      line-height: 1.78;
      color: var(--ink-60);
      margin: 0;
    }

    /* ── Scaling Challenges (dark) ── */
    .bbs-challenge {
      background: var(--dark);
      padding: 7rem 0;
      position: relative;
      overflow: hidden;
    }
    .bbs-challenge::before {
      content: '';
      position: absolute; top: 0; left: 0; right: 0;
      height: 1px;
      background: linear-gradient(to right, transparent, rgba(60,234,199,0.15), transparent);
    }
    .bbs-challenge::after {
      content: '';
      position: absolute; bottom: 0; right: 0;
      width: 45%; height: 70%;
      background: radial-gradient(ellipse at 85% 80%, rgba(60,234,199,0.06), transparent 65%);
      pointer-events: none;
    }
    .bbs-challenge-inner {
      position: relative; z-index: 1;
      max-width: 720px;
    }
    .bbs-challenge-inner .section-label {
      background: rgba(60,234,199,0.1);
      color: var(--teal-bright);
      border-color: rgba(60,234,199,0.2);
    }
    .bbs-challenge-inner h2 {
      font-family: var(--font-display);
      font-size: clamp(1.85rem, 3.5vw, 2.5rem);
      font-weight: 800;
      line-height: 1.1;
      color: var(--cream);
      margin-top: 0.75rem;
    }
    .bbs-challenge-inner p {
      font-size: 1.05rem;
      line-height: 1.85;
      color: rgba(246,246,242,0.6);
      margin-top: 1.25rem;
      max-width: 62ch;
    }

    /* ── Proof ── */
    .bbs-proof {
      background: var(--cream);
      padding: 6.5rem 0;
    }
    .bbs-proof-header { max-width: 560px; }
    .bbs-stats-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 0;
      margin-top: 3rem;
      border: 1px solid rgba(24,15,6,0.08);
      border-radius: 16px;
      overflow: hidden;
    }
    .bbs-stat {
      padding: 2.75rem 2.5rem;
      background: var(--cream-soft);
      border-right: 1px solid rgba(24,15,6,0.08);
    }
    .bbs-stat:last-child { border-right: none; }
    .bbs-stat-number {
      font-family: var(--font-display);
      font-size: clamp(2rem, 3vw, 2.5rem);
      font-weight: 800;
      color: var(--ink);
      line-height: 1;
    }
    .bbs-stat-number span { color: var(--teal); }
    .bbs-stat-label {
      font-size: 0.78rem;
      font-weight: 700;
      letter-spacing: 0.09em;
      text-transform: uppercase;
      color: var(--ink-40);
      font-family: var(--font-mono);
      margin-top: 0.6rem;
    }

    /* ── Close / Next Step ── */
    .bbs-close {
      background: var(--cream-soft);
      padding: 7rem 0;
      text-align: center;
      position: relative;
    }
    .bbs-close::before {
      content: '';
      position: absolute; top: 0; left: 50%; transform: translateX(-50%);
      width: 600px; height: 1px;
      background: linear-gradient(to right, transparent, rgba(0,133,125,0.15), transparent);
    }
    .bbs-close-inner { max-width: 640px; margin: 0 auto; }
    .bbs-close h2 {
      font-family: var(--font-display);
      font-size: clamp(1.85rem, 3.5vw, 2.5rem);
      font-weight: 800;
      line-height: 1.12;
      color: var(--ink);
      margin-top: 0.75rem;
    }
    .bbs-close p {
      font-size: 1.05rem;
      color: var(--ink-60);
      line-height: 1.8;
      margin-top: 1.1rem;
    }
    .bbs-close-cta {
      display: flex;
      gap: 1rem;
      flex-wrap: wrap;
      justify-content: center;
      margin-top: 2.5rem;
    }

    /* ── Responsive ── */
    @media (max-width: 900px) {
      .bbs-hero-grid { grid-template-columns: 1fr; gap: 3rem; }
      .bbs-hero > .container { padding-top: calc(var(--nav-h, 80px) + 1.5rem); }
      .bbs-cards-grid { grid-template-columns: 1fr 1fr; }
      .bbs-stats-grid { grid-template-columns: 1fr; }
      .bbs-stat { border-right: none; border-bottom: 1px solid rgba(24,15,6,0.08); }
      .bbs-stat:last-child { border-bottom: none; }
    }
    @media (max-width: 600px) {
      .bbs-cards-grid { grid-template-columns: 1fr; }
      .bbs-process-row { grid-template-columns: 44px 1fr; gap: 1.25rem; }
      .bbs-process-num { font-size: 1.5rem; }
    }
