/* Syne - self-hosted (no Google Fonts) */
@font-face {
  font-family: 'Syne';
  font-style: normal;
  font-weight: 600;
  font-display: block;
  src: url('/fonts/syne-600.ttf') format('truetype');
}

@font-face {
  font-family: 'Syne';
  font-style: normal;
  font-weight: 700;
  font-display: block;
  src: url('/fonts/syne-700.ttf') format('truetype');
}

@font-face {
  font-family: 'Syne';
  font-style: normal;
  font-weight: 800;
  font-display: block;
  src: url('/fonts/syne-800.ttf') format('truetype');
}

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

:root {
  --bg-deep: #06080d;
  --text: #eef1f6;
  --text-muted: #8b95a8;
  --accent: #7eb8ff;
  --border: rgb(255 255 255 / 0.08);
  --max: 42rem;
  --font-display: 'Syne', system-ui, sans-serif;
  --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

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

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
}

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

a:hover {
  color: #fff;
}

/* —— Home: coming soon —— */

.page-home {
  overflow: hidden;
  background: var(--bg-deep);
  --footer-height: 3.25rem;
}

.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--bg-deep);
}

.ambient__layer {
  position: absolute;
  inset: -45%;
  filter: blur(90px);
  will-change: opacity, background, transform;
  transition: opacity 3s ease-in-out, background 3s ease-in-out;
}

.ambient__layer--a {
  animation: ambient-a 28s ease-in-out infinite;
}

.ambient__layer--b {
  animation: ambient-b 34s ease-in-out infinite;
}

.ambient__layer--c {
  animation: ambient-c 24s ease-in-out infinite;
}

.ambient__vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 30%, var(--bg-deep) 85%);
  pointer-events: none;
}

/* Fade + colour cycle per layer (smooth steps via ease-in-out keyframes) */
@keyframes ambient-a {
  0% {
    opacity: 0.12;
    transform: translate(0, 0) scale(1);
    background: radial-gradient(circle at 28% 42%, #3d7cff 0%, transparent 58%);
  }
  20% {
    opacity: 0.58;
    transform: translate(6%, -4%) scale(1.06);
    background: radial-gradient(circle at 32% 38%, #8b5cf6 0%, transparent 58%);
  }
  40% {
    opacity: 0.18;
    transform: translate(-4%, 6%) scale(0.96);
    background: radial-gradient(circle at 26% 48%, #06b6d4 0%, transparent 58%);
  }
  60% {
    opacity: 0.52;
    transform: translate(5%, 3%) scale(1.04);
    background: radial-gradient(circle at 34% 40%, #f59e0b 0%, transparent 58%);
  }
  80% {
    opacity: 0.22;
    transform: translate(-3%, -5%) scale(1);
    background: radial-gradient(circle at 30% 44%, #ec4899 0%, transparent 58%);
  }
  100% {
    opacity: 0.12;
    transform: translate(0, 0) scale(1);
    background: radial-gradient(circle at 28% 42%, #3d7cff 0%, transparent 58%);
  }
}

@keyframes ambient-b {
  0% {
    opacity: 0.1;
    transform: translate(0, 0) scale(1.05);
    background: radial-gradient(circle at 72% 28%, #a855f7 0%, transparent 52%);
  }
  25% {
    opacity: 0.48;
    transform: translate(-8%, 5%) scale(1.1);
    background: radial-gradient(circle at 68% 32%, #22d3ee 0%, transparent 52%);
  }
  50% {
    opacity: 0.15;
    transform: translate(4%, -6%) scale(0.98);
    background: radial-gradient(circle at 74% 26%, #6366f1 0%, transparent 52%);
  }
  75% {
    opacity: 0.55;
    transform: translate(-5%, 4%) scale(1.08);
    background: radial-gradient(circle at 70% 30%, #eab308 0%, transparent 52%);
  }
  100% {
    opacity: 0.1;
    transform: translate(0, 0) scale(1.05);
    background: radial-gradient(circle at 72% 28%, #a855f7 0%, transparent 52%);
  }
}

@keyframes ambient-c {
  0% {
    opacity: 0.14;
    transform: translate(0, 0);
    background: radial-gradient(circle at 48% 72%, #14b8a6 0%, transparent 48%);
  }
  33% {
    opacity: 0.5;
    transform: translate(7%, 8%);
    background: radial-gradient(circle at 52% 68%, #3b82f6 0%, transparent 48%);
  }
  66% {
    opacity: 0.16;
    transform: translate(-6%, -3%);
    background: radial-gradient(circle at 46% 74%, #d946ef 0%, transparent 48%);
  }
  100% {
    opacity: 0.14;
    transform: translate(0, 0);
    background: radial-gradient(circle at 48% 72%, #14b8a6 0%, transparent 48%);
  }
}

.coming-soon {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem 5rem;
  text-align: center;
}

.brand-glow {
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0;
  color: #fff;
  /* Glow only - filter: brightness() caused a composite jump on first animation frame */
  animation: brand-breathe 4.5s ease-in-out infinite;
}

@keyframes brand-breathe {
  0%,
  100% {
    text-shadow:
      0 0 20px rgb(126 184 255 / 0.35),
      0 0 45px rgb(168 85 247 / 0.2),
      0 0 80px rgb(20 184 166 / 0.12);
  }
  50% {
    text-shadow:
      0 0 28px rgb(126 184 255 / 0.55),
      0 0 60px rgb(168 85 247 / 0.35),
      0 0 100px rgb(255 225 74 / 0.15);
  }
}

.coming-soon__tag {
  margin: 1.25rem 0 0;
  font-size: clamp(0.95rem, 2.5vw, 1.15rem);
  font-weight: 500;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 0.45);
}

.coming-soon__about {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 2;
  bottom: calc(var(--footer-height) + 60px);
  display: block;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.75vw, 1.27rem);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 0.75);
  text-decoration: none;
  transition: color 0.2s, text-shadow 0.2s;
}

.coming-soon__about:hover {
  color: #fff;
  text-shadow: 0 0 24px rgb(126 184 255 / 0.35);
}

.coming-soon-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: var(--footer-height);
  padding: 1rem 1rem 1.25rem;
}

.coming-soon-footer__mini {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.6rem;
  font-size: clamp(0.65rem, 1.8vw, 0.8rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.coming-soon-footer__mini a {
  color: rgb(255 255 255 / 0.4);
  text-decoration: none;
}

.coming-soon-footer__mini a:hover {
  color: rgb(255 255 255 / 0.75);
}

.coming-soon-footer__sep {
  opacity: 0.25;
  color: rgb(255 255 255 / 0.4);
  font-size: 0.65rem;
}

@media (prefers-reduced-motion: reduce) {
  .ambient__layer {
    animation: none !important;
    opacity: 0.28;
    transition: none;
    background: radial-gradient(circle at 50% 50%, #3d7cff 0%, transparent 60%) !important;
  }

  .brand-glow {
    animation: none;
    text-shadow: 0 0 24px rgb(126 184 255 / 0.4);
  }
}

/* —— Legal page —— */

.page-legal {
  background: #0c1018;
  color: var(--text);
  --font-display: 'Syne', system-ui, sans-serif;
}

.page-legal a {
  color: #6ba3e8;
}

.wrap {
  width: min(var(--max), 100% - 2rem);
  margin-inline: auto;
}

.site-header {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  text-decoration: none;
}

.section {
  padding: 2rem 0 3rem;
}

.prose {
  max-width: 65ch;
}

.prose h1 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin: 0 0 0.5rem;
}

.prose h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 2.5rem 0 0.75rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}

.prose h2:first-of-type {
  border-top: none;
  padding-top: 0;
}

.prose h3 {
  font-size: 1rem;
  margin: 1.25rem 0 0.5rem;
  color: var(--text-muted);
}

.prose .updated {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.prose ul {
  padding-left: 1.25rem;
}

.prose li {
  margin-bottom: 0.35rem;
  color: rgb(255 255 255 / 0.82);
}

.prose p {
  color: rgb(255 255 255 / 0.82);
}

.back {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: none;
}

.back:hover {
  color: #fff;
}

.facts {
  margin: 0;
  display: grid;
  gap: 1rem;
}

.facts dt {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.facts dd {
  margin: 0;
  font-size: 0.95rem;
}

.site-footer {
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.prose-footnote {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
}

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

.prose-footnote a:hover {
  color: rgb(255 255 255 / 0.7);
  text-decoration: underline;
}

.page-platform .prose h1 {
  font-size: 1.35rem;
  font-weight: 600;
}

.page-platform .platform-note {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.page-policies .prose h1 {
  font-size: 1.35rem;
}

.about-block {
  margin-bottom: 2.5rem;
}

.about-block__name {
  font-family: var(--font-display, system-ui, sans-serif);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
  letter-spacing: -0.02em;
}

.about-block__role {
  font-size: 1rem;
  font-weight: 500;
  color: rgb(255 255 255 / 0.55);
  margin: 0 0 1.25rem;
}

.about-block__stack {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: rgb(255 255 255 / 0.45);
}

.page-legal #contact h2 {
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  border-top: none;
  padding-top: 0;
}

.site-mini-footer {
  padding: 1.25rem 1rem 1.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.site-mini-footer__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.6rem;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.site-mini-footer__nav a {
  color: var(--text-muted);
  text-decoration: none;
}

.site-mini-footer__nav a:hover {
  color: rgb(255 255 255 / 0.85);
}

.site-mini-footer__nav span {
  opacity: 0.35;
}

.site-mini-footer__copy {
  margin: 0;
  font-size: 0.7rem;
  color: rgb(255 255 255 / 0.25);
}

.page-platform .prose h2 {
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 600;
}
