/* Polariss apex stub — calm Compass palette, not purple-AI generic. */

:root {
  --bg: #f3f1ea;
  --bg-deep: #e8e4d8;
  --ink: #1b1a16;
  --muted: #5c5950;
  --faint: #8a867a;
  --accent: #16906c;
  --accent-deep: #0c5f48;
  --on-accent: #ffffff;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-ui: "Hanken Grotesk", system-ui, sans-serif;
}

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

html {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--font-ui);
  font-size: 1.05rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 55% at 12% -10%, rgba(22, 144, 108, 0.14), transparent 55%),
    radial-gradient(ellipse 70% 50% at 92% 108%, rgba(12, 95, 72, 0.1), transparent 50%),
    linear-gradient(165deg, var(--bg) 0%, var(--bg-deep) 100%);
  animation: wash 14s ease-in-out infinite alternate;
}

@keyframes wash {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0.92;
    transform: scale(1.03);
  }
}

.shell {
  position: relative;
  z-index: 1;
  max-width: 38rem;
  margin: 0 auto;
  padding: clamp(3.5rem, 12vh, 7rem) 1.5rem 3rem;
  animation: rise 0.9s ease-out both;
}

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

.brand {
  margin: 0 0 1.75rem;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 7vw, 3.35rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--ink);
  animation: rise 1s 0.08s ease-out both;
}

.hook {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.6vw, 1.75rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: var(--ink);
  animation: rise 1s 0.16s ease-out both;
}

.support {
  margin: 0 0 2rem;
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.02rem;
  animation: rise 1s 0.24s ease-out both;
}

.ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-bottom: 2.5rem;
  animation: rise 1s 0.32s ease-out both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.65rem 1.35rem;
  border-radius: 0.45rem;
  font-family: var(--font-ui);
  font-size: 0.98rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--accent-deep);
  outline: none;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(27, 26, 22, 0.22);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--accent);
  color: var(--accent-deep);
  outline: none;
}

.note {
  margin: 0;
  max-width: 32rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--faint);
  animation: rise 1s 0.4s ease-out both;
}

@media (prefers-reduced-motion: reduce) {
  .atmosphere,
  .shell,
  .brand,
  .hook,
  .support,
  .ctas,
  .note {
    animation: none;
  }
}
