:root {
  color-scheme: light dark;

  /* light (default) tokens */
  --bg-base: #FAF8F5;
  --bg-alt: #F1EEE9;
  --text-primary: #17181A;
  --text-secondary: #6E6E73;
  --accent: #1E5631;
  --accent-soft: #5E8C6A;
  --accent-deep: #0E3320;
  --accent-glow: rgba(30, 86, 49, 0.42);
  --glass-fill: rgba(255, 255, 255, 0.50);
  --glass-border: rgba(255, 255, 255, 0.75);
  --glass-highlight: rgba(255, 255, 255, 0.95);
  --glass-shadow: rgba(23, 24, 26, 0.14);
  --blob-1: rgba(30, 86, 49, 0.20);
  --blob-2: rgba(30, 86, 49, 0.12);
  --blob-3: rgba(23, 24, 26, 0.05);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-base: #0D0E10;
    --bg-alt: #171B18;
    --text-primary: #F5F3F0;
    --text-secondary: #9B9BA1;
    --accent: #3F8F5C;
    --accent-soft: #7FBF95;
    --accent-deep: #1E5631;
    --accent-glow: rgba(63, 143, 92, 0.55);
    --glass-fill: rgba(255, 255, 255, 0.06);
    --glass-border: rgba(255, 255, 255, 0.15);
    --glass-highlight: rgba(255, 255, 255, 0.28);
    --glass-shadow: rgba(0, 0, 0, 0.55);
    --blob-1: rgba(63, 143, 92, 0.22);
    --blob-2: rgba(63, 143, 92, 0.12);
    --blob-3: rgba(255, 255, 255, 0.05);
  }
}

:root[data-theme="dark"] {
  --bg-base: #0D0E10;
  --bg-alt: #171B18;
  --text-primary: #F5F3F0;
  --text-secondary: #9B9BA1;
  --accent: #3F8F5C;
  --accent-soft: #7FBF95;
  --accent-deep: #1E5631;
  --accent-glow: rgba(63, 143, 92, 0.55);
  --glass-fill: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.15);
  --glass-highlight: rgba(255, 255, 255, 0.28);
  --glass-shadow: rgba(0, 0, 0, 0.55);
  --blob-1: rgba(63, 143, 92, 0.22);
  --blob-2: rgba(63, 143, 92, 0.12);
  --blob-3: rgba(255, 255, 255, 0.05);
}

:root[data-theme="light"] {
  --bg-base: #FAF8F5;
  --bg-alt: #F1EEE9;
  --text-primary: #17181A;
  --text-secondary: #6E6E73;
  --accent: #1E5631;
  --accent-soft: #5E8C6A;
  --accent-deep: #0E3320;
  --accent-glow: rgba(30, 86, 49, 0.42);
  --glass-fill: rgba(255, 255, 255, 0.50);
  --glass-border: rgba(255, 255, 255, 0.75);
  --glass-highlight: rgba(255, 255, 255, 0.95);
  --glass-shadow: rgba(23, 24, 26, 0.14);
  --blob-1: rgba(30, 86, 49, 0.20);
  --blob-2: rgba(30, 86, 49, 0.12);
  --blob-3: rgba(23, 24, 26, 0.05);
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100dvh;
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Helvetica Neue", system-ui, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  transition: background-color 0.4s ease, color 0.4s ease;
}

.scene {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  will-change: transform;
}

.blob-1 {
  width: 55vmax;
  height: 55vmax;
  left: -15vmax;
  top: -18vmax;
  background: var(--blob-1);
}

.blob-2 {
  width: 45vmax;
  height: 45vmax;
  right: -14vmax;
  bottom: -16vmax;
  background: var(--blob-2);
}

.blob-3 {
  width: 38vmax;
  height: 38vmax;
  right: 8vmax;
  top: -10vmax;
  background: var(--blob-3);
}

@media (prefers-reduced-motion: no-preference) {
  .blob-1 { animation: drift-a 34s ease-in-out infinite alternate; }
  .blob-2 { animation: drift-b 28s ease-in-out infinite alternate; }
  .blob-3 { animation: drift-c 40s ease-in-out infinite alternate; }
}

@keyframes drift-a {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(4vmax, 3vmax) scale(1.08); }
}
@keyframes drift-b {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-3vmax, -4vmax) scale(1.05); }
}
@keyframes drift-c {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-2vmax, 3vmax) scale(0.96); }
}

main {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(20px, 4vw, 28px);
  padding: clamp(40px, 6vw, 64px) clamp(32px, 6vw, 56px);
  width: min(92vw, 460px);
  border-radius: 32px;
  text-align: center;
  background: var(--glass-fill);
  border: 1px solid var(--glass-border);
  box-shadow:
    0 24px 60px -20px var(--glass-shadow),
    inset 0 1px 0 var(--glass-highlight);
  backdrop-filter: blur(36px) saturate(160%);
  -webkit-backdrop-filter: blur(36px) saturate(160%);
  opacity: 0;
  transform: translateY(14px) scale(0.98);
}

@media (prefers-reduced-motion: no-preference) {
  main {
    animation: rise 900ms cubic-bezier(0.22, 1, 0.36, 1) 120ms forwards;
  }
}

@media (prefers-reduced-motion: reduce) {
  main { opacity: 1; transform: none; }
}

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

.mark {
  width: 76px;
  height: 76px;
  border-radius: 22%;
  background: linear-gradient(155deg, var(--accent-soft), var(--accent) 55%, var(--accent-deep));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 10px 24px -8px var(--accent-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -6px 12px rgba(0, 0, 0, 0.18);
}

.mark span {
  font-size: 34px;
  font-weight: 650;
  color: #FFF7F2;
  letter-spacing: -0.02em;
}

h1 {
  margin: 0;
  font-size: clamp(28px, 5.6vw, 36px);
  font-weight: 650;
  letter-spacing: -0.015em;
  line-height: 1.1;
  text-wrap: balance;
}

p.tagline {
  margin: 0;
  max-width: 32ch;
  font-size: clamp(15px, 2.6vw, 17px);
  line-height: 1.5;
  color: var(--text-secondary);
  font-weight: 400;
  text-wrap: balance;
}

.signature {
  margin-top: clamp(4px, 1vw, 8px);
  font-family: ui-monospace, "SF Mono", "Menlo", monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  opacity: 0.75;
}
