/* Shared base styles (Tailwind utilities provide most colors/spacing) */
html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; max-width: 100%; }
body { font-family: "Inter", system-ui, sans-serif; -webkit-font-smoothing: antialiased; background: #FCFCFA; }
*, *::before, *::after { box-sizing: border-box; }
section { overflow-x: hidden; max-width: 100%; }
img, svg, video { max-width: 100%; }

.font-display { font-family: "Inter Tight", system-ui, sans-serif; letter-spacing: -0.02em; }
.font-mono { font-family: "JetBrains Mono", monospace; }

.paper-grid {
  background-image:
    linear-gradient(rgba(15,23,42,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,23,42,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
}
.light-glow {
  background:
    radial-gradient(50% 40% at 15% 0%, rgba(34,197,94,0.10) 0%, transparent 60%),
    radial-gradient(40% 40% at 90% 10%, rgba(249,115,22,0.10) 0%, transparent 60%);
}

::selection { background: #F97316; color: white; }
.card-soft   { box-shadow: 0 1px 0 rgba(15,23,42,0.04), 0 12px 32px -16px rgba(15,23,42,0.10); }
.card-strong { box-shadow: 0 1px 0 rgba(15,23,42,0.05), 0 24px 48px -24px rgba(15,23,42,0.18); }

@keyframes pulse-soft { 0%,100% { opacity: 1; } 50% { opacity: 0.45; } }
.pulse-soft { animation: pulse-soft 2s ease-in-out infinite; }
@keyframes status-blink {
  0%,100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34,197,94,0.35); }
  50% { opacity: 0.85; box-shadow: 0 0 0 6px rgba(34,197,94,0); }
}
.status-live { animation: status-blink 2.4s ease-in-out infinite; }
@keyframes pulse-ring {
  0% { transform: scale(0.6); opacity: 0.5; }
  80%,100% { transform: scale(2.4); opacity: 0; }
}
.pulse-ring { animation: pulse-ring 2.6s cubic-bezier(0.16, 1, 0.3, 1) infinite; }

/* Nav link underline */
.nav-link { position: relative; }
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px;
  height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform 280ms cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }

/* Button shimmer */
.btn-premium { position: relative; overflow: hidden; }
.btn-premium::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.18) 50%, transparent 70%);
  transform: translateX(-100%); transition: transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-premium:hover::before { transform: translateX(100%); }

/* PICXUM logo */
.picxum-logo { display: inline-flex; align-items: center; flex-shrink: 0; user-select: none; }
.picxum-logo img { display: block; width: 100%; height: auto; object-fit: contain; max-width: 100%; }
.header-logo { width: clamp(140px, 18vw, 210px); }
.footer-logo { width: clamp(140px, 18vw, 190px); opacity: 0.92; }
@media (max-width: 640px) {
  .header-logo { width: 150px; }
  .footer-logo { width: 150px; }
}

/* ===== Legal prose ===== */
.legal-prose {
  color: #1E293B;
  font-size: 15px;
  line-height: 1.7;
}
.legal-prose > * + * { margin-top: 1rem; }

.legal-prose h2 {
  font-family: "Inter Tight", system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #0A0F1C;
  font-size: clamp(20px, 3.2vw, 24px);
  line-height: 1.25;
  margin-top: 2.25rem;
  margin-bottom: 0.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(15,23,42,0.08);
}
.legal-prose > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }

.legal-prose h3 {
  font-family: "Inter Tight", system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: #0A0F1C;
  font-size: 17px;
  line-height: 1.3;
  margin-top: 1.5rem;
  margin-bottom: 0.25rem;
}

.legal-prose p {
  color: #334155;
}
.legal-prose strong { color: #0A0F1C; font-weight: 600; }
.legal-prose a {
  color: #EA580C;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}
.legal-prose a:hover { color: #C2410C; }

.legal-prose ul, .legal-prose ol {
  padding-left: 1.25rem;
  color: #334155;
}
.legal-prose ul { list-style: disc; }
.legal-prose ol { list-style: decimal; }
.legal-prose li + li { margin-top: 0.25rem; }

.legal-prose .legal-note {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(15,23,42,0.08);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: #64748B;
}

@media (max-width: 640px) {
  .legal-prose { font-size: 14.5px; }
  .legal-prose h2 { margin-top: 1.75rem; padding-top: 1rem; }
}
