/* Home: hero, perks strip, rails */
.hero { position: relative; isolation: isolate; overflow: hidden; color: #f6efe4; }
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__screen {
  position: absolute; inset: 0;
  background: radial-gradient(55% 70% at 76% 42%, rgba(120, 104, 255, .55), transparent 70%), linear-gradient(135deg, #1b1749, #0e0c28 75%);
}
.hero__screen::after {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 40px 40px; -webkit-mask-image: radial-gradient(60% 80% at 75% 45%, #000, transparent); mask-image: radial-gradient(60% 80% at 75% 45%, #000, transparent);
}
.hero__leather {
  position: absolute; inset: 0; clip-path: polygon(0 0, 57% 0, 46% 100%, 0 100%);
  background: radial-gradient(70% 90% at 15% 20%, #7a4120, transparent 70%), linear-gradient(165deg, #5c2e14, #3a1c0d 65%, #2b140a);
}
.hero__leather::before {
  content: ''; position: absolute; inset: 0; opacity: .55; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero__seam { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; animation: stitch 1.8s var(--ease) .3s both; }
.hero__seam .seam--m { display: none; }
@keyframes stitch { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 -2% 0); } }

.hero__inner { display: grid; grid-template-columns: 1.02fr .98fr; align-items: center; gap: 2rem; min-height: clamp(560px, 80vh, 740px); padding-block: 3.5rem 4rem; position: relative; }
.hero__copy { max-width: 560px; }
.hero__title { font-size: clamp(2.5rem, 5.6vw, 4.5rem); line-height: 1.02; letter-spacing: -.035em; font-weight: 700; text-wrap: balance; }
.hero__title span { display: block; }
.hero__lead { margin-top: 1.4rem; font-size: clamp(1.02rem, 1.4vw, 1.2rem); color: rgba(246, 239, 228, .82); max-width: 46ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero .btn-primary { background: var(--thread); color: #2a170d; box-shadow: 0 14px 28px -14px rgba(228, 200, 143, .7); }
.hero .btn-primary:hover:not([disabled]) { background: #f1d9a5; }
.hero .btn-primary::after { border-color: rgba(42, 23, 13, .45); }
.hero .btn-signal { background: #7a6bff; }
.hero .btn-signal:hover:not([disabled]) { background: #9184ff; }

.hero__stage { position: relative; height: clamp(400px, 46vw, 560px); }
.cover {
  position: absolute; display: block; width: min(44%, 270px); aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden; background: #241f5c;
  box-shadow: 0 34px 60px -22px rgba(0, 0, 0, .75), 0 0 0 1px rgba(255, 255, 255, .14);
  transform: rotate(var(--rot)); transition: transform .5s var(--ease), box-shadow .5s;
}
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover--1 { left: 0; top: 14%; --rot: -7deg; }
.cover--2 { left: 28%; top: 0; --rot: 2deg; z-index: 2; width: min(50%, 300px); }
.cover--3 { right: 0; top: 22%; --rot: 8deg; }
.cover:hover { transform: rotate(0deg) translateY(-10px) scale(1.03); z-index: 5; box-shadow: 0 44px 70px -22px rgba(0, 0, 0, .85), 0 0 0 2px var(--thread); }
.cover__cap { position: absolute; inset: auto 0 0 0; display: flex; flex-direction: column; gap: .15rem; padding: 2.4rem .9rem .8rem; background: linear-gradient(to top, rgba(8, 6, 24, .92), transparent); }
.cover__cap strong { font: 650 .95rem/1.2 var(--font-display); letter-spacing: -.01em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cover__cap span { display: flex; align-items: center; gap: .3rem; font-size: .8rem; color: rgba(255, 255, 255, .8); }
.cover__cap .icon { color: #f5b942; }
.cover__cap em { font-style: normal; margin-left: auto; font-weight: 700; color: var(--thread); }
.cover.skeleton { background: linear-gradient(100deg, #241f5c 30%, #302a7a 50%, #241f5c 70%); background-size: 300% 100%; }
.cover-fallback { position: absolute; inset: 10% 5%; display: grid; place-content: center; justify-items: center; gap: 1rem; text-align: center; color: rgba(255, 255, 255, .7); border: 1.5px dashed rgba(255, 255, 255, .25); border-radius: 22px; }

/* Leather patch riveted over the seam */
.patch {
  position: absolute; left: calc(46% - 96px); bottom: 5.2rem; z-index: 6; display: flex; flex-direction: column; padding: .85rem 1.3rem; border-radius: 12px; transform: rotate(-3deg);
  background: linear-gradient(160deg, #8a4a22, #5e2f15); color: #f6e6c4; box-shadow: 0 18px 30px -14px rgba(0, 0, 0, .75);
}
.patch::before { content: ''; position: absolute; inset: 5px; border: 1.5px dashed rgba(228, 200, 143, .75); border-radius: 8px; pointer-events: none; }
.patch strong { font: 700 1.55rem/1 var(--font-display); letter-spacing: -.02em; }
.patch span { font-size: .8rem; opacity: .85; margin-top: .25rem; }

/* Perks strip */
.perks { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; margin-top: -2.2rem; position: relative; z-index: 3; box-shadow: var(--shadow-1); }
.perk { display: flex; gap: 1rem; padding: 1.4rem 1.6rem; align-items: flex-start; }
.perk + .perk { border-left: 1.5px dashed var(--line-strong); }
.perk__icon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--accent-soft); color: var(--thread); flex-shrink: 0; }
.perk:nth-child(2) .perk__icon { background: var(--signal-soft); }
.perk h3 { font-size: 1.05rem; }
.perk p { color: var(--text-2); font-size: .92rem; margin-top: .2rem; }

/* Horizontal rail */
.rail { display: flex; gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: .3rem .2rem 1rem; margin-inline: -.2rem; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.rail > * { flex: 0 0 clamp(250px, 24vw, 290px); scroll-snap-align: start; }
.rail-btns { display: flex; gap: .4rem; }
.rail-btns .icon-btn { border: 1px solid var(--line); background: var(--surface); width: 42px; height: 42px; }
.rail-btns .icon-btn:hover { border-color: var(--thread); }

@media (max-width: 900px) {
  .hero__leather { clip-path: polygon(0 0, 100% 0, 100% 52%, 0 60%); }
  .hero__seam .seam--d { display: none; } .hero__seam .seam--m { display: block; }
  @keyframes stitch { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 -2% 0 0); } }
  .hero__inner { grid-template-columns: 1fr; min-height: 0; padding-block: 2.5rem 3.5rem; gap: 2.5rem; }
  .hero__stage { height: 380px; max-width: 520px; width: 100%; margin-inline: auto; }
  .patch { left: 0; bottom: 0; }
  .perks { grid-template-columns: 1fr; margin-top: -1.6rem; }
  .perk + .perk { border-left: 0; border-top: 1.5px dashed var(--line-strong); }
}
@media (max-width: 480px) { .hero__stage { height: 330px; } .cover { width: 42%; } .cover--2 { width: 48%; left: 26%; } .hero__cta .btn { flex: 1 1 100%; } }
