:root {
  color-scheme: light;
  --ink: #101010;
  --charcoal: #181818;
  --panel: #ffffff;
  --paper: #f7f4ee;
  --muted: #68635a;
  --line: #e5ddd0;
  --gold: #f4bd16;
  --gold-deep: #c58b00;
  --blue: #123c69;
  --red: #8f2f24;
  --green: #1f6b4a;
  --shadow: 0 24px 70px rgba(16, 16, 16, 0.2);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 14px clamp(20px, 4vw, 56px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(16, 16, 16, 0.94);
  color: #ffffff;
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: max-content;
  font-weight: 850;
  letter-spacing: 0;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  object-fit: cover;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2.5vw, 30px);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.94rem;
}

.main-nav a {
  padding: 8px 0;
}

.main-nav a:hover {
  color: #ffffff;
}

.nav-action,
.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 8px;
  font-weight: 800;
  white-space: nowrap;
}

.nav-action,
.primary-button {
  background: var(--gold);
  color: #171100;
  box-shadow: 0 12px 28px rgba(244, 189, 22, 0.24);
}

.nav-action:hover,
.primary-button:hover {
  background: #ffd34d;
}

.secondary-button {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  align-items: center;
  gap: clamp(36px, 5vw, 72px);
  min-height: calc(100vh - 76px);
  padding: clamp(44px, 7vw, 92px) clamp(20px, 4vw, 56px) 56px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(16, 16, 16, 0.96), rgba(16, 16, 16, 0.86)),
    url("./assets/lawjuan-logo-dark.png") right 8% center / min(58vw, 760px) no-repeat;
  color: #ffffff;
}

.hero-copy {
  max-width: 780px;
}

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

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1 {
  max-width: 880px;
  margin: 0;
  font-size: clamp(3.4rem, 7.5vw, 7.5rem);
  line-height: 0.94;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.03;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 10px;
  font-size: 1.08rem;
  line-height: 1.2;
}

.hero-lede {
  max-width: 660px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1.12rem, 2vw, 1.45rem);
  line-height: 1.5;
}

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

.proof-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.proof-strip span {
  min-width: 120px;
  padding: 9px 12px;
  border: 1px solid rgba(244, 189, 22, 0.32);
  border-radius: 8px;
  background: rgba(244, 189, 22, 0.09);
  color: #ffe18a;
  font-size: 0.9rem;
  font-weight: 800;
  text-align: center;
}

.product-scene {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  place-items: center;
  min-height: 560px;
}

.hero-macbook-device {
  position: absolute;
  top: -4%;
  left: 39%;
  z-index: 0;
  width: min(96%, 820px);
  opacity: 0.72;
  transform: translateX(-50%) translateY(-4%) scale(0.94);
}

.hero-macbook-lid {
  padding: 10px;
  border: 1px solid #343434;
  border-radius: 18px 18px 8px 8px;
  background: #050505;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
}

.hero-macbook-lid img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.hero-macbook-base {
  width: 90%;
  height: 16px;
  margin: 0 auto;
  border-radius: 0 0 18px 18px;
  background: linear-gradient(180deg, #d4d4d4, #838383);
}

.ipad-device,
.iphone-device {
  position: relative;
  z-index: 2;
  overflow: hidden;
  background: #050505;
  box-shadow: var(--shadow);
}

.ipad-device {
  width: min(100%, 760px);
  padding: 14px;
  border: 1px solid #303030;
  border-radius: 34px;
}

.ipad-device img,
.iphone-device img,
.macbook-lid img {
  display: block;
  width: 100%;
  height: auto;
}

.ipad-device img {
  border-radius: 22px;
}

.iphone-device {
  position: absolute;
  z-index: 3;
  right: -3%;
  bottom: -2%;
  width: min(34vw, 238px);
  padding: 9px;
  border: 1px solid #3a3a3a;
  border-radius: 42px;
}

.iphone-device img {
  border-radius: 32px;
}

.iphone-device::before {
  position: absolute;
  top: 17px;
  left: 50%;
  z-index: 2;
  width: 78px;
  height: 22px;
  border-radius: 999px;
  background: #050505;
  content: "";
  transform: translateX(-50%);
}

.iphone-device::after {
  position: absolute;
  inset: 0;
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-radius: 42px;
  content: "";
  pointer-events: none;
}

.logo-orbit {
  position: absolute;
  top: -16px;
  right: 2%;
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  border: 1px solid rgba(244, 189, 22, 0.36);
  border-radius: 18px;
  background: #050505;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.38);
  overflow: hidden;
}

.logo-orbit img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mac-window {
  width: min(100%, 760px);
  border: 1px solid rgba(244, 189, 22, 0.22);
  border-radius: 16px;
  background: #ffffff;
  color: var(--ink);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.window-bar {
  display: flex;
  gap: 8px;
  align-items: center;
  height: 42px;
  padding: 0 16px;
  background: #1f1f1f;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.window-bar span {
  width: 11px;
  height: 11px;
  border-radius: 999px;
}

.window-bar span:nth-child(1) {
  background: #df6b56;
}

.window-bar span:nth-child(2) {
  background: var(--gold);
}

.window-bar span:nth-child(3) {
  background: #56b08b;
}

.app-layout {
  display: grid;
  grid-template-columns: 184px minmax(0, 1fr);
  min-height: 430px;
}

.sidebar {
  padding: 24px 14px;
  border-right: 1px solid var(--line);
  background: #f5efe4;
}

.sidebar-title {
  margin: 0 0 18px 10px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.matter {
  min-height: 42px;
  margin-bottom: 8px;
  padding: 12px;
  border-radius: 8px;
  color: #5f584c;
  font-size: 0.9rem;
  font-weight: 760;
}

.matter.active {
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 8px 22px rgba(16, 16, 16, 0.09);
}

.workspace-preview {
  padding: 26px;
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-bottom: 22px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #faf7f0;
}

.search-bar span {
  width: 13px;
  height: 13px;
  border: 2px solid var(--gold-deep);
  border-radius: 50%;
}

.search-bar p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.workspace-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.workspace-head p {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.88rem;
}

.workspace-head strong {
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  line-height: 1.08;
}

.status-pill {
  padding: 8px 11px;
  border-radius: 999px;
  background: #fff0bd;
  color: #785600;
  font-size: 0.78rem;
  font-weight: 900;
}

.law-reader {
  display: grid;
  gap: 14px;
  margin-bottom: 20px;
  padding: 18px;
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  background: #fbfaf6;
}

.law-reader p {
  margin: 0;
  color: #3c3832;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  line-height: 1.58;
}

mark {
  background: #ffe48f;
  color: #1c1600;
}

.tool-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.tool-row span {
  min-height: 38px;
  padding: 10px 8px;
  border-radius: 8px;
  background: #171717;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 820;
  text-align: center;
}

.phone-preview {
  position: absolute;
  right: 0;
  bottom: 4%;
  width: 190px;
  min-height: 350px;
  padding: 34px 18px 20px;
  border: 8px solid #111111;
  border-radius: 34px;
  background: #fffaf0;
  color: var(--ink);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.34);
}

.phone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  width: 58px;
  height: 16px;
  border-radius: 999px;
  background: #111111;
  transform: translateX(-50%);
}

.phone-preview p {
  margin: 8px 0 6px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.phone-preview strong {
  display: block;
  margin-bottom: 20px;
  font-size: 1.2rem;
  line-height: 1.08;
}

.phone-line {
  width: 72%;
  height: 12px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: #d8cfbd;
}

.phone-line.wide {
  width: 100%;
  background: #f1c94b;
}

.phone-line.short {
  width: 54%;
}

.phone-button {
  position: absolute;
  right: 18px;
  bottom: 20px;
  left: 18px;
  height: 42px;
  border-radius: 8px;
  background: var(--ink);
}

.intro-band {
  padding: clamp(42px, 6vw, 74px) clamp(20px, 4vw, 56px);
  background: #ffffff;
}

.intro-band p {
  max-width: 1120px;
  margin: 0;
  color: #2e2b26;
  font-size: clamp(1.25rem, 2.7vw, 2.05rem);
  font-weight: 760;
  line-height: 1.32;
}

.platforms,
.feature-band,
.study,
.device-showcase,
.faq {
  padding: clamp(72px, 9vw, 120px) clamp(20px, 4vw, 56px);
}

.section-heading {
  max-width: 860px;
  margin-bottom: 34px;
}

.platform-grid,
.feature-grid,
.study-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

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

.platform-grid article,
.feature-grid article,
.study-grid article {
  min-height: 220px;
  padding: 26px;
  border: 1px solid rgba(16, 16, 16, 0.09);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 12px 34px rgba(16, 16, 16, 0.06);
}

.platform-grid p,
.feature-grid p,
.study-grid p,
.launch p,
.apple p,
.faq p,
.site-footer p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.device-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 24px;
  border: 1px solid rgba(16, 16, 16, 0.14);
  border-radius: 8px;
  background: #111111;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 950;
}

.feature-band {
  background: #111111;
  color: #ffffff;
}

.feature-band .eyebrow {
  color: var(--gold);
}

.feature-band article {
  border-color: rgba(255, 255, 255, 0.11);
  background: #1d1d1d;
  box-shadow: none;
}

.feature-band p {
  color: rgba(255, 255, 255, 0.7);
}

.study {
  background: #fffaf0;
}

.study-grid article:nth-child(2) {
  border-top: 4px solid var(--blue);
}

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

.study-grid article:nth-child(4) {
  border-top: 4px solid var(--green);
}

.study-grid article:nth-child(5) {
  border-top: 4px solid #20c7d7;
}

.study-grid article:nth-child(6) {
  border-top: 4px solid var(--red);
}

.study-grid article:nth-child(7) {
  border-top: 4px solid var(--gold-deep);
}

.device-showcase {
  background: #111111;
  color: #ffffff;
}

.device-showcase .section-heading {
  max-width: 980px;
}

.macbook-device {
  max-width: 1180px;
  margin: 0 auto;
}

.macbook-lid {
  position: relative;
  padding: 18px;
  border: 2px solid #353535;
  border-radius: 24px 24px 12px 12px;
  background: #050505;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
}

.macbook-lid img {
  border-radius: 10px;
}

.macbook-camera {
  position: absolute;
  top: 7px;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2e2e2e;
  transform: translateX(-50%);
}

.macbook-base {
  position: relative;
  width: 92%;
  height: 26px;
  margin: 0 auto;
  border-radius: 0 0 28px 28px;
  background: linear-gradient(180deg, #d7d7d7, #8d8d8d);
}

.macbook-base::before {
  position: absolute;
  top: 0;
  left: 50%;
  width: 18%;
  height: 7px;
  border-radius: 0 0 10px 10px;
  background: #686868;
  content: "";
  transform: translateX(-50%);
}

.apple,
.launch {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(72px, 9vw, 120px) clamp(20px, 4vw, 56px);
}

.apple {
  background: #ffffff;
}

.apple-copy {
  display: grid;
  gap: 18px;
}

.apple p {
  max-width: 680px;
  color: #39352e;
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
}

.launch {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #171717;
  color: #ffffff;
}

.launch p {
  max-width: 680px;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.72);
}

.launch .primary-button {
  justify-self: end;
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 900px;
}

details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

summary {
  cursor: pointer;
  padding: 20px 22px;
  font-weight: 850;
}

details p {
  padding: 0 22px 22px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 30px clamp(20px, 4vw, 56px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: #101010;
  color: #ffffff;
}

.site-footer p {
  color: rgba(255, 255, 255, 0.68);
}

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .product-scene {
    min-height: 600px;
  }

  .study-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 840px) {
  .site-header {
    position: static;
    flex-wrap: wrap;
  }

  .main-nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero {
    padding-top: 42px;
    background:
      linear-gradient(90deg, rgba(16, 16, 16, 0.96), rgba(16, 16, 16, 0.9)),
      url("./assets/lawjuan-logo-dark.png") center 10% / 92vw no-repeat;
  }

  .ipad-device {
    width: min(100%, 680px);
  }

  .hero-macbook-device {
    left: 42%;
    width: min(100%, 760px);
    opacity: 0.64;
  }

  .iphone-device {
    right: 0;
    width: min(36vw, 208px);
  }

  .platform-grid,
  .feature-grid,
  .study-grid,
  .apple,
  .launch {
    grid-template-columns: 1fr;
  }

  .launch .primary-button {
    justify-self: start;
  }
}

@media (max-width: 580px) {
  .brand span {
    font-size: 0.98rem;
  }

  .nav-action {
    width: 100%;
  }

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

  .proof-strip span {
    width: 100%;
  }

  .product-scene {
    min-height: 470px;
  }

  .hero-macbook-device {
    top: 2%;
    left: 42%;
    width: 112%;
    opacity: 0.52;
  }

  .hero-macbook-lid {
    padding: 6px;
    border-radius: 12px 12px 6px 6px;
  }

  .hero-macbook-base {
    height: 10px;
  }

  .ipad-device {
    width: 100%;
    padding: 8px;
    border-radius: 22px;
  }

  .ipad-device img {
    border-radius: 15px;
  }

  .iphone-device {
    right: -6px;
    bottom: -14px;
    width: 128px;
    padding: 5px;
    border-radius: 24px;
  }

  .iphone-device img {
    border-radius: 18px;
  }

  .iphone-device::before {
    top: 9px;
    width: 42px;
    height: 12px;
  }

  .iphone-device::after {
    border-radius: 24px;
  }

  .macbook-lid {
    padding: 8px;
    border-radius: 14px 14px 8px 8px;
  }

  .macbook-base {
    height: 16px;
    border-radius: 0 0 16px 16px;
  }

  .platform-grid article,
  .feature-grid article,
  .study-grid article {
    min-height: 190px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
