:root {
  --ink: #06111f;
  --navy: #071827;
  --blue: #168bd8;
  --cyan: #68d7ff;
  --steel: #eaf4fb;
  --mint: #14b8a6;
  --gold: #d6a74a;
  --white: #ffffff;
  --muted: #668093;
  --line: rgba(22, 139, 216, .18);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--ink);
  background: #f5f9fc;
  font-weight: 700;
  width: 100%;
  overflow-x: hidden;
}

main {
  width: 100%;
  overflow: hidden;
}

img,
video,
canvas {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 78px;
  padding: 14px clamp(18px, 4vw, 64px);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  background: rgba(3, 11, 20, .80);
  border-bottom: 1px solid rgba(104, 215, 255, .18);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 154px;
  height: auto;
  display: block;
  filter: drop-shadow(0 0 18px rgba(104, 215, 255, .24));
}

nav {
  justify-self: center;
  display: flex;
  gap: 8px;
}

nav a,
.header-action,
.primary-action,
.secondary-action {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 900;
}

nav a {
  color: #c7d9e8;
}

nav a:hover {
  color: var(--cyan);
  background: rgba(104, 215, 255, .10);
}

.header-action,
.secondary-action {
  border: 1px solid rgba(22, 139, 216, .28);
  background: var(--white);
  color: var(--ink);
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.social-link {
  position: relative;
  width: 66px;
  height: 66px;
  border-radius: 0;
  display: inline-grid;
  place-items: center;
  color: white;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0;
  overflow: visible;
  transform: translateY(0);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.social-link:hover {
  transform: translateY(-3px) scale(1.06);
  filter: saturate(1.12);
}

.fluid-social img {
  width: 74px;
  height: 74px;
  object-fit: contain;
  display: block;
  filter:
    drop-shadow(0 10px 12px rgba(0, 0, 0, .30))
    drop-shadow(0 0 10px rgba(104, 215, 255, .16));
}

.fluid-social-inline {
  width: 56px;
  height: 56px;
  object-fit: contain;
  flex: 0 0 auto;
  filter: drop-shadow(0 6px 8px rgba(0,0,0,.20));
}

.primary-action {
  border: 0;
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--mint));
  box-shadow: 0 18px 38px rgba(22, 139, 216, .24);
}

.hero {
  position: relative;
  min-height: calc(100vh - 78px);
  padding: clamp(28px, 5vw, 70px) clamp(18px, 5vw, 76px) 52px;
  display: grid;
  grid-template-columns: minmax(360px, .95fr) minmax(360px, 1.05fr);
  gap: clamp(26px, 5vw, 72px);
  align-items: center;
  background:
    linear-gradient(90deg, rgba(3, 10, 19, .92) 0%, rgba(4, 15, 28, .78) 42%, rgba(4, 20, 34, .34) 100%),
    radial-gradient(circle at 72% 20%, rgba(104, 215, 255, .18), transparent 34%);
  overflow: hidden;
  isolation: isolate;
}

.parallax-bg {
  position: absolute;
  inset: -9vh -7vw;
  z-index: -3;
  background: url("assets/legalworks-tower-bg.png") center center / cover no-repeat;
  transform: translate3d(var(--px, 0px), var(--py, 0px), 0) scale(1.12);
  transition: transform .16s ease-out;
  will-change: transform;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(3, 10, 19, .96) 0%, rgba(4, 15, 28, .80) 43%, rgba(4, 20, 34, .34) 100%),
    radial-gradient(circle at calc(74% + var(--mx, 0px)) calc(20% + var(--my, 0px)), rgba(104, 215, 255, .26), transparent 31%),
    radial-gradient(circle at 50% 94%, rgba(0, 224, 255, .18), transparent 34%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 34%;
  background: linear-gradient(180deg, transparent, rgba(245, 249, 252, .96));
  pointer-events: none;
}

.parallax-glow {
  position: absolute;
  z-index: -1;
  border-radius: 999px;
  filter: blur(2px);
  opacity: .72;
  pointer-events: none;
  transform: translate3d(calc(var(--px, 0px) * -1.2), calc(var(--py, 0px) * -.8), 0);
  will-change: transform;
}

.glow-one {
  width: 240px;
  height: 240px;
  right: 18%;
  top: 14%;
  background: radial-gradient(circle, rgba(104, 215, 255, .24), transparent 68%);
}

.glow-two {
  width: 360px;
  height: 160px;
  right: 30%;
  bottom: 8%;
  background: radial-gradient(ellipse, rgba(20, 184, 166, .18), transparent 70%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  transform: translate3d(calc(var(--px, 0px) * -.10), calc(var(--py, 0px) * -.10), 0);
  will-change: transform;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 20px;
  color: #ffffff;
  font-size: clamp(56px, 9vw, 118px);
  line-height: .86;
  font-weight: 900;
  letter-spacing: 0;
  text-shadow: 0 18px 48px rgba(0, 0, 0, .55), 0 0 28px rgba(104, 215, 255, .18);
}

h2 {
  margin-bottom: 16px;
  color: var(--ink);
  font-size: clamp(32px, 5vw, 64px);
  line-height: .96;
  font-weight: 900;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.05;
  font-weight: 900;
}

.lead {
  max-width: 720px;
  color: #d9edf8;
  font-size: clamp(18px, 2.2vw, 25px);
  line-height: 1.34;
  font-weight: 800;
}

.hero-logo {
  width: min(390px, 78vw);
  height: auto;
  margin: 0 0 18px;
  display: block;
  filter: drop-shadow(0 0 22px rgba(104, 215, 255, .34));
}

.hero-actions,
.cta-actions {
  margin-top: 28px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.trust-line {
  margin-top: 28px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.trust-line span {
  padding: 9px 12px;
  border-radius: 8px;
  background: rgba(3, 17, 31, .68);
  border: 1px solid rgba(104, 215, 255, .22);
  color: #d9edf8;
  font-size: 12px;
  font-weight: 900;
}

.hero-media {
  position: relative;
  z-index: 2;
  min-height: 610px;
  display: grid;
  place-items: center;
  transform: translate3d(calc(var(--px, 0px) * -.28), calc(var(--py, 0px) * -.22), 0);
  will-change: transform;
}

.system-orbit {
  position: absolute;
  inset: 4%;
  border: 1px solid rgba(22, 139, 216, .2);
  border-radius: 34px;
  transform: rotate(-4deg);
}

.system-orbit span {
  position: absolute;
  padding: 9px 13px;
  border-radius: 8px;
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(22, 139, 216, .2);
  box-shadow: 0 12px 26px rgba(6, 17, 31, .08);
  color: #31536a;
  font-size: 12px;
  font-weight: 900;
}

.system-orbit span:nth-child(1) { left: 6%; top: 9%; }
.system-orbit span:nth-child(2) { right: 4%; top: 16%; }
.system-orbit span:nth-child(3) { left: 0; bottom: 16%; }
.system-orbit span:nth-child(4) { right: 8%; bottom: 8%; }

.master-panel,
.dashboard-showcase,
.phone-frame {
  border: 1px solid rgba(104, 215, 255, .42);
  background:
    radial-gradient(circle at 18% 0%, rgba(104, 215, 255, .18), transparent 34%),
    linear-gradient(180deg, #0b2035 0%, #06111f 100%);
  box-shadow:
    0 42px 90px rgba(6, 17, 31, .28),
    0 0 0 1px rgba(255,255,255,.08) inset,
    0 0 34px rgba(22, 139, 216, .20);
}

.master-panel {
  position: relative;
  z-index: 1;
  width: min(620px, 100%);
  padding: 20px;
  border-radius: 14px;
  transform: perspective(1200px) rotateY(-8deg) rotateX(4deg);
}

.panel-top,
.dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.panel-top small,
.metric-grid small,
.dash-kpis small {
  display: block;
  color: #8bcff2;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.panel-top strong {
  display: block;
  margin-top: 5px;
  color: white;
  font-size: 22px;
  font-weight: 900;
}

.live-pill {
  padding: 8px 12px;
  border-radius: 999px;
  color: #02251f;
  background: #8ff5dc;
  font-size: 12px;
  font-weight: 900;
}

.metric-grid,
.dash-kpis {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.metric-grid article,
.dash-kpis article {
  padding: 16px;
  border-radius: 8px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.1);
}

.metric-grid strong,
.dash-kpis strong {
  display: block;
  margin-top: 5px;
  color: white;
  font-size: 30px;
  font-weight: 900;
}

.metric-grid span {
  color: #b6cfdf;
  font-size: 11px;
}

.case-board {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.case-row {
  min-height: 58px;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 10px;
  border-radius: 8px;
  background: #eef8ff;
  color: var(--ink);
}

.case-row.hot {
  background: linear-gradient(135deg, #eaf9ff, #dffbf4);
  box-shadow: 0 0 0 1px rgba(104, 215, 255, .36) inset;
}

.case-row span,
.case-row b,
.case-row i {
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.case-row i {
  padding: 6px 9px;
  border-radius: 999px;
  color: white;
  background: var(--blue);
}

.document-ai {
  margin-top: 14px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 8px;
  background: rgba(104, 215, 255, .12);
  border: 1px solid rgba(104, 215, 255, .24);
}

.ai-icon {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #06111f;
  background: linear-gradient(135deg, #68d7ff, #8ff5dc);
  font-weight: 900;
}

.document-ai p {
  margin: 0;
}

.document-ai strong,
.document-ai span {
  display: block;
}

.document-ai strong {
  color: white;
}

.document-ai span {
  margin-top: 3px;
  color: #b6cfdf;
  font-size: 12px;
}

.signal-band {
  margin: 0 clamp(18px, 5vw, 76px);
  transform: translateY(-24px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.signal-band article {
  padding: 22px;
  border-radius: 8px;
  background: white;
  border: 1px solid var(--line);
  box-shadow: 0 18px 42px rgba(6, 17, 31, .08);
}

.signal-band strong,
.signal-band span {
  display: block;
}

.signal-band strong {
  font-size: 18px;
  font-weight: 900;
}

.signal-band span {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.45;
}

.platform,
.operation {
  padding: 76px clamp(18px, 5vw, 76px);
  display: grid;
  grid-template-columns: minmax(320px, .9fr) minmax(360px, 1.1fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
}

.section-copy p:not(.eyebrow) {
  color: #4c6578;
  font-size: 17px;
  line-height: 1.58;
}

.centered {
  max-width: 920px;
  margin: 0 auto 34px;
  text-align: center;
}

.dashboard-showcase {
  min-height: 500px;
  padding: 16px;
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 16px;
  border-radius: 14px;
}

.dash-sidebar {
  padding: 16px 10px;
  border-radius: 10px;
  background: rgba(0,0,0,.24);
  display: grid;
  align-content: start;
  gap: 14px;
}

.mini-logo {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
}

.dash-sidebar b {
  padding: 10px;
  border-radius: 8px;
  color: #c8dbe8;
  background: rgba(255,255,255,.05);
  font-size: 12px;
}

.dash-main {
  min-width: 0;
  padding: 12px;
  border-radius: 10px;
  background: #f4fbff;
}

.dash-header {
  min-height: 52px;
  padding: 0 12px;
  border-radius: 8px;
  color: #587386;
  background: white;
  border: 1px solid var(--line);
}

.dash-header button {
  border: 0;
  min-height: 34px;
  padding: 0 13px;
  border-radius: 8px;
  color: white;
  background: var(--ink);
  font-weight: 900;
}

.dash-table {
  margin-top: 12px;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: white;
}

.dash-table div {
  min-height: 54px;
  padding: 0 14px;
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(6, 17, 31, .08);
}

.dash-table div:first-child {
  color: white;
  background: #2f86b2;
}

.dash-table em {
  padding: 7px 10px;
  border-radius: 999px;
  color: #075985;
  background: #e0f2fe;
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
}

.services {
  padding: 76px clamp(18px, 5vw, 76px);
  background:
    linear-gradient(180deg, #ffffff 0%, #edf7fd 100%);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.service-grid article {
  padding: 24px;
  border-radius: 8px;
  background: white;
  border: 1px solid var(--line);
  box-shadow: 0 16px 38px rgba(6, 17, 31, .07);
}

.service-grid article:nth-child(3n + 2) {
  border-top: 4px solid var(--mint);
}

.service-grid article:nth-child(3n + 3) {
  border-top: 4px solid var(--gold);
}

.service-icon {
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, var(--ink), var(--blue));
  font-weight: 900;
}

.service-grid p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.operation {
  grid-template-columns: minmax(340px, .9fr) minmax(320px, 1fr);
}

.operation-visual {
  min-height: 430px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background:
    radial-gradient(circle at 40% 24%, rgba(104, 215, 255, .3), transparent 32%),
    linear-gradient(135deg, #eaf4fb, #fff);
  border: 1px solid var(--line);
}

.phone-frame {
  width: min(360px, 92%);
  padding: 28px;
  border-radius: 26px;
  color: white;
}

.phone-top {
  width: 74px;
  height: 7px;
  margin: 0 auto 26px;
  border-radius: 999px;
  background: rgba(255,255,255,.32);
}

.phone-frame h3 {
  text-align: center;
  font-size: 30px;
}

.phone-frame p {
  color: #c6ddeb;
  text-align: center;
}

.notify-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.notify-grid span {
  padding: 14px;
  border-radius: 8px;
  background: rgba(20, 184, 166, .14);
  border: 1px solid rgba(20, 184, 166, .36);
  color: white;
}

.notify-grid strong {
  color: #8ff5dc;
}

.check-list {
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 11px;
  list-style: none;
}

.check-list li {
  padding-left: 32px;
  position: relative;
  color: #31495c;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--mint), var(--cyan));
  box-shadow: 0 0 0 4px rgba(20, 184, 166, .12);
}

.cta {
  margin: 20px clamp(18px, 5vw, 76px) 0;
  padding: clamp(30px, 5vw, 58px);
  border-radius: 14px;
  color: white;
  background:
    linear-gradient(135deg, rgba(6,17,31,.95), rgba(12,45,68,.95)),
    radial-gradient(circle at 85% 8%, rgba(214, 167, 74, .35), transparent 30%);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px;
  align-items: center;
}

.facebook-action {
  min-height: 58px;
  gap: 12px;
  color: #0b1727;
  border-color: rgba(122, 198, 255, .32);
  background: rgba(255, 255, 255, .96);
  box-shadow:
    0 18px 34px rgba(24, 119, 242, .14),
    inset 0 1px 0 rgba(255,255,255,.75);
}

.instagram-action {
  min-height: 58px;
  gap: 12px;
  color: #0b1727;
  border-color: rgba(236, 72, 153, .32);
  background: rgba(255, 255, 255, .96);
  box-shadow:
    0 18px 34px rgba(236, 72, 153, .14),
    inset 0 1px 0 rgba(255,255,255,.75);
}

.facebook-action:hover,
.instagram-action:hover {
  color: #06111f;
}

.cta h2,
.cta p {
  color: white;
}

.cta p:not(.eyebrow) {
  max-width: 740px;
  color: #c4d8e6;
  line-height: 1.55;
}

footer {
  padding: 28px clamp(18px, 5vw, 76px) 42px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: #668093;
  font-size: 13px;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  nav {
    display: none;
  }

  .hero,
  .platform,
  .operation,
  .cta {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-media {
    order: 2;
    min-height: 520px;
  }

  .signal-band,
  .service-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-showcase {
    grid-template-columns: 1fr;
  }

  .dash-sidebar {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  body {
    min-width: 0;
  }

  main,
  section,
  header,
  footer {
    width: 100%;
    max-width: 100%;
  }

  .site-header {
    padding: 12px 14px;
    min-height: 72px;
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .header-actions {
    display: none;
  }

  .brand-logo {
    width: 128px;
  }

  .hero {
    width: 100%;
    padding-left: 18px;
    padding-right: 18px;
    overflow: hidden;
  }

  .hero-media {
    min-height: 470px;
  }

  .master-panel {
    transform: none;
  }

  .metric-grid,
  .dash-kpis,
  .notify-grid {
    grid-template-columns: 1fr;
  }

  .case-row,
  .dash-table div {
    grid-template-columns: 1fr;
  }

  .dash-sidebar {
    display: none;
  }

  .cta-actions,
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .cta {
    width: 100%;
    max-width: 100%;
    margin: 18px 0 0;
    padding: 30px 22px;
    border-radius: 0;
    overflow: hidden;
  }

  .cta-actions a,
  .hero-actions a {
    width: 100%;
    max-width: 100%;
  }

  .facebook-action,
  .instagram-action {
    min-height: 70px;
    justify-content: center;
    overflow: hidden;
  }

  .fluid-social-inline {
    width: 62px;
    height: 62px;
    max-width: 62px;
    max-height: 62px;
  }

  footer {
    flex-direction: column;
    padding-left: 22px;
    padding-right: 22px;
  }
}
