/* App Development service page — scoped to app-development.html. Uses global tokens from style.css */

html { scroll-behavior: smooth; }
body { background: var(--black); }
#cursor-glow { display: none !important; }
footer { background: #000; }

.ad-wrap { position: relative; width: 100%; max-width: 1240px; margin: 0 auto; }
.ad-sec { position: relative; padding: 100px 40px; background: var(--black); }
.ad-sec:has(.xp)::before { display: none; }
.ad-sec::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: none;
}
.ad-sec > .ad-wrap { position: relative; }

/* shared glass surface — same language as the Services cards */
.ad-glass {
  position: relative;
  border-radius: 28px;
  background: linear-gradient(160deg, rgba(48, 24, 84, 0.42), rgba(10, 6, 20, 0.88) 60%);
  border: 1px solid rgba(129, 74, 200, 0.5);
  box-shadow: 0 0 40px rgba(129, 74, 200, 0.16), 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: border-color 0.35s, box-shadow 0.35s, transform 0.35s var(--ease);
}
.ad-glass::before {
  content: ''; position: absolute; left: 8%; right: 8%; top: 0; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(223, 122, 254, 0.7), transparent);
}
.ad-glass:hover {
  transform: translateY(-6px);
  border-color: rgba(223, 122, 254, 0.75);
  box-shadow: 0 0 46px rgba(129, 74, 200, 0.4), 0 22px 50px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.ad-icon {
  display: grid; place-items: center; flex-shrink: 0;
  width: 56px; height: 56px; border-radius: 16px;
  background: linear-gradient(145deg, rgba(129, 74, 200, 0.28), rgba(129, 74, 200, 0.08));
  border: 1px solid rgba(129, 74, 200, 0.55);
  color: #e9c9ff;
  box-shadow: 0 0 22px rgba(129, 74, 200, 0.4), inset 0 0 14px rgba(223, 122, 254, 0.12);
}
.ad-icon svg { width: 28px; height: 28px; fill: currentColor; filter: drop-shadow(0 0 6px rgba(223, 122, 254, 0.7)); }
.ad-icon.sm { width: 46px; height: 46px; border-radius: 14px; }
.ad-icon.sm svg { width: 22px; height: 22px; }
.ad-icon .stk { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.ad-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.ad-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px; border-radius: 999px;
  background: var(--card); border: 1px solid rgba(129, 74, 200, 0.45);
  font-family: var(--fh); font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--w75);
  margin-bottom: 20px;
}
.ad-pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--purple-light); box-shadow: 0 0 10px var(--purple-light); }
.ad-h2 {
  font-family: var(--fh); font-size: clamp(32px, 4.2vw, 54px); font-weight: 600;
  letter-spacing: -0.04em; line-height: 1.08; color: var(--white); margin-bottom: 16px;
}
.ad-sub { font-family: var(--fh); font-size: clamp(16px, 1.6vw, 18px); font-weight: 500; line-height: 1.6; color: var(--w50); letter-spacing: -0.01em; }
.ad-grad {
  background: linear-gradient(90deg, #814ac8, #df7afe 60%, #ff6fd8);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}

/* ───────── HERO ───────── */
.ad-hero { position: relative; overflow: hidden; padding: 130px 40px 80px; min-height: 100vh; display: flex; align-items: center; background: #000; }
.ad-hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: none;
}
.ad-hero-inner {
  position: relative; width: 100%; max-width: 1400px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 32px; align-items: center;
}
.ad-copy { animation: adSlideL 0.9s var(--ease) both; }
.ad-crumb {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 26px;
  font-family: var(--fh); font-size: 14px; font-weight: 500; color: var(--w50);
}
.ad-crumb a { color: var(--w50); text-decoration: none; transition: color 0.25s; }
.ad-crumb a:hover { color: var(--white); }
.ad-crumb i { font-style: normal; opacity: 0.4; }
.ad-crumb b { font-weight: 600; color: var(--purple-light); }
.ad-title {
  font-family: var(--fh); font-size: clamp(42px, 6vw, 82px); font-weight: 600;
  letter-spacing: -0.05em; line-height: 1.02; color: var(--white); margin-bottom: 22px;
}
.ad-title span { display: block; }
.ad-lead { font-family: var(--fh); font-size: clamp(18px, 2vw, 23px); font-weight: 600; letter-spacing: -0.025em; line-height: 1.35; color: var(--white); max-width: 520px; margin-bottom: 16px; }
.ad-text { font-family: var(--fh); font-size: 16px; font-weight: 500; line-height: 1.65; color: var(--w50); max-width: 500px; margin-bottom: 36px; }
.ad-cta { display: flex; flex-wrap: wrap; gap: 14px; }

/* hero stage with phones */
.ad-stage { position: relative; width: 100%; max-width: 880px; aspect-ratio: 16 / 9; margin: 0 auto; animation: adSlideR 1s var(--ease) 0.15s both; perspective: 1400px; }
.ad-stage-glow {
  position: absolute; left: 50%; top: 50%; width: 80%; height: 80%; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(129, 74, 200, 0.5), transparent 65%); filter: blur(36px); animation: adPulse 5s ease-in-out infinite;
}
.ad-trails { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.ad-trails path { fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 90 260; animation: adTrail 7s linear infinite; filter: drop-shadow(0 0 6px currentColor); }
.ad-trails .t1 { stroke: #df7afe; color: #df7afe; }
.ad-trails .t2 { stroke: #5b8cff; color: #5b8cff; animation-duration: 9s; animation-delay: -3s; }
.ad-trails .t3 { stroke: #ff5fc8; color: #ff5fc8; animation-duration: 8s; animation-delay: -5s; }
.ad-trails .base { stroke-dasharray: none; animation: none; opacity: 0.22; filter: none; }
.ad-ring {
  position: absolute; left: 50%; top: 80%; width: 84%; height: 84%; border-radius: 50%;
  border: 1.5px solid rgba(180, 120, 255, 0.5); transform: translate(-50%, -50%) rotateX(72deg);
  box-shadow: 0 0 22px rgba(129, 74, 200, 0.5), inset 0 0 22px rgba(129, 74, 200, 0.25);
}
.ad-ring.r2 { width: 62%; height: 62%; border-color: rgba(100, 140, 255, 0.45); border-style: dashed; }
.ad-pad {
  position: absolute; left: 50%; top: 82%; width: 64%; height: 12%; transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(ellipse at 50% 40%, rgba(223, 122, 254, 0.7), rgba(129, 74, 200, 0.4) 45%, transparent 72%);
  box-shadow: 0 0 50px rgba(129, 74, 200, 0.6);
}
.ad-duo { position: absolute; inset: 0; transform-style: preserve-3d; }
.ad-duo .ph { position: absolute; }
.ad-duo .ph.droid { left: 4%; top: 12%; width: 40%; transform: rotateY(24deg) rotateX(4deg) rotateZ(-3deg); animation: adFloatA 7s ease-in-out infinite; }
.ad-duo .ph.ios { right: 4%; top: 4%; width: 43%; z-index: 2; transform: rotateY(-22deg) rotateX(4deg) rotateZ(3deg); animation: adFloatB 8s ease-in-out infinite; }

.ad-chip {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px; border-radius: 999px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(20, 10, 40, 0.65));
  border: 1px solid rgba(255, 255, 255, 0.16); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  font-family: var(--fh); font-size: 12px; font-weight: 600; color: var(--white);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45), 0 0 20px rgba(129, 74, 200, 0.3);
  animation: adFloatB 6s ease-in-out infinite;
}
.ad-chip svg { width: 18px; height: 18px; fill: var(--purple-light); }
.ad-chip.c1 { left: -2%; bottom: 14%; }
.ad-chip.c2 { right: 4%; bottom: -3%; animation-delay: -3s; }
.ad-dot { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: var(--purple-light); box-shadow: 0 0 6px var(--purple-light); animation: adTwinkle 4s ease-in-out infinite; }

.ad-hero-img { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; max-width: none; object-fit: contain; animation: adFloatA 8s ease-in-out infinite; }
.ad-ring { top: 86%; width: 80%; height: 110%; }
.ad-ring.r2 { width: 58%; height: 80%; }
.ad-pad { top: 88%; width: 60%; height: 16%; }

/* ───────── 3D PHONE ───────── */
.ph { position: relative; aspect-ratio: 9 / 19.2; }
.ph-body {
  position: absolute; inset: 0; border-radius: 17% / 8%; padding: 2.4%;
  background: linear-gradient(145deg, #3a2a58, #120a22 40%, #2a1a48 100%);
  border: 1px solid rgba(223, 122, 254, 0.55);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 44px rgba(129, 74, 200, 0.45), inset 0 0 0 2px #05030a, inset 0 0 16px rgba(223, 122, 254, 0.25);
}
.ph-body::before, .ph-body::after { content: ''; position: absolute; width: 3px; border-radius: 2px; background: linear-gradient(#5a3d8a, #2a1a48); }
.ph-body::before { right: -4px; top: 22%; height: 11%; }
.ph-body::after { left: -4px; top: 18%; height: 7%; box-shadow: 0 34px 0 #3a2a58; }
.ph-screen { position: relative; width: 100%; height: 100%; border-radius: 14.5% / 6.8%; overflow: hidden; background: #07040f; container-type: inline-size; }
.ph-screen::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 5;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.14) 0%, transparent 28%, transparent 70%, rgba(255, 255, 255, 0.04) 100%);
}
.ph.droid .ph-body { border-radius: 13% / 6.4%; }
.ph.droid .ph-screen { border-radius: 11% / 5.2%; }
.ph.droid .ph-screen::before { content: ''; position: absolute; z-index: 6; top: 2.6%; left: 50%; width: 3.4%; aspect-ratio: 1; margin-left: -1.7%; border-radius: 50%; background: #000; box-shadow: 0 0 0 2px #14091f; }
.ph.ios .ph-screen::before { content: ''; position: absolute; z-index: 6; top: 2.4%; left: 50%; width: 28%; height: 3.6%; margin-left: -14%; border-radius: 99px; background: #000; }

/* mini app UI (scales with container width via cqw) */
.ui { position: absolute; inset: 0; padding: 13cqw 6cqw 4cqw; display: flex; flex-direction: column; gap: 3.4cqw; font-family: var(--fh); color: #fff; background: linear-gradient(180deg, #120a24 0%, #07040f 70%); }
.ui-bar { display: flex; justify-content: space-between; align-items: center; }
.ui-bar b { font-size: 6.2cqw; font-weight: 700; letter-spacing: -0.02em; }
.ui-bar small { font-size: 3.4cqw; color: rgba(255, 255, 255, 0.55); font-weight: 500; display: block; }
.ui-av { width: 8cqw; height: 8cqw; border-radius: 50%; background: linear-gradient(135deg, #df7afe, #5b8cff); }
.ui-card { border-radius: 5cqw; padding: 4.5cqw; background: linear-gradient(135deg, #814ac8, #c04fe0 60%, #ff5fc8); box-shadow: 0 0 24px rgba(129, 74, 200, 0.5); }
.ui-card small { font-size: 3.2cqw; opacity: 0.8; display: block; }
.ui-card strong { font-size: 8cqw; font-weight: 700; letter-spacing: -0.03em; display: block; margin: 1cqw 0 3cqw; }
.ui-spark { display: flex; align-items: flex-end; gap: 1.6cqw; height: 8cqw; }
.ui-spark i { flex: 1; border-radius: 1cqw; background: rgba(255, 255, 255, 0.55); }
.ui-row { display: flex; gap: 2.6cqw; }
.ui-pill { flex: 1; padding: 2.6cqw; border-radius: 3.6cqw; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.08); font-size: 3.2cqw; color: rgba(255, 255, 255, 0.65); }
.ui-pill b { display: block; font-size: 4.6cqw; color: #fff; margin-top: 0.8cqw; }
.ui-list { display: flex; flex-direction: column; gap: 2.4cqw; }
.ui-item { display: flex; align-items: center; gap: 3cqw; padding: 2.6cqw 3cqw; border-radius: 3.6cqw; background: rgba(255, 255, 255, 0.05); font-size: 3.4cqw; font-weight: 600; }
.ui-item i { width: 7cqw; height: 7cqw; border-radius: 2.4cqw; background: rgba(129, 74, 200, 0.45); flex-shrink: 0; }
.ui-item span { margin-left: auto; color: var(--purple-light); }
.ui-banner { height: 22cqw; border-radius: 5cqw; padding: 4cqw; background: linear-gradient(120deg, #814ac8, #df7afe); position: relative; overflow: hidden; }
.ui-banner b { font-size: 5.4cqw; line-height: 1.1; display: block; max-width: 55%; letter-spacing: -0.02em; }
.ui-banner::after { content: ''; position: absolute; right: -6cqw; bottom: -8cqw; width: 28cqw; height: 28cqw; border-radius: 50%; background: rgba(255, 255, 255, 0.25); }
.ui-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.8cqw; }
.ui-prod { border-radius: 4cqw; padding: 2.4cqw; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.07); font-size: 3.1cqw; font-weight: 600; }
.ui-prod i { display: block; aspect-ratio: 1.15; border-radius: 3cqw; margin-bottom: 1.8cqw; background: linear-gradient(135deg, rgba(129, 74, 200, 0.7), rgba(91, 140, 255, 0.55)); }
.ui-prod:nth-child(2) i { background: linear-gradient(135deg, #ff5fc8, #814ac8); }
.ui-prod:nth-child(3) i { background: linear-gradient(135deg, #5b8cff, #df7afe); }
.ui-prod:nth-child(4) i { background: linear-gradient(135deg, #c04fe0, #4fa3ff); }
.ui-prod small { display: block; color: var(--purple-light); font-size: 3.2cqw; margin-top: 0.6cqw; }
.ui-tabs { margin-top: auto; display: flex; justify-content: space-around; padding: 3cqw; border-radius: 99px; background: rgba(255, 255, 255, 0.07); }
.ui-tabs i { width: 5cqw; height: 5cqw; border-radius: 50%; background: rgba(255, 255, 255, 0.28); }
.ui-tabs i:first-child { background: var(--purple-light); box-shadow: 0 0 8px var(--purple-light); }
.ui-search { padding: 2.8cqw 3.6cqw; border-radius: 99px; background: rgba(255, 255, 255, 0.07); font-size: 3.2cqw; color: rgba(255, 255, 255, 0.45); }
.ui-chips { display: flex; gap: 2cqw; }
.ui-chips span { padding: 1.6cqw 3.2cqw; border-radius: 99px; font-size: 3cqw; font-weight: 600; background: rgba(255, 255, 255, 0.07); color: rgba(255, 255, 255, 0.65); }
.ui-chips span:first-child { background: rgba(223, 122, 254, 0.25); color: #fff; }
/* fish theme: cooler teal-blue */
.ui.fish { background: linear-gradient(180deg, #0a1730 0%, #060812 70%); }
.ui.fish .ui-banner { background: linear-gradient(120deg, #2563eb, #22d3ee); }
.ui.fish .ui-prod i { background: linear-gradient(135deg, #2563eb, #22d3ee); }
.ui.fish .ui-prod:nth-child(2) i { background: linear-gradient(135deg, #22d3ee, #814ac8); }
.ui.fish .ui-prod:nth-child(3) i { background: linear-gradient(135deg, #38bdf8, #6366f1); }
.ui.fish .ui-prod:nth-child(4) i { background: linear-gradient(135deg, #0ea5e9, #df7afe); }
.ui.fish .ui-prod small { color: #67e8f9; }
.ui.fish .ui-tabs i:first-child { background: #67e8f9; box-shadow: 0 0 8px #67e8f9; }
.ui.fish .ui-chips span:first-child { background: rgba(34, 211, 238, 0.25); }

/* ───────── PLATFORMS ───────── */
.ad-plat { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.plat-card { padding: 40px; display: flex; flex-direction: column; overflow: hidden; }
.plat-card::after {
  content: ''; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(129, 74, 200, 0.28), transparent 70%);
}
.plat-top { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; }
.plat-top h3 { font-family: var(--fh); font-size: clamp(22px, 2.4vw, 30px); font-weight: 600; letter-spacing: -0.035em; color: var(--white); line-height: 1.15; }
.plat-top small { display: block; margin-top: 4px; font-family: var(--fh); font-size: 14px; font-weight: 500; color: var(--w50); letter-spacing: 0; }
.plat-list { list-style: none; display: grid; gap: 14px; margin-top: 6px; }
.plat-list li { display: flex; align-items: center; gap: 12px; font-family: var(--fh); font-size: 16px; font-weight: 500; color: var(--w75); }
.plat-list li::before {
  content: ''; width: 20px; height: 20px; flex-shrink: 0; border-radius: 50%;
  background: rgba(129, 74, 200, 0.2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23df7afe' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat;
  border: 1px solid rgba(129, 74, 200, 0.55);
}

/* word-by-word reveal (classes added by JS; no effect without it) */
.wr-ready .wr-word, .wr-ready .wr-row { opacity: 0; transform: translateY(12px); }
.wr-ready .wr-word { display: inline-block; }
.wr-ready.wr-in .wr-word { opacity: 1; transform: none; transition: opacity 0.14s ease-out var(--wd), transform 0.14s ease-out var(--wd); }
.wr-ready.wr-in .wr-row { opacity: 1; transform: none; transition: opacity 0.32s ease-out var(--wd), transform 0.32s ease-out var(--wd); }

/* ───────── CROSS PLATFORM ───────── */
.ad-sec:has(.xp)::before { display: none; }
.xp {
  position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 48fr) minmax(0, 52fr); gap: 32px; align-items: center;
  padding: 72px 64px; border-radius: 32px; border: 1px solid rgba(129, 74, 200, 0.38);
  background: #000;
}
.xp-h { font-family: var(--fh); font-size: clamp(36px, 4.6vw, 64px); font-weight: 700; letter-spacing: -0.045em; line-height: 1.04; color: var(--white); margin-bottom: 24px; }
.xp-h .ad-grad { display: inline-block; }
.xp-lead { font-family: var(--fh); font-size: 17px; font-weight: 500; line-height: 1.7; color: var(--w50); max-width: 480px; }
.xp-feats { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin: 48px 0 0; padding: 0; }
.xp-feats li { position: relative; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.xp-feats svg { width: 22px; height: 22px; color: var(--purple-light); display: block; margin-bottom: 14px; }
.xp-feats svg.stk, .xp-tag svg.stk { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.xp-feats em { position: absolute; top: 18px; right: 0; font-style: normal; font-family: var(--fh); font-size: 12px; font-weight: 600; letter-spacing: 0.1em; color: rgba(255, 255, 255, 0.28); }
.xp-feats h3 { font-family: var(--fh); font-size: 12.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--white); margin-bottom: 8px; }
.xp-feats p { font-family: var(--fh); font-size: 14px; font-weight: 500; line-height: 1.55; color: var(--w50); }

.xp-vis { position: relative; min-height: 460px; display: grid; place-items: center; }
.xp-ring { display: none; position: absolute; left: 50%; top: 75px; border-radius: 50%; border: 1px dashed rgba(180, 130, 255, 0.22); transform: translate(-50%, -50%); }
.xp-ring.r1 { width: 270px; height: 270px; }
.xp-ring.r2 { width: 400px; height: 400px; border-color: rgba(120, 140, 255, 0.14); }
.xp-core {
  position: absolute; left: 50%; top: 0; translate: -50% 0; z-index: 1; width: 150px; height: 150px; border-radius: 38px; display: grid; place-items: center; align-content: center; gap: 6px;
  background: #000;
}
.xp-core svg { width: 62px; height: 62px; }
.xp-core b { font-family: var(--fh); font-size: 19px; font-weight: 700; color: #fff; letter-spacing: -0.01em; }
.xp-phone { position: absolute; z-index: 2; left: 0; bottom: 0; width: 100%; height: auto; animation: xpFloat 7s ease-in-out infinite; }
.xp-tag {
  position: absolute; z-index: 4; display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 12px;
  font-family: var(--fh); font-size: 13px; font-weight: 600; color: #fff; white-space: nowrap;
  background: #000; border: 1px solid rgba(255, 255, 255, 0.14); transition: transform 0.3s var(--ease), border-color 0.3s;
}
.xp-tag:hover { transform: translateY(-3px); border-color: rgba(223, 122, 254, 0.45); }
.xp-tag svg { width: 17px; height: 17px; fill: var(--purple-light); color: var(--purple-light); }
.xp-tag.t1 { left: 0; top: 2%; }
.xp-tag.t2 { right: 0; top: 2%; }
.xp-tag.t3 { left: 2%; bottom: 4%; }
.xp-tag.t4 { right: 0; bottom: 4%; }

@keyframes xpFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }

/* ───────── WHAT WE BUILD ───────── */
.ad-build { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.bld-card { padding: 28px 24px; border-radius: 22px; }
.bld-card .ad-icon { margin-bottom: 20px; }
.bld-card h3 { font-family: var(--fh); font-size: 19px; font-weight: 600; letter-spacing: -0.03em; color: var(--white); margin-bottom: 8px; }
.bld-card p { font-family: var(--fh); font-size: 14px; font-weight: 500; line-height: 1.55; color: var(--w50); }

/* ───────── PROCESS ───────── */
.ad-steps { position: relative; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; }
.ad-steps::before {
  content: ''; position: absolute; left: 7%; right: 7%; top: 34px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, #814ac8, #df7afe, #5b8cff, #df7afe, #814ac8);
  box-shadow: 0 0 14px rgba(223, 122, 254, 0.7); opacity: 0.8;
}
.step { position: relative; text-align: center; padding: 0 4px; }
.step-node {
  position: relative; z-index: 2; width: 68px; height: 68px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #2a1450, #0a0614); border: 1.5px solid rgba(223, 122, 254, 0.7); color: #e9c9ff;
  box-shadow: 0 0 26px rgba(129, 74, 200, 0.6), inset 0 0 14px rgba(223, 122, 254, 0.2); transition: transform 0.35s var(--ease), box-shadow 0.35s;
}
.step:hover .step-node { transform: scale(1.1); box-shadow: 0 0 38px rgba(223, 122, 254, 0.8), inset 0 0 14px rgba(223, 122, 254, 0.3); }
.step-node svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.step em { display: block; font-style: normal; font-family: var(--fh); font-size: 13px; font-weight: 700; letter-spacing: 0.12em; color: var(--purple-light); margin-bottom: 4px; }
.step h3 { font-family: var(--fh); font-size: 16px; font-weight: 600; letter-spacing: -0.02em; color: var(--white); }

/* ───────── FEATURED APPS ───────── */
.ad-feat { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.feat-card { padding: 28px 28px 0; overflow: hidden; display: flex; flex-direction: column; }
.feat-top { margin-bottom: 20px; }
.feat-tag { display: inline-block; padding: 4px 12px; border-radius: 999px; margin-bottom: 14px; font-family: var(--fh); font-size: 12px; font-weight: 600; letter-spacing: 0.04em; color: #e9c9ff; background: rgba(129, 74, 200, 0.18); border: 1px solid rgba(129, 74, 200, 0.45); }
.feat-card h3 { font-family: var(--fh); font-size: 30px; font-weight: 600; letter-spacing: -0.04em; color: var(--white); margin-bottom: 6px; }
.feat-card p { font-family: var(--fh); font-size: 15px; font-weight: 500; line-height: 1.5; color: var(--w50); }
.feat-stage { position: relative; margin-top: auto; height: 340px; display: flex; justify-content: center; align-items: flex-end; }
.feat-stage::before { content: ''; position: absolute; left: 50%; bottom: -40px; width: 80%; height: 70%; transform: translateX(-50%); background: radial-gradient(ellipse at 50% 100%, rgba(129, 74, 200, 0.5), transparent 70%); filter: blur(10px); }
.feat-stage .ph { position: relative; width: 205px; margin-bottom: -76px; transform: rotateX(8deg) rotateY(-10deg); transition: transform 0.5s var(--ease); transform-origin: 50% 100%; }
.feat-card:hover .feat-stage .ph { transform: rotateX(0) rotateY(0) translateY(-10px); }

/* ───────── WHY ───────── */
.ad-why { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.why-card { display: flex; align-items: center; gap: 18px; padding: 22px 24px; border-radius: 22px; }
.why-card h3 { font-family: var(--fh); font-size: 18px; font-weight: 600; letter-spacing: -0.03em; color: var(--white); margin-bottom: 3px; }
.why-card p { font-family: var(--fh); font-size: 14px; font-weight: 500; line-height: 1.45; color: var(--w50); }

/* ───────── FINAL CTA ───────── */
.ad-final { padding: 40px 40px 110px; background: #000; }
.ad-final-box {
  position: relative; overflow: hidden; text-align: center; padding: 84px 32px; border-radius: 36px;
  background: radial-gradient(ellipse 70% 90% at 50% 0%, rgba(129, 74, 200, 0.5), rgba(14, 7, 28, 0.92) 70%);
  border: 1px solid rgba(223, 122, 254, 0.5);
  box-shadow: 0 0 80px rgba(129, 74, 200, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.ad-final-box::before, .ad-final-box::after { content: ''; position: absolute; border-radius: 50%; pointer-events: none; filter: blur(50px); }
.ad-final-box::before { left: -80px; bottom: -120px; width: 320px; height: 320px; background: rgba(255, 90, 200, 0.25); }
.ad-final-box::after { right: -80px; top: -120px; width: 320px; height: 320px; background: rgba(80, 110, 255, 0.28); }
.ad-final-box > * { position: relative; z-index: 1; }
.ad-final-box h2 { font-family: var(--fh); font-size: clamp(32px, 4.6vw, 60px); font-weight: 600; letter-spacing: -0.045em; line-height: 1.08; color: var(--white); margin-bottom: 16px; }
.ad-final-box p { font-family: var(--fh); font-size: clamp(16px, 1.7vw, 19px); font-weight: 500; color: var(--w75); max-width: 560px; margin: 0 auto 36px; line-height: 1.6; }

/* ───────── KEYFRAMES ───────── */
@keyframes adSlideL { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: none; } }
@keyframes adSlideR { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
@keyframes adFloatA { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }
@keyframes adFloatB { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes adPulse { 0%, 100% { opacity: 0.7; } 50% { opacity: 1; } }
@keyframes adTrail { to { stroke-dashoffset: -700; } }
@keyframes adTwinkle { 0%, 100% { opacity: 0.15; } 50% { opacity: 0.85; } }

@media (prefers-reduced-motion: reduce) {
  .ad-copy, .ad-stage, .ad-hero-img, .ad-duo .ph, .ad-chip, .xp-phone, .ad-stage-glow, .ad-trails path, .ad-dot { animation: none !important; }
}

/* ───────── RESPONSIVE ───────── */
@media (max-width: 1100px) {
  .ad-build { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ad-why { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ad-feat { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ad-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 40px; }
  .ad-steps::before { display: none; }
}
@media (max-width: 1024px) {
  .ad-hero { min-height: 0; padding: 110px 28px 60px; }
  .ad-hero-inner { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .ad-stage { max-width: 720px; margin: 0 auto; aspect-ratio: 16 / 9; }
  .ad-copy { text-align: center; }
  .ad-crumb, .ad-cta { justify-content: center; }
  .ad-lead, .ad-text { margin-left: auto; margin-right: auto; }
  .ad-sec { padding: 80px 28px; }
}
@media (max-width: 760px) {
  .ad-plat { grid-template-columns: minmax(0, 1fr); }
  .plat-card { padding: 30px 26px; }
  .ad-feat { grid-template-columns: minmax(0, 1fr); }
  .ad-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ad-final { padding: 20px 20px 80px; }
  .ad-final-box { padding: 56px 22px; border-radius: 28px; }
}
@media (max-width: 600px) {
  .ad-hero { padding: 100px 20px 48px; }
  .ad-sec { padding: 64px 20px; }
  .ad-build, .ad-why { grid-template-columns: minmax(0, 1fr); }
  .ad-chip { display: none; }
  .ad-cta .btn { flex: 1 1 100%; text-align: center; justify-content: center; }
}

@media (max-width: 1024px) {
  .xp { grid-template-columns: minmax(0, 1fr); padding: 48px 36px; gap: 40px; }
  .xp-lead { max-width: 560px; }
  .xp-vis { min-height: 440px; max-width: 560px; margin: 0 auto; width: 100%; }
}
@media (max-width: 600px) {
  .xp { padding: 32px 20px; border-radius: 26px; }
  .xp-feats { grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 32px; }
  .xp-vis { min-height: 400px; }
  .xp-ring { top: 56px; }
  .xp-ring.r1 { width: 200px; height: 200px; }
  .xp-ring.r2 { width: 300px; height: 300px; }
  .xp-core { width: 112px; height: 112px; border-radius: 28px; }
  .xp-core svg { width: 44px; height: 44px; }
  .xp-core b { font-size: 15px; }
  .xp-tag { font-size: 11.5px; padding: 6px 10px; }
}

/* Process section — sequenced intro (armed/played by inline script; content stays visible without it) */
@keyframes pp-up { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes pp-seg { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes pp-node {
  0% { opacity: 0; transform: scale(0.75); box-shadow: 0 0 0 rgba(223, 122, 254, 0); }
  60% { box-shadow: 0 0 40px rgba(223, 122, 254, 0.8), inset 0 0 14px rgba(223, 122, 254, 0.2); }
  100% { opacity: 1; transform: none; }
}
@keyframes pp-icon { from { opacity: 0; transform: scale(0.8); } to { opacity: 1; transform: none; } }
@keyframes pp-text { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes pp-fade { from { opacity: 0; } to { opacity: 1; } }

/* Per-segment connectors replace the single line once armed: circle -> icon -> text -> line -> next circle */
#process .step::after { display: none; }
#process.pp-armed .ad-steps::before { display: none; }
#process.pp-armed .step:not(:last-child)::after {
  content: ''; display: block; position: absolute; z-index: 1; left: 50%; width: calc(100% + 12px); top: 34px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, #814ac8, #df7afe, #5b8cff, #df7afe, #814ac8); background-size: 700% 100%; background-position: calc(var(--i) * 100% / 6) 0;
  box-shadow: 0 0 14px rgba(223, 122, 254, 0.7); opacity: 0.8; transform-origin: left center;
}
#process.pp-armed:not(.pp-play) :is(.ad-pill, .ad-h2, .ad-sub, .step-node, .step-node svg, .step em, .step h3) { opacity: 0; }
#process.pp-armed:not(.pp-play) .step::after { transform: scaleX(0); }

#process.pp-play .ad-pill { animation: pp-up 0.6s var(--ease) 0s backwards; }
#process.pp-play .ad-h2 { animation: pp-up 0.6s var(--ease) 0s backwards; }
#process.pp-play .ad-sub { animation: pp-up 0.5s var(--ease) 0.3s backwards; }
/* per step (1.5s cycle): circle 0-500ms, icon 120-470ms, text 470-870ms, line 900-1500ms, next circle at 1500ms */
#process.pp-play .step { --d: calc(0.9s + var(--i, 0) * 1.5s); }
#process.pp-play .step-node { animation: pp-node 0.5s cubic-bezier(0.34, 1.3, 0.64, 1) var(--d) backwards; }
#process.pp-play .step-node svg { animation: pp-icon 0.35s cubic-bezier(0.22, 1, 0.36, 1) calc(var(--d) + 0.12s) backwards; }
#process.pp-play .step em, #process.pp-play .step h3 { animation: pp-text 0.4s cubic-bezier(0.22, 1, 0.36, 1) calc(var(--d) + 0.47s) backwards; }
#process.pp-play .step::after { animation: pp-seg 0.6s cubic-bezier(0.22, 1, 0.36, 1) calc(var(--d) + 0.9s) backwards; }
#process .step:nth-child(1) { --i: 0; } #process .step:nth-child(2) { --i: 1; } #process .step:nth-child(3) { --i: 2; }
#process .step:nth-child(4) { --i: 3; } #process .step:nth-child(5) { --i: 4; } #process .step:nth-child(6) { --i: 5; }
#process .step:nth-child(7) { --i: 6; }
@media (max-width: 1100px) { #process.pp-armed .step::after { display: none !important; } }

@media (min-width: 1025px) and (max-width: 1280px) {
  .ad-hero { padding-left: 28px; padding-right: 28px; }
  .ad-stage { max-width: 720px; margin: 0 auto; }
}
