:root {
  --ink: #0e1419;
  --ink-soft: #1a242c;
  --fog: #f2f5f7;
  --mist: rgba(255, 255, 255, 0.82);
  --sand: #e0c08a;
  --ice: #9fd4e4;
  --line: rgba(255, 255, 255, 0.1);
  --font-display: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-ui: "Nunito", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

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

body.landing {
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--fog);
  font-family: var(--font-display);
  font-optical-sizing: auto;
  background:
    radial-gradient(ellipse 90% 70% at 70% 20%, rgba(126, 184, 201, 0.14), transparent 55%),
    radial-gradient(ellipse 70% 60% at 15% 85%, rgba(196, 165, 116, 0.12), transparent 50%),
    linear-gradient(165deg, #0a1014 0%, var(--ink) 42%, var(--ink-soft) 100%);
  overflow-x: hidden;
}

.landing-stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.landing-viz {
  width: 100%;
  height: 100%;
  opacity: 0.55;
}

.viz-grid line {
  stroke: var(--line);
  stroke-width: 1;
}

.viz-curve {
  stroke-linecap: round;
  stroke-dasharray: 1600;
  stroke-dashoffset: 1600;
  animation: draw-curve 2.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.viz-curve-b {
  animation-delay: 0.25s;
}

.viz-curve-c {
  animation-delay: 0.45s;
}

@keyframes draw-curve {
  to {
    stroke-dashoffset: 0;
  }
}

.landing-hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(1.5rem, 4vw, 3.5rem);
  padding-bottom: clamp(2.5rem, 8vh, 5rem);
  max-width: 920px;
}

.landing-brand {
  margin: 0 0 1.1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 4.2vw, 2.85rem);
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: #ffffff;
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.15s forwards;
}

.landing-headline {
  margin: 0 0 1.15rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.05rem, 5.5vw, 3.4rem);
  letter-spacing: -0.02em;
  line-height: 1.14;
  color: rgba(255, 255, 255, 0.88);
  max-width: 14ch;
  opacity: 0;
  transform: translateY(22px);
  animation: rise 0.95s cubic-bezier(0.22, 1, 0.36, 1) 0.35s forwards;
}

.landing-lead {
  margin: 0 0 1.75rem;
  max-width: 38rem;
  font-size: clamp(1.05rem, 2.1vw, 1.22rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
  opacity: 0;
  transform: translateY(22px);
  animation: rise 1s cubic-bezier(0.22, 1, 0.36, 1) 0.55s forwards;
}

.landing-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  opacity: 0;
  transform: translateY(18px);
  animation: rise 1s cubic-bezier(0.22, 1, 0.36, 1) 0.75s forwards;
}

.landing-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.55rem;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--ink);
  background: linear-gradient(135deg, #f0e0c0 0%, var(--sand) 45%, #b8955e 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 4px;
  transition: transform 0.2s ease, filter 0.2s ease, background 0.2s ease;
}

.landing-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
}

.landing-btn:active {
  transform: translateY(0);
}

.landing-btn-secondary {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(10, 16, 20, 0.56);
  border-color: rgba(159, 212, 228, 0.34);
  backdrop-filter: blur(8px);
}

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

@media (max-width: 640px) {
  .landing-hero {
    justify-content: center;
    padding-bottom: 3rem;
  }

  .landing-headline {
    max-width: none;
  }

  .landing-viz {
    opacity: 0.35;
  }
}

@media (prefers-reduced-motion: reduce) {
  .viz-curve,
  .landing-brand,
  .landing-headline,
  .landing-lead,
  .landing-cta {
    animation: none;
    opacity: 1;
    transform: none;
    stroke-dashoffset: 0;
  }
}

.site-announcement {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.65rem 1.5rem 0.75rem;
  border-bottom: 1px solid rgba(232, 200, 136, 0.4);
  background: rgba(40, 28, 10, 0.92);
  color: #ffe6b8;
  font-family: var(--font-ui);
  font-size: 0.88rem;
  line-height: 1.45;
}

.site-announcement[hidden] {
  display: none !important;
}

.site-announcement-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 1rem;
}

.site-announcement-label {
  flex: 0 0 auto;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #e8c888;
}

.site-announcement-all,
.site-announcement-more a {
  color: #ffe6b8;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(232, 200, 136, 0.4);
}

.site-announcement-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.site-announcement-list p,
.site-announcement p {
  margin: 0;
  color: #fff6e0;
  white-space: pre-wrap;
  word-break: break-word;
}

.site-announcement-more {
  margin: 0;
  font-size: 0.78rem;
}
