/* Legally Brief: New York — coming soon edition */

:root {
  --bg-deep: #050810;
  --bg-mid: #0a0e1a;
  --bg-elevated: #0f1524;
  --text-primary: #e8eaf2;
  --text-muted: #8b92a8;
  --text-dim: #4a5166;
  --gold: #d4a853;
  --gold-bright: #e8c066;
  --gold-dim: rgba(212, 168, 83, 0.12);
  --accent-blue: #5b8def;
  --glass: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-highlight: rgba(212, 168, 83, 0.25);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-deep);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 10000;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

.cs-page {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
}

/* ── Hero ─────────────────────────────────────────────── */
.cs-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.5rem 8rem;
  text-align: center;
  overflow: hidden;
}

.cs-hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(212, 168, 83, 0.09) 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 100% 60%, rgba(30, 58, 120, 0.35) 0%, transparent 50%),
    radial-gradient(ellipse 60% 45% at 0% 80%, rgba(91, 141, 239, 0.12) 0%, transparent 45%),
    linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-mid) 45%, #060914 100%);
}

.cs-hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
}

.cs-hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
}

.cs-hero__orb--1 {
  width: min(90vw, 520px);
  height: min(90vw, 520px);
  background: rgba(212, 168, 83, 0.15);
  top: -8%;
  left: 50%;
  transform: translateX(-50%);
  animation: cs-float 22s ease-in-out infinite alternate;
}

.cs-hero__orb--2 {
  width: min(70vw, 380px);
  height: min(70vw, 380px);
  background: rgba(30, 58, 120, 0.4);
  bottom: 5%;
  right: -10%;
  animation: cs-float-right 26s ease-in-out infinite alternate;
  animation-delay: -8s;
}

@keyframes cs-float {
  from { transform: translateX(-50%) translateY(0) scale(1); }
  to { transform: translateX(-50%) translateY(24px) scale(1.05); }
}

@keyframes cs-float-right {
  from { transform: translateY(0) scale(1); }
  to { transform: translateY(-20px) scale(1.08); }
}

.cs-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 52rem;
}

.cs-hero__eyebrow {
  font-family: var(--font-mono);
  font-size: clamp(0.6rem, 1.5vw, 0.72rem);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  opacity: 0.95;
}

.cs-hero__title {
  font-size: clamp(2.35rem, 7.5vw, 4.25rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.88) 45%, var(--gold-bright) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cs-hero__subtitle {
  font-family: var(--font-mono);
  font-size: clamp(0.85rem, 2vw, 1rem);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.cs-hero__deck {
  font-size: clamp(0.95rem, 1.35vw, 1.12rem);
  line-height: 1.75;
  color: var(--text-muted);
  max-width: 36rem;
  margin: 0 auto 2.5rem;
}

.cs-glass-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 0.5rem;
}

.cs-glass {
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 1.1rem 1.35rem;
  text-align: left;
  min-width: min(100%, 240px);
  box-shadow:
    0 0 0 1px rgba(212, 168, 83, 0.06) inset,
    0 24px 48px rgba(0, 0, 0, 0.35);
  transition: border-color 0.35s var(--ease-out-expo), box-shadow 0.35s var(--ease-out-expo);
}

.cs-glass:hover {
  border-color: var(--glass-highlight);
  box-shadow:
    0 0 0 1px rgba(212, 168, 83, 0.12) inset,
    0 28px 56px rgba(0, 0, 0, 0.45);
}

.cs-glass__label {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.35rem;
}

.cs-glass__text {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.cs-hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 2;
  animation: cs-bob 2.8s ease-in-out infinite;
}

@keyframes cs-bob {
  0%, 100% { opacity: 0.45; transform: translateX(-50%) translateY(0); }
  50% { opacity: 0.9; transform: translateX(-50%) translateY(6px); }
}

/* ── Footer ───────────────────────────────────────────── */
.site-footer {
  position: relative;
  z-index: 5;
  padding: 3rem 1.5rem calc(3rem + env(safe-area-inset-bottom));
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: linear-gradient(180deg, transparent, rgba(5, 8, 16, 0.9));
}

.site-footer__brand {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.site-footer__pulse {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #17b26a;
  box-shadow: 0 0 10px #17b26a;
  animation: cs-pulse 2.4s ease-in-out infinite;
}

@keyframes cs-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

.site-footer__regen {
  font-size: clamp(0.82rem, 1.1vw, 0.92rem);
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 26rem;
  margin: 0 auto 1rem;
}

.site-footer__session {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.35rem;
}

.site-footer__timestamp {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  margin-bottom: 1.25rem;
}

.site-footer .source,
a.source {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.site-footer .source:hover,
a.source:hover {
  color: var(--gold);
  border-bottom-color: rgba(212, 168, 83, 0.4);
}

.sn-wrap {
  position: relative;
  z-index: 5;
}

@media (max-width: 480px) {
  .cs-hero {
    padding-bottom: 10rem;
  }
  .cs-glass-row {
    flex-direction: column;
    align-items: stretch;
  }
}
