/* industry-legaltech.html — page-specific styles (prefix: lgt-) */

/* ══════════════════════════════════════════════
   HERO (dark)
   ══════════════════════════════════════════════ */
.lgt-hero {
  background: var(--dark);
  min-height: 100vh;
  padding: 0;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.lgt-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;
}
.lgt-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;
}
.lgt-hero > .container {
  padding-top: calc(var(--nav-h, 80px) + 2.5rem);
  padding-bottom: 3rem;
  width: 100%;
  position: relative; z-index: 1;
}
.lgt-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 5rem;
  align-items: center;
}
.lgt-hero .section-label {
  background: rgba(60,234,199,0.1);
  color: var(--teal-bright);
  border-color: rgba(60,234,199,0.2);
}
.lgt-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;
}
.lgt-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;
}
.lgt-hero-sub2 {
  font-size: 0.9rem;
  line-height: 1.75;
  color: rgba(246,246,242,0.38);
  margin: 0.75rem 0 0;
  max-width: 54ch;
}
.lgt-hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2.25rem;
}
.lgt-hero-cta .btn-ghost {
  color: var(--teal-light);
  border-color: rgba(60,234,199,0.25);
}

/* Trust pills */
.lgt-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 2rem;
}
.lgt-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;
}
.lgt-trust-pill::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--teal-bright);
  opacity: 0.7;
  flex-shrink: 0;
}

/* Illustration wrapper */
.lgt-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));
}
.lgt-ill-svg { display: block; width: 100%; height: auto; }

/* ── Hero SVG Animations ── */
@keyframes lgtPanelIn {
  from { opacity: 0; transform: translateX(-16px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes lgtCardIn {
  from { opacity: 0; transform: translateX(16px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes lgtFadeUp {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes lgtFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes lgtFlowDash {
  0%   { stroke-dashoffset: 40; opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}
@keyframes lgtGlow {
  0%, 100% { opacity: 0.07; }
  50%      { opacity: 0.18; }
}
@keyframes lgtLockPulse {
  0%, 100% { transform: scale(1);   opacity: 1; }
  50%      { transform: scale(1.15); opacity: 0.85; }
}
@keyframes lgtLiveBlink {
  0%, 80%, 100% { opacity: 0.85; }
  88%           { opacity: 0.3; }
}
@keyframes lgtRingFill {
  from { stroke-dashoffset: 113; }
  to   { stroke-dashoffset: 45; }
}
@keyframes lgtSignDraw {
  from { stroke-dashoffset: 140; }
  to   { stroke-dashoffset: 0; }
}
@keyframes lgtBarRise {
  from { transform: scaleY(0); }
  to   { transform: scaleY(1); }
}

.lgt-anim-panel  { animation: lgtPanelIn 0.6s var(--ease-spring) 0.4s both; }
.lgt-anim-c1     { animation: lgtCardIn 0.45s var(--ease-spring) 1.0s both; }
.lgt-anim-c2     { animation: lgtCardIn 0.45s var(--ease-spring) 1.25s both; }
.lgt-anim-c3     { animation: lgtCardIn 0.45s var(--ease-spring) 1.5s both; }

/* Version rows appear sequentially (lifecycle progression) */
.lgt-stage-1     { animation: lgtFadeUp 0.45s ease-out 0.85s both; }
.lgt-stage-2     { animation: lgtFadeUp 0.45s ease-out 1.15s both; }
.lgt-stage-3     { animation: lgtFadeUp 0.45s ease-out 1.45s both; }
.lgt-stage-4     { animation: lgtFadeUp 0.45s ease-out 1.75s both; }

/* Connector arrows flow between versions */
.lgt-flow-1 { stroke-dasharray: 10; animation: lgtFlowDash 2s linear 1.8s infinite; }
.lgt-flow-2 { stroke-dasharray: 10; animation: lgtFlowDash 2s linear 2.0s infinite; }
.lgt-flow-3 { stroke-dasharray: 10; animation: lgtFlowDash 2s linear 2.2s infinite; }

/* Lock icon pulses once final is reached */
.lgt-lock {
  transform-box: fill-box; transform-origin: center;
  animation: lgtLockPulse 2.4s ease-in-out 2.2s infinite;
}

/* Verified-by attorney text fades in last */
.lgt-verified { animation: lgtFadeIn 0.4s ease-out 2.1s both; }

/* Live indicator (SEALED badge) */
.lgt-live-dot { animation: lgtLiveBlink 2.5s ease-in-out 1s infinite; }

/* Signature trace draws in */
.lgt-sign-1 {
  stroke-dasharray: 140;
  animation: lgtSignDraw 1.4s ease-out 1.5s both;
}

/* Deadline ring fills (time ticking) */
.lgt-ring-2 {
  animation: lgtRingFill 1.1s var(--ease-spring) 1.9s both;
}

/* Audit event bars rise sequentially */
.lgt-bars-3 rect {
  transform-box: fill-box;
  transform-origin: bottom center;
  animation: lgtBarRise 0.5s var(--ease-spring) both;
}
.lgt-bars-3 rect:nth-child(1) { animation-delay: 1.8s; }
.lgt-bars-3 rect:nth-child(2) { animation-delay: 1.9s; }
.lgt-bars-3 rect:nth-child(3) { animation-delay: 2.0s; }
.lgt-bars-3 rect:nth-child(4) { animation-delay: 2.1s; }
.lgt-bars-3 rect:nth-child(5) { animation-delay: 2.2s; }
.lgt-bars-3 rect:nth-child(6) { animation-delay: 2.3s; }
.lgt-bars-3 rect:nth-child(7) { animation-delay: 2.4s; }

/* Connector dashes (panel → cards) */
.lgt-conn { stroke-dasharray: 10; animation: lgtFlowDash 2.2s linear infinite; }
.lgt-conn-1 { animation-delay: 2.4s; }
.lgt-conn-2 { animation-delay: 2.6s; }
.lgt-conn-3 { animation-delay: 2.8s; }

.lgt-glow { animation: lgtGlow 3.5s ease-in-out infinite; }

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  .lgt-anim-panel, .lgt-anim-c1, .lgt-anim-c2, .lgt-anim-c3,
  .lgt-stage-1, .lgt-stage-2, .lgt-stage-3, .lgt-stage-4,
  .lgt-flow-1, .lgt-flow-2, .lgt-flow-3,
  .lgt-lock, .lgt-verified, .lgt-live-dot, .lgt-sign-1,
  .lgt-ring-2, .lgt-bars-3 rect, .lgt-conn, .lgt-glow {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ══════════════════════════════════════════════
   SHARED SECTION HEADERS
   ══════════════════════════════════════════════ */
.lgt-section-header { max-width: 820px; margin-bottom: 3rem; }
.lgt-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;
}
.lgt-section-p {
  font-size: 1.05rem;
  line-height: 1.875;
  color: var(--ink-60);
  margin-top: 1rem;
}

/* ══════════════════════════════════════════════
   SECTION 2 · WHY LEGALTECH IS DIFFERENT (cream)
   ══════════════════════════════════════════════ */
.lgt-why-diff {
  background: var(--cream);
  padding: 6.5rem 0;
}
.lgt-numbered-list {
  margin-top: 2.5rem;
  display: grid;
  gap: 0;
}
.lgt-numbered-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 2rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid rgba(24,15,6,0.08);
  align-items: flex-start;
  transition: background 0.25s var(--ease-out);
}
.lgt-numbered-row:last-child { border-bottom: none; }
.lgt-numbered-row:hover { background: rgba(60,234,199,0.04); }
.lgt-number {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--teal-deep);
  letter-spacing: 0.1em;
  padding-top: 0.25rem;
}
.lgt-row-content h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 0.55rem;
}
.lgt-row-content p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--ink-60);
  margin: 0;
  max-width: 68ch;
}

/* ══════════════════════════════════════════════
   SECTION 3 · WHAT WE BUILD (dark)
   ══════════════════════════════════════════════ */
.lgt-build {
  background: var(--dark);
  padding: 6.5rem 0;
  position: relative;
  overflow: hidden;
}
.lgt-build::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);
}
.lgt-build::after {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 50%; height: 60%;
  background: radial-gradient(ellipse at 15% 20%, rgba(60,234,199,0.05), transparent 65%);
  pointer-events: none;
}
.lgt-section-header-dark { position: relative; z-index: 1; }
.lgt-section-header-dark .section-label {
  background: rgba(60,234,199,0.1);
  color: var(--teal-bright);
  border-color: rgba(60,234,199,0.2);
}
.lgt-section-header-dark .lgt-section-h2 { color: var(--cream); }
.lgt-section-header-dark .lgt-section-p {
  color: rgba(246,246,242,0.62);
  max-width: 72ch;
}

.lgt-build-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
  position: relative; z-index: 1;
}
.lgt-build-card {
  background: var(--dark-card);
  border-radius: 14px;
  padding: 2rem 1.75rem;
  border: 1px solid rgba(60,234,199,0.12);
  transition: transform 0.3s var(--ease-out), border-color 0.3s, box-shadow 0.3s;
}
.lgt-build-card:hover {
  transform: translateY(-4px);
  border-color: rgba(60,234,199,0.35);
  box-shadow: 0 14px 44px rgba(0,0,0,0.45);
}
.lgt-icon-chip {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  background: rgba(60,234,199,0.12);
  color: var(--teal-bright);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(60,234,199,0.2);
}
.lgt-build-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 0.6rem;
}
.lgt-build-card p {
  font-size: 0.9rem;
  line-height: 1.8;
  color: rgba(246,246,242,0.62);
  margin: 0;
}

/* ══════════════════════════════════════════════
   SECTION 4 · PROOF (cream)
   ══════════════════════════════════════════════ */
.lgt-proof {
  background: var(--cream);
  padding: 6.5rem 0;
}
.lgt-proof-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
}
.lgt-proof-card {
  background: var(--cream-soft);
  border-radius: 14px;
  padding: 2.25rem 2rem;
  border: 1px solid rgba(24,15,6,0.07);
  border-top: 3px solid var(--teal-deep);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.lgt-proof-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 44px rgba(0,26,21,0.08);
}
.lgt-proof-stat {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(24,15,6,0.08);
}
.lgt-proof-num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--teal-deep);
  line-height: 1;
}
.lgt-proof-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-60);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.lgt-proof-card p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--ink-60);
  margin: 0;
}

/* ══════════════════════════════════════════════
   SECTION 5 · AT SCALE (cream-soft)
   ══════════════════════════════════════════════ */
.lgt-scale {
  background: var(--cream-soft);
  padding: 6.5rem 0;
}
.lgt-scale-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.lgt-scale-card {
  background: var(--cream);
  border-radius: 14px;
  padding: 2rem 2.25rem;
  border: 1px solid rgba(24,15,6,0.07);
  transition: transform 0.3s var(--ease-out), border-color 0.3s, box-shadow 0.3s var(--ease-out);
}
.lgt-scale-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0,107,101,0.25);
  box-shadow: 0 14px 44px rgba(0,26,21,0.08);
}
.lgt-scale-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.55rem;
}
.lgt-scale-card p {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--ink-60);
  margin: 0;
}

/* ══════════════════════════════════════════════
   SECTION 6 · CLOSE / NEXT STEP (dark)
   ══════════════════════════════════════════════ */
.lgt-close {
  background: var(--dark);
  padding: 6.5rem 0;
  position: relative;
  overflow: hidden;
}
.lgt-close::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(60,234,199,0.06), transparent 60%);
  pointer-events: none;
}
.lgt-close::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(to right, transparent, rgba(60,234,199,0.15), transparent);
}
.lgt-close-inner {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  position: relative; z-index: 1;
}
.lgt-close-inner .section-label {
  background: rgba(60,234,199,0.1);
  color: var(--teal-bright);
  border-color: rgba(60,234,199,0.2);
}
.lgt-close-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--cream);
  margin-top: 0.75rem;
}
.lgt-close-inner p {
  font-size: 1.05rem;
  line-height: 1.875;
  color: rgba(246,246,242,0.62);
  margin: 1.25rem auto 2rem;
  max-width: 56ch;
}
.lgt-close-cta {
  display: inline-flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* ══════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .lgt-hero-grid { grid-template-columns: 1fr; gap: 3rem; }
  .lgt-hero-sub, .lgt-hero-sub2 { max-width: none; }
  .lgt-build-grid { grid-template-columns: repeat(2, 1fr); }
  .lgt-proof-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .lgt-hero { min-height: auto; }
  .lgt-hero > .container { padding-top: 6rem; padding-bottom: 3rem; }
  .lgt-why-diff, .lgt-build, .lgt-proof, .lgt-scale, .lgt-close { padding: 4rem 0; }
  .lgt-build-grid, .lgt-scale-grid { grid-template-columns: 1fr; }
  .lgt-numbered-row { grid-template-columns: 56px 1fr; gap: 1.25rem; }
  .lgt-hero-cta .btn, .lgt-close-cta .btn { width: 100%; justify-content: center; }
}
@media (max-width: 480px) {
  .lgt-numbered-row { grid-template-columns: 1fr; gap: 0.5rem; }
  .lgt-proof-card { padding: 1.75rem 1.5rem; }
  .lgt-scale-card { padding: 1.75rem 1.5rem; }
}
