/* ===== Tokens ===== */
:root {
  --m50: #f4f7ec; --m100: #e7efd5; --m200: #d0deae; --m300: #b3c983; --m400: #95b05c;
  --m500: #7a9a42; --m600: #607b33; --m700: #4a5f29; --m800: #374622; --m900: #242e17;
  --bg: #f8faf2;
  --bg-2: #eff4e2;
  --surface: #ffffff;
  --surface-2: #f6f8ef;
  --text: #1d2614;
  --muted: #687258;
  --line: rgba(55, 70, 34, .11);
  --accent: var(--m600);
  --accent-ink: #fff;
  --accent-soft: var(--m100);
  --shadow-sm: 0 1px 2px rgba(36, 46, 23, .06), 0 2px 8px rgba(36, 46, 23, .04);
  --shadow: 0 2px 6px rgba(36, 46, 23, .05), 0 12px 32px -8px rgba(36, 46, 23, .14);
  --shadow-lg: 0 30px 70px -20px rgba(36, 46, 23, .35);
  --radius: 20px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --spring: cubic-bezier(.34, 1.4, .64, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f130b; --bg-2: #141a0f; --surface: #182013; --surface-2: #1e2718;
    --text: #e9efdc; --muted: #9ba68b; --line: rgba(208, 222, 174, .1);
    --accent: var(--m400); --accent-ink: #12180c; --accent-soft: rgba(149, 176, 92, .14);
    --shadow-sm: 0 1px 2px rgba(0,0,0,.3); --shadow: 0 12px 32px -8px rgba(0,0,0,.55);
    --shadow-lg: 0 30px 70px -20px rgba(0,0,0,.7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f130b; --bg-2: #141a0f; --surface: #182013; --surface-2: #1e2718;
  --text: #e9efdc; --muted: #9ba68b; --line: rgba(208, 222, 174, .1);
  --accent: var(--m400); --accent-ink: #12180c; --accent-soft: rgba(149, 176, 92, .14);
  --shadow-sm: 0 1px 2px rgba(0,0,0,.3); --shadow: 0 12px 32px -8px rgba(0,0,0,.55);
  --shadow-lg: 0 30px 70px -20px rgba(0,0,0,.7);
  color-scheme: dark;
}

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .4s var(--ease), color .4s var(--ease);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--m300); color: var(--m900); }
.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px; border-radius: 999px; font-weight: 600; font-size: 15px;
  transition: transform .35s var(--spring), box-shadow .35s var(--ease), background-color .25s, color .25s;
  white-space: nowrap; user-select: none;
}
.btn:active { transform: scale(.96); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 22px -8px var(--m600); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -10px var(--m600); }
.btn-ghost { background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--m300); }
.btn-soft { background: var(--accent-soft); color: var(--accent); }
.btn-soft:hover { background: var(--m200); color: var(--m800); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; }
.btn-icon { width: 40px; height: 40px; padding: 0; border-radius: 12px; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* ===== Nav ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.nav.scrolled { border-color: var(--line); }
.nav-inner { display: flex; align-items: center; gap: 16px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -.02em; }
.logo-mark {
  width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--m400), var(--m700)); color: #fff;
  box-shadow: 0 6px 16px -6px var(--m600);
}
.logo-mark svg { width: 20px; height: 20px; }
.logo small { font-weight: 500; color: var(--muted); font-size: 13px; margin-left: 2px; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { padding: 8px 14px; border-radius: 999px; font-weight: 500; font-size: 15px; color: var(--muted); transition: color .2s, background-color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); background: var(--accent-soft); }
.nav-actions { display: flex; gap: 8px; align-items: center; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  color: var(--muted); transition: background-color .2s, color .2s, transform .3s var(--spring);
}
.icon-btn:hover { background: var(--accent-soft); color: var(--text); }
.icon-btn:active { transform: scale(.9); }
.icon-btn svg { width: 20px; height: 20px; }
.user-chip {
  display: flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); font-size: 14px; font-weight: 500;
}
.avatar {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px;
  background: linear-gradient(140deg, var(--m300), var(--m600)); color: #fff;
}
@media (max-width: 760px) {
  .nav-links, .logo small { display: none; }
  .nav-inner { gap: 8px; }
  .nav-actions { gap: 4px; }
  .nav-actions { margin-left: auto; }
  .user-chip .name { display: none; }
  .user-chip { padding-right: 4px; }
}

/* ===== Background ===== */
.bg-blobs { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg-blobs span {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55;
  animation: drift 22s ease-in-out infinite alternate;
}
.bg-blobs span:nth-child(1) { width: 520px; height: 520px; background: var(--m200); top: -160px; left: -120px; }
.bg-blobs span:nth-child(2) { width: 420px; height: 420px; background: #e9e2c4; top: 10%; right: -140px; animation-duration: 28s; }
.bg-blobs span:nth-child(3) { width: 380px; height: 380px; background: var(--m100); bottom: -120px; left: 30%; animation-duration: 25s; }
:root[data-theme="dark"] .bg-blobs span { opacity: .12; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .bg-blobs span { opacity: .12; } }
@keyframes drift { to { transform: translate(60px, 40px) scale(1.12); } }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ===== Hero ===== */
.hero { padding: 72px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); font-size: 13.5px; font-weight: 500; color: var(--muted);
  box-shadow: var(--shadow-sm);
}
.badge i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-style: normal; font-size: 12px; }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--m500); box-shadow: 0 0 0 0 var(--m400); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.hero h1 {
  font-size: clamp(36px, 5.4vw, 62px); line-height: 1.08; letter-spacing: -.035em; font-weight: 800;
  margin: 22px 0 18px; text-wrap: balance;
}
.hero h1 em {
  font-style: normal; background: linear-gradient(100deg, var(--m500), var(--m700) 60%, var(--m500));
  background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 6s linear infinite;
}
:root[data-theme="dark"] .hero h1 em { background-image: linear-gradient(100deg, var(--m300), var(--m500) 60%, var(--m300)); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero h1 em { background-image: linear-gradient(100deg, var(--m300), var(--m500) 60%, var(--m300)); } }
@keyframes shine { to { background-position: 200% center; } }
.hero p.lead { font-size: 18px; color: var(--muted); max-width: 560px; margin: 0 0 30px; text-wrap: pretty; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.stats { display: flex; gap: 36px; margin-top: 40px; flex-wrap: wrap; }
.stat b { display: block; font-size: 28px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat span { font-size: 14px; color: var(--muted); }

.hero-visual { position: relative; height: 480px; }
.float-card {
  position: absolute; width: 230px; padding: 18px; border-radius: 26px; background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  animation: floaty 7s ease-in-out infinite;
}
.float-card:nth-child(1) { top: 10px; left: 8%; --r: -6deg; }
.float-card:nth-child(2) { top: 120px; right: 2%; --r: 5deg; animation-delay: -2.4s; z-index: 2; }
.float-card:nth-child(3) { bottom: 6px; left: 20%; --r: -2deg; animation-delay: -4.6s; }
@keyframes floaty { 0%, 100% { transform: translateY(0) rotate(var(--r)); } 50% { transform: translateY(-16px) rotate(var(--r)); } }
.float-card .fc-head { display: flex; gap: 12px; align-items: center; }
.float-card .fc-head b { display: block; font-size: 15px; line-height: 1.3; }
.float-card .fc-head span { font-size: 12.5px; color: var(--muted); }
.float-card .fc-lines { margin-top: 16px; display: grid; gap: 8px; }
.float-card .fc-lines i { display: block; height: 9px; border-radius: 5px; background: var(--surface-2); }
.float-card .fc-lines i:nth-child(2) { width: 80%; } .float-card .fc-lines i:nth-child(3) { width: 55%; }
.float-card .fc-btn { margin-top: 16px; height: 34px; border-radius: 999px; display: grid; place-items: center; font-size: 13px; font-weight: 600; color: #fff; }
@media (max-width: 920px) {
  .hero { padding-top: 40px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { height: 340px; }
  .float-card { width: 200px; }
}
@media (max-width: 520px) {
  .hero-visual { height: 300px; }
  .float-card { width: 175px; padding: 14px; }
  .float-card:nth-child(1) { left: 0; } .float-card:nth-child(2) { right: 0; top: 90px; } .float-card:nth-child(3) { left: 12%; }
  .stats { gap: 24px; }
}

/* ===== App icon ===== */
.app-icon {
  --c: var(--m500); flex: none; width: 56px; height: 56px; border-radius: 17px; display: grid; place-items: center;
  font-size: 28px; background: linear-gradient(145deg, color-mix(in srgb, var(--c) 60%, #fff), var(--c));
  box-shadow: 0 8px 18px -8px var(--c), inset 0 1px 0 rgba(255,255,255,.35); overflow: hidden;
}
.app-icon img { width: 100%; height: 100%; object-fit: cover; }
.app-icon.sm { width: 42px; height: 42px; border-radius: 13px; font-size: 21px; }
.app-icon.lg { width: 84px; height: 84px; border-radius: 24px; font-size: 42px; }

/* ===== Sections ===== */
section { padding: 56px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; flex-wrap: wrap; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.section-head h2, h2.title { font-size: clamp(28px, 3.6vw, 40px); letter-spacing: -.03em; line-height: 1.15; margin: 6px 0 0; font-weight: 800; }

/* Toolbar */
.toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 26px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; padding: 5px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow-sm); }
.chip { flex: none; white-space: nowrap; padding: 7px 15px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--muted); transition: background-color .3s var(--ease), color .2s; }
.chip:hover { color: var(--text); }
.chip.active { background: var(--accent); color: var(--accent-ink); }
.search {
  margin-left: auto; display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 16px; min-width: 240px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow-sm);
  transition: border-color .2s, box-shadow .2s;
}
.search:focus-within { border-color: var(--m400); box-shadow: 0 0 0 4px var(--accent-soft); }
.search svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.search input { border: 0; outline: 0; background: transparent; width: 100%; font-size: 15px; }
@media (max-width: 640px) { .search { margin-left: 0; width: 100%; min-width: 0; } .chips { max-width: 100%; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; } }

/* ===== App grid ===== */
.app-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
@media (max-width: 400px) { .app-grid { grid-template-columns: 1fr; } }
.app-card {
  position: relative; display: flex; flex-direction: column; padding: 22px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); cursor: pointer;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s, opacity .4s;
  isolation: isolate; overflow: hidden;
}
.app-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .5s var(--ease);
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--c) 12%, transparent), transparent 45%);
}
.app-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--c) 30%, var(--line)); }
.app-card:hover::before { opacity: 1; }
.app-card:hover .app-icon { transform: scale(1.06) rotate(-3deg); }
.app-card .app-icon { transition: transform .5s var(--spring); }
.app-card .top { display: flex; gap: 14px; align-items: center; }
.app-card h3 { margin: 0; font-size: 18px; letter-spacing: -.01em; line-height: 1.3; }
.app-card .cat { font-size: 13px; color: var(--muted); }
.app-card p { margin: 14px 0 18px; color: var(--muted); font-size: 14.5px; flex: 1; }
.app-card .foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.app-card .foot .btn { margin-left: auto; }
.pill { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.pill svg { width: 13px; height: 13px; }
.pill.vis-members { background: #eef3ff; color: #3a55a8; border-color: #d9e2fb; }
.pill.vis-private { background: #fff3e6; color: #a35a12; border-color: #f7dfc3; }
.pill.vis-hidden { background: #fbecec; color: #a83a3a; border-color: #f4d3d3; }
:root[data-theme="dark"] .pill.vis-members { background: rgba(90,120,220,.15); color: #a9bcf5; border-color: transparent; }
:root[data-theme="dark"] .pill.vis-private { background: rgba(220,140,60,.15); color: #f0bd85; border-color: transparent; }
:root[data-theme="dark"] .pill.vis-hidden { background: rgba(220,80,80,.15); color: #f2a3a3; border-color: transparent; }
.star { position: absolute; top: 16px; right: 16px; font-size: 12px; font-weight: 700; color: var(--m700); background: var(--m100); padding: 3px 9px; border-radius: 999px; }
:root[data-theme="dark"] .star { color: var(--m200); background: var(--accent-soft); }
.empty { text-align: center; padding: 60px 20px; color: var(--muted); border: 1.5px dashed var(--line); border-radius: var(--radius); }
.skeleton { background: linear-gradient(90deg, var(--surface-2), var(--surface), var(--surface-2)); background-size: 200% 100%; animation: sk 1.4s infinite; border-radius: var(--radius); height: 200px; }
@keyframes sk { to { background-position: -200% 0; } }

/* ===== Info cards ===== */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.info-card { padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.info-card .ic { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 16px; }
.info-card .ic svg { width: 22px; height: 22px; }
.info-card h3 { margin: 0 0 6px; font-size: 18px; }
.info-card p { margin: 0; color: var(--muted); font-size: 15px; }

.cta-band {
  position: relative; overflow: hidden; border-radius: 32px; padding: 52px; color: #fff;
  background: linear-gradient(130deg, var(--m600), var(--m800));
  display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center;
}
.cta-band::after {
  content: ""; position: absolute; width: 420px; height: 420px; right: -100px; top: -160px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.18), transparent 70%); animation: drift 14s ease-in-out infinite alternate;
}
.cta-band h2 { margin: 0 0 8px; font-size: clamp(26px, 3.4vw, 36px); letter-spacing: -.03em; line-height: 1.15; }
.cta-band p { margin: 0; opacity: .85; max-width: 560px; }
.cta-band .btn { background: #fff; color: var(--m800); position: relative; z-index: 1; }
.cta-band .btn:hover { transform: translateY(-2px) scale(1.02); }
@media (max-width: 720px) { .cta-band { grid-template-columns: 1fr; padding: 32px 24px; } }

footer { padding: 40px 0 48px; color: var(--muted); font-size: 14px; }
footer .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 28px; }
footer a:hover { color: var(--text); }
footer .links { display: flex; gap: 18px; flex-wrap: wrap; }

/* ===== Modal ===== */
.overlay {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px;
  background: rgba(20, 26, 14, .45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none; transition: opacity .35s var(--ease);
}
.overlay.open { opacity: 1; pointer-events: auto; }
.modal {
  position: relative; width: min(860px, 100%); max-height: calc(100dvh - 40px); overflow: auto; overscroll-behavior: contain;
  background: var(--bg); border-radius: 28px; box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  transform: translateY(30px) scale(.97); transition: transform .5s var(--spring);
}
.overlay.open .modal { transform: none; }
.modal.sm { width: min(420px, 100%); }
.modal-close { position: absolute; top: 14px; right: 14px; z-index: 3; background: var(--surface); box-shadow: var(--shadow-sm); }
@media (max-width: 640px) {
  .overlay { padding: 0; align-items: end; }
  .modal { border-radius: 26px 26px 0 0; max-height: 94dvh; transform: translateY(100%); }
  .modal.sm { border-radius: 26px 26px 0 0; }
}

.detail-head { display: flex; gap: 20px; align-items: center; padding: 32px 32px 0; }
.detail-head h2 { margin: 0; font-size: 28px; letter-spacing: -.02em; line-height: 1.2; }
.detail-head p { margin: 4px 0 0; color: var(--muted); }
.detail-body { padding: 24px 32px 32px; }
.dl-list { display: grid; gap: 10px; margin-bottom: 26px; }
.dl-item {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: var(--surface);
  border: 1px solid var(--line); transition: border-color .2s, transform .35s var(--spring);
}
.dl-item:hover { border-color: var(--m300); transform: translateX(3px); }
.dl-item .plat { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: none; }
.dl-item .plat svg { width: 22px; height: 22px; }
.dl-item .meta { flex: 1; min-width: 0; }
.dl-item .meta b { display: block; font-size: 15px; }
.dl-item .meta span { font-size: 13px; color: var(--muted); }
.shots {
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 32px 18px; margin: 0 -32px 18px;
  scrollbar-width: thin; scroll-padding: 32px;
}
.shots > * { scroll-snap-align: start; flex: none; }
.shot {
  height: 360px; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: var(--surface);
  box-shadow: var(--shadow-sm); cursor: zoom-in; transition: transform .5s var(--ease);
}
.shot:hover { transform: translateY(-4px); }
.shot img { height: 100%; width: auto; object-fit: cover; }
.mock-phone {
  width: 180px; height: 360px; border-radius: 28px; padding: 10px; background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.mock-phone .scr { height: 100%; border-radius: 20px; overflow: hidden; background: var(--surface-2); display: flex; flex-direction: column; }
.mock-phone .bar { height: 92px; padding: 16px 14px; color: #fff; background: linear-gradient(150deg, color-mix(in srgb, var(--c) 70%, #fff), var(--c)); }
.mock-phone .bar i { display: block; width: 28px; height: 28px; font-style: normal; font-size: 24px; }
.mock-phone .bar b { display: block; margin-top: 6px; font-size: 13px; }
.mock-phone .rows { padding: 12px; display: grid; gap: 9px; }
.mock-phone .rows span { display: block; height: 34px; border-radius: 10px; background: var(--surface); }
.mock-phone .rows span:nth-child(odd) { width: 86%; }
.mock-note { font-size: 13px; color: var(--muted); margin: -8px 0 20px; }
.detail-body h4 { margin: 22px 0 10px; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.detail-body .desc { margin: 0; font-size: 16px; white-space: pre-line; }
.features { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.features li { display: flex; gap: 10px; align-items: start; font-size: 15px; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.features li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23607b33' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/11px no-repeat; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; font-size: 15px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; }
@media (max-width: 640px) {
  .detail-head { padding: 28px 20px 0; }
  .detail-body { padding: 20px; }
  .shots { padding: 4px 20px 18px; margin: 0 -20px 18px; }
  .shot, .mock-phone { height: 300px; } .mock-phone { width: 150px; }
}

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(8, 10, 6, .9); display: grid; place-items: center; opacity: 0; pointer-events: none; transition: opacity .3s; }
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 16px; transform: scale(.94); transition: transform .45s var(--spring); }
.lightbox.open img { transform: none; }
.lightbox button { position: absolute; color: #fff; width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.12); display: grid; place-items: center; }
.lightbox button:hover { background: rgba(255,255,255,.22); }
.lightbox .lb-close { top: 18px; right: 18px; } .lightbox .lb-prev { left: 18px; } .lightbox .lb-next { right: 18px; }
.lightbox svg { width: 22px; height: 22px; }

/* ===== Forms ===== */
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--muted); }
.input, .field input, .field textarea, .field select {
  width: 100%; padding: 11px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line);
  outline: none; transition: border-color .2s, box-shadow .2s; font-size: 15px;
}
.field textarea { resize: vertical; min-height: 90px; line-height: 1.55; }
.input:focus, .field input:focus, .field textarea:focus, .field select:focus { border-color: var(--m400); box-shadow: 0 0 0 4px var(--accent-soft); }
.form-error { color: #c0392b; font-size: 14px; min-height: 20px; margin: 4px 0 10px; }
.login-box { padding: 34px 30px 28px; }
.login-box h3 { margin: 14px 0 4px; font-size: 22px; letter-spacing: -.02em; }
.login-box > p { margin: 0 0 22px; color: var(--muted); font-size: 15px; }

/* ===== Toast ===== */
.toasts { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 300; display: grid; gap: 8px; justify-items: center; pointer-events: none; }
.toast {
  padding: 11px 18px; border-radius: 999px; background: var(--m900); color: #f0f5e4; font-size: 14.5px; font-weight: 500;
  box-shadow: var(--shadow-lg); animation: toastIn .45s var(--spring);
}
.toast.err { background: #8e2b2b; }
.toast.out { animation: toastOut .3s var(--ease) forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(16px) scale(.95); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(10px); } }
