/* ============ HOME PAGE ============ */

/* ---- Hero ---- */
.hero {
  position: relative;
  padding: clamp(80px, 14vh, 160px) 0 64px;
  overflow: hidden;
  border-bottom: 1px solid var(--rule);
  background: #020403;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.hero-ripple-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 1;
  mix-blend-mode: normal;
}
.shimmer-orb {
  position: absolute;
  top: 20%;
  left: 50%;
  width: 900px;
  height: 900px;
  transform: translate(-50%, -30%);
  background: radial-gradient(circle at center,
              rgba(46, 232, 184, 0.18) 0%,
              rgba(46, 232, 184, 0.06) 30%,
              rgba(46, 232, 184, 0) 60%);
  filter: blur(20px);
  opacity: 0.26;
  animation: orbBreath 8s ease-in-out infinite;
}
@keyframes orbBreath {
  0%, 100% { transform: translate(-50%, -30%) scale(1); opacity: 0.8; }
  50%      { transform: translate(-50%, -30%) scale(1.15); opacity: 1; }
}
.hero-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: calc(100% / 12) 100%;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,1), rgba(0,0,0,0.2));
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 42%, rgba(0,0,0,0.24) 0%, rgba(0,0,0,0.18) 34%, rgba(0,0,0,0) 68%),
    linear-gradient(90deg, rgba(0,0,0,0.56), rgba(0,0,0,0.14) 52%, rgba(0,0,0,0.5)),
    linear-gradient(180deg, rgba(0,0,0,0.14), rgba(0,0,0,0.76));
}
.hero-wrap { position: relative; z-index: 1; }

body.paper-mode .hero-ripple-canvas {
  opacity: 0.28;
  mix-blend-mode: multiply;
}

.hero-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: clamp(48px, 10vh, 96px);
  flex-wrap: wrap;
  gap: 24px;
}
.hero-meta-row {
  display: flex;
  gap: 24px;
}

.hero-title {
  font-size: clamp(56px, 10vw, 148px);
  max-width: 14ch;
  margin-bottom: clamp(48px, 10vh, 96px);
}
.hero-title span { display: block; }
.hero-line-2 {
  padding-left: clamp(30px, 8vw, 120px);
  color: var(--ink);
}
.hero-line-3 {
  color: var(--ink-dim);
}

.hero-foot {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: end;
  padding-top: 48px;
  border-top: 1px solid var(--rule);
}
.hero-lede {
  font-family: var(--serif-body);
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.45;
  color: var(--ink-dim);
  max-width: 44ch;
}
.hero-lede em { color: var(--ink); font-style: italic; }
.hero-ctas {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.hero-readout {
  margin-top: clamp(64px, 10vh, 120px);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 14px 0;
  position: relative;
  z-index: 2;
  background: var(--bg);
}
.hero-readout-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

/* ---- Section helpers ---- */
.section-head {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: end;
  margin-bottom: 64px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--rule);
}
.section-title {
  font-size: clamp(48px, 7vw, 96px);
  margin-top: 16px;
}
.section-lede {
  font-family: var(--serif-body);
  font-size: clamp(18px, 1.4vw, 22px);
  line-height: 1.45;
  color: var(--ink-dim);
  max-width: 44ch;
  padding-bottom: 16px;
}
.section-head-sm {
  margin-bottom: 48px;
}
.section-head-sm h3 {
  font-size: clamp(36px, 5vw, 64px);
  margin-top: 12px;
  max-width: 18ch;
}

/* ---- Flagship section ---- */
.flagship {
  padding: clamp(80px, 14vh, 140px) 0;
  border-bottom: 1px solid var(--rule);
}

.home-shine-copy {
  min-width: 0;
}
.home-shine-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.plugin-stage {
  background: var(--bg-elev);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 20px;
  position: relative;
}
.plugin-stage::before,
.plugin-stage::after {
  content: '';
  position: absolute;
  width: 8px; height: 8px;
  border: 1px solid var(--rule-strong);
}
.plugin-stage::before { top: -4px; left: -4px; }
.plugin-stage::after  { bottom: -4px; right: -4px; }

.plugin-stage-label {
  display: flex;
  justify-content: space-between;
  padding: 0 8px 12px;
  border-bottom: 1px dashed var(--rule-strong);
  margin-bottom: 20px;
}

.plugin-caption {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 20px;
  padding: 20px 8px 0;
  border-top: 1px dashed var(--rule-strong);
}
.cap-item .t-label { display: block; margin-bottom: 6px; }
.cap-item p {
  font-family: var(--serif-body);
  font-size: 22px;
  color: var(--ink);
  letter-spacing: -0.01em;
}

/* ---- Laika homepage feature ---- */
.home-laika {
  padding: clamp(80px, 14vh, 140px) 0;
  border-bottom: 1px solid var(--rule);
  background:
    radial-gradient(circle at 80% 16%, rgba(154,127,222,0.14), transparent 32%),
    linear-gradient(180deg, rgba(212,168,74,0.045), rgba(0,0,0,0) 48%),
    #010101;
}
.home-laika-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(520px, 1.08fr);
  gap: clamp(44px, 7vw, 96px);
  align-items: center;
}
.home-laika-copy {
  min-width: 0;
}
.home-laika-copy h3 {
  max-width: 10ch;
  margin: 18px 0 30px;
  font-size: clamp(54px, 6.4vw, 98px);
  line-height: 0.92;
}
.home-laika-copy p {
  max-width: 44ch;
  margin-bottom: 20px;
  font-family: var(--serif-body);
  font-size: clamp(17px, 1.25vw, 20px);
  line-height: 1.56;
  color: var(--ink-dim);
}
.home-laika-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}
.home-laika-actions .trial-inline {
  flex: 1 0 100%;
  margin-top: 6px;
}
.home-laika-stage {
  min-width: 0;
}
.home-laika-shot {
  overflow: hidden;
  border: 1px solid var(--rule-strong);
  background: #030303;
  aspect-ratio: 1812 / 1160;
}
.home-laika-shot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.home-laika-caption .cap-item p s {
  color: var(--ink-dim);
  text-decoration-thickness: 1px;
}

/* ---- Audio demo ---- */
.audio-demo {
  margin-top: 32px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: var(--bg-elev);
}
.audio-demo-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--rule);
  flex-wrap: wrap;
  gap: 16px;
}
.audio-presets {
  display: flex;
  gap: 2px;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: 2px;
  flex-wrap: wrap;
}
.audio-presets .ap {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 7px 12px;
  color: var(--ink-dim);
  border-radius: 2px;
  transition: all 0.15s;
}
.audio-presets .ap:hover { color: var(--ink); }
.audio-presets .ap.on {
  background: var(--teal);
  color: #001811;
}

.audio-player {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  gap: 0 24px;
  padding: 28px 24px;
  align-items: center;
}
.play-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--teal);
  color: #001811;
  display: flex;
  align-items: center;
  justify-content: center;
  grid-row: 1 / 3;
  transition: transform 0.15s;
}
.play-btn:hover { transform: scale(1.06); }
.play-btn svg { margin-left: 2px; }

.audio-waveform {
  position: relative;
  height: 56px;
  min-width: 0;
  overflow: hidden;
  cursor: pointer;
}
.audio-waveform canvas {
  display: block;
  width: 100%;
  height: 56px;
  max-width: 100%;
}
.audio-player audio { display: none; }

.audio-time {
  display: flex;
  justify-content: space-between;
  padding-top: 10px;
}

.audio-ab {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  border-top: 1px solid var(--rule);
  flex-wrap: wrap;
  gap: 12px;
}
.ab-tog {
  display: flex;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: 2px;
}
.ab-tog button {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 6px 14px;
  color: var(--ink-dim);
  border-radius: 2px;
}
.ab-tog button.on { background: var(--ink); color: var(--bg); }

/* ---- Principles ---- */
.principles {
  padding: clamp(80px, 14vh, 140px) 0;
  border-bottom: 1px solid var(--rule);
}
.principle-list {
  list-style: none;
}
.principle-list li {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 48px;
  padding: 40px 0;
  border-top: 1px solid var(--rule);
}
.principle-list li:last-child { border-bottom: 1px solid var(--rule); }
.p-num .t-label {
  font-size: 14px;
  color: var(--teal);
}
.p-body h4 {
  font-size: clamp(28px, 3vw, 40px);
  max-width: 22ch;
  margin-bottom: 14px;
}
.p-body p {
  font-family: var(--serif-body);
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink-dim);
  max-width: 54ch;
}

/* ---- What's Next ---- */
.whats-next {
  padding: clamp(80px, 14vh, 140px) 0;
  border-bottom: 1px solid var(--rule);
}
.next-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.next-card {
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 28px;
  background: var(--bg-elev);
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-height: 360px;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}
.next-card.shipped {
  cursor: pointer;
  background: var(--bg-elev);
}
.next-card.shipped:hover {
  border-color: var(--teal);
  background: #0d1411;
}
.next-card.wip { opacity: 0.9; }
.next-card.sketch { opacity: 0.6; }
.nc-head {
  display: flex;
  justify-content: space-between;
}
.next-card h3 {
  font-size: clamp(36px, 4vw, 52px);
  line-height: 0.95;
}
.nc-desc {
  font-family: var(--serif-body);
  font-size: 18px;
  line-height: 1.4;
  color: var(--ink-dim);
  flex: 1;
}
.nc-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
}
.home-sale-was {
  color: var(--ink-dim);
  text-decoration-thickness: 1px;
}
.home-sale-now { color: var(--teal); }
.home-card-price {
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1;
  color: var(--ink);
}
.nc-arrow { font-size: 20px; transition: transform 0.2s; }
.next-card.shipped:hover .nc-arrow { transform: translateX(4px); color: var(--teal); }

/* ---- CTA Strip ---- */
.cta-strip {
  padding: clamp(64px, 10vh, 100px) 0;
}
.cta-strip-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
  padding: 40px;
  background: var(--bg-elev);
  border: 1px solid var(--rule-strong);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}
.cta-strip-inner::before {
  content: '';
  position: absolute;
  right: -200px;
  top: 50%;
  transform: translateY(-50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(46,232,184,0.2), transparent 60%);
  filter: blur(30px);
  pointer-events: none;
}
.cta-strip-inner > div { position: relative; z-index: 1; }
.cta-strip-inner > a { position: relative; z-index: 1; }
.cta-strip h3 {
  font-size: clamp(24px, 2.6vw, 32px);
  margin-top: 8px;
  max-width: 28ch;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .hero-foot,
  .section-head,
  .cta-strip-inner { grid-template-columns: 1fr; }
  .hero-ctas { justify-content: flex-start; }
  .plugin-caption { grid-template-columns: repeat(2, 1fr); }
  .home-laika-grid { grid-template-columns: 1fr; }
  .home-laika-copy h3 { max-width: 12ch; }
  .principle-list li { grid-template-columns: 1fr; gap: 16px; }
  .next-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .home-shine-actions .btn,
  .home-laika-actions .btn {
    width: 100%;
    justify-content: center;
  }
  .home-laika-stage {
    padding: 14px;
  }
}
