/* dyin.online — brand official site */
:root {
  --bg: #05060a;
  --bg-2: #0b0d14;
  --bg-3: #12141f;
  --surface: rgba(255, 255, 255, 0.04);
  --line: rgba(255, 255, 255, 0.08);
  --text: #f4f6fb;
  --muted: #9aa3b5;
  --cyan: #00f2ea;
  --magenta: #fe2c55;
  --gold: #f5c542;
  --glow-c: rgba(0, 242, 234, 0.35);
  --glow-m: rgba(254, 44, 85, 0.35);
  --radius: 16px;
  --nav-h: 64px;
  --dl-h: 68px;
  --font: "Outfit", "Noto Sans SC", sans-serif;
  --display: "Syne", "Noto Sans SC", sans-serif;
  --max: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  padding-top: calc(var(--nav-h) + var(--dl-h));
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan); text-decoration: none; transition: color .2s, opacity .2s; }
a:hover { color: #7ff9f4; }
h1, h2, h3 { font-family: var(--display); line-height: 1.25; font-weight: 700; margin: 0 0 .6em; }
h1 { font-size: clamp(1.85rem, 5vw, 3rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.45rem, 3.2vw, 2.1rem); }
h3 { font-size: clamp(1.1rem, 2.2vw, 1.35rem); }
p { margin: 0 0 1.1em; color: var(--muted); }
.wrap { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

/* Nav */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  background: rgba(5, 6, 10, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.site-nav .inner {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
  width: min(100% - 1.5rem, var(--max)); margin-inline: auto; gap: 1rem;
}
.brand {
  display: flex; align-items: center; gap: .65rem;
  color: var(--text); font-family: var(--display); font-weight: 700; font-size: 1.15rem;
}
.brand img { width: 36px; height: 36px; border-radius: 10px; object-fit: cover; }
.nav-links { display: flex; align-items: center; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--muted); font-size: .92rem; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-cta {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .55rem 1.05rem; border-radius: 999px;
  background: linear-gradient(135deg, var(--magenta), #ff6b8a 45%, var(--cyan));
  color: #fff !important; font-weight: 600; font-size: .88rem;
  box-shadow: 0 0 24px var(--glow-m);
}
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  color: var(--text); width: 42px; height: 42px; border-radius: 10px; cursor: pointer;
}

/* Sticky download bar */
.dl-bar {
  position: fixed; top: var(--nav-h); left: 0; right: 0; z-index: 999;
  height: var(--dl-h);
  background: linear-gradient(90deg, rgba(12,14,24,.96), rgba(18,10,20,.96));
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.dl-bar .inner {
  height: 100%;
  width: min(100% - 1rem, var(--max)); margin-inline: auto;
  display: flex; align-items: center; gap: .75rem; overflow-x: auto;
  scrollbar-width: none;
}
.dl-bar .inner::-webkit-scrollbar { display: none; }
.dl-item {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .4rem .75rem .4rem .4rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: .82rem; white-space: nowrap;
}
.dl-item img { width: 36px; height: 36px; border-radius: 10px; object-fit: cover; }
.dl-item.primary {
  background: linear-gradient(135deg, rgba(254,44,85,.2), rgba(0,242,234,.12));
  border-color: rgba(254,44,85,.45);
  box-shadow: 0 0 18px rgba(254,44,85,.15);
}
.dl-item .tag {
  font-size: .68rem; padding: .15rem .4rem; border-radius: 6px;
  background: rgba(254,44,85,.2); color: #ff8aa3;
}
.dl-item.primary .tag { background: rgba(0,242,234,.18); color: var(--cyan); }
.dl-item .hot { background: rgba(245,197,66,.18); color: var(--gold); }

/* Hero */
.hero {
  position: relative;
  min-height: calc(100svh - var(--nav-h) - var(--dl-h));
  display: grid; align-items: center;
  overflow: visible;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(ellipse 70% 55% at 75% 40%, rgba(254,44,85,.22), transparent 60%),
    radial-gradient(ellipse 55% 50% at 15% 70%, rgba(0,242,234,.16), transparent 55%),
    linear-gradient(180deg, #07080f 0%, #05060a 100%);
}
.hero::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 75%);
  animation: gridDrift 28s linear infinite;
  opacity: .5;
}
@keyframes gridDrift {
  from { transform: translateY(0); }
  to { transform: translateY(48px); }
}
.hero-grid {
  display: grid; gap: 2.5rem; align-items: center;
  padding: 2.5rem 0 3.5rem;
}
@media (min-width: 920px) {
  .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 3rem; padding: 3rem 0 4rem; }
}
.hero-brand {
  display: inline-flex; align-items: center; gap: .7rem;
  margin-bottom: 1rem;
  font-family: var(--display); font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 800;
  letter-spacing: .02em;
}
.hero-brand img { width: 48px; height: 48px; border-radius: 14px; }
.hero-brand span {
  background: linear-gradient(90deg, #fff, var(--cyan) 55%, var(--magenta));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero h1 { margin-bottom: .75rem; }
.hero .lead {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: #c7cedd; margin-bottom: 1.25rem; max-width: 36em;
}
.hero-intro { max-width: 38em; margin-bottom: 1.5rem; }
.sell-list {
  list-style: none; margin: 0 0 1.75rem; padding: 0;
  display: grid; gap: .55rem;
}
.sell-list li {
  display: flex; gap: .65rem; align-items: flex-start;
  color: #d5dbe8; font-size: .95rem;
}
.sell-list li::before {
  content: ""; flex: 0 0 8px; width: 8px; height: 8px; margin-top: .55rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--magenta));
  box-shadow: 0 0 10px var(--glow-c);
}
.cta-row { display: flex; flex-wrap: wrap; gap: .85rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  padding: .85rem 1.35rem; border-radius: 14px; font-weight: 650; font-size: .95rem;
  border: 1px solid transparent; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--magenta), #ff5d7d 40%, #19d6cf);
  box-shadow: 0 10px 36px rgba(254,44,85,.35);
}
.btn-ghost {
  color: var(--text); background: rgba(255,255,255,.04); border-color: var(--line);
}
.btn-ghost:hover { border-color: rgba(0,242,234,.4); color: var(--cyan); }

/* Phone stack */
.phone-stack {
  position: relative;
  z-index: 2;
  width: min(100%, 420px);
  min-height: 480px;
  height: 520px;
  margin-inline: auto;
}
@media (max-width: 919px) {
  .phone-stack {
    width: min(100%, 340px);
    height: 420px;
    min-height: 420px;
  }
}
img.phone {
  position: absolute;
  display: block;
  width: 210px;
  height: auto;
  max-width: none;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.14);
  background: #15151d;
  object-fit: cover;
  object-position: top center;
}
img.phone-main {
  right: 4%;
  top: 0;
  z-index: 3;
  box-shadow:
    0 30px 60px rgba(0,0,0,.55),
    0 0 40px rgba(254,44,85,.18),
    0 0 80px rgba(0,242,234,.08);
  animation: floatMain 5.5s ease-in-out infinite;
}
img.phone-back {
  left: 2%;
  top: 36px;
  z-index: 2;
  width: 190px;
  transform: rotate(-7deg);
  filter: brightness(.85) saturate(.92);
  box-shadow: 0 20px 40px rgba(0,0,0,.45);
  animation: floatBack 6.5s ease-in-out infinite;
}
@media (max-width: 919px) {
  img.phone-main { width: 180px; }
  img.phone-back { width: 160px; top: 28px; }
}
@keyframes floatMain {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes floatBack {
  0%,100% { transform: rotate(-7deg) translateY(0); }
  50% { transform: rotate(-7deg) translateY(8px); }
}

/* Sections */
.section { padding: 4.5rem 0; position: relative; }
.section.alt {
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(0,242,234,.06), transparent 60%),
    var(--bg-2);
}
.section-head { max-width: 40rem; margin-bottom: 2rem; }
.section-head p { margin-bottom: 0; }
.eyebrow {
  display: inline-block; margin-bottom: .65rem;
  font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--cyan);
}

/* Feature / content layouts */
.prose { max-width: 48rem; }
.prose p, .article-block p { color: var(--muted); }
.prose strong, .article-block strong { color: #e8ecf5; font-weight: 600; }
.article-block { margin-bottom: 2rem; }
.article-block h2, .article-block h3 { color: var(--text); }

.split {
  display: grid; gap: 2rem; align-items: center;
}
@media (min-width: 860px) {
  .split { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .split.reverse .copy { order: 2; }
}
.media-frame {
  border-radius: 20px; overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(0,0,0,.4), 0 0 0 1px rgba(0,242,234,.05);
  background: var(--bg-3);
}
.media-frame img { width: 100%; aspect-ratio: 9/16; max-height: 520px; object-fit: cover; object-position: top; margin-inline: auto; }
@media (min-width: 860px) {
  .media-frame img { max-height: 560px; }
}

.advantage-grid {
  display: grid; gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .advantage-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .advantage-grid { grid-template-columns: repeat(3, 1fr); }
}
.advantage {
  padding: 1.35rem 1.25rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}
.advantage h3 { margin-bottom: .45rem; font-size: 1.05rem; }
.advantage p { margin: 0; font-size: .92rem; }

/* Video wall */
.video-wall {
  display: grid; gap: .9rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 720px) {
  .video-wall { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1000px) {
  .video-wall { grid-template-columns: repeat(5, 1fr); }
}
.v-card {
  position: relative; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line); background: #0e1018;
  aspect-ratio: 3/4;
}
.v-card img { width: 100%; height: 100%; object-fit: cover; }
.v-card figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 2.2rem .7rem .65rem;
  background: linear-gradient(transparent, rgba(0,0,0,.85));
  font-size: .72rem; color: #e8e8ee;
  line-height: 1.35;
}

/* Feature chips strip */
.chip-row {
  display: flex; flex-wrap: wrap; gap: .55rem; margin: 1.25rem 0 0;
}
.chip {
  padding: .35rem .7rem; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255,255,255,.03);
  color: #c9d0e0; font-size: .8rem;
}

/* UX steps */
.steps { display: grid; gap: 1rem; counter-reset: step; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step {
  padding: 1.4rem 1.2rem; border-radius: var(--radius);
  border: 1px solid var(--line); background: rgba(255,255,255,.03);
  position: relative;
}
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block; margin-bottom: .7rem;
  font-family: var(--display); font-size: 1.4rem; font-weight: 800;
  background: linear-gradient(90deg, var(--cyan), var(--magenta));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.step h3 { font-size: 1.05rem; }
.step p { margin: 0; font-size: .92rem; }

/* CTA band */
.cta-band {
  position: relative; overflow: hidden;
  padding: 3.5rem 0;
  border-block: 1px solid var(--line);
  background:
    radial-gradient(ellipse 50% 80% at 20% 50%, rgba(254,44,85,.2), transparent 55%),
    radial-gradient(ellipse 50% 80% at 80% 50%, rgba(0,242,234,.16), transparent 55%),
    var(--bg-3);
  text-align: center;
}
.cta-band h2 { margin-bottom: .6rem; }
.cta-band p { max-width: 36rem; margin: 0 auto 1.5rem; }
.cta-apps {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem;
}

/* FAQ */
.faq { display: grid; gap: .75rem; max-width: 48rem; }
.faq details {
  border: 1px solid var(--line); border-radius: 14px;
  background: rgba(255,255,255,.03); padding: 1rem 1.15rem;
}
.faq summary {
  cursor: pointer; font-weight: 600; color: var(--text);
  list-style: none; display: flex; justify-content: space-between; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--cyan); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: .85rem 0 0; font-size: .94rem; }

/* Related / breadcrumb */
.breadcrumb {
  padding: 1.25rem 0 .5rem; font-size: .85rem; color: var(--muted);
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb span { color: var(--text); }
.related {
  display: grid; gap: .75rem;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) { .related { grid-template-columns: repeat(3, 1fr); } }
.related a {
  display: block; padding: 1rem 1.1rem; border-radius: 14px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
}
.related a:hover { border-color: rgba(0,242,234,.35); color: var(--cyan); }
.related small { display: block; color: var(--muted); margin-top: .35rem; font-size: .8rem; }

/* Page hero (inner) */
.page-hero {
  padding: 2.5rem 0 1.5rem;
  background:
    radial-gradient(ellipse 50% 80% at 70% 0%, rgba(254,44,85,.15), transparent 55%),
    radial-gradient(ellipse 40% 60% at 10% 40%, rgba(0,242,234,.1), transparent 50%);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { margin-bottom: .5rem; }
.page-hero p { max-width: 40rem; margin: 0; }

/* Download page apps */
.app-list { display: grid; gap: 1rem; }
.app-row {
  display: grid; gap: 1rem; align-items: center;
  padding: 1.25rem; border-radius: 18px;
  border: 1px solid var(--line); background: rgba(255,255,255,.03);
}
@media (min-width: 700px) {
  .app-row { grid-template-columns: auto 1fr auto; }
}
.app-row img { width: 72px; height: 72px; border-radius: 18px; object-fit: cover; }
.app-row h2 { font-size: 1.2rem; margin-bottom: .25rem; }
.app-row p { margin: 0; font-size: .9rem; }
.app-row.featured {
  border-color: rgba(254,44,85,.4);
  background: linear-gradient(135deg, rgba(254,44,85,.12), rgba(0,242,234,.06));
  box-shadow: 0 0 40px rgba(254,44,85,.08);
}

/* Legal */
.legal { max-width: 48rem; padding-bottom: 3rem; }
.legal h2 { margin-top: 2rem; font-size: 1.25rem; }
.legal ul { color: var(--muted); padding-left: 1.2rem; }
.legal li { margin-bottom: .45rem; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: #07080e;
  padding: 3rem 0 2rem;
  margin-top: 2rem;
}
.footer-grid {
  display: grid; gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 800px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
.footer-brand { display: flex; align-items: center; gap: .65rem; margin-bottom: .85rem; }
.footer-brand img { width: 40px; height: 40px; border-radius: 12px; }
.footer-brand strong { font-family: var(--display); font-size: 1.15rem; }
.site-footer h3 { font-size: .95rem; margin-bottom: .85rem; color: #dfe4ef; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .45rem; }
.site-footer a { color: var(--muted); font-size: .9rem; }
.site-footer a:hover { color: var(--cyan); }
.footer-bottom {
  margin-top: 2.5rem; padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: .75rem 1.5rem;
  justify-content: space-between; color: #7b8498; font-size: .82rem;
}

/* Error pages */
.error-page {
  min-height: calc(100svh - var(--nav-h) - var(--dl-h));
  display: grid; place-items: center; text-align: center; padding: 3rem 1rem;
}
.error-page .code {
  font-family: var(--display); font-size: clamp(4rem, 18vw, 7rem); font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--magenta), var(--cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: .5rem;
}

/* Mobile nav */
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-links {
    position: fixed; top: var(--nav-h); right: 0; left: 0;
    background: rgba(8,9,14,.96); backdrop-filter: blur(16px);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: .5rem 0; border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { border-bottom: 1px solid var(--line); }
  .nav-links a { display: block; padding: .9rem 1.25rem; }
  .nav-links .nav-cta { margin: .75rem 1.25rem; border-radius: 12px; }
  :root { --dl-h: 112px; }
  .dl-bar { height: var(--dl-h); }
  .dl-bar .inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .45rem .55rem;
    align-content: center;
    overflow: visible;
    padding: .45rem 0;
    height: auto;
    min-height: 100%;
  }
  .dl-item {
    flex: none;
    width: 100%;
    justify-content: flex-start;
    font-size: .74rem;
    padding: .28rem .5rem .28rem .28rem;
    border-radius: 12px;
    min-width: 0;
  }
  .dl-item span:not(.tag) {
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .dl-item img { width: 28px; height: 28px; border-radius: 8px; }
  .dl-item .tag { font-size: .62rem; padding: .1rem .32rem; }
}

/* Reveal motion */
.reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.in { opacity: 1; transform: none; }
