:root {
  --paper: #f6f6f5;
  --paper-soft: #efefed;
  --ink: #171717;
  --muted: #6d6d6d;
  --line: rgba(23, 23, 23, 0.1);
  --accent-breath: #d4e8f5;
  --accent-meditation: #d8f0e0;
  --accent-sleep: #e4ddf5;
  --serif: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --max: 1180px;
  --orb-pulse: 1;
  --orb-glow: 1;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--sans);
  background: var(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.no-webgl {
  background: #0e1014 url("assets/textures/basalt-fluted-1.webp") repeat fixed;
  background-size: 640px;
}

#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100vw;
  height: 100vh;
  display: block;
  background: #0c0e12;
}

.hero-fade {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(105deg,
      rgba(247, 247, 246, 0.98) 0%,
      rgba(247, 247, 246, 0.94) 28%,
      rgba(247, 247, 246, 0.72) 42%,
      rgba(247, 247, 246, 0.18) 58%,
      rgba(247, 247, 246, 0) 68%);
}

.pattern-hint {
  position: fixed;
  right: 18px;
  bottom: 16px;
  z-index: 20;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(12, 14, 18, 0.72);
  color: rgba(255, 255, 255, 0.88);
  font-size: 11px;
  letter-spacing: 0.04em;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.pattern-hint kbd {
  display: inline-block;
  min-width: 18px;
  padding: 1px 5px;
  margin: 0 2px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
  font-family: inherit;
  font-size: 10px;
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 2;
}

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

svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-header {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0 8px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.18em;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  position: relative;
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid var(--ink);
  border-radius: 50%;
}

.brand-mark::after {
  inset: 9px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  color: var(--muted);
}

.main-nav a {
  position: relative;
  padding-bottom: 4px;
}

.main-nav a.is-active {
  color: var(--ink);
}

.main-nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--ink);
}

.btn-signin {
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

main {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 24px;
  align-items: center;
  min-height: clamp(520px, 72vh, 680px);
  padding: 24px 0 56px;
}

.hero-copy {
  max-width: 520px;
  padding-right: 12px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 22px;
  padding: 7px 14px 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(23, 23, 23, 0.08);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #555;
}

.eyebrow-star {
  color: #c9a227;
  font-size: 13px;
}

.hero-title {
  margin: 0 0 18px;
  font-family: var(--serif);
  font-size: clamp(3.2rem, 5.8vw, 4.6rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.02em;
}

.hero-sub {
  margin: 0 0 30px;
  max-width: 420px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.btn--primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 12px 28px rgba(23, 23, 23, 0.18);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.72);
  border-color: var(--line);
}

.btn-arrow {
  width: 16px;
  height: 16px;
}

.social-proof {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.avatars {
  display: flex;
}

.avatars img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--paper);
  margin-left: -8px;
}

.avatars img:first-child { margin-left: 0; }

.hero-visual {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 48px 12px 0 0;
}

#hero-orb {
  position: relative;
  width: clamp(120px, 14vw, 168px);
  height: clamp(120px, 14vw, 168px);
  border-radius: 50%;
  z-index: 3;
  pointer-events: none;
  will-change: transform;
  background:
    radial-gradient(circle at 42% 38%,
      rgba(255, 255, 252, calc(0.98 * var(--orb-glow))),
      rgba(255, 244, 220, calc(0.82 * var(--orb-glow))) 42%,
      rgba(255, 220, 160, calc(0.42 * var(--orb-glow))) 72%,
      rgba(255, 200, 120, 0.08) 100%);
  box-shadow:
    0 0 calc(18px * var(--orb-glow)) rgba(255, 248, 230, calc(0.95 * var(--orb-glow))),
    0 0 calc(52px * var(--orb-glow)) rgba(255, 228, 180, calc(0.72 * var(--orb-glow))),
    0 0 calc(120px * var(--orb-glow)) rgba(255, 210, 140, calc(0.38 * var(--orb-glow))),
    0 0 calc(220px * var(--orb-glow)) rgba(255, 190, 110, calc(0.16 * var(--orb-glow))),
    inset 0 -8px 24px rgba(180, 120, 60, 0.12),
    inset 0 8px 20px rgba(255, 255, 255, 0.55);
}

#hero-orb::before {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.9), transparent 58%);
  opacity: calc(0.7 + 0.3 * var(--orb-pulse));
}

#hero-orb::after {
  content: "";
  position: absolute;
  inset: -30%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 240, 210, calc(0.22 * var(--orb-glow))), transparent 68%);
  filter: blur(8px);
}

.feature-band,
.sessions {
  background: var(--paper);
}

.feature-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-bottom: 56px;
  padding: 28px 8px;
  border-radius: 20px;
  background: #efefed;
  border: 1px solid rgba(23, 23, 23, 0.06);
  box-shadow: 0 18px 50px rgba(23, 23, 23, 0.06);
}

.feature-item {
  padding: 8px 24px;
  border-right: 1px solid rgba(23, 23, 23, 0.08);
}

.feature-item:last-child { border-right: none; }

.feature-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  color: #444;
}

.feature-icon svg { width: 20px; height: 20px; }

.feature-item h2 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 600;
}

.feature-item p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.sessions {
  margin-bottom: 64px;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.section-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  font-weight: 500;
}

.view-all {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 14px;
}

.session-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.session-card {
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(23, 23, 23, 0.06);
  box-shadow: 0 14px 36px rgba(23, 23, 23, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.session-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(23, 23, 23, 0.08);
}

.session-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.session-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.session-body {
  padding: 16px 16px 18px;
}

.session-tag {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.04em;
}

.session-tag--breath { background: var(--accent-breath); color: #3a6070; }
.session-tag--meditation { background: var(--accent-meditation); color: #3a6048; }
.session-tag--sleep { background: var(--accent-sleep); color: #524070; }

.session-body h3 {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.2;
}

.session-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
}

.play-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  background: #fff;
}

.play-btn svg {
  width: 12px;
  height: 12px;
  margin-left: 2px;
}

.site-footer {
  padding: 28px 0 40px;
  background: rgba(239, 239, 237, 0.96);
  border-top: 1px solid rgba(23, 23, 23, 0.06);
}

.press-row {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  color: #8a8a8a;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.press-logos {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: #9a9a9a;
}

.press-logos span {
  font-weight: 600;
  opacity: 0.72;
}

@media (max-width: 1024px) {
  .session-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-band { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .feature-item { border-right: none; border-bottom: 1px solid rgba(23, 23, 23, 0.06); }
  .feature-item:nth-last-child(-n+2) { border-bottom: none; }
}

@media (max-width: 820px) {
  .main-nav { display: none; }
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 8px;
  }
  .hero-visual {
    min-height: 280px;
    order: -1;
    margin-bottom: -40px;
  }
  .hero-fade {
    background:
      linear-gradient(180deg,
        rgba(247, 247, 246, 0.2) 0%,
        rgba(247, 247, 246, 0.88) 38%,
        rgba(247, 247, 246, 0.98) 58%);
  }
}

@media (max-width: 560px) {
  .site-header { padding-top: 14px; }
  .session-grid,
  .feature-band { grid-template-columns: 1fr; }
  .feature-item { border-bottom: 1px solid rgba(23, 23, 23, 0.06); }
  .feature-item:last-child { border-bottom: none; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }
}
