/* =============================================================
   App Development Page — Hosn Theme
   Premium flagship layout with cinematic 3D iPhone hero
   ============================================================= */

:root {
  --ad-gold: #f3ce34;
  --ad-gold-soft: rgba(243, 206, 52, 0.12);
  --ad-gold-dim: rgba(243, 206, 52, 0.35);
  --ad-dark: #0a0a0a;
  --ad-dark-2: #111111;
  --ad-line: rgba(255, 255, 255, 0.08);
  --ad-text: #f5f5f5;
  --ad-text-dim: rgba(245, 245, 245, 0.72);
  --ad-text-mute: rgba(245, 245, 245, 0.5);
  --ad-ease: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ad-ease-smooth: cubic-bezier(0.65, 0, 0.35, 1);
}

.ad-page-wrap {
  background: var(--ad-dark);
  color: var(--ad-text);
  font-family: 'Outfit', sans-serif;
  overflow-x: hidden;
  width: 100%;
}
.ad-page-wrap .gold { color: var(--ad-gold); }
.ad-page-wrap section { width: 100%; position: relative; }

section {
  padding: 100px 80px 0;
  position: relative;
  overflow: hidden;
}

/* Decorative diamonds */
.ad-page-wrap .top-left-image,
.ad-page-wrap .top-right-ai-image {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  animation: adOrbDrift 14s ease-in-out infinite;
}
.ad-page-wrap .top-left-image { left: 0; top: 30%; }
.ad-page-wrap .top-right-ai-image {
  right: 5%; top: 40%;
  animation-duration: 16s;
  animation-delay: -3s;
}
.ad-page-wrap .top-left-image img,
.ad-page-wrap .top-right-ai-image img { display: block; height: auto; max-width: 100%; }
@keyframes adOrbDrift {
  0%, 100% { transform: translateY(0) rotate(0); }
  50%      { transform: translateY(-12px) rotate(1.5deg); }
}

/* =============================================================
   SHARED: pill, badge, buttons
   ============================================================= */
.ad-pill,
.ad-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border: 1px solid var(--ad-gold-dim);
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--ad-gold);
  background: var(--ad-gold-soft);
  text-transform: uppercase;
  width: max-content;
}
.ad-pill-dot,
.ad-badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ad-gold);
  box-shadow: 0 0 10px var(--ad-gold);
  animation: adPulse 2s ease-in-out infinite;
}
@keyframes adPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.55; transform: scale(1.3); }
}

.ad-btn-primary,
.ad-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.2px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.3s var(--ad-ease), box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}
.ad-btn-primary {
  background: var(--ad-gold);
  color: var(--ad-dark);
  box-shadow: 0 8px 24px rgba(243, 206, 52, 0.18);
}
.ad-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(243, 206, 52, 0.36);
  background: #ffd84a;
}
.ad-btn-primary::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transition: left 0.6s var(--ad-ease-smooth);
}
.ad-btn-primary:hover::after { left: 100%; }
.ad-btn-outline {
  background: transparent;
  color: var(--ad-text);
  border-color: rgba(255, 255, 255, 0.18);
}
.ad-btn-outline:hover {
  border-color: var(--ad-gold);
  color: var(--ad-gold);
  background: rgba(243, 206, 52, 0.05);
  transform: translateY(-3px);
}
.ad-btn-outline .material-symbols-outlined { font-size: 18px; }
.ad-btn-arrow {
  display: inline-flex;
  align-items: center;
  transition: transform 0.3s var(--ad-ease);
}
.ad-btn-primary:hover .ad-btn-arrow { transform: translate(3px, -3px); }

/* =============================================================
   HERO
   ============================================================= */
.ad-hero {
  position: relative;
  padding: 140px 80px 100px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.ad-hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(243, 206, 52, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(243, 206, 52, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
  z-index: 0;
  animation: adGridDrift 30s linear infinite;
}
@keyframes adGridDrift {
  from { background-position: 0 0; }
  to   { background-position: 60px 60px; }
}

.ad-blob {
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.22;
  pointer-events: none;
  z-index: 0;
  background: var(--ad-gold);
}
.ad-blob-a { top: -160px; left: -160px; animation: adBlob 14s ease-in-out infinite; }
.ad-blob-b { top: -160px; right: -160px; animation: adBlob 16s ease-in-out infinite reverse; }
@keyframes adBlob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(40px, 30px) scale(1.08); }
}

.ad-hero-wrapper {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  align-items: center;
}

/* Swap: content left, phone right (desktop) */
.ad-hero-content { order: 1; }
.ad-hero-visual  { order: 2; }

/* === 3D iPhone visual === */
.ad-hero-visual {
  position: relative;
  width: 100%;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
}

.ad-phone-glow {
  position: absolute;
  width: 70%;
  height: 70%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(243, 206, 52, 0.32) 0%, transparent 60%);
  filter: blur(60px);
  z-index: 0;
  animation: adGlowPulse 4s ease-in-out infinite;
}
@keyframes adGlowPulse {
  0%, 100% { opacity: 0.7; transform: translate(-50%, -50%) scale(1); }
  50%      { opacity: 1;   transform: translate(-50%, -50%) scale(1.08); }
}

/* iPhone 3D mount — overrides parent .iphone-3d-mount styles */
.ad-iphone-3d-mount {
  position: relative !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 2;
  animation: adPhoneFloat 6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes adPhoneFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}
.ad-iphone-3d-mount canvas {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.45));
}

/* Floating platform chips around the phone */
.ad-platform-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  background: rgba(20, 20, 20, 0.85);
  border: 1px solid var(--ad-line);
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: #fff;
  letter-spacing: 0.3px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  z-index: 5;
  white-space: nowrap;
}
.ad-platform-chip svg { color: var(--ad-gold); }
.ad-chip-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--ad-gold);
  box-shadow: 0 0 8px var(--ad-gold);
}
.ad-chip-ios     { top: 20%;   left: 101px;  animation: adChipFloat 6s ease-in-out infinite; }
.ad-chip-android { top: 22%;   right: 63px;  animation: adChipFloat 7s ease-in-out infinite -1.2s; }
.ad-chip-flutter { bottom: 28%; left: 130px; animation: adChipFloat 8s ease-in-out infinite -2.4s; }
.ad-chip-rn      { bottom: 27%; right: 59px; animation: adChipFloat 7.5s ease-in-out infinite -3.6s; }
@keyframes adChipFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

/* Stat badges near phone */
.ad-stat-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(20, 20, 20, 0.92);
  border: 1px solid var(--ad-line);
  border-radius: 14px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.5);
  z-index: 5;
}
.ad-stat-card-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--ad-gold-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ad-stat-card strong {
  display: block;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
}
.ad-stat-card small {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 10.5px;
  letter-spacing: 0.5px;
  color: var(--ad-text-mute);
  margin-top: 2px;
}
.ad-stat-rating    { top: 40%;    left: 45px;  animation: adCardFloat 8s ease-in-out infinite; }
.ad-stat-downloads { bottom: 49%; right: 77px; animation: adCardFloat 9s ease-in-out infinite -2s; }
@keyframes adCardFloat {
  0%, 100% { transform: translateY(0) rotate(0); }
  50%      { transform: translateY(-8px) rotate(0.5deg); }
}

/* === Hero copy (right) === */
.ad-hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}
.ad-hero-title {
  font-size: clamp(40px, 5.5vw, 76px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0;
  color: #fff;
  text-align: left;
}
.ad-hero-title .gold { font-weight: 700; }
.ad-hero-title .ad-stroke {
  font-weight: 700;
  -webkit-text-stroke: 0;
  color: var(--ad-gold);
}
.ad-hero-desc {
  font-size: 18px;
  line-height: 1.65;
  color: var(--ad-text-dim);
  max-width: 540px;
  margin: 0;
  font-weight: 300;
}
.ad-hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.ad-hero-meta {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--ad-line);
  flex-wrap: wrap;
}
.ad-meta-item { display: flex; flex-direction: column; gap: 2px; }
.ad-meta-num {
  font-size: 26px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.5px;
}
.ad-meta-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--ad-text-mute);
}
.ad-meta-sep { width: 1px; height: 36px; background: var(--ad-line); }

/* Scroll cue */
.ad-scroll-cue {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 5;
}
.ad-scroll-cue-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, transparent, var(--ad-gold));
  position: relative;
  overflow: hidden;
}
.ad-scroll-cue-line::after {
  content: '';
  position: absolute;
  top: -100%; left: 0;
  width: 100%; height: 50%;
  background: var(--ad-gold);
  animation: adScrollLine 2s ease-in-out infinite;
}
@keyframes adScrollLine {
  0%   { top: -50%; }
  100% { top: 100%; }
}
.ad-scroll-cue-text {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--ad-text-mute);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

/* =============================================================
   PLATFORM MARQUEE
   ============================================================= */
.ad-tech {
  padding: 0;
  background: transparent;
  overflow: hidden;
}
.ad-marquee {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0, black 10%, black 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, black 10%, black 90%, transparent 100%);
  padding: 18px 0;
}
.ad-marquee-track {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: adMarquee 44s linear infinite;
}
.ad-marquee:hover .ad-marquee-track { animation-play-state: paused; }
.ad-marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--ad-line);
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--ad-text-dim);
  white-space: nowrap;
  transition: border-color 0.3s ease, color 0.3s ease, background 0.3s ease;
}
.ad-marquee-item:hover {
  border-color: var(--ad-gold-dim);
  color: var(--ad-gold);
  background: var(--ad-gold-soft);
}
.ad-marquee-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ad-gold);
  box-shadow: 0 0 8px var(--ad-gold);
}
@keyframes adMarquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* =============================================================
   WHY MOBILE
   ============================================================= */
.ad-why { padding: 120px 80px; position: relative; }
.ad-why-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  max-width: 1280px;
  margin: 0 auto;
  align-items: center;
  position: relative;
  z-index: 2;
}
.ad-why-left {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.ad-why-title {
  font-size: clamp(34px, 4vw, 56px);
  font-weight: 400;
  line-height: 1.1;
  margin: 0;
  color: #fff;
}
.ad-why-title .gold { font-weight: 700; }
.ad-why-desc {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ad-text-dim);
  margin: 0 0 12px;
  font-weight: 300;
}

.ad-reasons {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding-left: 32px;
}
.ad-reason-line {
  position: absolute;
  top: 18px; bottom: 18px;
  left: 23px;
  width: 2px;
  background: linear-gradient(to bottom, var(--ad-gold), rgba(243, 206, 52, 0.15));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 1.4s var(--ad-ease-smooth);
}
.ad-reasons.is-active .ad-reason-line { transform: scaleY(1); }
.ad-reason {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin-left: -32px;
  padding-left: 8px;
}
.ad-reason-icon {
  position: relative;
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--ad-line);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.5s var(--ad-ease), border-color 0.5s var(--ad-ease);
}
.ad-reason-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--ad-gold);
  transition: opacity 0.4s, transform 0.4s;
}
.ad-reason-check {
  position: absolute;
  color: var(--ad-dark);
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.5s var(--ad-ease) 0.1s, transform 0.5s var(--ad-ease) 0.1s;
}
.ad-reason.is-active .ad-reason-icon {
  background: var(--ad-gold);
  border-color: var(--ad-gold);
}
.ad-reason.is-active .ad-reason-dot { opacity: 0; transform: scale(0); }
.ad-reason.is-active .ad-reason-check { opacity: 1; transform: scale(1); }
.ad-reason-text h3 {
  font-size: 19px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 6px;
  transition: color 0.4s ease;
}
.ad-reason.is-active .ad-reason-text h3 { color: var(--ad-gold); }
.ad-reason-text p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ad-text-mute);
  margin: 0;
}

/* Feature stack on right */
.ad-feature-stack {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 40px;
}
.ad-feature-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(243, 206, 52, 0.18), transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}
.ad-feature-card {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: linear-gradient(145deg, #141414, #0c0c0c);
  border: 1px solid var(--ad-line);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
  transition: transform 0.4s var(--ad-ease), border-color 0.4s ease;
}
.ad-feature-card:hover {
  transform: translateY(-3px);
  border-color: var(--ad-gold-dim);
}
.ad-feature-top       { transform: translateX(-22px) rotate(-3deg);  animation: adFeatFloat 7s ease-in-out infinite; }
.ad-feature-extra-top { transform: translateX(-10px) rotate(-1.5deg); animation: adFeatFloat 7s ease-in-out infinite -1.4s; }
.ad-feature-mid       { transform: translateX(0)      rotate(0deg);   animation: adFeatFloat 7s ease-in-out infinite -2.8s; }
.ad-feature-extra-bot { transform: translateX(10px)  rotate(1.5deg);  animation: adFeatFloat 7s ease-in-out infinite -4.2s; }
.ad-feature-bot       { transform: translateX(22px)  rotate(3deg);    animation: adFeatFloat 7s ease-in-out infinite -5.6s; }
@keyframes adFeatFloat {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -8px; }
}
.ad-feature-icon-wrap {
  width: 44px; height: 44px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--ad-line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ad-text);
}
.ad-feature-icon-wrap .material-symbols-outlined { font-size: 22px; }
.ad-feature-icon-gold {
  background: var(--ad-gold-soft);
  border-color: var(--ad-gold-dim);
  color: var(--ad-gold);
}
.ad-feature-title {
  font-size: 14.5px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 2px;
}
.ad-feature-card p {
  font-size: 12.5px;
  color: var(--ad-text-mute);
  margin: 0;
  line-height: 1.4;
}
.ad-feature-time {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: var(--ad-text-mute);
}
.ad-feature-pulse {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.18);
  animation: adPulse 1.6s ease-in-out infinite;
}
.ad-feature-check {
  font-size: 22px !important;
  color: #4ade80;
}

/* =============================================================
   SECTION HEADER (shared)
   ============================================================= */
.ad-section-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  max-width: 760px;
  margin: 0 auto 70px;
  position: relative;
  z-index: 2;
}
.ad-section-header h2 {
  font-size: clamp(36px, 4.5vw, 64px);
  font-weight: 400;
  line-height: 1.1;
  margin: 0;
  color: #fff;
  letter-spacing: -0.5px;
}
.ad-section-header h2 .gold { font-weight: 700; }
.ad-section-header p {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ad-text-dim);
  margin: 0;
  font-weight: 300;
}

/* =============================================================
   ARSENAL
   ============================================================= */
.ad-arsenal { padding: 120px 80px; position: relative; }
.ad-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.ad-service-card {
  position: relative;
  padding: 32px 28px;
  background: linear-gradient(145deg, #131313, #0d0d0d);
  border: 1px solid var(--ad-line);
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.5s var(--ad-ease-smooth), border-color 0.4s ease, box-shadow 0.4s ease;
}
.ad-service-card:hover {
  border-color: var(--ad-gold-dim);
  transform: translateY(-6px);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.4),
    0 0 0 1px var(--ad-gold-dim) inset;
}
.ad-service-glow {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%) translateY(-50%);
  width: 200px; height: 200px;
  background: var(--ad-gold);
  filter: blur(80px);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.ad-service-card:hover .ad-service-glow { opacity: 0.18; }
.ad-service-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--ad-gold-soft);
  border: 1px solid var(--ad-gold-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ad-gold);
  margin-bottom: 22px;
  transition: transform 0.4s var(--ad-ease), background 0.4s ease;
}
.ad-service-icon .material-symbols-outlined { font-size: 26px; }
.ad-service-card:hover .ad-service-icon {
  transform: rotate(-6deg) scale(1.08);
  background: var(--ad-gold);
  color: var(--ad-dark);
}
.ad-service-title {
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 10px;
  color: #fff;
  letter-spacing: -0.3px;
}
.ad-service-desc {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ad-text-mute);
  margin: 0 0 18px;
}
.ad-service-tags {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ad-service-tags li {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--ad-line);
  border-radius: 6px;
  color: var(--ad-text-mute);
  transition: color 0.3s ease, border-color 0.3s ease;
}
.ad-service-card:hover .ad-service-tags li {
  color: var(--ad-gold);
  border-color: var(--ad-gold-dim);
}
.ad-service-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--ad-gold);
  text-transform: uppercase;
  transition: gap 0.3s var(--ad-ease);
}
.ad-service-link:hover { gap: 14px; }

/* =============================================================
   PROCESS TIMELINE
   ============================================================= */
.ad-process { padding: 120px 80px; position: relative; }
.ad-timeline {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  z-index: 2;
}
.ad-timeline-line {
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, transparent 0%, var(--ad-gold) 8%, var(--ad-gold) 92%, transparent 100%);
  transform: translateX(-50%) scaleY(0);
  transform-origin: top;
  transition: transform 1.8s var(--ad-ease-smooth);
}
.ad-timeline.is-active .ad-timeline-line { transform: translateX(-50%) scaleY(1); }
.ad-tl-row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  margin-bottom: 40px;
  align-items: center;
}
.ad-tl-row:last-child { margin-bottom: 0; }
.ad-tl-left .ad-tl-card  { grid-column: 1; text-align: right; }
.ad-tl-right .ad-tl-card { grid-column: 2; text-align: left; }
.ad-tl-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--ad-dark);
  border: 2px solid var(--ad-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.5s var(--ad-ease), box-shadow 0.4s ease;
  z-index: 3;
}
.ad-tl-dot.is-active {
  transform: translate(-50%, -50%) scale(1);
  box-shadow: 0 0 0 6px rgba(243, 206, 52, 0.12), 0 0 24px rgba(243, 206, 52, 0.5);
}
.ad-tl-dot span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 700;
  color: var(--ad-gold);
}
.ad-tl-card {
  background: linear-gradient(145deg, #131313, #0d0d0d);
  border: 1px solid var(--ad-line);
  border-radius: 16px;
  padding: 28px;
  transition: transform 0.4s var(--ad-ease), border-color 0.4s ease, box-shadow 0.4s ease;
}
.ad-tl-card:hover {
  transform: translateY(-4px);
  border-color: var(--ad-gold-dim);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}
.ad-tl-icon {
  font-size: 30px !important;
  color: var(--ad-gold);
  margin-bottom: 12px;
  display: block;
}
.ad-tl-left .ad-tl-icon { margin-left: auto; }
.ad-tl-card h3 {
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 8px;
  letter-spacing: -0.2px;
}
.ad-tl-card p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ad-text-mute);
  margin: 0;
}

/* =============================================================
   STATS
   ============================================================= */
.ad-stats {
  padding: 120px 80px;
  position: relative;
  overflow: hidden;
  background: transparent;
}
.ad-stats-header {
  text-align: center;
  margin-bottom: 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  position: relative;
  z-index: 2;
}
.ad-stats-header h2 {
  font-size: clamp(36px, 4.5vw, 64px);
  font-weight: 400;
  margin: 0;
  color: #fff;
  letter-spacing: -0.5px;
}
.ad-stats-header h2 .gold { font-weight: 700; }
.ad-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.ad-stat {
  text-align: center;
  padding: 40px 24px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--ad-line);
  border-radius: 18px;
  transition: transform 0.4s var(--ad-ease), border-color 0.4s ease, background 0.4s ease;
}
.ad-stat:hover {
  transform: translateY(-6px);
  border-color: var(--ad-gold-dim);
  background: linear-gradient(145deg, rgba(243, 206, 52, 0.04), rgba(255, 255, 255, 0.01));
}
.ad-stat-num {
  font-size: clamp(40px, 5vw, 60px);
  font-weight: 700;
  color: #fff;
  letter-spacing: -2px;
  margin-bottom: 12px;
}
.ad-stat-label {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  letter-spacing: 1.5px;
  color: var(--ad-text-mute);
  text-transform: uppercase;
}

/* =============================================================
   CTA (matches SMM / WD)
   ============================================================= */
.ad-cta-wrapper {
  background: #f3ce34;
  padding: 0;
  position: relative;
  overflow: hidden;
}
.ad-cta-section {
  background: transparent;
  padding: 100px 40px;
  text-align: center;
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
}
.ad-cta-section h2 {
  color: #151515;
  font-size: 48px;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  line-height: 1.15;
  margin: 0 0 24px;
  letter-spacing: -0.5px;
}
.ad-cta-section > p {
  color: #151515;
  font-size: 18px;
  line-height: 1.55;
  margin: 0 auto 36px;
  font-weight: 400;
  max-width: 640px;
}
.ad-cta-actions {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 28px;
}
.ad-cta-btn-dark,
.ad-cta-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 40px;
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.2px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease;
}
.ad-cta-btn-dark {
  background: #151515;
  color: #fff;
}
.ad-cta-btn-dark:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}
.ad-cta-btn-outline {
  background: transparent;
  color: #151515;
  border: 2px solid #151515;
}
.ad-cta-btn-outline:hover {
  background: #151515;
  color: #f3ce34;
  transform: translateY(-3px);
}
.ad-cta-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  color: #151515;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 500;
  margin-top: 12px;
}
.ad-cta-status-item { display: inline-flex; align-items: center; }
.ad-cta-status-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #1f7a34;
  margin-right: 8px;
  box-shadow: 0 0 0 3px rgba(31, 122, 52, 0.2);
}
.ad-cta-status-sep {
  opacity: 0.5;
  color: #151515;
}

/* =============================================================
   REVEAL ANIMATION
   ============================================================= */
[data-reveal] {
  opacity: 0;
  will-change: opacity, transform;
  transition-property: opacity, transform;
  transition-timing-function: var(--ad-ease);
}
[data-reveal="fade-up"]    { transform: translateY(40px);  transition-duration: 0.8s; }
[data-reveal="slide-left"] { transform: translateX(-60px); transition-duration: 0.8s; }
[data-reveal="slide-right"]{ transform: translateX(60px);  transition-duration: 0.8s; }
[data-reveal="scale"]      { transform: scale(0.92);       transition-duration: 0.7s; }
[data-reveal].in-view { opacity: 1; transform: none; }

[data-delay="1"] { transition-delay: 0.08s; }
[data-delay="2"] { transition-delay: 0.16s; }
[data-delay="3"] { transition-delay: 0.24s; }
[data-delay="4"] { transition-delay: 0.32s; }
[data-delay="5"] { transition-delay: 0.40s; }
[data-delay="6"] { transition-delay: 0.48s; }

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 1200px) {
  .ad-services-grid { grid-template-columns: repeat(2, 1fr); }
  .ad-page-wrap .top-left-image img,
  .ad-page-wrap .top-right-ai-image img { max-width: 220px; }
}

@media (max-width: 1024px) {
  .ad-hero,
  .ad-why,
  .ad-arsenal,
  .ad-process,
  .ad-stats { padding: 100px 40px; }
  .ad-hero { padding-top: 120px; }
  .ad-why-wrapper { grid-template-columns: 1fr; gap: 60px; }

  /* Stack hero: keep iPhone visible but reorder copy first */
  .ad-hero-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }
  .ad-hero-content   { order: 1; display: contents; }
  .ad-hero-content .ad-badge        { order: 1; margin-bottom: 22px; }
  .ad-hero-content .ad-hero-title   { order: 2; margin-bottom: 22px; }
  .ad-hero-content .ad-hero-desc    { order: 3; margin-bottom: 32px; max-width: none; }
  .ad-hero-visual                   { order: 4; height: 500px; margin: 0 auto 32px; max-width: 460px; width: 100%; align-self: center; }
  .ad-hero-content .ad-hero-actions { order: 5; margin: 0 0 24px; }
  .ad-hero-content .ad-hero-meta    { order: 6; }

  .ad-hero-title { font-size: 54px; }
  .ad-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .ad-cta-section { padding: 80px 32px; }
  .ad-cta-section h2 { font-size: 40px; }
  .ad-page-wrap .top-left-image,
  .ad-page-wrap .top-right-ai-image { opacity: 0.55; }
  .ad-page-wrap .top-left-image img,
  .ad-page-wrap .top-right-ai-image img { max-width: 170px; }
  .ad-scroll-cue { display: none; }
}

@media (max-width: 768px) {
  .ad-why,
  .ad-arsenal,
  .ad-process,
  .ad-stats { padding: 80px 24px; }
  .ad-hero {
    min-height: auto;
    padding: 100px 24px 60px;
    align-items: flex-start;
  }
  .ad-hero-title { font-size: 42px; }
  .ad-hero-desc { font-size: 16px; }
  .ad-hero-meta { display: none !important; }
  /* Hide entire 3D phone visual on mobile (chips, stat cards, model) */
  .ad-hero-visual { display: none !important; }
  .ad-services-grid { grid-template-columns: 1fr; }
  .ad-tl-row { grid-template-columns: 1fr; gap: 0; padding-left: 60px; }
  .ad-tl-left .ad-tl-card,
  .ad-tl-right .ad-tl-card { grid-column: 1; text-align: left; }
  .ad-tl-left .ad-tl-icon { margin-left: 0; }
  .ad-tl-dot { left: 28px; transform: translate(-50%, 0) scale(0); top: 8px; }
  .ad-tl-dot.is-active { transform: translate(-50%, 0) scale(1); }
  .ad-timeline-line { left: 28px; }
  .ad-feature-stack { padding: 24px 0; }
  .ad-feature-top       { transform: translateX(-12px) rotate(-2deg); }
  .ad-feature-extra-top { transform: translateX(-6px)  rotate(-1deg); }
  .ad-feature-extra-bot { transform: translateX(6px)   rotate(1deg); }
  .ad-feature-bot       { transform: translateX(12px)  rotate(2deg); }
  .ad-stats-grid { grid-template-columns: 1fr; gap: 14px; }
  .ad-stat { padding: 30px 20px; }
  .ad-cta-section { padding: 60px 24px; }
  .ad-cta-section h2 { font-size: 32px; margin-bottom: 18px; }
  .ad-cta-section > p { font-size: 16px; margin-bottom: 28px; }
  .ad-cta-btn-dark,
  .ad-cta-btn-outline { padding: 14px 28px; font-size: 13px; }
  .ad-cta-status { font-size: 13px; gap: 8px; }
}

@media (max-width: 640px) {
  .ad-page-wrap .top-left-image,
  .ad-page-wrap .top-right-ai-image { display: none; }
  .ad-chip-ios     { top: 5%;  left: 0; }
  .ad-chip-android { top: 18%; right: 0; }
  .ad-chip-flutter { bottom: 30%; left: 0; }
  .ad-chip-rn      { bottom: 8%; right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
