@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,500;0,9..144,600;1,9..144,400;1,9..144,500;1,9..144,600&family=Work+Sans:wght@400;500;600&display=swap');

:root {
  --bg-0: #0a0a0b;
  --bg-1: #131315;
  --bg-2: #1c1c1f;
  --coral: #f0492a;
  --coral-light: #ff8a5c;
  --cream: #fff6ee;
  --text-0: #f6f2ec;
  --text-1: rgba(246, 242, 236, 0.68);
  --text-2: rgba(246, 242, 236, 0.42);
  --glass-bg: linear-gradient(155deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02));
  --glass-border: rgba(255, 255, 255, 0.14);
  --glass-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.09);
  --radius-lg: 32px;
  --radius-md: 22px;
  --radius-sm: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg-0);
  color: var(--text-0);
  font-family: 'Work Sans', -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0;
}

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding-left: 48px;
  padding-right: 48px;
}

/* ---------- atmosphere ---------- */

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

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

.blob--coral {
  width: 620px;
  height: 620px;
  top: -180px;
  left: -120px;
  background: radial-gradient(circle at 30% 30%, var(--coral) 0%, rgba(240, 73, 42, 0) 70%);
  animation: drift-a 26s ease-in-out infinite;
}

.blob--teal {
  width: 560px;
  height: 560px;
  top: 220px;
  right: -220px;
  background: radial-gradient(circle at 60% 40%, #2fb6a3 0%, rgba(47, 182, 163, 0) 70%);
  opacity: 0.28;
  animation: drift-b 32s ease-in-out infinite;
}

.blob--gold {
  width: 420px;
  height: 420px;
  bottom: -140px;
  left: 30%;
  background: radial-gradient(circle at 50% 50%, #f0b429 0%, rgba(240, 180, 41, 0) 70%);
  opacity: 0.18;
  animation: drift-a 40s ease-in-out infinite reverse;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@keyframes drift-a {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, 40px) scale(1.08); }
}

@keyframes drift-b {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-50px, 60px) scale(0.94); }
}

/* ---------- glass ---------- */

.glass {
  position: relative;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  overflow: hidden;
}

.glass::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0) 40%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 1;
}

.glass::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0) 62%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 1;
}

.glass:hover::after { opacity: 1; }

/* ---------- nav ---------- */

nav {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 32px 0;
}

nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 30px;
  border-radius: 999px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 20px;
}

.brand img { width: 28px; height: 28px; border-radius: 8px; display: block; }

.nav-links { display: flex; gap: 28px; font-size: 15px; color: var(--text-1); }
.nav-links a:hover { color: var(--text-0); }

.pill {
  font-size: 13px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(240, 73, 42, 0.14);
  border: 1px solid rgba(240, 73, 42, 0.35);
  color: var(--coral-light);
  white-space: nowrap;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  z-index: 2;
  padding-top: 170px;
  padding-bottom: 100px;
  text-align: center;
}

.hero-icon {
  width: 108px;
  height: 108px;
  margin: 0 auto 44px;
  border-radius: 26px;
  box-shadow: 0 24px 50px -16px rgba(240, 73, 42, 0.5), 0 4px 18px rgba(0, 0, 0, 0.5);
  transform: rotate(-4deg);
  display: block;
  animation: settle 1.1s cubic-bezier(.2, .9, .25, 1) both;
}

@keyframes settle {
  0% { opacity: 0; transform: rotate(14deg) translateY(-18px) scale(0.85); }
  100% { opacity: 1; transform: rotate(-4deg) translateY(0) scale(1); }
}

.hero h1 {
  font-size: clamp(46px, 8vw, 92px);
  line-height: 0.98;
  font-style: italic;
  font-weight: 500;
}

.hero h1 span { color: var(--coral-light); }

.hero p.lede {
  max-width: 480px;
  margin: 32px auto 0;
  font-size: 19px;
  color: var(--text-1);
}

.cta-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 50px;
  flex-wrap: wrap;
}

.price-note {
  margin: 22px 0 0;
  font-size: 14px;
  color: var(--text-2);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  font-family: 'Work Sans', sans-serif;
  transition: transform 0.35s cubic-bezier(.2, .9, .25, 1), box-shadow 0.35s;
}

.btn:hover { transform: translateY(-2px); }

.btn--solid {
  background: linear-gradient(155deg, var(--coral-light), var(--coral));
  color: #1a0a06;
  box-shadow: 0 16px 34px -12px rgba(240, 73, 42, 0.65);
}

.btn--solid:hover { box-shadow: 0 20px 40px -10px rgba(240, 73, 42, 0.8); }

.btn--ghost {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border);
  color: var(--text-0);
}

/* ---------- die scene ---------- */

.die-scene {
  position: relative;
  height: 200px;
  margin: 100px auto 0;
  max-width: 640px;
}

.mini-die {
  position: absolute;
  border-radius: 20%;
  box-shadow: 0 18px 30px -10px rgba(0, 0, 0, 0.55);
}

/* ---------- dictionary entry ---------- */

.dict {
  padding: 90px clamp(28px, 7vw, 96px);
  text-align: center;
}

.dict .pos {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--coral-light);
  background: rgba(240, 73, 42, 0.12);
  border: 1px solid rgba(240, 73, 42, 0.32);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.dict .word {
  font-size: clamp(52px, 10vw, 118px);
  font-style: italic;
  line-height: 1;
}

.dict .phonetic {
  font-family: 'Work Sans', sans-serif;
  color: var(--text-2);
  font-size: 17px;
  margin-top: 10px;
  letter-spacing: 0.02em;
}

.dict .defs {
  list-style: none;
  counter-reset: def;
  text-align: left;
  max-width: 560px;
  margin: 48px auto 0;
  padding: 0;
  display: grid;
  gap: 22px;
}

.dict .defs li {
  counter-increment: def;
  display: flex;
  gap: 16px;
  align-items: baseline;
  font-size: 18px;
  color: var(--text-1);
}

.dict .defs li::before {
  content: counter(def);
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--text-0);
  transform: translateY(2px);
}

/* ---------- sections ---------- */

section { position: relative; z-index: 2; padding: 110px 0; }

.eyebrow {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--coral-light);
  font-weight: 600;
  margin-bottom: 24px;
}

.section-head { max-width: 560px; margin-bottom: 80px; }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); font-style: italic; line-height: 1.15; }
.section-head p { color: var(--text-1); margin-top: 22px; font-size: 17px; }

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.card {
  padding: 46px 38px;
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.5s ease;
}

.card:hover { border-color: rgba(255, 255, 255, 0.26); }

.card .glyph {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: linear-gradient(155deg, var(--coral-light), var(--coral));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
  font-family: 'Fraunces', serif;
  font-style: italic;
  color: #1a0a06;
  font-weight: 600;
}

.card h3 { font-size: 19px; font-weight: 500; font-style: italic; margin-bottom: 12px; }
.card p { color: var(--text-1); font-size: 15px; margin: 0; }

/* ---------- privacy strip ---------- */

.privacy-strip {
  padding: 76px 64px;
  display: flex;
  align-items: center;
  gap: 48px;
  justify-content: space-between;
  flex-wrap: wrap;
}

.privacy-strip h3 { font-size: 26px; font-style: italic; max-width: 380px; }
.privacy-strip p { color: var(--text-1); max-width: 340px; margin-top: 14px; font-size: 15px; }

.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 10px; align-items: baseline; font-size: 15px; color: var(--text-1); }
.check-list li::before { content: '—'; color: var(--coral-light); }

/* ---------- footer ---------- */

footer { padding: 40px 0 110px; position: relative; z-index: 2; }

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  padding: 42px 48px;
}

.footer-links { display: flex; gap: 26px; font-size: 14px; color: var(--text-1); }
.footer-links a:hover { color: var(--text-0); }
.footer-meta { font-size: 13px; color: var(--text-2); }

@media (max-width: 860px) {
  .grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .wrap { padding-left: 20px; padding-right: 20px; }
  .grid { grid-template-columns: 1fr; }
  .privacy-strip { padding: 32px 24px; }

  nav { padding: 18px 0; }
  nav .wrap {
    justify-content: center;
    padding: 14px 24px;
  }
  .nav-links { display: none; }
  .pill { display: none; }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 30px 24px;
    gap: 18px;
  }
  .footer-links { flex-wrap: wrap; gap: 16px; }
}

/* ---------- legal pages ---------- */

.legal {
  position: relative;
  z-index: 2;
  padding-top: 150px;
  padding-bottom: 130px;
}

.legal .glass { padding: 72px clamp(28px, 7vw, 88px); }

.legal h1 { font-size: clamp(34px, 5vw, 48px); font-style: italic; margin-bottom: 10px; }
.legal .updated { color: var(--text-2); font-size: 14px; margin-bottom: 52px; }
.legal h2 { font-size: 21px; font-style: italic; margin: 48px 0 14px; color: var(--coral-light); }
.legal p, .legal li { color: var(--text-1); font-size: 16px; line-height: 1.7; }
.legal ul { padding-left: 20px; }
.legal a.inline { color: var(--text-0); text-decoration: underline; text-decoration-color: rgba(255,255,255,0.3); }
.back-link { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 30px; color: var(--text-1); font-size: 14px; }
.back-link:hover { color: var(--text-0); }
