/* Hero Huddle marketing splash — mirrors app v2 / HhColor tokens */

:root {
  /* Colors — light parchment */
  --hh-bg: #f5efe7;
  --hh-bg-deep: #e9dfd5;
  --hh-surface: #fffcf9;
  --hh-border: #e5d9d0;
  --hh-accent: #6b3a3a;
  --hh-accent-bright: #4a2828;
  --hh-accent-soft: #f6e4e0;
  --hh-accent-line: #dcb9b3;
  --hh-accent-glow: #6b3a3a26;
  --hh-accent-glow-strong: #6b3a3a33;
  --hh-on-accent: #fff7f4;
  --hh-ember: #b0561c;
  --hh-text: #2a1b18;
  --hh-text-2: #5c4c47;
  --hh-text-3: #7b6862;
  --hh-shadow: #2a1b1826;

  /* Typography */
  --hh-font-display: "Cinzel", Georgia, "Times New Roman", serif;
  --hh-font-ui: "Inter", system-ui, -apple-system, sans-serif;
  --hh-font-read: "Spectral", Georgia, serif;

  /* Spacing */
  --hh-space-xs: 4px;
  --hh-space-sm: 8px;
  --hh-space-md: 12px;
  --hh-space-lg: 16px;
  --hh-space-xl: 24px;
  --hh-space-xxl: 32px;

  /* Radius */
  --hh-radius-sm: 8px;
  --hh-radius-md: 12px;
  --hh-radius-lg: 16px;
  --hh-radius-full: 100px;

  /* Motion */
  --hh-duration-fast: 150ms;
  --hh-duration-md: 250ms;
  --hh-duration-slow: 400ms;
  --hh-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    /* Colors — inked vellum */
    --hh-bg: #141017;
    --hh-bg-deep: #0d0a10;
    --hh-surface: #1f1922;
    --hh-border: #382c3a;
    --hh-accent: #d9b44a;
    --hh-accent-bright: #f0d480;
    --hh-accent-soft: #332813;
    --hh-accent-line: #5c4a1e;
    --hh-accent-glow: #d9b44a55;
    --hh-accent-glow-strong: #d9b44a66;
    --hh-on-accent: #191207;
    --hh-ember: #ce7c4e;
    --hh-text: #f3ece1;
    --hh-text-2: #b5a99c;
    --hh-text-3: #95897e;
    --hh-shadow: #000000aa;
  }
}

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

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: var(--hh-font-ui);
  color: var(--hh-text);
  background: var(--hh-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.page {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: var(--hh-space-xxl) var(--hh-space-xl);
  overflow: hidden;
  background: linear-gradient(
    180deg,
    var(--hh-accent-soft) 0%,
    var(--hh-bg) 55%,
    var(--hh-bg-deep) 100%
  );
}

.page .hero {
  margin-block: auto;
}

.page .site-footer {
  position: relative;
  z-index: 1;
  padding-top: var(--hh-space-lg);
}

.glow {
  position: absolute;
  width: min(70vw, 420px);
  height: min(70vw, 420px);
  border-radius: 50%;
  background: radial-gradient(
    circle,
    var(--hh-accent-glow-strong) 0%,
    transparent 70%
  );
  top: 12%;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  animation: glow-pulse 4.5s var(--hh-ease-out) infinite;
}

.hero {
  position: relative;
  z-index: 1;
  max-width: 32rem;
  width: 100%;
  text-align: center;
  animation: rise-in var(--hh-duration-slow) var(--hh-ease-out) both;
}

.wordmark {
  margin: 0;
  font-family: var(--hh-font-display);
  font-weight: 700;
  font-size: clamp(2.5rem, 10vw, 3.5rem);
  letter-spacing: 0.12em;
  line-height: 1.05;
  color: var(--hh-text);
  text-transform: uppercase;
}

.tagline {
  margin: var(--hh-space-xl) 0 0;
  font-family: var(--hh-font-read);
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--hh-text-2);
}

.pitch {
  margin: var(--hh-space-lg) auto 0;
  max-width: 28rem;
  font-family: var(--hh-font-read);
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--hh-text-3);
}

.status {
  margin: var(--hh-space-xxl) 0 0;
  font-family: var(--hh-font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--hh-accent);
}

.platforms {
  display: inline-block;
  margin: var(--hh-space-lg) 0 0;
  padding: var(--hh-space-md) var(--hh-space-xl);
  border: 1px solid var(--hh-accent-line);
  border-radius: var(--hh-radius-full);
  background: color-mix(in srgb, var(--hh-surface) 80%, transparent);
  box-shadow: 0 8px 24px var(--hh-shadow);
  font-family: var(--hh-font-ui);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--hh-text-2);
  cursor: default;
  user-select: none;
  animation: rise-in var(--hh-duration-slow) var(--hh-ease-out) 120ms both;
}

.platforms strong {
  color: var(--hh-text);
  font-weight: 600;
}

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

@keyframes glow-pulse {
  0%,
  100% {
    opacity: 0.55;
    transform: translateX(-50%) scale(1);
  }
  50% {
    opacity: 0.9;
    transform: translateX(-50%) scale(1.06);
  }
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--hh-space-sm);
  font-family: var(--hh-font-ui);
  font-size: 0.8125rem;
  color: var(--hh-text-3);
}

.site-footer a {
  color: var(--hh-text-3);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  transition: color var(--hh-duration-fast) var(--hh-ease-out);
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--hh-accent);
}

.legal-page {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--hh-space-xl) var(--hh-space-xl) var(--hh-space-xxl);
  background: linear-gradient(
    180deg,
    var(--hh-accent-soft) 0%,
    var(--hh-bg) 40%,
    var(--hh-bg-deep) 100%
  );
}

.legal-header {
  width: 100%;
  max-width: 40rem;
  margin-bottom: var(--hh-space-xl);
}

.legal-back {
  font-family: var(--hh-font-ui);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--hh-accent);
  text-decoration: none;
  transition: color var(--hh-duration-fast) var(--hh-ease-out);
}

.legal-back:hover,
.legal-back:focus-visible {
  color: var(--hh-accent-bright);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.legal {
  width: 100%;
  max-width: 40rem;
  flex: 1;
  font-family: var(--hh-font-read);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--hh-text-2);
}

.legal h1 {
  margin: 0 0 var(--hh-space-lg);
  font-family: var(--hh-font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 5vw, 2rem);
  letter-spacing: 0.04em;
  line-height: 1.2;
  color: var(--hh-text);
}

.legal h2 {
  margin: var(--hh-space-xxl) 0 var(--hh-space-md);
  font-family: var(--hh-font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.03em;
  line-height: 1.3;
  color: var(--hh-text);
}

.legal h3 {
  margin: var(--hh-space-xl) 0 var(--hh-space-sm);
  font-family: var(--hh-font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.02em;
  line-height: 1.35;
  color: var(--hh-text);
}

.legal-meta {
  margin: 0 0 var(--hh-space-xl);
  font-family: var(--hh-font-ui);
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--hh-text-3);
}

.legal p {
  margin: 0 0 var(--hh-space-lg);
}

.legal ul {
  margin: 0 0 var(--hh-space-lg);
  padding-left: 1.35rem;
}

.legal li {
  margin-bottom: var(--hh-space-sm);
}

.legal li:last-child {
  margin-bottom: 0;
}

.legal a {
  color: var(--hh-accent);
  text-underline-offset: 0.15em;
}

.legal a:hover,
.legal a:focus-visible {
  color: var(--hh-accent-bright);
}

.legal code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.9em;
  padding: 0.1em 0.35em;
  border-radius: var(--hh-radius-sm);
  background: color-mix(in srgb, var(--hh-surface) 70%, var(--hh-border));
  color: var(--hh-text);
}

.legal table {
  width: 100%;
  margin: 0 0 var(--hh-space-lg);
  border-collapse: collapse;
  font-size: 0.95rem;
}

.legal th,
.legal td {
  padding: var(--hh-space-sm) var(--hh-space-md);
  border: 1px solid var(--hh-border);
  text-align: left;
  vertical-align: top;
}

.legal th {
  font-family: var(--hh-font-ui);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  background: color-mix(in srgb, var(--hh-surface) 85%, transparent);
  color: var(--hh-text);
}

.legal-page .site-footer {
  width: 100%;
  max-width: 40rem;
  margin-top: var(--hh-space-xxl);
  padding-top: var(--hh-space-xl);
  border-top: 1px solid var(--hh-border);
}

@media (prefers-reduced-motion: reduce) {
  .glow,
  .hero,
  .platforms {
    animation: none;
  }

  .site-footer a,
  .legal-back {
    transition: none;
  }
}
