/* ============================================================
   WAHAH — iOS App Studio
   ============================================================ */

:root {
  --brand: #2b4eff;
  --brand-deep: #1733d1;
  --brand-soft: #eef1ff;
  --accent: #ff6b4a;
  --ink: #0d1222;
  --ink-2: #2a3250;
  --muted: #5f6a85;
  --muted-2: #8892ab;
  --bg: #ffffff;
  --bg-soft: #f6f8fc;
  --bg-soft-2: #eef2f9;
  --line: #e4e8f2;
  --line-soft: #eef1f7;
  --radius: 18px;
  --radius-lg: 26px;
  --shadow-sm: 0 1px 2px rgba(13, 18, 34, .05), 0 4px 14px rgba(13, 18, 34, .04);
  --shadow-md: 0 4px 12px rgba(13, 18, 34, .06), 0 18px 44px rgba(13, 18, 34, .08);
  --shadow-lg: 0 24px 70px rgba(13, 18, 34, .16);
  --max: 1200px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -.025em;
  font-weight: 700;
}

p { margin: 0; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- shared bits ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 650;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-soft);
  border: 1px solid #dde3ff;
  padding: 6px 14px;
  border-radius: 999px;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand);
}

.section { padding: 104px 0; }
.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head h2 {
  font-size: clamp(30px, 4vw, 44px);
  margin: 18px 0 16px;
}
.section-head p {
  font-size: 17.5px;
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 15.5px;
  font-weight: 620;
  border: 1.5px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 22px rgba(43, 78, 255, .28);
}
.btn-primary:hover { background: var(--brand-deep); box-shadow: 0 12px 30px rgba(43, 78, 255, .36); }
.btn-ghost {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: #c8d0e6; box-shadow: var(--shadow-sm); }
.btn-sm { padding: 10px 20px; font-size: 14.5px; }

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.logo { display: flex; align-items: center; gap: 11px; margin-right: auto; }
.logo-mark {
  width: 36px; height: 36px;
  border-radius: 11px;
  background: linear-gradient(135deg, #2b4eff, #7a5cff 55%, #ff6b4a);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -.04em;
  box-shadow: 0 5px 14px rgba(43, 78, 255, .3);
}
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-text b { font-size: 17px; letter-spacing: .02em; }
.logo-text span { font-size: 10.5px; color: var(--muted-2); letter-spacing: .06em; text-transform: uppercase; }

.nav-links { display: flex; gap: 30px; }
.nav-links a {
  font-size: 14.8px;
  font-weight: 550;
  color: var(--ink-2);
  transition: color .16s ease;
}
.nav-links a:hover { color: var(--brand); }

.nav-cta { display: flex; gap: 12px; align-items: center; }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  display: block; width: 17px; height: 1.7px; background: var(--ink);
  position: relative; transition: .2s;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 17px; height: 1.7px; background: var(--ink);
}
.nav-toggle span::before { top: -5.5px; }
.nav-toggle span::after { top: 5.5px; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: 88px 0 92px;
  overflow: hidden;
  background:
    radial-gradient(900px 480px at 12% -8%, #e7ecff 0%, rgba(231, 236, 255, 0) 62%),
    radial-gradient(760px 420px at 92% 4%, #ffe9e2 0%, rgba(255, 233, 226, 0) 60%),
    var(--bg);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(13, 18, 34, .035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(13, 18, 34, .035) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: radial-gradient(1100px 560px at 50% 0%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(1100px 560px at 50% 0%, #000 0%, transparent 78%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.06fr .94fr;
  gap: 62px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(38px, 5.4vw, 62px);
  letter-spacing: -.035em;
  margin: 22px 0 22px;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(105deg, var(--brand) 12%, #8b5cf6 62%, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: 18.5px;
  color: var(--muted);
  max-width: 545px;
  margin-bottom: 34px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 42px; }

.hero-facts { display: flex; gap: 38px; flex-wrap: wrap; }
.fact b {
  display: block;
  font-size: 30px;
  font-weight: 750;
  letter-spacing: -.03em;
  line-height: 1.1;
}
.fact span { font-size: 13.5px; color: var(--muted); }

/* phone mock */
.phone-stack {
  position: relative;
  height: 540px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.phone {
  position: absolute;
  width: 208px;
  border-radius: 30px;
  background: #fff;
  border: 3px solid #e9edf7;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transition: transform .5s cubic-bezier(.2, .8, .3, 1);
}
.phone img { width: 100%; height: auto; }
.phone.p1 { transform: rotate(-9deg) translateX(-124px) translateY(14px); z-index: 1; }
.phone.p2 { transform: rotate(0deg) translateY(-16px) scale(1.09); z-index: 3; }
.phone.p3 { transform: rotate(9deg) translateX(124px) translateY(14px); z-index: 2; }
.phone-stack:hover .phone.p1 { transform: rotate(-13deg) translateX(-146px) translateY(6px); }
.phone-stack:hover .phone.p2 { transform: translateY(-22px) scale(1.12); }
.phone-stack:hover .phone.p3 { transform: rotate(13deg) translateX(146px) translateY(6px); }

/* icon marquee */
.marquee {
  margin-top: 76px;
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: slide 46s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes slide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee-item {
  width: 66px; height: 66px;
  background: transparent;
  border: none;
  padding: 0;
  flex: none;
  filter: drop-shadow(0 4px 10px rgba(13, 18, 34, .12));
  transition: transform .22s ease, filter .22s ease;
}
.marquee-item:hover { transform: translateY(-6px) scale(1.06); filter: drop-shadow(0 10px 20px rgba(13, 18, 34, .2)); }
.marquee-item img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- apps ---------- */

.apps { background: var(--bg-soft); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }

.apps-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}

.filters { display: flex; gap: 9px; flex-wrap: wrap; margin-bottom: 34px; }
.chip {
  padding: 8px 17px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: #fff;
  font-size: 14px;
  font-weight: 560;
  color: var(--ink-2);
  transition: .16s ease;
}
.chip:hover { border-color: #c3cdea; }
.chip.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.chip i { font-style: normal; opacity: .55; margin-left: 5px; font-size: 12.5px; }

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(288px, 1fr));
  gap: 20px;
}

.app-card {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: left;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  box-shadow: 0 1px 2px rgba(13, 18, 34, .03);
  cursor: pointer;
}
.app-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: #dbe2f5;
}
.app-icon {
  width: 66px; height: 66px;
  flex: none;
  filter: drop-shadow(0 3px 8px rgba(13, 18, 34, .14));
}
.app-icon img { width: 100%; height: 100%; object-fit: contain; }
.app-meta { min-width: 0; flex: 1; }
.app-meta h3 {
  font-size: 16.5px;
  letter-spacing: -.02em;
  margin-bottom: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.app-tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 620;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-soft);
  padding: 3px 9px;
  border-radius: 6px;
  margin-bottom: 9px;
}
.app-summary {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.app-foot {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
  color: var(--muted-2);
}
.app-foot .stars { color: #f5a524; letter-spacing: .5px; }
.app-foot .ver { margin-left: auto; font-variant-numeric: tabular-nums; }

.empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 0;
  color: var(--muted);
}

/* ---------- modal ---------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
}
.modal.open { display: block; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 14, 28, .55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: fade .22s ease;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.modal-panel {
  position: relative;
  width: min(960px, calc(100% - 40px));
  max-height: min(88vh, 880px);
  margin: 5vh auto 0;
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  animation: pop .28s cubic-bezier(.2, .9, .3, 1);
}
@keyframes pop {
  from { opacity: 0; transform: translateY(22px) scale(.985); }
  to { opacity: 1; transform: none; }
}

.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  z-index: 5;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, .92);
  color: var(--ink);
  font-size: 19px;
  line-height: 1;
  box-shadow: 0 3px 12px rgba(0, 0, 0, .16);
  display: grid; place-items: center;
  backdrop-filter: blur(8px);
}
.modal-close:hover { background: #fff; }

.modal-body { overflow-y: auto; }
.modal-hero {
  display: flex;
  gap: 22px;
  padding: 30px 34px 26px;
  background: linear-gradient(180deg, #f4f7ff, #fff);
  border-bottom: 1px solid var(--line-soft);
  align-items: center;
}
.modal-hero .app-icon { width: 92px; height: 92px; filter: drop-shadow(0 6px 16px rgba(13, 18, 34, .18)); }
.modal-hero h2 { font-size: 26px; letter-spacing: -.03em; }
.modal-hero .sub { color: var(--muted); font-size: 15px; margin-top: 8px; }
.modal-hero-actions { margin-top: 16px; display: flex; gap: 10px; flex-wrap: wrap; }

.shots {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 24px 34px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.shots::-webkit-scrollbar { height: 7px; }
.shots::-webkit-scrollbar-thumb { background: #d3daea; border-radius: 9px; }
.shots img {
  width: 220px;
  flex: none;
  border-radius: 16px;
  border: 1px solid var(--line);
  scroll-snap-align: start;
  background: var(--bg-soft);
}

.desc-block { padding: 6px 34px 34px; }
.desc-block h4 {
  font-size: 12.5px;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 14px;
}
.desc-list { display: flex; flex-direction: column; gap: 9px; }
.desc-list p {
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.62;
}
.desc-list p.bullet {
  padding-left: 20px;
  position: relative;
  color: var(--muted);
}
.desc-list p.bullet::before {
  content: "";
  position: absolute;
  left: 4px; top: 10px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand);
  opacity: .5;
}
.desc-list p.head {
  font-weight: 700;
  color: var(--ink);
  font-size: 15.5px;
  margin-top: 10px;
  letter-spacing: -.01em;
}
.desc-list p a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; word-break: break-all; }
.desc-list p.note {
  font-size: 13.5px;
  color: var(--muted-2);
  background: var(--bg-soft);
  border-radius: 12px;
  padding: 12px 15px;
  border: 1px solid var(--line-soft);
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1px;
  background: var(--line-soft);
  border-top: 1px solid var(--line-soft);
}
.spec {
  background: #fff;
  padding: 16px 20px;
}
.spec span {
  display: block;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--muted-2);
  margin-bottom: 4px;
}
.spec b { font-size: 14.5px; font-weight: 620; }

/* ---------- capabilities ---------- */

.cap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.cap {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  transition: .22s ease;
}
.cap:hover { border-color: #dbe2f5; box-shadow: var(--shadow-md); transform: translateY(-3px); }
.cap-ico {
  width: 46px; height: 46px;
  border-radius: 14px;
  display: grid; place-items: center;
  font-size: 21px;
  margin-bottom: 18px;
  background: var(--brand-soft);
  border: 1px solid #e0e5ff;
}
.cap h3 { font-size: 18px; margin-bottom: 9px; letter-spacing: -.02em; }
.cap p { font-size: 14.8px; color: var(--muted); line-height: 1.62; }
.cap ul { margin: 14px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 7px; }
.cap li {
  font-size: 12.5px;
  font-weight: 560;
  color: var(--ink-2);
  background: var(--bg-soft);
  border: 1px solid var(--line-soft);
  padding: 4px 11px;
  border-radius: 999px;
}

/* ---------- process ---------- */

.process { background: var(--bg-soft); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 0;
  counter-reset: s;
}
.step { padding: 8px 30px 8px 0; position: relative; }
.step::before {
  content: "";
  position: absolute;
  left: 0; top: 15px;
  width: 100%; height: 1px;
  background: repeating-linear-gradient(90deg, var(--line) 0 5px, transparent 5px 10px);
}
.step:last-child::before { width: 0; }
.step-n {
  counter-increment: s;
  position: relative;
  z-index: 2;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: grid; place-items: center;
  font-size: 13.5px; font-weight: 700;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(43, 78, 255, .26);
}
.step h4 { font-size: 16.5px; margin-bottom: 7px; letter-spacing: -.02em; }
.step p { font-size: 14.3px; color: var(--muted); line-height: 1.6; padding-right: 14px; }

/* ---------- cooperate ---------- */

.co-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
  gap: 20px;
}
.co {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  background: #fff;
  transition: .22s ease;
}
.co:hover { box-shadow: var(--shadow-md); border-color: #dbe2f5; }
.co.primary {
  background: linear-gradient(160deg, #1b2fa8, #2b4eff 55%, #5b3df5);
  border-color: transparent;
  color: #fff;
}
.co.primary p { color: rgba(255, 255, 255, .8); }
.co h3 { font-size: 19px; margin-bottom: 10px; letter-spacing: -.02em; }
.co p { font-size: 14.8px; color: var(--muted); margin-bottom: 18px; }
.co ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.co li { font-size: 14.2px; color: var(--ink-2); padding-left: 22px; position: relative; }
.co.primary li { color: rgba(255, 255, 255, .92); }
.co li::before {
  content: "";
  position: absolute; left: 0; top: 8px;
  width: 12px; height: 7px;
  border-left: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: rotate(-45deg);
}
.co.primary li::before { border-color: #ffd7a8; }

/* ---------- contact ---------- */

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.contact-intro h2 { font-size: clamp(30px, 4vw, 42px); margin: 18px 0 18px; }
.contact-intro p.lead { font-size: 17.5px; color: var(--muted); margin-bottom: 30px; }

.info-list { display: flex; flex-direction: column; gap: 3px; }
.info {
  display: flex;
  gap: 15px;
  padding: 16px 4px;
  border-top: 1px solid var(--line-soft);
  align-items: flex-start;
}
.info:last-child { border-bottom: 1px solid var(--line-soft); }
.info-ico { width: 20px; flex: none; text-align: center; font-size: 16px; margin-top: 1px; }
.info span {
  display: block;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted-2);
  margin-bottom: 3px;
}
.info a, .info b { font-size: 16px; font-weight: 600; letter-spacing: -.01em; word-break: break-all; }
.info a:hover { color: var(--brand); }

.contact-card {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 34px;
  box-shadow: var(--shadow-md);
}
.contact-card h3 { font-size: 21px; margin-bottom: 6px; }
.contact-card > p { font-size: 14.8px; color: var(--muted); margin-bottom: 24px; }

.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 620;
  color: var(--ink-2);
  margin-bottom: 7px;
}
.field input, .field textarea, .field select {
  width: 100%;
  padding: 12px 15px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: #fbfcfe;
  transition: .16s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--brand);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(43, 78, 255, .1);
}
.field textarea { resize: vertical; min-height: 108px; }
.contact-card .btn { width: 100%; }
.form-note { font-size: 12.8px; color: var(--muted-2); text-align: center; margin-top: 14px; }

/* ---------- footer ---------- */

.footer {
  background: #0b0f1e;
  color: #aab3cc;
  padding: 62px 0 0;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 46px;
}
.footer h4 {
  color: #fff;
  font-size: 13px;
  letter-spacing: .09em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer p { font-size: 14.5px; line-height: 1.7; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 14.5px; transition: color .16s; }
.footer-links a:hover { color: #fff; }
.footer .logo-text b { color: #fff; }
.footer .logo-text span { color: #6f7a99; }
.footer-brand p { margin-top: 16px; max-width: 320px; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .09);
  padding: 22px 0 30px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: #7b86a3;
}

/* ---------- reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */

@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .phone-stack { height: 420px; }
  .phone { width: 168px; }
  .phone.p1 { transform: rotate(-9deg) translateX(-100px); }
  .phone.p3 { transform: rotate(9deg) translateX(100px); }
  .contact-wrap { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .section { padding: 74px 0; }
  .container { padding: 0 20px; }
  .nav-inner { padding: 0 20px; gap: 14px; }
  .nav-links { display: none; }
  .nav-cta .btn { display: none; }
  .nav-toggle { display: flex; }
  .nav.open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 18px 20px 24px;
    gap: 4px;
    box-shadow: var(--shadow-md);
  }
  .nav.open .nav-links a { padding: 11px 0; font-size: 16px; }
  .hero { padding: 56px 0 62px; }
  .hero-facts { gap: 26px; }
  .fact b { font-size: 25px; }
  .phone-stack { height: 380px; }
  .phone { width: 134px; border-width: 2px; border-radius: 22px; }
  .phone.p1 { transform: rotate(-10deg) translateX(-74px); }
  .phone.p3 { transform: rotate(10deg) translateX(74px); }
  .phone-stack:hover .phone.p1 { transform: rotate(-13deg) translateX(-86px); }
  .phone-stack:hover .phone.p3 { transform: rotate(13deg) translateX(86px); }
  .modal-panel { width: calc(100% - 20px); max-height: 92vh; margin-top: 4vh; }
  .modal-hero { padding: 24px 22px; gap: 16px; }
  .modal-hero .app-icon { width: 72px; height: 72px; }
  .modal-hero h2 { font-size: 21px; }
  .shots { padding: 20px 22px; }
  .shots img { width: 180px; }
  .desc-block { padding: 4px 22px 26px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .steps { gap: 0; }
  .step { padding: 0 0 26px 0; }
  .step::before { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   App detail pages ( /apps/*.html )
   ============================================================ */

.page-nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--line-soft);
}
.page-nav .nav-inner { height: 64px; }

.crumbs {
  font-size: 13.5px;
  color: var(--muted-2);
  padding: 22px 0 0;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--brand); }
.crumbs span.sep { opacity: .45; }
.crumbs b { color: var(--ink-2); font-weight: 600; }

.app-hero { padding: 26px 0 8px; }
.app-hero-inner {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 34px;
  align-items: start;
}
.app-hero .app-icon {
  width: 150px; height: 150px;
  filter: drop-shadow(0 10px 26px rgba(13, 18, 34, .18));
}
.app-hero h1 {
  font-size: clamp(30px, 4.4vw, 46px);
  letter-spacing: -.035em;
  margin: 14px 0 14px;
}
.app-hero .lead {
  font-size: 18.5px;
  color: var(--muted);
  max-width: 690px;
  margin-bottom: 24px;
}
.app-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.shot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(196px, 1fr));
  gap: 18px;
}
.shot-grid img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  transition: transform .24s ease, box-shadow .24s ease;
}
.shot-grid img:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }

.prose { max-width: 820px; }
.prose .desc-list p { font-size: 16px; }

.spec-wrap { margin-top: 46px; }

.cta-band {
  background: linear-gradient(160deg, #1b2fa8, #2b4eff 55%, #5b3df5);
  border-radius: var(--radius-lg);
  padding: 46px 44px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-band h3 { font-size: clamp(22px, 2.6vw, 30px); margin-bottom: 8px; }
.cta-band p { color: rgba(255, 255, 255, .82); font-size: 16px; max-width: 560px; }
.cta-band .btn { background: #fff; color: var(--brand-deep); }
.cta-band .btn:hover { background: #f0f3ff; }

.faql { display: grid; gap: 14px; max-width: 880px; }
.faq {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  padding: 0 24px;
}
.faq[open] { border-color: #d5ddf5; box-shadow: var(--shadow-sm); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 0;
  font-size: 16.8px;
  font-weight: 640;
  letter-spacing: -.015em;
  display: flex;
  align-items: center;
  gap: 14px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  margin-left: auto;
  font-size: 21px;
  font-weight: 400;
  color: var(--brand);
  transition: transform .2s ease;
}
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { padding: 0 0 22px; font-size: 15.6px; color: var(--muted); line-height: 1.68; }

@media (max-width: 760px) {
  .app-hero-inner { grid-template-columns: 1fr; gap: 20px; }
  .app-hero .app-icon { width: 104px; height: 104px; }
  .shot-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
  .cta-band { padding: 32px 24px; }
  .faq summary { font-size: 15.8px; }
}
