:root {
  --paper: #f8f1e2;
  --paper-deep: #e8d8b4;
  --ink: #132028;
  --ink-soft: rgba(19, 32, 40, 0.76);
  --accent: #cf5a2e;
  --accent-deep: #8c3115;
  --surface: rgba(255, 250, 240, 0.72);
  --line: rgba(19, 32, 40, 0.12);
  --shadow: 0 24px 60px rgba(52, 35, 12, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(207, 90, 46, 0.16), transparent 28%),
    radial-gradient(circle at bottom right, rgba(28, 100, 117, 0.12), transparent 24%),
    linear-gradient(180deg, #f7efe2 0%, #f3e6cf 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(19, 32, 40, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(19, 32, 40, 0.025) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
  opacity: 0.5;
}

.page-shell {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent) 0%, #e29c42 100%);
  color: #fff8ed;
  font-weight: 700;
  box-shadow: 0 14px 28px rgba(140, 49, 21, 0.18);
}

.brand-text,
.nav-link,
.nav-cta,
.primary-button {
  font-weight: 700;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.nav-link,
.nav-cta,
.primary-button {
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.nav-link {
  padding: 12px 14px;
  border-radius: 999px;
  color: var(--ink);
}

.nav-cta {
  padding: 12px 18px;
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 250, 240, 0.82);
  border: 1px solid rgba(19, 32, 40, 0.08);
}

.hero,
.features,
.closing-panel {
  opacity: 0;
  transform: translateY(18px);
  animation: rise-in 700ms ease forwards;
}

.features {
  animation-delay: 120ms;
}

.closing-panel {
  animation-delay: 240ms;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 28px;
  align-items: center;
  padding: 28px 0 56px;
}

.eyebrow,
.feature-kicker,
.mini-badge,
.card-label {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  font-weight: 700;
}

.eyebrow,
.feature-kicker,
.card-label {
  color: var(--accent-deep);
}

h1,
h2,
h3,
h4,
.note-card p,
.note-card li {
  margin: 0;
}

h1,
.closing-panel h2 {
  font-family: "Instrument Serif", serif;
  line-height: 0.94;
  letter-spacing: -0.03em;
}

h1 {
  max-width: 12ch;
  margin-top: 10px;
  font-size: clamp(3.6rem, 8vw, 6.7rem);
}

.lede {
  max-width: 58ch;
  margin-top: 24px;
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  line-height: 1.65;
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 20px;
  margin-top: 28px;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 24px;
  border-radius: 999px;
  color: #fff9f1;
  background: linear-gradient(135deg, var(--accent) 0%, #df8a3d 100%);
  box-shadow: 0 18px 34px rgba(140, 49, 21, 0.24);
}

.primary-button:hover,
.nav-link:hover,
.nav-cta:hover {
  transform: translateY(-1px);
}

.microcopy {
  margin: 0;
  color: var(--ink-soft);
}

.hero-stage {
  position: relative;
  min-height: 530px;
  display: grid;
  place-items: center;
}

.table-glow {
  position: absolute;
  inset: 10% 4% 6%;
  border-radius: 36px;
  background:
    radial-gradient(circle at center, rgba(255, 250, 240, 0.85) 0%, rgba(255, 250, 240, 0.28) 46%, transparent 72%),
    linear-gradient(180deg, rgba(158, 104, 48, 0.12) 0%, rgba(19, 32, 40, 0.08) 100%);
  filter: blur(8px);
}

.note-card {
  position: absolute;
  width: min(320px, 74vw);
  min-height: 230px;
  padding: 24px;
  border-radius: 28px;
  border: 1px solid rgba(19, 32, 40, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 251, 245, 0.94) 0%, rgba(250, 240, 219, 0.88) 100%);
  box-shadow: var(--shadow);
}

.note-card::after {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 20px;
  border: 1px solid var(--line);
  pointer-events: none;
}

.note-card-focus {
  z-index: 3;
  transform: rotate(-5deg);
  animation: float-focus 5.5s ease-in-out infinite;
}

.note-card-focus h2 {
  margin-top: 16px;
  max-width: 10ch;
  font-size: clamp(2.1rem, 4vw, 3rem);
  line-height: 0.98;
}

.card-points {
  margin: 20px 0 0;
  padding-left: 18px;
  color: var(--ink-soft);
  display: grid;
  gap: 10px;
  line-height: 1.45;
}

.note-card-left,
.note-card-right {
  z-index: 2;
  width: min(250px, 54vw);
  min-height: 180px;
  display: grid;
  gap: 10px;
  align-content: start;
  color: rgba(19, 32, 40, 0.84);
}

.note-card-left {
  top: 48px;
  left: 8px;
  transform: rotate(-14deg);
  animation: float-left 6.2s ease-in-out infinite;
}

.note-card-right {
  right: 4px;
  bottom: 52px;
  transform: rotate(11deg);
  animation: float-right 6.8s ease-in-out infinite;
}

.mini-badge {
  color: #15576a;
}

.features {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  gap: 22px;
}

.feature-panel,
.feature-list,
.closing-panel {
  border: 1px solid rgba(19, 32, 40, 0.08);
  background: var(--surface);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
}

.feature-panel,
.closing-panel {
  padding: 28px;
  border-radius: 28px;
}

.feature-panel h3 {
  margin-top: 14px;
  max-width: 13ch;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.02;
}

.feature-panel p:last-child,
.feature-item p {
  color: var(--ink-soft);
  line-height: 1.6;
}

.feature-panel p:last-child {
  max-width: 46ch;
  margin-top: 18px;
}

.feature-list {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border-radius: 28px;
}

.feature-item {
  padding: 24px 26px;
  background: rgba(255, 250, 240, 0.72);
}

.feature-item h4 {
  font-size: 1.12rem;
}

.feature-item p {
  margin-top: 10px;
}

.closing-panel {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 24px;
}

.closing-panel h2 {
  max-width: 14ch;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px 24px;
  margin-top: 22px;
  padding: 20px 8px 0;
  color: var(--ink-soft);
}

.footer-copy {
  margin: 0;
  max-width: 44ch;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--ink);
  text-decoration: none;
}

.legal-page {
  width: min(920px, calc(100% - 32px));
}

.legal-shell {
  padding: 40px 0 56px;
}

.legal-card {
  margin-top: 20px;
  padding: 30px;
  border-radius: 28px;
  border: 1px solid rgba(19, 32, 40, 0.08);
  background: rgba(255, 250, 240, 0.86);
  box-shadow: var(--shadow);
}

.legal-card h1 {
  max-width: none;
  font-size: clamp(2.8rem, 6vw, 4.8rem);
}

.legal-card p,
.legal-card li {
  color: var(--ink-soft);
  line-height: 1.7;
}

.legal-card section + section {
  margin-top: 24px;
}

.legal-card ul {
  margin: 12px 0 0;
  padding-left: 20px;
}

.legal-meta {
  margin-top: 16px;
}

.legal-warning {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(207, 90, 46, 0.08);
  color: var(--ink);
}

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

@keyframes float-focus {
  0%,
  100% {
    transform: rotate(-5deg) translateY(0);
  }

  50% {
    transform: rotate(-4deg) translateY(-10px);
  }
}

@keyframes float-left {
  0%,
  100% {
    transform: rotate(-14deg) translate(0, 0);
  }

  50% {
    transform: rotate(-11deg) translate(-4px, -8px);
  }
}

@keyframes float-right {
  0%,
  100% {
    transform: rotate(11deg) translate(0, 0);
  }

  50% {
    transform: rotate(8deg) translate(6px, -10px);
  }
}

@media (max-width: 980px) {
  .hero,
  .features {
    grid-template-columns: 1fr;
  }

  .hero-stage {
    min-height: 420px;
    order: -1;
  }

  .note-card-left {
    left: 0;
  }

  .note-card-right {
    right: 0;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 24px, 1180px);
    padding-top: 16px;
  }

  .topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .topnav,
  .brand {
    justify-content: center;
  }

  .nav-link,
  .nav-cta,
  .primary-button {
    width: 100%;
  }

  h1 {
    max-width: none;
    font-size: clamp(3rem, 14vw, 4.4rem);
  }

  .hero {
    padding-top: 12px;
  }

  .hero-stage {
    min-height: 360px;
  }

  .note-card-focus {
    width: min(290px, 84vw);
    min-height: 210px;
    transform: rotate(-3deg);
  }

  .note-card-left,
  .note-card-right {
    width: min(190px, 52vw);
    min-height: 152px;
    padding: 18px;
  }

  .note-card-left {
    top: 28px;
  }

  .note-card-right {
    bottom: 30px;
  }

  .closing-panel {
    align-items: flex-start;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    padding-left: 0;
    padding-right: 0;
  }
}
