/* industry-ecommerce.html — page-specific styles */

/* ══════════════════════════════════════════════
       ECOMMERCE PAGE  (prefix: ec-)
    ══════════════════════════════════════════════ */

    /* ── Hero (dark) ── */
    .ec-hero {
      background: var(--dark);
      min-height: 100vh;
      padding: 0;
      display: flex;
      align-items: center;
      position: relative;
      overflow: hidden;
    }
    .ec-hero::before {
      content: '';
      position: absolute; top: 0; right: 0;
      width: 55%; height: 100%;
      background: radial-gradient(ellipse at 80% 40%, rgba(60,234,199,0.09) 0%, transparent 60%);
      pointer-events: none;
    }
    .ec-hero::after {
      content: '';
      position: absolute; bottom: 0; left: 0; right: 0; height: 120px;
      background: linear-gradient(to bottom, transparent, rgba(0,26,21,0.5));
      pointer-events: none;
    }
    .ec-hero > .container {
      padding-top: calc(var(--nav-h, 80px) + 2.5rem);
      padding-bottom: 3rem;
      width: 100%;
      position: relative; z-index: 1;
    }
    .ec-hero-grid {
      display: grid;
      grid-template-columns: 1.05fr 0.95fr;
      gap: 5rem;
      align-items: center;
    }
    .ec-hero .section-label {
      background: rgba(60,234,199,0.1);
      color: var(--teal-bright);
      border-color: rgba(60,234,199,0.2);
    }
    .ec-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;
    }
    .ec-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;
    }
    .ec-hero-support {
      font-size: 0.9rem;
      line-height: 1.75;
      color: rgba(246,246,242,0.38);
      margin: 0.85rem 0 0;
      max-width: 44ch;
    }
    .ec-hero-cta {
      display: flex;
      gap: 1rem;
      flex-wrap: wrap;
      margin-top: 2.25rem;
    }
    .ec-hero-cta .btn-ghost {
      color: var(--teal-light);
      border-color: rgba(60,234,199,0.25);
    }

    /* Trust pills — dark variant */
    .ec-trust {
      display: flex;
      flex-wrap: wrap;
      gap: 0.65rem;
      margin-top: 2rem;
    }
    .ec-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;
    }
    .ec-trust-pill::before {
      content: '';
      width: 5px; height: 5px;
      border-radius: 50%;
      background: var(--teal-bright);
      opacity: 0.7;
      flex-shrink: 0;
    }

    /* Illustration wrapper */
    .ec-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));
    }
    .ec-ill-svg { display: block; width: 100%; height: auto; }

    /* ── SVG Animations ── */
    @keyframes ecPanelIn {
      from { opacity: 0; transform: translateX(-16px); }
      to   { opacity: 1; transform: translateX(0); }
    }
    @keyframes ecCardIn {
      from { opacity: 0; transform: translateX(16px); }
      to   { opacity: 1; transform: translateX(0); }
    }
    @keyframes ecFadeIn {
      from { opacity: 0; }
      to   { opacity: 1; }
    }
    @keyframes ecCartPulse {
      0%, 100% { opacity: 0.88; }
      50%       { opacity: 1; }
    }
    @keyframes ecShimmer {
      from { transform: translateX(-160px); }
      to   { transform: translateX(160px); }
    }
    @keyframes ecSyncPulse {
      0%, 100% { opacity: 0.45; r: 3.5; }
      50%       { opacity: 1; r: 4.5; }
    }
    @keyframes ecFlowDash {
      0%   { stroke-dashoffset: 40; opacity: 0; }
      10%  { opacity: 1; }
      90%  { opacity: 1; }
      100% { stroke-dashoffset: 0; opacity: 0; }
    }
    @keyframes ecDotPulse {
      0%, 100% { opacity: 0.15; }
      50%       { opacity: 0.7; }
    }
    @keyframes ecGlow {
      0%, 100% { opacity: 0.07; }
      50%       { opacity: 0.17; }
    }
    @keyframes ecBarIn {
      from { transform: scaleX(0); }
      to   { transform: scaleX(1); }
    }

    .ec-anim-panel  { animation: ecPanelIn 0.6s var(--ease-spring) 0.4s both; }
    .ec-anim-c1     { animation: ecCardIn 0.45s var(--ease-spring) 1.0s both; }
    .ec-anim-c2     { animation: ecCardIn 0.45s var(--ease-spring) 1.25s both; }
    .ec-anim-c3     { animation: ecCardIn 0.45s var(--ease-spring) 1.5s both; }

    .ec-screen-fade { animation: ecFadeIn 0.5s ease-out 0.9s both; }
    .ec-product-1   { animation: ecFadeIn 0.4s ease-out 1.05s both; }
    .ec-product-2   { animation: ecFadeIn 0.4s ease-out 1.15s both; }
    .ec-product-3   { animation: ecFadeIn 0.4s ease-out 1.25s both; }
    .ec-cart-btn    { animation: ecFadeIn 0.4s ease-out 1.35s both; }
    .ec-cart-pulse  { animation: ecCartPulse 2s ease-in-out 2s infinite; }
    .ec-shimmer     {
      transform-box: fill-box;
      transform-origin: left center;
      animation: ecShimmer 2.4s ease-in-out 2.2s infinite;
    }
    .ec-badge-fade  { animation: ecFadeIn 0.4s ease-out 1.55s both; }

    .ec-sync-dot-1  { animation: ecSyncPulse 2s ease-in-out 2.2s infinite; }
    .ec-sync-dot-2  { animation: ecSyncPulse 2s ease-in-out 2.6s infinite; }

    .ec-flow-1  { animation: ecFlowDash 2.5s linear 2.3s infinite; }
    .ec-flow-2  { animation: ecFlowDash 2.5s linear 2.8s infinite; }
    .ec-flow-3  { animation: ecFlowDash 2.5s linear 3.3s infinite; }
    .ec-dot-1   { animation: ecDotPulse 2.5s ease-in-out 2.3s infinite; }
    .ec-dot-2   { animation: ecDotPulse 2.5s ease-in-out 2.8s infinite; }
    .ec-dot-3   { animation: ecDotPulse 2.5s ease-in-out 3.3s infinite; }
    .ec-glow    { animation: ecGlow 3.5s ease-in-out infinite; }

    /* ── Why Different ── */
    .ec-why {
      background: var(--cream-soft);
      padding: 6.5rem 0;
    }
    /* Neutral label for cream-soft sections */
    .ec-why .section-label {
      background: rgba(24,15,6,0.055);
      color: var(--ink-60);
      border-color: rgba(24,15,6,0.1);
    }
    .ec-why-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 5rem;
      align-items: start;
      margin-top: 2rem;
    }
    .ec-why-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: 0;
    }
    .ec-why-body {
      font-size: 1.05rem;
      line-height: 1.875;
      color: var(--ink-60);
    }
    .ec-why-body + .ec-why-body { margin-top: 1.25rem; }

    /* ── shared section heading ── */
    .ec-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;
    }
    .ec-section-p {
      font-size: 1.05rem;
      line-height: 1.875;
      color: var(--ink-60);
      margin-top: 1rem;
    }

    /* ── What We Build ── */
    .ec-build {
      background: var(--cream);
      padding: 6.5rem 0;
    }
    .ec-build-header { max-width: 640px; }
    .ec-cards-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1.5rem;
      margin-top: 3rem;
    }
    .ec-card {
      background: var(--cream-soft);
      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);
    }
    .ec-card:hover {
      transform: translateY(-4px);
      box-shadow: 0 14px 44px rgba(0,26,21,0.09);
    }
    .ec-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;
    }
    .ec-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;
    }
    .ec-card-icon svg { width: 18px; height: 18px; color: #fff; }
    .ec-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;
    }
    .ec-card p {
      font-size: 0.9rem;
      line-height: 1.75;
      color: var(--ink-60);
      margin: 0;
    }

    /* ── Proof ── */
    .ec-proof {
      background: var(--cream-soft);
      padding: 6.5rem 0;
    }
    .ec-proof-header { max-width: 560px; }
    .ec-stats {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 0;
      margin-top: 3rem;
      border: 1px solid rgba(24,15,6,0.08);
      border-radius: 16px;
      overflow: hidden;
    }
    .ec-stat {
      padding: 2.75rem 3rem;
      background: var(--cream);
    }
    .ec-stat:first-child { border-right: 1px solid rgba(24,15,6,0.08); }
    .ec-stat-number {
      font-family: var(--font-display);
      font-size: clamp(2rem, 3vw, 2.5rem);
      font-weight: 800;
      color: var(--ink);
      line-height: 1;
    }
    .ec-stat-number span { color: var(--teal); }
    .ec-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;
    }

    /* ── At Scale (dark) ── */
    .ec-scale {
      background: var(--dark);
      padding: 6.5rem 0;
      position: relative;
      overflow: hidden;
    }
    .ec-scale::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);
    }
    .ec-scale::after {
      content: '';
      position: absolute; top: 0; right: 0;
      width: 42%; height: 65%;
      background: radial-gradient(ellipse at 80% 20%, rgba(60,234,199,0.06), transparent 65%);
      pointer-events: none;
    }
    .ec-scale-header { max-width: 600px; }
    .ec-scale-header .section-label {
      background: rgba(60,234,199,0.1);
      color: var(--teal-bright);
      border-color: rgba(60,234,199,0.2);
    }
    .ec-scale-header h2 {
      font-family: var(--font-display);
      font-size: clamp(1.85rem, 3.5vw, 2.5rem);
      font-weight: 800;
      line-height: 1.15;
      color: var(--cream);
      margin-top: 0.75rem;
    }
    .ec-scale-cards {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 1.5rem;
      margin-top: 3rem;
      position: relative; z-index: 1;
    }
    .ec-scale-card {
      background: rgba(255,255,255,0.04);
      border: 1px solid rgba(60,234,199,0.1);
      border-radius: 14px;
      padding: 2rem;
      position: relative;
      overflow: hidden;
      transition: border-color 0.3s, background 0.3s;
    }
    .ec-scale-card:hover {
      background: rgba(255,255,255,0.07);
      border-color: rgba(60,234,199,0.22);
    }
    .ec-scale-card-icon {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 36px; height: 36px;
      background: rgba(60,234,199,0.12);
      border-radius: 9px;
      margin-bottom: 1.1rem;
    }
    .ec-scale-card-icon svg { width: 18px; height: 18px; color: var(--teal-bright); }
    .ec-scale-card h3 {
      font-family: var(--font-display);
      font-size: 1.15rem;
      font-weight: 700;
      color: var(--cream);
      line-height: 1.35;
      margin-bottom: 0.7rem;
    }
    .ec-scale-card p {
      font-size: 0.9rem;
      line-height: 1.75;
      color: rgba(246,246,242,0.5);
      margin: 0;
    }

    /* ── Close ── */
    .ec-close {
      background: var(--cream);
      padding: 7rem 0;
      text-align: center;
      position: relative;
    }
    .ec-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);
    }
    .ec-close-inner { max-width: 640px; margin: 0 auto; }
    .ec-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;
    }
    .ec-close p {
      font-size: 1.05rem;
      color: var(--ink-60);
      line-height: 1.8;
      margin-top: 1.1rem;
    }
    .ec-close-cta {
      display: flex;
      gap: 1rem;
      flex-wrap: wrap;
      justify-content: center;
      margin-top: 2.5rem;
    }

    /* ── Responsive ── */
    @media (max-width: 900px) {
      .ec-hero-grid { grid-template-columns: 1fr; gap: 3rem; }
      .ec-hero > .container { padding-top: calc(var(--nav-h, 80px) + 1.5rem); }
      .ec-why-grid { grid-template-columns: 1fr; gap: 2rem; }
      .ec-cards-grid { grid-template-columns: 1fr 1fr; }
      .ec-scale-cards { grid-template-columns: 1fr; }
      .ec-stats { grid-template-columns: 1fr; }
      .ec-stat:first-child { border-right: none; border-bottom: 1px solid rgba(24,15,6,0.08); }
    }
    @media (max-width: 600px) {
      .ec-cards-grid { grid-template-columns: 1fr; }
    }
