/* ============================================================
   APP DEVELOPMENT — product section on the marketing site
   Sits directly after the AI Receptionist section, inside the
   same .screen-world container, so the ambient bg-video and the
   hero → work → outro seam stay untouched. Shares the site's
   tokens, buttons, eyebrow and reveal-io system; the two phones —
   each a stack of three full-frame renders (welcome/overview/
   profile, assets/img/appdev-{ios,android}-*.webp) crossfading on
   scroll — are this section's own visual identity.
   ============================================================ */

.app-dev {
  margin-top: var(--sp-32);
  position: relative;
}

/* ---------------------------------------------------------------- */
/* Hero: sales message + device stage                                */
/* ---------------------------------------------------------------- */
.appdev-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: var(--sp-16);
  align-items: center;
}
@media (max-width: 960px) {
  .appdev-hero { grid-template-columns: 1fr; gap: var(--sp-12); }
}

.appdev-message { max-width: 560px; }
.appdev-message h2 { font-size: var(--fs-h1); margin-top: var(--sp-3); }
.appdev-message > p { margin-top: var(--sp-5); color: var(--ink-dim); }

.appdev-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-top: var(--sp-8);
}

/* ---------------------------------------------------------------- */
/* Device stage                                                      */
/* ---------------------------------------------------------------- */
.appdev-stage { position: relative; }

.appdev-devices {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 460px;
}

/* Small floating labels — this section's own take on the hero's spatial
   service tags, but as compact glass pills rather than large typography,
   so they read as UI callouts around the devices, not a second headline. */
.appdev-tag {
  position: absolute;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.5em 0.9em;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  background: rgba(12, 12, 20, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink);
  box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.6);
  will-change: transform, opacity;
}
.appdev-tag .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 8px rgba(103, 255, 255, 0.7); flex: none; }
.appdev-tag--1 { left: 2%; top: 12%; }
.appdev-tag--2 { right: 0%; top: 46%; }
.appdev-tag--3 { left: 8%; bottom: 8%; }
@media (max-width: 720px) {
  .appdev-tag { font-size: 0.68rem; padding: 0.45em 0.75em; }
  .appdev-tag--1 { left: 0; top: 4%; }
  .appdev-tag--2 { right: -2%; top: 44%; }
  .appdev-tag--3 { left: 2%; bottom: 2%; }
}

/* ---------------------------------------------------------------- */
/* Phone hardware — real product renders, not CSS-drawn frames        */
/* ---------------------------------------------------------------- */
.appdev-phone {
  position: relative;
  width: 200px;
  will-change: transform, opacity;
}
.appdev-phone--ios { margin-right: -30px; z-index: 2; }
.appdev-phone--android { margin-left: -30px; z-index: 1; transform: translateY(30px) scale(0.94) rotate(6deg); }

.appdev-phone-frame { position: relative; }
.appdev-phone--ios .appdev-phone-frame { aspect-ratio: 810 / 1416; }
.appdev-phone--android .appdev-phone-frame { aspect-ratio: 806 / 1376; }

/* Each phone is a stack of full-frame shots (welcome/overview/profile,
   same render just with different on-screen content) crossfading on top
   of one another — not an overlay composited onto a static hardware
   photo, so the UI content already carries the phone's exact glass
   perspective and reflections. */
.appdev-shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  filter: drop-shadow(0 40px 60px rgba(0, 0, 0, 0.6));
}
.appdev-shot.is-active { opacity: 1; }

.appdev-platform-tag {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  margin-top: var(--sp-4);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.appdev-platform-tag .dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.appdev-platform-tag .dot--ios { background: #f4f3ef; box-shadow: 0 0 8px rgba(244, 243, 239, 0.5); }
.appdev-platform-tag .dot--android { background: #3ddc84; box-shadow: 0 0 8px rgba(61, 220, 132, 0.6); }

@media (prefers-reduced-motion: reduce) {
  .appdev-phone, .appdev-tag { opacity: 1 !important; transform: none !important; }
  .appdev-phone--android { transform: translateY(30px) scale(0.94) rotate(6deg); }
}

.appdev-concept-note {
  margin-top: var(--sp-4);
  text-align: center;
  font-size: 0.75rem;
  color: var(--ink-faint);
  font-style: italic;
}

/* ---------------------------------------------------------------- */
/* Mobile device stage: simplified, smaller, still legible             */
/* ---------------------------------------------------------------- */
@media (max-width: 720px) {
  .appdev-devices { min-height: 340px; }
  .appdev-phone { width: 148px; }
}

/* ---------------------------------------------------------------- */
/* Capabilities                                                       */
/* ---------------------------------------------------------------- */
.appdev-capabilities {
  margin-top: var(--sp-24);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-5, 1.25rem);
}
@media (max-width: 960px) { .appdev-capabilities { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .appdev-capabilities { grid-template-columns: 1fr; } }

.appdev-feature {
  position: relative;
  padding: var(--sp-6);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: linear-gradient(160deg, rgba(244, 243, 239, 0.035), transparent 55%), var(--bg-elevated);
  transition: border-color var(--dur-fast) var(--ease-out), transform var(--dur-med) var(--ease-out);
}
.appdev-feature:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.appdev-feature .icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: rgba(91, 108, 255, 0.14);
  color: var(--accent-2);
  margin-bottom: var(--sp-3);
}
.appdev-feature .icon svg { width: 19px; height: 19px; }
.appdev-feature h3 { font-family: var(--font-body); font-weight: 600; font-size: 1rem; letter-spacing: 0; }
.appdev-feature p { margin-top: var(--sp-2); color: var(--ink-dim); font-size: var(--fs-small); }

/* ---------------------------------------------------------------- */
/* Process                                                            */
/* ---------------------------------------------------------------- */
.appdev-process { margin-top: var(--sp-24); }
.appdev-process-head { max-width: 560px; margin-bottom: var(--sp-10, 2.5rem); }
.appdev-process-head h3 { font-size: var(--fs-h2); margin-top: var(--sp-3); }

.appdev-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp-6);
}
@media (max-width: 860px) {
  .appdev-steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .appdev-steps { grid-template-columns: 1fr; }
}

.appdev-step {
  position: relative;
  padding-top: var(--sp-6);
  border-top: 1px solid var(--line);
}
.appdev-step-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--accent-2);
  margin-bottom: var(--sp-2);
}
.appdev-step h4 { font-family: var(--font-body); font-weight: 600; font-size: 1.05rem; }
.appdev-step p { margin-top: var(--sp-2); color: var(--ink-dim); font-size: var(--fs-small); }

/* ---------------------------------------------------------------- */
/* Final CTA band                                                     */
/* ---------------------------------------------------------------- */
.appdev-final {
  margin-top: var(--sp-24);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-8);
  padding: var(--sp-10, 2.5rem) var(--sp-10, 2.5rem);
  border-radius: var(--radius-l);
  border: 1px solid var(--line-strong);
  background: linear-gradient(135deg, rgba(91, 108, 255, 0.1), rgba(103, 255, 255, 0.04) 60%, transparent), var(--bg-elevated);
}
.appdev-final h3 { font-size: var(--fs-h2); }
.appdev-final p { margin-top: var(--sp-3); color: var(--ink-dim); max-width: 46ch; }
.appdev-final .btn { flex: none; }

@media (max-width: 720px) {
  .appdev-final { flex-direction: column; align-items: flex-start; padding: var(--sp-8) var(--sp-6); }
  .appdev-final .btn { align-self: stretch; }
}
