/*
  AnatomyVerse site — design tokens from .cursor-context/design-system.md
  Shared by homepage + Privacy / Terms pages.
*/

:root {
  --bg: #0f141f;
  --bg-elevated: #161c2a;
  --text: #f2f2eb;
  --muted: rgba(242, 242, 235, 0.62);
  --accent: #ffc85c;
  --glow: #66e5ff;
  --muscle: #cc4d4d;
  --nerve: #3380e6;
  --rule: rgba(255, 200, 92, 0.28);
  --link: #66e5ff;
  --max-legal: 42rem;
  --max-home: 68rem;
  --font: "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-display: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  overflow-x: clip;
  max-width: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--text);
  background:
    radial-gradient(1100px 520px at 18% -8%, rgba(255, 200, 92, 0.1), transparent 55%),
    radial-gradient(900px 480px at 92% 4%, rgba(102, 229, 255, 0.07), transparent 50%),
    radial-gradient(700px 420px at 70% 80%, rgba(204, 77, 77, 0.05), transparent 55%),
    var(--bg);
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--accent);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  padding: 0.5rem 0.75rem;
  background: var(--accent);
  color: #0f141f;
  text-decoration: none;
  border-radius: 0.5rem;
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

.brand {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
}

.brand:hover {
  color: var(--accent);
  opacity: 0.9;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--text);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* -------------------------------------------------------------------------- */
/* Legal document pages                                                       */
/* -------------------------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--max-legal);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
  box-sizing: border-box;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--rule);
}

h1 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.meta {
  margin: 0 0 2rem;
  font-size: 0.875rem;
  color: var(--muted);
}

h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
}

h3 {
  margin: 1.25rem 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

p {
  margin: 0 0 1rem;
  color: rgba(242, 242, 235, 0.88);
}

ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  color: rgba(242, 242, 235, 0.88);
}

li {
  margin-bottom: 0.4rem;
}

.card {
  background: color-mix(in srgb, var(--bg-elevated) 88%, transparent);
  border: 1px solid var(--rule);
  border-radius: 1.25rem;
  padding: 1.5rem 1.5rem 0.5rem;
  backdrop-filter: blur(12px);
}

.site-footer {
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  font-size: 0.8125rem;
  color: var(--muted);
}

.site-footer p {
  color: var(--muted);
  margin-bottom: 0.5rem;
}

@media (max-width: 480px) {
  .wrap {
    padding: 1.75rem 1rem 3rem;
  }

  .card {
    padding: 1.15rem 1.15rem 0.35rem;
    border-radius: 1rem;
  }
}

/* -------------------------------------------------------------------------- */
/* Homepage                                                                   */
/* -------------------------------------------------------------------------- */

body.home {
  overflow-x: clip;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  width: 100%;
  box-sizing: border-box;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 200, 92, 0.12);
}

.topbar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  width: 100%;
  max-width: var(--max-home);
  margin-inline: auto;
  padding: 1rem;
  box-sizing: border-box;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 2rem 3rem;
  width: 100%;
  max-width: var(--max-home);
  min-height: calc(100svh - 4.5rem);
  margin-inline: auto;
  padding: 1.5rem 1rem 3.5rem;
  box-sizing: border-box;
}

.hero-copy {
  min-width: 0;
  animation: rise 0.7s var(--ease-out) both;
}

.brand-mark {
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero h1 {
  margin: 0 0 1.15rem;
  font-size: clamp(2.35rem, 5.5vw, 3.6rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.08;
  background: linear-gradient(180deg, var(--text) 55%, rgba(255, 200, 92, 0.82));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  margin: 0 0 1.75rem;
  max-width: 34rem;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.55;
  color: rgba(242, 242, 235, 0.78);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-bottom: 1.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.7rem 1.25rem;
  border-radius: 0.85rem;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s var(--ease-out), background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #1a1408;
  border: 1px solid transparent;
}

.btn-primary:hover {
  background: #ffd27a;
  color: #1a1408;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(242, 242, 235, 0.22);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hero-platforms {
  margin: 0;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  overflow: hidden;
  animation: rise 0.85s var(--ease-out) 0.08s both;
}

.hero-glow {
  position: absolute;
  inset: 12% 20%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 40%, rgba(255, 200, 92, 0.28), transparent 55%),
    radial-gradient(circle at 55% 60%, rgba(102, 229, 255, 0.2), transparent 60%);
  filter: blur(28px);
  animation: glow-pulse 5.5s ease-in-out infinite;
  pointer-events: none;
}

.hero-device {
  position: relative;
  width: min(100%, 17.5rem);
  max-width: 100%;
}

.device {
  margin: 0;
  max-width: 100%;
}

.device img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 1.35rem;
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 200, 92, 0.16);
}

.device-phone img {
  border-radius: 1.6rem;
}

.section {
  width: 100%;
  max-width: var(--max-home);
  margin-inline: auto;
  padding: 4.5rem 1rem;
  box-sizing: border-box;
}

.section-alt {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-left: max(1rem, calc((100% - var(--max-home)) / 2));
  padding-right: max(1rem, calc((100% - var(--max-home)) / 2));
  background: linear-gradient(
    180deg,
    transparent,
    rgba(22, 28, 42, 0.65) 12%,
    rgba(22, 28, 42, 0.65) 88%,
    transparent
  );
  box-sizing: border-box;
}

.section-intro {
  max-width: 40rem;
  margin-bottom: 2.5rem;
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.section h2 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.section-lead {
  margin: 0;
  font-size: 1.0625rem;
  color: rgba(242, 242, 235, 0.72);
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem 2.5rem;
  min-width: 0;
}

.feature {
  padding: 0 0 0 1.1rem;
  border-left: 2px solid rgba(255, 200, 92, 0.35);
}

.feature h3 {
  margin: 0 0 0.45rem;
  font-size: 1.125rem;
}

.feature p {
  margin: 0;
  color: rgba(242, 242, 235, 0.72);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem 1.5rem;
  min-width: 0;
}

.shot {
  margin: 0;
  min-width: 0;
  max-width: 100%;
}

.shot img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 0.9rem;
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 200, 92, 0.14);
  background: #0a0d14;
}

.shot-wide {
  grid-column: 1 / -1;
}

.shot-phone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

.shot-phone .device-phone {
  width: min(100%, 15.5rem);
}

.shot figcaption {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--muted);
  text-align: center;
}

.shot-phone figcaption {
  margin-top: 0;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem 1.25rem;
  align-items: start;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 200, 92, 0.14);
}

.step:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.step-num {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--glow);
  opacity: 0.9;
}

.step h3 {
  margin: 0 0 0.35rem;
}

.step p {
  margin: 0;
  color: rgba(242, 242, 235, 0.72);
}

.note {
  max-width: 40rem;
  margin: 0;
  padding: 1rem 0 0;
  font-size: 0.9375rem;
  color: var(--muted);
  border-top: 1px solid rgba(255, 200, 92, 0.14);
}

.home-footer {
  width: 100%;
  max-width: var(--max-home);
  margin: 0 auto 2.5rem;
  padding: 1.5rem 1rem 0;
  box-sizing: border-box;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin-bottom: 0.75rem;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes glow-pulse {
  0%,
  100% {
    opacity: 0.7;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.04);
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 1rem;
    gap: 2rem;
  }

  .hero-visual {
    order: -1;
  }

  .hero-device {
    width: min(100%, 14.5rem);
  }

  .feature-list {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .gallery {
    grid-template-columns: 1fr;
  }

  .shot-phone .device-phone {
    width: min(100%, 13.5rem);
  }
}

@media (max-width: 560px) {
  .topbar-inner {
    padding: 0.85rem 1rem;
  }

  .topbar .nav {
    width: 100%;
    gap: 0.65rem 1rem;
  }

  .hero {
    padding-inline: 1rem;
  }

  .hero-copy {
    min-width: 0;
  }

  .hero h1 {
    font-size: clamp(2rem, 9vw, 2.5rem);
    overflow-wrap: anywhere;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .section {
    padding-block: 3.25rem;
  }

  .section-alt {
    padding-inline: 1rem;
  }
}
