/* ============================================
   Build Speedy Landing Page — Styles
   ============================================ */

/* ── Reset & Variables ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #050a14;
  --cy: #00ccee;
  --cbr: #33eeff;
  --bl: #00aaee;
  --bld: #0055cc;
  --tx: #e8f0fa;
  --tm: #6b8ab5;
  --scr: #070d19;
}

html, body { height: 100%; overflow: hidden; cursor: none; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--tx);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  height: 100dvh;
}

/* ── Custom Cursor ── */
.cursor {
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9999;
  transition: opacity .2s;
}
.cur-h, .cur-v {
  position: absolute;
  background: rgba(255, 255, 255, .6);
  border-radius: 1px;
}
.cur-h { width: 10px; height: 1.5px; top: -0.75px; }
.cur-v { width: 1.5px; height: 10px; left: -0.75px; }
.cur-h.l { right: 5px; }
.cur-h.r { left: 5px; }
.cur-v.t { bottom: 5px; }
.cur-v.b { top: 5px; }
.cur-center {
  position: absolute;
  width: 6px; height: 6px;
  top: -3px; left: -3px;
  border: 1.5px solid var(--cy);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(0, 204, 238, .4);
  transition: transform .15s, border-color .15s, box-shadow .15s;
}
.cursor.hover .cur-h,
.cursor.hover .cur-v { background: var(--cy); box-shadow: 0 0 4px rgba(0, 204, 238, .3); }
.cursor.hover .cur-center { transform: scale(1.6); border-color: #fff; box-shadow: 0 0 16px rgba(0, 204, 238, .6); }
.cursor.hover .cur-h { width: 14px; }
.cursor.hover .cur-h.l { right: 6px; }
.cursor.hover .cur-h.r { left: 6px; }
.cursor.hover .cur-v { height: 14px; }
.cursor.hover .cur-v.t { bottom: 6px; }
.cursor.hover .cur-v.b { top: 6px; }

.cur-trail {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
}
@keyframes trail {
  0%   { opacity: .6; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0;  transform: translate(-50%, -50%) scale(0); }
}

.conv-spark {
  position: fixed;
  width: 3px; height: 3px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  animation: cspark .5s ease-out forwards;
}
@keyframes cspark {
  0%   { opacity: .7; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0;  transform: translate(-50%, -50%) scale(0) translateY(8px); }
}

input, button, a, [role="button"] { cursor: pointer; }

/* ── Background ── */
.bgG {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(0, 170, 238, .02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 170, 238, .02) 1px, transparent 1px);
  background-size: 50px 50px;
}
.bgO { position: fixed; border-radius: 50%; filter: blur(120px); pointer-events: none; z-index: 0; }
.bgO1 { width: 700px; height: 700px; background: radial-gradient(circle, rgba(0, 170, 238, .1), transparent 70%); top: 50%; left: 50%; transform: translate(-50%, -50%); }
.bgO2 { width: 400px; height: 400px; background: radial-gradient(circle, rgba(0, 204, 238, .05), transparent 70%); top: 8%; right: 5%; }
.bgO3 { width: 350px; height: 350px; background: radial-gradient(circle, rgba(0, 68, 187, .06), transparent 70%); bottom: 8%; left: 8%; }

/* ── Floating Particles (code + UI) ── */
.cp, .uv {
  position: fixed; left: 0; top: 0;
  pointer-events: none; z-index: 1;
  will-change: transform, opacity;
  opacity: 0;
}
.cp.conv, .uv.conv { z-index: 99; }
.cp {
  font-family: 'JetBrains Mono', monospace;
  font-size: 7px; white-space: pre;
  line-height: 1.4;
  padding: 0; border-radius: 0;
  background: none; border: none;
}
.cp.glow, .uv.glow {
  text-shadow: 0 0 12px rgba(0, 204, 238, .6), 0 0 24px rgba(0, 204, 238, .2);
}
.uv { font-family: 'Inter', sans-serif; font-size: 7px; }
.c0 { color: #c792ea; }
.c1 { color: var(--cy); }
.c2 { color: var(--bl); }
.c3 { color: var(--cbr); }
.c4 { color: #82aaff; }
.c5 { color: #c3e88d; }
.c6 { color: #3d6090; }
.c7 { color: #eeffff; }

/* ── Mini UI Component Particles ── */
.ux { padding: 5px 7px; background: rgba(8, 14, 28, .7); border: none; border-radius: 6px; }
.ux-t { font-size: 7px; font-weight: 700; color: rgba(255, 255, 255, .55); margin-bottom: 3px; }
.ux-inp { height: 13px; background: rgba(255, 255, 255, .03); border: 1px solid rgba(0, 204, 238, .06); border-radius: 3px; margin-bottom: 2px; }
.ux-btn { height: 14px; background: linear-gradient(135deg, var(--bl), var(--bld)); border-radius: 4px; }
.ux-line { height: 1.5px; background: rgba(255, 255, 255, .08); border-radius: 1px; margin-bottom: 2px; }
.ux-row { display: flex; align-items: center; gap: 4px; padding: 3px 0; border-bottom: 1px solid rgba(255, 255, 255, .03); }
.ux-row:last-child { border: none; }
.ux-ic { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }
.ux-lbl { color: rgba(255, 255, 255, .4); font-size: 6px; flex: 1; }
.ux-ch { color: rgba(255, 255, 255, .12); font-size: 8px; }

/* Login */
.u-login { width: 82px; }
.u-login .ux-lnk { font-size: 5px; color: rgba(0, 204, 238, .4); text-align: center; margin-top: 2px; }

/* Profile */
.u-prof { width: 78px; text-align: center; }
.u-prof .av { width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(135deg, var(--cy), var(--bl)); margin: 0 auto 3px; }
.u-prof .nm { font-size: 7px; font-weight: 600; color: rgba(255, 255, 255, .6); margin-bottom: 3px; }
.u-prof .st { display: flex; justify-content: center; gap: 8px; }
.u-prof .sv { text-align: center; }
.u-prof .sv b { display: block; font-size: 8px; color: var(--cy); }
.u-prof .sv small { font-size: 5px; color: rgba(255, 255, 255, .25); }

/* Chat */
.u-chat { width: 88px; display: flex; flex-direction: column; gap: 2px; }
.u-chat .bbl { padding: 2px 6px; border-radius: 6px 6px 2px 6px; font-size: 6px; color: #fff; max-width: 65px; background: var(--bl); }
.u-chat .bbl.r { background: rgba(255, 255, 255, .06); color: rgba(255, 255, 255, .4); border-radius: 6px 6px 6px 2px; align-self: flex-end; }

/* Feed */
.u-feed { width: 82px; }
.u-feed .img { height: 28px; background: linear-gradient(135deg, rgba(0, 170, 238, .06), rgba(0, 68, 187, .06)); border-radius: 4px; margin-bottom: 3px; }
.u-feed .meta { display: flex; align-items: center; gap: 3px; margin-bottom: 2px; }
.u-feed .meta .av { width: 10px; height: 10px; border-radius: 50%; background: var(--bl); }
.u-feed .meta span { font-size: 6px; color: rgba(255, 255, 255, .4); }
.u-feed .acts { display: flex; gap: 6px; margin-top: 3px; font-size: 7px; color: rgba(255, 255, 255, .15); }

/* Settings */
.u-set { width: 84px; }

/* Dashboard */
.u-dash { width: 100px; }
.u-dash .cards { display: flex; gap: 3px; }
.u-dash .dc { flex: 1; padding: 3px; background: rgba(255, 255, 255, .02); border: 1px solid rgba(0, 170, 238, .04); border-radius: 3px; text-align: center; }
.u-dash .dc b { display: block; font-size: 8px; color: var(--cy); }
.u-dash .dc small { font-size: 5px; color: rgba(255, 255, 255, .2); }
.u-dash .bar { display: flex; align-items: flex-end; gap: 2px; height: 18px; margin-top: 4px; }
.u-dash .br { width: 6px; border-radius: 1px 1px 0 0; background: rgba(0, 170, 238, .2); }
.u-dash .br.a { background: var(--bl); }

/* Player */
.u-play { width: 90px; display: flex; align-items: center; gap: 5px; }
.u-play .art { width: 24px; height: 24px; border-radius: 4px; background: linear-gradient(135deg, #c792ea, #6633aa); flex-shrink: 0; }
.u-play .info { flex: 1; overflow: hidden; }
.u-play .info b { display: block; font-size: 6px; color: rgba(255, 255, 255, .5); }
.u-play .info small { font-size: 5px; color: rgba(255, 255, 255, .2); }
.u-play .ctrl { display: flex; gap: 4px; margin-top: 2px; font-size: 8px; color: rgba(255, 255, 255, .3); }

/* Notification */
.u-notif { width: 92px; display: flex; gap: 5px; align-items: flex-start; }
.u-notif .nic { width: 16px; height: 16px; border-radius: 50%; background: rgba(0, 170, 238, .12); display: flex; align-items: center; justify-content: center; font-size: 8px; flex-shrink: 0; color: var(--cy); }
.u-notif .ntx b { display: block; font-size: 6px; color: rgba(255, 255, 255, .5); }
.u-notif .ntx small { font-size: 5px; color: rgba(255, 255, 255, .2); }
.u-notif .ntx .tm { font-size: 5px; color: rgba(255, 255, 255, .15); margin-top: 1px; }

/* Map */
.u-map { width: 72px; height: 50px; border-radius: 6px; background: linear-gradient(160deg, rgba(0, 40, 80, .5), rgba(0, 20, 50, .5)); border: 1px solid rgba(0, 170, 238, .06); position: relative; overflow: hidden; }
.u-map .pin { position: absolute; top: 35%; left: 55%; width: 6px; height: 8px; background: var(--cy); border-radius: 50% 50% 50% 0; transform: rotate(-45deg); }
.u-map .rd { position: absolute; height: 1px; background: rgba(0, 204, 238, .1); border-radius: 1px; }

/* Tabs */
.u-tabs { width: 80px; }
.u-tabs .th { display: flex; gap: 0; margin-bottom: 3px; }
.u-tabs .tt { flex: 1; padding: 2px 0; text-align: center; font-size: 6px; color: rgba(255, 255, 255, .2); border-bottom: 1px solid rgba(255, 255, 255, .04); }
.u-tabs .tt.a { color: var(--cy); border-color: var(--cy); }

/* Simple components */
.ub { padding: 3px 10px; background: linear-gradient(135deg, var(--bl), var(--bld)); border-radius: 5px; color: #fff; font-weight: 600; font-size: 7px; white-space: nowrap; text-align: center; }
.ub.s { background: none; border: 1px solid rgba(0, 204, 238, .2); color: var(--cy); }
.ub.g { background: linear-gradient(135deg, #00bb77, #008855); }
.ub.r { background: linear-gradient(135deg, #ee5544, #cc3322); }

.utg { width: 26px; height: 14px; border-radius: 7px; position: relative; border: 1px solid rgba(0, 170, 238, .08); }
.utg.on { background: var(--bl); }
.utg.off { background: #1a2a48; }
.utg-d { width: 10px; height: 10px; border-radius: 50%; background: #fff; position: absolute; top: 1px; }
.utg.on .utg-d { right: 1px; }
.utg.off .utg-d { left: 1px; }

.ucb { padding: 3px 8px; border-radius: 8px 8px 2px 8px; color: #fff; font-size: 7px; white-space: nowrap; background: var(--bl); }
.ucb.r { background: rgba(255, 255, 255, .06); color: rgba(255, 255, 255, .4); border-radius: 8px 8px 8px 2px; }

.ubd { min-width: 14px; height: 14px; border-radius: 7px; background: #ee4444; color: #fff; font-size: 7px; font-weight: 700; display: flex; align-items: center; justify-content: center; padding: 0 3px; }

.usr { display: flex; gap: 1px; font-size: 8px; }
.usr .on { color: #ffaa00; }
.usr .off { color: rgba(255, 255, 255, .1); }

.uch { padding: 2px 8px; border-radius: 10px; border: 1px solid rgba(0, 170, 238, .1); color: var(--cy); font-size: 7px; white-space: nowrap; background: rgba(0, 170, 238, .06); }

.usl { display: flex; align-items: center; gap: 3px; }
.usl-t { width: 50px; height: 3px; background: rgba(255, 255, 255, .06); border-radius: 2px; overflow: hidden; }
.usl-f { height: 100%; background: var(--cy); border-radius: 2px; }
.usl-k { width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); margin-left: -6px; }

/* ── Page Layout ── */
.lay {
  position: relative; z-index: 2;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  width: 100%; height: 100%;
  padding: 10px 20px; overflow: hidden;
}

/* ── MacBook Wrapper ── */
.mw {
  position: relative; flex-shrink: 0;
  perspective: 1200px;
  animation: rv .8s ease-out .3s both;
}
@keyframes rv {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
.mac-3d {
  transform-style: preserve-3d;
  transform: rotateX(12deg) rotateY(0deg);
  will-change: transform;
}
.mac-shadow {
  position: absolute; bottom: -25px; left: 5%; right: 5%; height: 50px;
  background: radial-gradient(ellipse, rgba(0, 0, 0, .4), transparent 70%);
  border-radius: 50%; filter: blur(16px);
  z-index: -3; will-change: transform, opacity;
}
.aura { position: absolute; pointer-events: none; transition: opacity .15s, transform .15s; }
.aura1 {
  inset: -40px -60px; border-radius: 30px;
  background: radial-gradient(ellipse, rgba(0, 204, 238, .14) 0%, rgba(0, 170, 238, .05) 40%, transparent 70%);
  animation: au 4s ease-in-out infinite; z-index: -1;
}
.aura2 {
  inset: -70px -100px; border-radius: 30px;
  background: radial-gradient(ellipse, rgba(0, 68, 187, .08) 0%, transparent 55%);
  animation: au 7s ease-in-out infinite reverse; z-index: -2;
}
@keyframes au {
  0%, 100% { opacity: .5; transform: scale(1); }
  50%      { opacity: 1;  transform: scale(1.04); }
}

/* ── MacBook Frame ── */
.mb { width: clamp(480px, 65vw, 820px); position: relative; z-index: 10; }

.mb-lid {
  background: linear-gradient(180deg, #3a3a4c, #2c2c3e, #28283a);
  border-radius: 12px 12px 4px 4px;
  padding: 10px 10px 0;
  border: 1px solid rgba(255, 255, 255, .08);
  position: relative;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, .6),
    0 0 0 1px rgba(0, 0, 0, .3),
    inset 0 1px 0 rgba(255, 255, 255, .1),
    inset -1px 0 0 rgba(255, 255, 255, .04),
    inset 1px 0 0 rgba(255, 255, 255, .04);
}
.mb-lid.hit {
  box-shadow:
    0 30px 80px rgba(0, 0, 0, .6),
    0 0 40px rgba(0, 170, 238, .08),
    0 0 0 1px rgba(0, 0, 0, .3),
    inset 0 1px 0 rgba(255, 255, 255, .12),
    inset -1px 0 0 rgba(255, 255, 255, .05),
    inset 1px 0 0 rgba(255, 255, 255, .05);
}
.mb-lid::before {
  content: ''; position: absolute;
  top: 0; left: 8%; right: 8%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .2), transparent);
  z-index: 11;
}

.mb-bezel {
  background: #0a0a0f; border-radius: 6px;
  overflow: hidden; position: relative;
  border: 1px solid rgba(255, 255, 255, .02);
}

.mb-notch {
  width: 16%; height: 12px;
  background: #0a0a0f; margin: 0 auto;
  border-radius: 0 0 10px 10px;
  position: relative; z-index: 2;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .02);
}
.mb-notch::before {
  content: ''; width: 4px; height: 4px;
  border-radius: 50%; background: #1a1a2a;
  border: 1px solid #2a2a3a;
  position: absolute; top: 3px; left: 50%;
  transform: translateX(-50%);
}

.mb-screen {
  aspect-ratio: 16 / 10;
  background: var(--scr);
  overflow: hidden;
  display: flex; flex-direction: column;
  position: relative;
}
.mb-shine {
  position: absolute; inset: 0;
  pointer-events: none; z-index: 20;
  will-change: background;
  background: radial-gradient(ellipse at 30% 20%, rgba(255, 255, 255, .03), transparent 50%);
}

.mb-chin {
  width: 100%; height: 6px;
  background: linear-gradient(180deg, #2a2a3c, #222236);
  border-radius: 0 0 6px 6px;
  border: 1px solid rgba(255, 255, 255, .04);
  border-top: none;
}

/* ── Merge Effects ── */
.merge {
  position: absolute; border-radius: 50%;
  pointer-events: none; z-index: 12;
  background: radial-gradient(circle, rgba(0, 204, 238, .55), rgba(0, 170, 238, .2) 50%, transparent 70%);
  animation: mI .5s ease-in forwards;
}
@keyframes mI {
  0%   { width: 45px; height: 45px; transform: translate(-50%, -50%) scale(1.5); opacity: .8; filter: blur(3px); }
  100% { width: 45px; height: 45px; transform: translate(-50%, -50%) scale(0);   opacity: 0;  filter: blur(0); }
}
.mdot {
  position: absolute; width: 2.5px; height: 2.5px;
  border-radius: 50%; background: var(--cbr);
  box-shadow: 0 0 4px var(--cy);
  pointer-events: none; z-index: 13;
  animation: mdI .4s ease-in forwards;
}
@keyframes mdI {
  0%   { transform: translate(-50%, -50%) translate(var(--ox), var(--oy)) scale(1); opacity: .9; }
  100% { transform: translate(-50%, -50%) translate(0, 0) scale(0);                 opacity: 0; }
}
.epulse {
  position: absolute; inset: 0;
  pointer-events: none; z-index: 10;
  border-radius: inherit;
  animation: epO .45s ease-out forwards;
}
@keyframes epO { 0% { opacity: 1; } 100% { opacity: 0; } }

/* ── macOS Title Bar ── */
.tb {
  height: 28px;
  background: rgba(10, 14, 24, .95);
  display: flex; align-items: center;
  padding: 0 12px;
  border-bottom: 1px solid rgba(255, 255, 255, .04);
  flex-shrink: 0;
}
.tb-dots { display: flex; gap: 6px; }
.tb-d { width: 10px; height: 10px; border-radius: 50%; }
.tb-d.r { background: #ff5f57; }
.tb-d.y { background: #ffbd2e; }
.tb-d.g { background: #28c840; }
.tb-lbl { display: flex; align-items: center; gap: 6px; margin-left: 14px; }
.tb-ic { width: 14px; height: 14px; border-radius: 3px; overflow: hidden; flex-shrink: 0; }
.tb-ic svg { width: 100%; height: 100%; display: block; }
.tb-nm { font-size: 11px; color: rgba(255, 255, 255, .45); font-weight: 500; }

/* ── App Split Layout ── */
.app-split { display: flex; flex: 1; overflow: hidden; }

/* Left Panel — Waitlist */
.app-left {
  flex: 1;
  padding: clamp(16px, 3.5vh, 36px) clamp(16px, 2.5vw, 36px);
  display: flex; flex-direction: column;
  justify-content: center;
  position: relative; z-index: 1;
}
.app-left::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 60%;
  background: radial-gradient(ellipse at 30% 0%, rgba(0, 170, 238, .06) 0%, transparent 60%);
  pointer-events: none;
}

.al-title-row {
  display: flex; align-items: center;
  gap: clamp(8px, 1.2vh, 12px);
  margin-bottom: clamp(4px, .8vh, 8px);
  position: relative; z-index: 1;
}
.al-icon {
  width: clamp(28px, 4vh, 36px); height: clamp(28px, 4vh, 36px);
  border-radius: clamp(6px, 1vh, 10px);
  overflow: hidden; flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0, 170, 238, .2);
}
.al-icon svg, .al-icon img { width: 100%; height: 100%; display: block; }

.al-h1 {
  font-size: clamp(18px, 3.2vh, 28px); font-weight: 900;
  letter-spacing: -.04em; color: #fff;
}
.al-sub {
  font-size: clamp(11px, 1.8vh, 15px); color: #6a8ab0;
  line-height: 1.5;
  margin-bottom: clamp(14px, 2.8vh, 24px);
  max-width: 320px;
  position: relative; z-index: 1;
}
.al-rotate {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: clamp(14px, 2.4vh, 20px);
  min-width: clamp(50px, 8vh, 80px);
}
@keyframes rotateOut {
  0%   { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
  100% { opacity: 0; transform: translateY(-10px) scale(0.9); filter: blur(4px); }
}
@keyframes rotateIn {
  0%   { opacity: 0; transform: translateY(12px) scale(1.1); filter: blur(4px); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

/* Form */
.al-form {
  display: flex; flex-direction: column;
  gap: clamp(8px, 1.4vh, 12px);
  max-width: 320px;
  margin-bottom: clamp(14px, 2.5vh, 22px);
  position: relative; z-index: 1;
}
.al-inp {
  width: 100%;
  padding: clamp(10px, 1.8vh, 14px) 14px clamp(10px, 1.8vh, 14px) clamp(34px, 5vh, 44px);
  background: rgba(255, 255, 255, .04);
  border: 1.5px solid rgba(0, 204, 238, .08);
  border-radius: clamp(8px, 1.4vh, 12px);
  color: #fff; font-family: 'Inter', sans-serif;
  font-size: clamp(12px, 1.8vh, 14px);
  outline: none;
  transition: border-color .3s, box-shadow .3s;
}
.al-inp::placeholder { color: #2d4a6a; }
.al-inp:focus { border-color: rgba(0, 204, 238, .3); box-shadow: 0 0 0 3px rgba(0, 204, 238, .06); }
.al-inp-w { position: relative; }
.al-inp-w svg {
  position: absolute; left: clamp(10px, 1.8vh, 14px); top: 50%;
  transform: translateY(-50%);
  width: clamp(14px, 2vh, 17px); height: clamp(14px, 2vh, 17px);
  stroke: #3a5a82; stroke-width: 1.5; fill: none;
  stroke-linecap: round; stroke-linejoin: round;
}
.al-btn {
  width: 100%; padding: clamp(10px, 1.8vh, 14px);
  background: linear-gradient(135deg, #00aaee, #0060cc);
  border: none; border-radius: clamp(8px, 1.4vh, 12px);
  color: #fff; font-family: 'Inter', sans-serif;
  font-size: clamp(13px, 1.9vh, 15px); font-weight: 700;
  cursor: pointer; position: relative; overflow: hidden;
  transition: transform .15s, box-shadow .2s;
}
.al-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0, 170, 238, .3); }
.al-btn:active { transform: translateY(0); }
.al-btn::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .08), transparent);
  transform: translateX(-100%);
  animation: shim 4s ease-in-out infinite;
}
@keyframes shim {
  0%, 100% { transform: translateX(-100%); }
  50%      { transform: translateX(100%); }
}
.al-btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* Feature pills */
.al-pills {
  display: flex; flex-direction: column;
  gap: clamp(6px, 1vh, 10px);
  margin-bottom: clamp(16px, 3vh, 28px);
  max-width: 320px;
  position: relative; z-index: 1;
}
.al-pill {
  display: flex; align-items: center;
  gap: clamp(8px, 1.2vh, 12px);
  font-size: clamp(10px, 1.6vh, 13px);
  color: #8aa4c4;
}
.al-pill-check {
  font-size: clamp(10px, 1.5vh, 13px);
  color: #00cc88;
  flex-shrink: 0;
  width: clamp(14px, 2vh, 18px);
}

/* Hint below form */
.al-hint {
  font-size: clamp(9px, 1.3vh, 11px);
  color: #3d5a7a;
  text-align: center;
  margin-top: clamp(-8px, -1vh, -4px);
  position: relative; z-index: 1;
}

/* Success State */
.suc {
  display: none; flex-direction: column; align-items: center;
  gap: clamp(8px, 1.5vh, 14px);
  text-align: center;
  position: relative; z-index: 1;
}
.suc.on { display: flex; animation: sucReveal .6s ease-out; }
@keyframes sucReveal {
  0%   { opacity: 0; transform: scale(.9); }
  100% { opacity: 1; transform: scale(1); }
}
.suc-particles {
  position: absolute; inset: -40px; pointer-events: none; z-index: -1;
}
.suc-spark {
  position: absolute; border-radius: 50%; pointer-events: none;
  animation: sucSparkle var(--dur) ease-out forwards;
}
@keyframes sucSparkle {
  0%   { opacity: 1; transform: translate(-50%,-50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%,-50%) translate(var(--tx),var(--ty)) scale(0); }
}
.suc-chk {
  width: clamp(44px, 7vh, 56px); height: clamp(44px, 7vh, 56px);
  background: linear-gradient(135deg, #00ccaa, #009966);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 24px rgba(0, 204, 170, .3), 0 0 40px rgba(0, 204, 170, .1);
  animation: sucPop .5s cubic-bezier(.34, 1.56, .64, 1);
}
@keyframes sucPop {
  0%   { transform: scale(0) rotate(-45deg); }
  60%  { transform: scale(1.1) rotate(5deg); }
  100% { transform: scale(1) rotate(0deg); }
}
.suc-chk svg {
  width: 55%; height: 55%;
  stroke: #fff; stroke-width: 2.5; fill: none;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 30; stroke-dashoffset: 30;
  animation: sucDraw .5s ease-out .3s forwards;
}
@keyframes sucDraw {
  to { stroke-dashoffset: 0; }
}
.suc-title {
  font-size: clamp(18px, 3vh, 24px); font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #fff, var(--cy));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: sucFade .5s ease-out .2s both;
}
.suc-msg {
  font-size: clamp(10px, 1.6vh, 13px);
  color: var(--tm); line-height: 1.6;
  animation: sucFade .5s ease-out .35s both;
}
.suc-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: clamp(4px, .7vh, 7px) clamp(10px, 1.5vh, 16px);
  background: rgba(0, 204, 170, .08);
  border: 1px solid rgba(0, 204, 170, .2);
  border-radius: 20px;
  font-size: clamp(9px, 1.3vh, 12px);
  font-weight: 600; color: #00ccaa;
  animation: sucFade .5s ease-out .5s both;
}
@keyframes sucFade {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fw.off { display: none; }

/* ── Right Panel — Phone Preview ── */
.app-right {
  width: 40%;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(12px, 2vh, 24px);
  border-left: 1px solid rgba(0, 170, 238, .04);
  background: rgba(0, 170, 238, .01);
  position: relative; overflow: hidden;
}
.app-right::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(0, 170, 238, .04), transparent 70%);
  pointer-events: none;
}

/* ── Mini Phone ── */
.mp {
  width: clamp(130px, 20vh, 180px); aspect-ratio: 9 / 19.5;
  background: linear-gradient(160deg, #1e2e4a, #101c34);
  border-radius: clamp(16px, 2.5vh, 24px);
  padding: clamp(3px, .5vh, 5px);
  box-shadow: 0 14px 45px rgba(0, 0, 0, .5), 0 0 30px rgba(0, 170, 238, .05);
  position: relative; z-index: 1;
  transition: box-shadow .2s;
}
.mp.hit { box-shadow: 0 14px 45px rgba(0, 0, 0, .5), 0 0 40px rgba(0, 170, 238, .18); }

.mp-scr {
  width: 100%; height: 100%;
  background: #0a1020;
  border-radius: clamp(13px, 2vh, 20px);
  overflow: hidden;
  display: flex; flex-direction: column;
  position: relative;
}
.mp-notch {
  width: 28%; height: clamp(5px, .8vh, 8px);
  background: #000;
  border-radius: 0 0 clamp(3px, .5vh, 5px) clamp(3px, .5vh, 5px);
  margin: 0 auto; flex-shrink: 0; z-index: 2;
}
.mp-body {
  flex: 1; display: flex; flex-direction: column;
  padding: clamp(5px, .7vh, 8px);
  gap: 0; overflow: hidden;
}
.mp-hb {
  width: 28%; height: 2px;
  background: rgba(255, 255, 255, .1);
  border-radius: 1px;
  margin: clamp(2px, .3vh, 3px) auto;
}

/* Progressive build animation */
.mp-part {
  opacity: 0; max-height: 0; overflow: hidden;
  transition: opacity .4s ease, max-height .4s ease, margin .4s ease;
  margin-bottom: 0;
}
.mp-part.built { opacity: 1; max-height: 60px; margin-bottom: clamp(2px, .35vh, 4px); }

/* ── Phone UI Elements ── */
.pn {
  height: clamp(11px, 1.6vh, 15px);
  background: rgba(255, 255, 255, .04);
  border-radius: 4px;
  display: flex; align-items: center;
  padding: 0 clamp(4px, .6vh, 7px);
  font-size: clamp(4px, .65vh, 6px);
  color: rgba(255, 255, 255, .45); font-weight: 600;
}
.pn .back { margin-right: 3px; font-size: clamp(6px, .9vh, 9px); color: var(--cy); }

.psrch {
  height: clamp(9px, 1.3vh, 13px);
  background: rgba(255, 255, 255, .025);
  border: 1px solid rgba(255, 255, 255, .04);
  border-radius: clamp(4px, .6vh, 6px);
  padding: 0 clamp(4px, .5vh, 6px);
  display: flex; align-items: center;
  font-size: clamp(3px, .45vh, 5px);
  color: rgba(255, 255, 255, .15);
}
.phero {
  height: clamp(22px, 3.5vh, 36px);
  background: linear-gradient(135deg, rgba(0, 170, 238, .07), rgba(0, 68, 187, .07));
  border-radius: clamp(5px, .7vh, 7px);
}

.pcard {
  display: flex; gap: clamp(4px, .5vh, 6px); align-items: center;
  padding: clamp(4px, .5vh, 6px);
  background: rgba(255, 255, 255, .02);
  border: 1px solid rgba(255, 255, 255, .03);
  border-radius: clamp(5px, .7vh, 7px);
}
.pcard .pic { width: clamp(12px, 1.8vh, 18px); height: clamp(12px, 1.8vh, 18px); border-radius: clamp(3px, .5vh, 5px); flex-shrink: 0; }
.pcard .pic.round { border-radius: 50%; }
.pcard .info { flex: 1; display: flex; flex-direction: column; gap: 1.5px; }
.pcard .t1 { height: 2px; background: rgba(255, 255, 255, .1); border-radius: 1px; width: 70%; }
.pcard .t2 { height: 1.5px; background: rgba(255, 255, 255, .05); border-radius: 1px; width: 45%; }
.pcard .act { font-size: clamp(5px, .7vh, 7px); color: rgba(255, 255, 255, .12); flex-shrink: 0; }

.pbtn {
  height: clamp(11px, 1.6vh, 15px);
  background: linear-gradient(135deg, var(--bl), var(--bld));
  border-radius: clamp(4px, .6vh, 6px);
  display: flex; align-items: center; justify-content: center;
  font-size: clamp(3px, .5vh, 5px);
  color: rgba(255, 255, 255, .8); font-weight: 600;
}
.ptabs { display: flex; gap: clamp(2px, .35vh, 4px); }
.ptabs .ti { flex: 1; height: clamp(5px, .7vh, 7px); background: rgba(255, 255, 255, .04); border-radius: 2px; }
.ptabs .ti.a { background: var(--cy); box-shadow: 0 0 3px rgba(0, 204, 238, .3); }

.psep { height: 1px; background: rgba(255, 255, 255, .04); }

.pavatar { border-radius: 50%; margin: clamp(2px, .3vh, 3px) auto; }

.pstats { display: flex; justify-content: center; gap: clamp(6px, 1vh, 10px); }
.pstats div { text-align: center; }
.pstats b { display: block; font-size: clamp(5px, .8vh, 8px); color: var(--cy); font-weight: 700; }
.pstats small { font-size: clamp(3px, .45vh, 5px); color: rgba(255, 255, 255, .2); }

.pgrid { display: flex; gap: clamp(2px, .3vh, 3px); }
.pgrid div { flex: 1; height: clamp(14px, 2.2vh, 22px); background: rgba(255, 255, 255, .025); border-radius: 3px; }

.pbbl {
  padding: clamp(2px, .35vh, 4px) clamp(5px, .7vh, 8px);
  border-radius: 6px; font-size: clamp(3.5px, .55vh, 5.5px);
  max-width: 78%; line-height: 1.35;
}
.pbbl.me { background: var(--bl); color: #fff; align-self: flex-end; border-radius: 6px 6px 2px 6px; }
.pbbl.them { background: rgba(255, 255, 255, .04); color: rgba(255, 255, 255, .35); align-self: flex-start; border-radius: 6px 6px 6px 2px; }

.ptoggle { width: clamp(14px, 2vh, 18px); height: clamp(7px, 1.1vh, 10px); border-radius: 5px; flex-shrink: 0; }

.pbars { display: flex; align-items: flex-end; gap: clamp(2px, .3vh, 3px); height: clamp(18px, 2.8vh, 28px); padding: 0 2px; }
.pbars div { flex: 1; border-radius: 2px 2px 0 0; }

.pinput {
  height: clamp(9px, 1.3vh, 13px);
  background: rgba(255, 255, 255, .025);
  border: 1px solid rgba(255, 255, 255, .04);
  border-radius: clamp(4px, .6vh, 6px);
}

/* Donut chart */
.pring {
  width: clamp(28px, 4.5vh, 40px); height: clamp(28px, 4.5vh, 40px);
  border-radius: 50%; margin: clamp(2px, .3vh, 4px) auto;
  position: relative; display: flex; align-items: center; justify-content: center;
}
.pring::before { content: ''; position: absolute; inset: clamp(4px, .6vh, 6px); border-radius: 50%; background: #0a1020; }
.pring span { position: relative; z-index: 1; font-size: clamp(5px, .8vh, 7px); font-weight: 700; }

/* Water drops */
.pdrop {
  width: clamp(10px, 1.6vh, 14px); height: clamp(12px, 2vh, 17px);
  border-radius: 50% 50% 50% 50% / 30% 30% 70% 70%;
  margin: 0 auto;
}

/* Progress bar */
.pprog { height: clamp(4px, .6vh, 6px); border-radius: 3px; background: rgba(255, 255, 255, .04); overflow: hidden; }
.pprog div { height: 100%; border-radius: 3px; }

/* Scanner */
.pscan {
  aspect-ratio: 1; border: 2px solid var(--cy);
  border-radius: clamp(6px, 1vh, 10px);
  position: relative; display: flex; align-items: center; justify-content: center;
}
.pscan::before {
  content: ''; position: absolute;
  left: 15%; right: 15%; height: 2px;
  background: var(--cy); box-shadow: 0 0 8px var(--cy);
  animation: scanLine 2s ease-in-out infinite;
}
@keyframes scanLine { 0%, 100% { top: 20%; } 50% { top: 75%; } }
.pscan .corner { position: absolute; width: 6px; height: 6px; border-color: var(--cy); border-style: solid; }
.pscan .corner.tl { top: -1px; left: -1px; border-width: 2px 0 0 2px; border-radius: 3px 0 0 0; }
.pscan .corner.tr { top: -1px; right: -1px; border-width: 2px 2px 0 0; border-radius: 0 3px 0 0; }
.pscan .corner.bl { bottom: -1px; left: -1px; border-width: 0 0 2px 2px; border-radius: 0 0 0 3px; }
.pscan .corner.br { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; border-radius: 0 0 3px 0; }

/* Photo gallery */
.pgal { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2px, .3vh, 3px); }
.pgal div { background: rgba(255, 255, 255, .025); border-radius: 3px; min-height: clamp(12px, 1.8vh, 18px); }
.pgal div:first-child { grid-row: span 2; min-height: clamp(26px, 4vh, 38px); }

/* Metric row */
.pmetric { display: flex; align-items: center; gap: clamp(3px, .5vh, 5px); }
.pmetric .dot { width: clamp(4px, .6vh, 6px); height: clamp(4px, .6vh, 6px); border-radius: 50%; flex-shrink: 0; }
.pmetric .bar { flex: 1; height: clamp(3px, .5vh, 5px); border-radius: 2px; background: rgba(255, 255, 255, .03); overflow: hidden; }
.pmetric .bar div { height: 100%; border-radius: 2px; }
.pmetric .val { font-size: clamp(4px, .6vh, 6px); color: rgba(255, 255, 255, .3); flex-shrink: 0; }

/* Phone merge effect */
.mp-merge {
  position: absolute; border-radius: 50%;
  pointer-events: none; z-index: 15;
  background: radial-gradient(circle, rgba(0, 204, 238, .6), transparent 70%);
  animation: mI .5s ease-in forwards;
}

/* ── Features Bar ── */
.feats {
  display: flex; gap: 0; justify-content: center;
  animation: rv .8s ease-out .6s both;
  margin-top: -1px; position: relative; z-index: 11;
}
.ft {
  display: flex; align-items: center; gap: 7px;
  font-size: clamp(11px, 1.3vw, 13px);
  color: rgba(255, 255, 255, .7); font-weight: 500;
  padding: clamp(8px, 1.2vh, 12px) clamp(14px, 2vw, 24px);
  background: rgba(12, 18, 32, .85);
  border: 1px solid rgba(0, 170, 238, .06);
  backdrop-filter: blur(8px);
}
.ft:first-child { border-radius: 0 0 0 10px; border-right: none; }
.ft:last-child { border-radius: 0 0 10px 0; border-left: none; }
.ft:not(:first-child):not(:last-child) { border-left: none; border-right: none; }
.fd {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--cy); flex-shrink: 0;
  box-shadow: 0 0 6px rgba(0, 204, 238, .4);
}

/* ── Responsive ── */
@media (max-width: 700px) {
  html, body { cursor: auto; }
  .cursor { display: none; }
  .mac-3d { transform: none !important; }
  .mb { width: 100%; max-width: 100%; }
  .mb-lid { background: none; border: none; padding: 0; box-shadow: none; border-radius: 0; }
  .mb-bezel { background: none; border: none; border-radius: 0; }
  .mb-notch, .mb-chin, .mac-shadow, .aura, .mb-shine { display: none; }
  .mb-screen { aspect-ratio: auto; border-radius: 0; }
  .tb { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(12px); background: rgba(7, 13, 25, .85); }
  .tb-dots { display: none; }
  .tb-lbl { margin-left: 0; }
  .app-split { flex-direction: column; }
  .app-left { padding: 20px 20px 12px; justify-content: flex-start; }
  .app-left::before { display: none; }
  .app-right { width: 100%; border-left: none; border-top: 1px solid rgba(0, 170, 238, .04); padding: 20px; flex-shrink: 0; }
  .mp { width: clamp(90px, 28vw, 120px); }
  .al-form { max-width: 100%; }
  .al-h1 { font-size: 22px; }
  .al-sub { font-size: 13px; }
  .feats {
    position: sticky; bottom: 0;
    padding: 10px 16px;
    background: rgba(7, 13, 25, .9);
    backdrop-filter: blur(12px);
    z-index: 50; margin: 0;
    border-top: 1px solid rgba(0, 170, 238, .04);
  }
  .lay { padding: 0; overflow-y: auto; overflow-x: hidden; }
  .mw { width: 100%; }
}
@media (max-width: 420px) {
  .app-right { display: none; }
}
@media (max-height: 480px) and (orientation: landscape) {
  .mb { width: 90vw; }
  .feats { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
