/* ============================================================
   Landing page
   ============================================================ */

body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* --- ambient background ------------------------------------ */

.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(980px 700px at 84% 6%, rgba(14, 138, 122, 0.16), transparent 62%),
    radial-gradient(760px 560px at 2% 96%, rgba(201, 176, 124, 0.22), transparent 68%),
    linear-gradient(180deg, #f8f5ed 0%, #f2eee4 100%);
}

.bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(23, 33, 31, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 33, 31, 0.05) 1px, transparent 1px);
  background-size: 76px 76px;
  -webkit-mask-image: radial-gradient(950px 680px at 50% 26%, #000 0%, transparent 76%);
  mask-image: radial-gradient(950px 680px at 50% 26%, #000 0%, transparent 76%);
}

/* --- header ------------------------------------------------ */

.site-header {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 26px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 50%;
  background: var(--ink);
  color: #f6f2e8;
  font-family: var(--serif);
  font-size: 23px;
  line-height: 1;
  padding-bottom: 3px;
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.brand:hover .brand-mark {
  transform: rotate(-14deg);
}

.brand-text {
  display: flex;
  align-items: baseline;
  gap: 7px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.brand-sub {
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.06em;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 2px;
  font-size: 13.5px;
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid rgba(23, 33, 31, 0.18);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.header-cta svg {
  width: 15px;
  height: 15px;
  transition: transform 0.25s ease;
}

.header-cta:hover {
  color: var(--accent-deep);
  border-color: var(--accent);
}

.header-cta:hover svg {
  transform: translate(2px, -2px);
}

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

.hero {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 30px 40px 56px;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: 56px;
  min-height: calc(100dvh - 190px);
}

.copy {
  max-width: 620px;
  animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  font-size: 11.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow .pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(14, 138, 122, 0.13);
}

h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(46px, 5.5vw, 76px);
  line-height: 1.12;
  letter-spacing: 0.01em;
  color: #101b19;
  margin-bottom: 22px;
}

.h1-sub {
  background: linear-gradient(
    180deg,
    transparent 70%,
    rgba(14, 138, 122, 0.2) 70%,
    rgba(14, 138, 122, 0.2) 93%,
    transparent 93%
  );
  padding-bottom: 3px;
}

.lede {
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--ink-soft);
  letter-spacing: 0.01em;
}

.desc {
  margin-top: 12px;
  max-width: 44ch;
  font-size: 14.5px;
  line-height: 1.9;
  color: var(--muted);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1),
    box-shadow 0.25s ease, background-color 0.2s ease,
    border-color 0.2s ease, color 0.2s ease;
}

.btn svg {
  width: 17px;
  height: 17px;
  flex: none;
}

.btn-primary {
  background: var(--ink);
  color: #f7f4ec;
  box-shadow: 0 14px 30px -16px rgba(23, 33, 31, 0.65);
}

.btn-primary .arrow {
  transition: transform 0.25s ease;
}

.btn-primary:hover {
  background: #0b1513;
  transform: translateY(-2px);
  box-shadow: 0 20px 38px -18px rgba(23, 33, 31, 0.6);
}

.btn-primary:hover .arrow {
  transform: translateX(3px);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  backdrop-filter: blur(4px);
}

.btn-ghost:hover {
  background: #fff;
  border-color: rgba(23, 33, 31, 0.34);
  transform: translateY(-2px);
}

.fine-print {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.fine-print svg {
  width: 14px;
  height: 14px;
  color: var(--accent);
}

.meta-row {
  display: flex;
  margin: 44px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
  max-width: 540px;
}

.meta-row > div {
  padding-right: 34px;
  margin-right: 34px;
  border-right: 1px solid var(--line);
}

.meta-row > div:last-child {
  padding-right: 0;
  margin-right: 0;
  border-right: 0;
}

.meta-row dt {
  margin-bottom: 7px;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.meta-row dd {
  margin: 0;
  font-family: var(--serif);
  font-size: 19px;
  color: var(--ink);
  white-space: nowrap;
}

/* --- cover visual ------------------------------------------ */

.visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  animation: rise 0.9s 0.1s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.cover-card {
  position: relative;
  z-index: 1;
  display: block;
  width: clamp(260px, 25vw, 344px);
  transform: rotate(-2.4deg);
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
  text-decoration: none;
}

.cover-card::before {
  content: "";
  position: absolute;
  inset: 16px -18px -20px 18px;
  z-index: -1;
  border-radius: 5px;
  background: #fffdf7;
  border: 1px solid rgba(23, 33, 31, 0.08);
  box-shadow: 0 24px 50px -26px rgba(23, 33, 31, 0.55);
  transform: rotate(3.2deg);
}

.cover-card::after {
  content: "";
  position: absolute;
  inset: 8px -8px -10px 8px;
  z-index: -2;
  border-radius: 5px;
  background: rgba(255, 253, 247, 0.6);
  border: 1px solid rgba(23, 33, 31, 0.06);
  transform: rotate(1.2deg);
}

.cover-card img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  border: 1px solid rgba(23, 33, 31, 0.1);
  box-shadow: 0 34px 70px -34px rgba(23, 33, 31, 0.6),
    0 2px 6px rgba(23, 33, 31, 0.08);
  background: #fff;
}

.cover-card:hover {
  transform: rotate(0deg) translateY(-6px);
}

.cover-tag {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(16, 26, 24, 0.62);
  color: #f5f2e9;
  font-size: 11px;
  letter-spacing: 0.08em;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.cover-tag::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #7ed9c8;
}

.float-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.float-note svg {
  width: 15px;
  height: 15px;
  color: var(--accent);
}

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

.site-footer {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 24px 40px 32px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 24px;
  font-size: 12.5px;
  color: var(--muted);
}

.site-footer a {
  color: var(--ink-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(23, 33, 31, 0.24);
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.site-footer a:hover {
  color: var(--accent-deep);
  text-decoration-color: var(--accent);
}

.footer-dim {
  letter-spacing: 0.04em;
}

/* --- motion ------------------------------------------------ */

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* --- responsive -------------------------------------------- */

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 54px;
    padding-top: 10px;
    padding-bottom: 48px;
    min-height: 0;
  }

  .copy {
    max-width: 640px;
    order: 1;
  }

  .visual {
    order: 2;
    gap: 22px;
  }

  .cover-card {
    width: min(300px, 62vw);
  }

  h1 {
    font-size: clamp(40px, 9vw, 60px);
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 18px 20px;
  }

  .brand-sub {
    display: none;
  }

  .header-cta {
    font-size: 12.5px;
  }

  .hero {
    padding: 14px 20px 44px;
    gap: 44px;
  }

  .eyebrow {
    margin-bottom: 18px;
  }

  h1 {
    font-size: clamp(36px, 11vw, 48px);
    margin-bottom: 16px;
  }

  .lede {
    font-size: 15px;
  }

  .desc {
    font-size: 13.5px;
  }

  .cta-row {
    margin-top: 26px;
    gap: 10px;
  }

  .btn {
    height: 48px;
    padding: 0 20px;
    font-size: 14px;
  }

  .btn-primary {
    flex: 1 1 auto;
  }

  .meta-row {
    margin-top: 32px;
    padding-top: 18px;
  }

  .meta-row > div {
    padding-right: 18px;
    margin-right: 18px;
  }

  .meta-row dd {
    font-size: 17px;
  }

  .site-footer {
    padding: 20px 20px 26px;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

@media (min-width: 1500px) {
  .hero {
    gap: 80px;
  }
}
