:root {
  color-scheme: light;
  --bg-start: #f7f8fb;
  --bg-end: #e7e9f0;
  --text: #0f172a;
  --muted: #475569;
  --accent: #0f766e;
  --accent-strong: #0d5d56;
  --shadow: 0 20px 60px rgba(15, 23, 42, 0.18);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 30% 20%, rgba(13, 93, 86, 0.08), transparent 35%),
    radial-gradient(circle at 70% 80%, rgba(79, 70, 229, 0.08), transparent 32%),
    linear-gradient(180deg, var(--bg-start), var(--bg-end));
  overflow: hidden;
}

.page {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.5rem;
  isolation: isolate;
  overflow: hidden;
}

.hero {
  position: relative;
  width: min(520px, calc(100% - 2rem));
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(6px);
  border-radius: 18px;
  padding: 2rem 1.75rem;
  text-align: center;
  box-shadow: var(--shadow);
  z-index: 2;
  transition: background 300ms ease, box-shadow 300ms ease;
}

.hero.is-floating {
  position: absolute;
  will-change: transform;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  font-size: 0.82rem;
  margin: 0 0 0.5rem;
  color: var(--accent-strong);
}

h1 {
  margin: 0 0 0.8rem;
  font-size: clamp(1.85rem, 5vw, 2.5rem);
  line-height: 1.1;
}

.subline {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.5;
}

.actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.82rem 1.35rem;
  background: var(--accent);
  color: #ffffff;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 12px 30px rgba(15, 118, 110, 0.28);
  transition: transform 200ms ease, box-shadow 200ms ease, background 200ms ease;
}

.button:focus-visible,
.button:hover {
  transform: translateY(-2px);
  background: var(--accent-strong);
  box-shadow: 0 16px 36px rgba(13, 93, 86, 0.32);
  outline: none;
}

.link {
  color: var(--accent-strong);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.link:focus-visible,
.link:hover {
  color: #0f172a;
}

.bg-word {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: clamp(5rem, 20vw, 14rem);
  color: rgba(15, 23, 42, 0.06);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  z-index: 1;
  transform: translate3d(0, -6%, 0);
  pointer-events: none;
  filter: blur(0px);
  opacity: 1;
  transition: opacity 700ms ease, filter 700ms ease, transform 700ms ease;
}

.bg-word.is-leaving {
  opacity: 0;
  filter: blur(8px);
  transform: translateY(18px) scale(0.98);
}

.bg-word.is-entering {
  opacity: 1;
  filter: blur(0px);
  transform: translateY(0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .bg-word {
    transition: none;
  }
}

@media (min-width: 720px) {
  .hero {
    padding: 2.25rem 2rem;
  }

  .bg-word {
    transform: translate3d(0, -10%, 0);
  }
}
