/* =========================================================
   Our Works — full-screen scroll showcase
   ========================================================= */

.ow {
  --ow-bg: #070a16;
  --ow-bg-2: #0d1226;
  --ow-text: #f5f7ff;
  --ow-muted: #aab2d5;
  --ow-card: rgba(255, 255, 255, .04);
  --ow-border: rgba(255, 255, 255, .12);

  position: relative;
  background: var(--ow-bg);
  color: var(--ow-text);
  overflow-x: clip;
  font-family: inherit;
}

.ow *,
.ow *::before,
.ow *::after { box-sizing: border-box; }

/* Document-level snap: friendly proximity so hero/footer still scroll freely */
html.ow-snap { scroll-snap-type: y proximity; scroll-behavior: smooth; }
html.ow-snap .ow-panel { scroll-snap-align: center; }

/* ============ HERO ============ */
.ow-hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 96px 20px 64px;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% 0%, #141a3a 0%, var(--ow-bg) 60%);
}

.ow-hero__bg { position: absolute; inset: 0; z-index: 0; }
.ow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .55;
  animation: ow-float 14s ease-in-out infinite;
}
.ow-orb--1 { width: 380px; height: 380px; background: #4f46e5; top: -60px; left: 6%; }
.ow-orb--2 { width: 320px; height: 320px; background: #0ea5e9; bottom: -40px; right: 8%; animation-delay: -4s; }
.ow-orb--3 { width: 260px; height: 260px; background: #ec4899; top: 30%; left: 55%; animation-delay: -8s; }

@keyframes ow-float {
  0%, 100% { transform: translateY(0) translateX(0) scale(1); }
  50%      { transform: translateY(-30px) translateX(20px) scale(1.08); }
}

.ow-hero__inner { position: relative; z-index: 1; max-width: 860px; }

.ow-hero__eyebrow {
  display: inline-block;
  letter-spacing: .28em;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 700;
  color: var(--ow-muted);
  padding: 8px 16px;
  border: 1px solid var(--ow-border);
  border-radius: 999px;
  margin-bottom: 22px;
}

.ow-hero__title {
  font-size: clamp(34px, 6vw, 68px);
  line-height: 1.05;
  font-weight: 800;
  margin: 0 0 18px;
  background: linear-gradient(120deg, #fff 20%, #9db4ff 60%, #c9a3ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ow-hero__sub {
  font-size: clamp(16px, 2.2vw, 20px);
  color: var(--ow-muted);
  max-width: 640px;
  margin: 0 auto 34px;
  line-height: 1.6;
}

.ow-hero__chips {
  list-style: none;
  margin: 0 0 44px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.ow-hero__chips li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  font-size: 14px;
  font-weight: 600;
  background: var(--ow-card);
  border: 1px solid var(--ow-border);
  border-radius: 999px;
  backdrop-filter: blur(6px);
}
.ow-hero__chip-emoji { font-size: 16px; }

.ow-hero__scroll {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--ow-muted);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.ow-hero__scroll i { animation: ow-bounce 1.8s ease-in-out infinite; font-size: 18px; }
@keyframes ow-bounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(8px); } }

/* ============ SIDE PROGRESS DOTS ============ */
.ow-dots {
  position: fixed;
  top: 50%;
  right: clamp(12px, 2.5vw, 34px);
  transform: translateY(-50%);
  z-index: 40;
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s ease;
}
.ow-dots.is-visible { opacity: 1; pointer-events: auto; }
.ow-dots ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.ow-dots a {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-direction: row-reverse;
  text-decoration: none;
  color: var(--ow-muted);
}
.ow-dots__bullet {
  width: 11px; height: 11px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.5);
  transition: transform .3s ease, background .3s ease, border-color .3s ease;
}
.ow-dots__num {
  font-size: 12px;
  font-weight: 700;
  opacity: 0;
  transform: translateX(6px);
  transition: opacity .3s ease, transform .3s ease;
}
.ow-dots a:hover .ow-dots__num,
.ow-dots a.is-active .ow-dots__num { opacity: 1; transform: translateX(0); }
.ow-dots a.is-active .ow-dots__bullet {
  background: #fff;
  border-color: #fff;
  transform: scale(1.5);
}

/* ============ WORK PANELS ============ */
.ow-stage { position: relative; }

.ow-panel {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 90px 20px;
  overflow: hidden;
  background:
    radial-gradient(120% 100% at 80% 10%, color-mix(in srgb, var(--accent) 26%, transparent) 0%, transparent 55%),
    radial-gradient(120% 100% at 10% 90%, color-mix(in srgb, var(--accent2) 22%, transparent) 0%, transparent 55%),
    var(--ow-bg);
  border-top: 1px solid var(--ow-border);
}

/* Big ghost number watermark */
.ow-panel__ghost {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(220px, 48vw, 620px);
  font-weight: 900;
  line-height: 1;
  color: rgba(255, 255, 255, .035);
  z-index: 0;
  pointer-events: none;
  user-select: none;
}

.ow-panel__inner {
  position: relative;
  z-index: 1;
  width: min(1140px, 100%);
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
}
.ow-panel--alt .ow-panel__inner { grid-template-columns: 1.05fr 0.95fr; }
.ow-panel--alt .ow-panel__visual { order: 2; }
.ow-panel--alt .ow-panel__content { order: 1; }

/* ----- reveal animation (driven by JS .is-active) ----- */
.ow-panel [data-reveal] {
  opacity: 0;
  transform: translateY(46px);
  transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
}
.ow-panel [data-reveal="visual"] { transform: translateY(46px) scale(.94); }
.ow-panel.is-active [data-reveal] { opacity: 1; transform: translateY(0) scale(1); }
.ow-panel.is-active [data-reveal="content"] { transition-delay: .12s; }

/* ----- phone mockup ----- */
.ow-panel__visual { display: grid; place-items: center; }
.ow-phone {
  position: relative;
  width: clamp(220px, 26vw, 300px);
  aspect-ratio: 9 / 19;
  border-radius: 38px;
  padding: 14px;
  background: linear-gradient(160deg, #1b2140, #0a0e20);
  border: 1px solid var(--ow-border);
  box-shadow:
    0 40px 80px -30px rgba(0,0,0,.8),
    0 0 0 6px rgba(255,255,255,.02),
    0 0 90px -20px color-mix(in srgb, var(--accent) 60%, transparent);
  animation: ow-phonefloat 6s ease-in-out infinite;
}
@keyframes ow-phonefloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

.ow-phone__notch {
  position: absolute;
  top: 16px; left: 50%;
  transform: translateX(-50%);
  width: 96px; height: 18px;
  background: #05070f;
  border-radius: 0 0 14px 14px;
  z-index: 2;
}
.ow-phone__screen {
  height: 100%;
  border-radius: 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  padding: 24px;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 50% 0%, color-mix(in srgb, var(--accent) 55%, transparent), transparent 70%),
    linear-gradient(160deg, color-mix(in srgb, var(--accent) 30%, #0a0e20), color-mix(in srgb, var(--accent2) 28%, #0a0e20));
}
/* When a real app screenshot is provided, let it fill the whole screen */
.ow-phone--img .ow-phone__screen { padding: 0; gap: 0; }
.ow-phone__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 26px;
}
.ow-phone__emoji { font-size: clamp(40px, 6vw, 60px); }
.ow-phone__icon { font-size: clamp(28px, 4vw, 40px); color: #fff; opacity: .95; }
.ow-phone__name { font-weight: 700; font-size: 15px; line-height: 1.3; }
.ow-phone__store {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ow-text);
  background: rgba(0,0,0,.35);
  padding: 6px 12px;
  border-radius: 999px;
}

/* ----- content ----- */
.ow-panel__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.ow-panel__tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--accent) 50%, #fff);
  padding: 7px 14px;
  border: 1px solid var(--ow-border);
  border-radius: 999px;
}
.ow-panel__country {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  padding: 7px 14px;
  border: 1px solid var(--ow-border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
}
.ow-panel__flag {
  font-size: 16px;
  line-height: 1;
}
.ow-panel__title {
  font-size: clamp(26px, 3.6vw, 42px);
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 12px;
}
.ow-panel__concept {
  font-size: clamp(18px, 2.4vw, 24px);
  font-weight: 600;
  margin: 0 0 16px;
  background: linear-gradient(100deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.ow-panel__details {
  font-size: clamp(15px, 1.8vw, 17px);
  line-height: 1.7;
  color: var(--ow-muted);
  margin: 0 0 24px;
  max-width: 56ch;
}

.ow-panel__features {
  list-style: none;
  margin: 0 0 30px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px;
  max-width: 540px;
}
.ow-panel__features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
}
.ow-panel__features i {
  flex: none;
  width: 24px; height: 24px;
  display: grid; place-items: center;
  border-radius: 50%;
  font-size: 11px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
}

.ow-panel__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ============ BUTTONS ============ */
.ow-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 24px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  border: 1px solid transparent;
}
.ow-btn:hover { transform: translateY(-2px); }
.ow-btn--primary {
  color: #fff;
  background: linear-gradient(120deg, var(--accent, #4f46e5), var(--accent2, #06b6d4));
  box-shadow: 0 14px 30px -12px color-mix(in srgb, var(--accent, #4f46e5) 80%, transparent);
}
.ow-btn--ghost {
  color: var(--ow-text);
  background: rgba(255,255,255,.04);
  border-color: var(--ow-border);
}
.ow-btn--ghost:hover { background: rgba(255,255,255,.09); }

/* ============ CLOSING CTA ============ */
.ow-cta {
  position: relative;
  padding: clamp(70px, 12vw, 130px) 20px;
  text-align: center;
  background:
    radial-gradient(100% 120% at 50% 0%, #1a2147 0%, var(--ow-bg) 70%);
  border-top: 1px solid var(--ow-border);
}
.ow-cta__inner { max-width: 680px; margin: 0 auto; }
.ow-cta h2 { font-size: clamp(28px, 4.5vw, 46px); font-weight: 800; margin: 0 0 16px; }
.ow-cta p { font-size: clamp(16px, 2vw, 18px); color: var(--ow-muted); line-height: 1.6; margin: 0 0 30px; }
.ow-cta__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ============ RESPONSIVE ============ */
@media (max-width: 880px) {
  html.ow-snap { scroll-snap-type: none; }
  .ow-panel { min-height: auto; padding: 72px 18px; }
  .ow-panel__inner,
  .ow-panel--alt .ow-panel__inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 36px;
  }
  .ow-panel--alt .ow-panel__visual,
  .ow-panel--alt .ow-panel__content { order: initial; }
  .ow-panel__visual { order: -1; }
  .ow-panel__details { margin-left: auto; margin-right: auto; }
  .ow-panel__features { margin-left: auto; margin-right: auto; justify-items: start; }
  .ow-panel__features li { text-align: left; }
  .ow-panel__actions { justify-content: center; }
  .ow-dots { display: none; }
}

@media (max-width: 520px) {
  .ow-panel__features { grid-template-columns: 1fr; }
  .ow-hero__chips li { font-size: 13px; }
}

/* ============ MOTION-SAFE ============ */
@media (prefers-reduced-motion: reduce) {
  .ow-orb, .ow-phone, .ow-hero__scroll i { animation: none !important; }
  .ow-panel [data-reveal] { opacity: 1; transform: none; transition: none; }
  html.ow-snap { scroll-snap-type: none; scroll-behavior: auto; }
}
