/* Adlayr landing page */
.landing { overflow-x: hidden; }
.landing main, .l-header, .l-footer, .ruler-strip { position: relative; z-index: 2; }
.btn-accent { background: linear-gradient(135deg, #15803D, #166534); color: #fff; box-shadow: 0 12px 34px rgba(21, 128, 61, .45); } /* white on green: 5:1 contrast or better */
.btn-accent:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 16px 40px rgba(21, 128, 61, .6); }
.btn-accent:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

.ruler-strip { height: 22px; border-bottom: 1px solid var(--line); background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .35) 0 1px, transparent 1px 10px) bottom / 100% 6px no-repeat, repeating-linear-gradient(90deg, rgba(255, 255, 255, .5) 0 1px, transparent 1px 100px) bottom / 100% 12px no-repeat; opacity: .55; }
.l-header { max-width: 1240px; margin: 0 auto; padding: 22px 32px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.l-nav { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.l-nav a:not(.btn) { color: var(--text-2); text-decoration: none; font-size: 15px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.l-nav a:not(.btn):hover { color: #fff; }
.l-nav .btn { color: #0B0D12; }

/* Hero */
.hero { max-width: 1240px; margin: 0 auto; padding: 64px 32px 120px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; min-height: calc(100vh - 100px); }
.hero-copy { display: flex; flex-direction: column; gap: 26px; }
.eyebrow.mono { font-family: var(--mono); color: #9EF0E6; }
.hero-title { font-size: clamp(44px, 6vw, 80px); line-height: 1.02; letter-spacing: -0.04em; font-weight: 800; }
.typed { white-space: nowrap; background: linear-gradient(90deg, #fff, #CFC3FF 60%, #9EF0E6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.caret { display: inline-block; width: 4px; height: .85em; margin-left: 6px; background: var(--teal); vertical-align: -0.06em; animation: caretBlink .9s step-end infinite; }
@keyframes caretBlink { 50% { opacity: 0; } }
.hero .lead { font-size: 19px; line-height: 1.55; max-width: 520px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; }
.hero-facts li { padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); background: rgba(10, 12, 18, .5); color: var(--text-2); }

/* Exploded layer stack */
.stack-wrap { display: flex; flex-direction: column; gap: 14px; align-items: center; }
.stack-scene { width: 100%; height: 540px; perspective: 1600px; display: flex; align-items: center; justify-content: center; cursor: grab; touch-action: pan-y; user-select: none; }
.stack-scene:active { cursor: grabbing; }
.stack { --rx: 56deg; --rz: -34deg; --sep: 18px; position: relative; width: 320px; height: 320px; transform-style: preserve-3d; transform: rotateX(var(--rx)) rotateZ(var(--rz)); transition: transform .08s linear; }
.plane { position: absolute; inset: 0; border-radius: 18px; transform-style: preserve-3d; transition: box-shadow .3s; }
.plane:nth-child(1) { transform: translateZ(calc(var(--sep) * 0)); }
.plane:nth-child(2) { transform: translateZ(calc(var(--sep) * 1)); }
.plane:nth-child(3) { transform: translateZ(calc(var(--sep) * 2)); }
.plane:nth-child(4) { transform: translateZ(calc(var(--sep) * 3)); }
.p-bg { background: radial-gradient(circle at 30% 30%, #1BA35F, #0A3D24 70%); box-shadow: 0 40px 80px rgba(0, 0, 0, .55); border: 1px solid rgba(255, 255, 255, .25); }
.p-hero, .p-head, .p-cta { border: 1px dashed rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .03); }
.hero-shape { position: absolute; left: 40px; right: 40px; bottom: 0; height: 150px; display: flex; align-items: flex-end; justify-content: center; gap: 6px; }
.hero-shape i { width: 72px; height: 130px; border-radius: 40px 40px 10px 10px; background: linear-gradient(180deg, #E7B985 0 34%, #C0392B 34%); }
.hero-shape i:nth-child(2) { height: 145px; background: linear-gradient(180deg, #D9A26E 0 32%, #E2C25B 32%); }
.hero-shape i:nth-child(3) { background: linear-gradient(180deg, #C98C5A 0 34%, #2E6BFF 34%); }
.head-shape { position: absolute; left: 50px; top: 80px; width: 220px; height: 70px; border-radius: 8px; background: linear-gradient(180deg, #FFF59A, #F5D90A); transform: skewX(-8deg); box-shadow: 0 6px 0 #0B3D22; }
.logo-shape { position: absolute; left: 100px; top: 24px; width: 120px; height: 32px; border-radius: 6px; background: #fff; }
.cta-shape { position: absolute; right: 26px; bottom: 26px; width: 120px; height: 44px; border-radius: 999px; display: flex; align-items: center; justify-content: center; padding: 3px; }
.cta-shape b { width: 100%; height: 100%; border-radius: 999px; background: #fff; color: #0A3D24; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.plane-tag { position: absolute; right: -14px; top: -14px; transform: translateZ(1px) rotateZ(34deg) rotateX(-56deg); transform-origin: right top; padding: 4px 8px; border-radius: 6px; background: rgba(10, 12, 18, .8); border: 1px solid rgba(255, 255, 255, .2); font-family: var(--mono); font-size: 11px; white-space: nowrap; opacity: var(--tags, 0); transition: opacity .3s; }
.stack-hint { font-size: 12px; color: var(--text-3); }

/* Parallax midground */
.parallax-layer { position: fixed; inset: 0; z-index: 1; pointer-events: none; will-change: transform; }
.pshape { position: absolute; border: 1.5px solid rgba(255, 255, 255, .14); border-radius: 14px; }
.pshape.s1 { left: 6%; top: 70vh; width: 90px; height: 90px; transform: rotate(12deg); }
.pshape.s2 { right: 8%; top: 120vh; width: 140px; height: 60px; border-radius: 999px; }
.pshape.s3 { left: 12%; top: 190vh; width: 60px; height: 160px; transform: rotate(-8deg); }
.pshape.s4 { right: 14%; top: 260vh; width: 110px; height: 110px; border-radius: 50%; border-style: dashed; }

/* Sections */
.section-head { max-width: 760px; display: flex; flex-direction: column; gap: 14px; margin-bottom: 36px; }
.h-big { font-size: clamp(34px, 4.4vw, 56px); letter-spacing: -0.035em; font-weight: 700; }
.how, .compare, .final { max-width: 1240px; margin: 0 auto; padding: 40px 32px 120px; }
.draw-path { width: 100%; height: 160px; display: block; margin-bottom: 40px; overflow: visible; }
.draw-path path { stroke: #9EF0E6; stroke-width: 2.5; }
.draw-path .anchors rect { fill: var(--bg); stroke: #fff; stroke-width: 2; opacity: 0; transition: opacity .4s; }
.draw-path .anchors line { stroke: rgba(255, 255, 255, .5); stroke-width: 1; opacity: 0; transition: opacity .4s; }
.draw-path .anchors circle { fill: #fff; opacity: 0; transition: opacity .4s; }
.draw-path.complete .anchors * { opacity: 1; }
.steps-row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.step-tile { position: relative; overflow: hidden; padding: 24px; border-radius: 20px; background: rgba(16, 19, 26, .62); border: 1px solid var(--line); backdrop-filter: blur(18px); min-height: 200px; display: flex; flex-direction: column; gap: 10px; outline-offset: -2px; }
.step-tile .mono { color: #9EF0E6; font-size: 13px; }
.step-tile h3 { font-size: 20px; }
.step-tile p { color: var(--text-2); }
.step-tile .dir-fill { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 24px; background: linear-gradient(160deg, #6B4DFF, #10C9B7); color: #fff; font-weight: 600; font-size: 18px; line-height: 1.3; opacity: 0; }
.dir-hover.dir-in .dir-fill { animation: dirIn .35s var(--ease) forwards; }
.dir-hover.dir-out .dir-fill { animation: dirOut .3s var(--ease) forwards; }
.dir-hover[data-from="top"] .dir-fill { --fx: 0; --fy: -100%; } .dir-hover[data-from="bottom"] .dir-fill { --fx: 0; --fy: 100%; }
.dir-hover[data-from="left"] .dir-fill { --fx: -100%; --fy: 0; } .dir-hover[data-from="right"] .dir-fill { --fx: 100%; --fy: 0; }
@keyframes dirIn { from { opacity: 1; transform: translate(var(--fx, 0), var(--fy, 100%)); } to { opacity: 1; transform: none; } }
@keyframes dirOut { from { opacity: 1; transform: none; } to { opacity: 1; transform: translate(var(--fx, 0), var(--fy, 100%)); } }

/* Split-letter hover */
.split-hover .ch { display: inline-block; transition: transform .35s var(--ease), color .35s; transition-delay: calc(var(--i) * 18ms); }
.split-hover:hover .ch { transform: translateY(-6px) rotate(-3deg); color: #E4DCFF; }
.split-hover .sp { display: inline-block; width: .28em; }

/* Sticky stacking modes */
.modes-sticky { position: relative; height: 230vh; }
.modes-pin { position: sticky; top: 0; height: 100vh; max-width: 1240px; margin: 0 auto; padding: 72px 32px 40px; display: flex; flex-direction: column; }
.mode-stack { position: relative; flex: 1; max-width: 760px; width: 100%; }
.mode-panel { position: absolute; left: 0; right: 0; top: 0; padding: 36px; display: flex; flex-direction: column; gap: 14px; min-height: 300px; transform-origin: 50% 0; will-change: transform; overflow: hidden; }
.mode-panel h3 { font-size: 30px; letter-spacing: -0.02em; }
.mode-panel p { color: var(--text-2); font-size: 17px; line-height: 1.55; max-width: 560px; }
.mode-panel .num { color: #9EF0E6; }
.morph-icon { width: 64px; height: 64px; border-radius: 18px; display: inline-flex; align-items: center; justify-content: center; background: rgba(124, 98, 255, .22); transition: border-radius .5s var(--ease), background .5s; }
.morph-icon svg { width: 40px; height: 40px; fill: none; stroke: #E4DCFF; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.morph-icon svg * { transition: transform .5s var(--ease); transform-box: fill-box; transform-origin: center; }
.mode-panel:hover .morph-icon { border-radius: 50% 22% 50% 22%; background: rgba(16, 201, 183, .25); }
.mode-panel:hover .m-a { transform: translate(-3px, -3px) rotate(-6deg); }
.mode-panel:hover .m-b { transform: scale(1.12); }
.mode-panel:hover .m-c { transform: translate(3px, 3px); }

/* Tilt + spotlight */
.tilt { --mx: 50%; --my: 50%; --rx: 0deg; --ry: 0deg; }
.tilt::before { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: radial-gradient(260px circle at var(--mx) var(--my), rgba(255, 255, 255, .6), transparent 60%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .3s; pointer-events: none; }
.tilt:hover::before { opacity: 1; }
.tilt .tilt-inner, .final-card { transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .35s var(--ease); }

/* Horizontal scroll */
.hscroll { position: relative; height: 300vh; }
.hscroll-pin { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding: 40px 0; }
.hscroll-pin .section-head { padding: 0 32px; max-width: 1240px; margin: 0 auto 36px; width: 100%; }
.hscroll-track { display: flex; align-items: center; gap: 48px; padding: 0 max(32px, calc((100vw - 1240px) / 2 + 32px)); will-change: transform; }
.size-frame { margin: 0; flex-shrink: 0; display: flex; flex-direction: column; gap: 12px; }
.size-frame figcaption { color: var(--text-2); font-size: 13px; }
.sf-art { position: relative; border-radius: 10px; overflow: hidden; background: radial-gradient(circle at 30% 20%, #1BA35F, #0A3D24 75%); border: 1px solid rgba(255, 255, 255, .25); box-shadow: 0 30px 60px rgba(0, 0, 0, .45); }
.sf-art i { position: absolute; border-radius: 4px; }
.sf-logo { left: 35%; top: 6%; width: 30%; height: 7%; background: #fff; }
.sf-head { left: 12%; top: 18%; width: 76%; height: 22%; background: linear-gradient(180deg, #FFF59A, #F5D90A); transform: skewX(-8deg); }
.sf-hero { left: 14%; bottom: 0; width: 72%; height: 40%; border-radius: 40% 40% 0 0 !important; background: linear-gradient(180deg, #E7B985 0 30%, #C0392B 30%); }
.sf-cta { left: 34%; bottom: 4%; width: 32%; height: 7%; border-radius: 999px !important; background: #fff; }
.sf-art.wide .sf-logo { left: 2%; top: 30%; width: 12%; height: 40%; }
.sf-art.wide .sf-head { left: 17%; top: 12%; width: 38%; height: 76%; }
.sf-art.wide .sf-hero { left: 58%; width: 20%; height: 100%; }
.sf-art.wide .sf-cta { left: 81%; top: 28%; bottom: auto; width: 16%; height: 44%; }

/* Before / after */
.slider { position: relative; height: min(520px, 60vw); border-radius: 26px; overflow: hidden; border: 1px solid var(--line-strong); user-select: none; touch-action: pan-y; cursor: ew-resize; }
.slider-after, .slider-before { position: absolute; inset: 0; }
.slider-before { clip-path: inset(0 50% 0 0); }
.slider-after { background-color: #2A2C2E; background-image: linear-gradient(45deg, #34373a 25%, transparent 25%), linear-gradient(-45deg, #34373a 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #34373a 75%), linear-gradient(-45deg, transparent 75%, #34373a 75%); background-size: 24px 24px; background-position: 0 0, 0 12px, 12px -12px, -12px 0; }
.demo-art { position: absolute; inset: 0; }
.demo-art i { position: absolute; }
.demo-art .d-bg { inset: 0; background: radial-gradient(circle at 30% 30%, #1BA35F, #0A3D24 70%); }
.demo-art.layered .d-bg { inset: 4%; border-radius: 14px; opacity: .9; }
.demo-art .d-hero { left: 30%; bottom: 0; width: 40%; height: 48%; border-radius: 45% 45% 0 0; background: linear-gradient(180deg, #E7B985 0 30%, #C0392B 30%); }
.demo-art .d-head { left: 22%; top: 18%; width: 56%; height: 20%; border-radius: 10px; background: linear-gradient(180deg, #FFF59A, #F5D90A); }
.demo-art .d-logo { left: 40%; top: 6%; width: 20%; height: 7%; border-radius: 6px; background: #fff; }
.demo-art .d-cta { right: 8%; bottom: 10%; width: 18%; height: 10%; border-radius: 999px; background: #fff; }
.demo-art.layered .ants { background-color: transparent; }
.demo-art.layered .d-hero.ants::after, .demo-art.layered .d-head.ants::after, .demo-art.layered .d-logo.ants::after, .demo-art.layered .d-cta.ants::after { content: ''; position: absolute; inset: 3px; border-radius: inherit; }
.demo-art.layered .d-hero.ants::after { background: linear-gradient(180deg, #E7B985 0 30%, #C0392B 30%); }
.demo-art.layered .d-head.ants::after { background: linear-gradient(180deg, #FFF59A, #F5D90A); }
.demo-art.layered .d-logo.ants::after, .demo-art.layered .d-cta.ants::after { background: #fff; }
.slider-line { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: #fff; transform: translateX(-1px); }
.slider-handle { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; border: 0; background: #fff; color: #0B0D12; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .45); cursor: ew-resize; }
.slider-tag { position: absolute; top: 16px; padding: 6px 10px; border-radius: 8px; background: rgba(0, 0, 0, .55); font-size: 13px; }
.slider-tag.left { left: 16px; } .slider-tag.right { right: 16px; }

.final { padding-bottom: 100px; }
.final-card { position: relative; padding: 56px; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; overflow: hidden; }
.l-footer { max-width: 1240px; margin: 0 auto; padding: 28px 32px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--text-3); font-size: 14px; }

/* Cursor follower */
.cursor-dot, .cursor-ring { position: fixed; left: 0; top: 0; z-index: 400; pointer-events: none; border-radius: 50%; opacity: 0; transition: opacity .3s, width .25s, height .25s, background .25s, border-color .25s; }
.cursor-dot { width: 8px; height: 8px; margin: -4px 0 0 -4px; background: #9EF0E6; }
.cursor-ring { width: 36px; height: 36px; margin: -18px 0 0 -18px; border: 1.5px solid rgba(255, 255, 255, .55); }
.has-cursor .cursor-dot, .has-cursor .cursor-ring { opacity: 1; }
.cursor-ring.hover { width: 64px; height: 64px; margin: -32px 0 0 -32px; border-color: #9EF0E6; background: rgba(158, 240, 230, .08); }

/* Phone gate */
.gate-overlay { position: fixed; inset: 0; z-index: 500; overflow: auto; }
.gate-inner { position: relative; z-index: 1; min-height: 100vh; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; padding: 32px 20px 24px; }
.gate-card { padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.gate-card h1 { font-size: 30px; }
.gate-card p { color: var(--text-2); }
body.gated > *:not(.aurora):not(.gate-overlay) { display: none !important; }

@media (max-width: 1000px) {
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .steps-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .steps-row { grid-template-columns: minmax(0, 1fr); }
  .l-nav a:not(.btn) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .caret { animation: none; }
  .modes-sticky, .hscroll { height: auto; }
  .modes-pin, .hscroll-pin { position: relative; height: auto; }
  .mode-stack { display: flex; flex-direction: column; gap: 16px; }
  .mode-panel { position: relative; transform: none !important; }
  .hscroll-track { flex-wrap: wrap; transform: none !important; }
}
