/* === Mobile Apps Lab — showcase styles === */

:root {
  --bg: #07070d;
  --bg-2: #0d0d18;
  --surface: #14141f;
  --surface-2: #1a1a28;
  --border: #232335;
  --text: #f5f5fa;
  --muted: #9999b5;
  --muted-2: #6c6c88;
  --accent: #00ff88;
  --accent-2: #00d472;
  --grad-1: #00ff88;
  --grad-2: #00bfff;
  --grad-3: #ff6b35;
  --radius: 18px;
  --shadow: 0 10px 40px -12px rgba(0, 0, 0, 0.6);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  background:
    radial-gradient(ellipse at top left, rgba(0, 255, 136, 0.08), transparent 50%),
    radial-gradient(ellipse at top right, rgba(0, 191, 255, 0.06), transparent 50%),
    var(--bg);
  min-height: 100vh;
}

a { color: var(--text); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent); }

img { max-width: 100%; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 760px; }

.muted { color: var(--muted); }
.muted.small { font-size: 13px; color: var(--muted-2); }

code {
  font-family: 'SF Mono', Menlo, Consolas, monospace;
  background: var(--surface);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 0.9em;
  border: 1px solid var(--border);
}

/* === Nav === */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 7, 13, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.01em;
}
.brand:hover { color: var(--text); }
.brand-mark {
  width: 24px; height: 24px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--grad-1), var(--grad-2));
  box-shadow: 0 0 24px rgba(0, 255, 136, 0.4);
  position: relative;
}
.brand-mark::after {
  content: '';
  position: absolute;
  inset: 4px;
  background: var(--bg);
  border-radius: 4px;
}

.links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.links a { color: var(--muted); font-size: 14px; font-weight: 500; }
.links a:hover { color: var(--text); }

@media (max-width: 700px) {
  .links { gap: 18px; }
  .links a:not(.btn) { display: none; }
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s, box-shadow .2s, background .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--grad-1), var(--grad-2));
  color: #06121a;
  box-shadow: 0 8px 28px -8px rgba(0, 255, 136, 0.45);
}
.btn-primary:hover {
  box-shadow: 0 12px 36px -8px rgba(0, 255, 136, 0.6);
  color: #06121a;
}
.btn-ghost {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover {
  background: var(--surface-2);
  border-color: var(--muted-2);
  color: var(--text);
}

/* === Hero === */
.hero { padding: 80px 0 60px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 880px) { .hero-grid { grid-template-columns: 1fr; gap: 32px; } }

.kicker {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05;
  margin: 0 0 24px;
  letter-spacing: -0.03em;
  font-weight: 900;
}
.grad {
  background: linear-gradient(135deg, var(--grad-1) 0%, var(--grad-2) 70%, var(--grad-3) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  font-size: 18px;
  color: var(--muted);
  max-width: 540px;
  line-height: 1.6;
  margin: 0 0 32px;
}

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 540px;
}
.stats > div {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
}
.stats strong {
  display: block;
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}
.stats span {
  font-size: 12px;
  color: var(--muted);
}
@media (max-width: 600px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* === Hero phone stack === */
.hero-visual { position: relative; min-height: 380px; }
.phone-stack {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  height: 380px;
}
.phone {
  position: absolute;
  width: 200px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 20px 16px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform .3s;
}
.phone img { width: 80px; height: 80px; border-radius: 18px; margin: 0 auto 14px; }
.phone-name { font-weight: 700; font-size: 14px; }
.phone-cat { color: var(--muted); font-size: 12px; }
.phone::before {
  content: '';
  position: absolute; top: -1px; left: -1px; right: -1px; bottom: -1px;
  border-radius: 28px;
  background: linear-gradient(135deg, var(--accent), transparent 60%);
  z-index: -1;
  opacity: .35;
}

.phone-1 { transform: rotate(-8deg) translate(-30px, 20px); top: 20px; left: 0; --accent: #22c55e; }
.phone-2 { transform: rotate(2deg) translate(0, -10px); top: 0; left: 50%; margin-left: -100px; z-index: 2; --accent: #f97316; }
.phone-3 { transform: rotate(8deg) translate(30px, 30px); top: 30px; right: 0; --accent: #0ea5e9; }
.phone:hover { transform: rotate(0) translate(0, -8px); }

/* === Apps grid === */
.apps { padding: 80px 0; }
.section-head { margin-bottom: 32px; }
.section-head h2 {
  font-size: clamp(28px, 3vw, 40px);
  margin: 0 0 8px;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}
.apps-grid.small { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

.app-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color .2s, transform .2s, box-shadow .3s;
  overflow: hidden;
}
.app-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: var(--accent);
  opacity: .9;
}
.app-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.7), 0 0 0 1px var(--accent);
  color: var(--text);
}

.app-card-top { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.app-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface-2);
}
.app-card h3 { margin: 0; font-size: 18px; letter-spacing: -0.01em; font-weight: 700; }
.cat {
  display: inline-block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  font-weight: 700;
  margin-top: 4px;
}
.app-tagline {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 14px;
  line-height: 1.5;
}
.app-features {
  list-style: none;
  padding: 0; margin: 0 0 18px;
  display: flex; flex-wrap: wrap; gap: 6px;
}
.app-features li {
  font-size: 12px;
  color: var(--muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 999px;
}
.app-card-foot {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.cta-arrow { color: var(--accent); font-weight: 600; }

.badge {
  position: absolute;
  top: 14px; right: 14px;
  background: rgba(255, 184, 0, 0.15);
  color: #ffb800;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 184, 0, 0.35);
  z-index: 2;
}

/* === Strip === */
.strip {
  padding: 60px 0;
  background: linear-gradient(180deg, transparent, rgba(0, 255, 136, 0.04), transparent);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.strip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 800px) { .strip-grid { grid-template-columns: 1fr; } }
.strip h3 {
  font-size: 18px;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

/* === App detail === */
.app-detail { padding-bottom: 40px; }
.app-hero { padding: 50px 0; }
.app-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 900px) { .app-hero-grid { grid-template-columns: 1fr; } }

.back {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 20px;
  display: inline-block;
}

.app-hero-id {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-bottom: 24px;
}
.app-hero-id img {
  width: 88px; height: 88px;
  border-radius: 22px;
  border: 1px solid var(--border);
}
.app-hero h1 {
  font-size: clamp(32px, 4vw, 52px);
  margin: 4px 0 6px;
  letter-spacing: -0.025em;
  font-weight: 900;
}
.tagline { color: var(--muted); font-size: 16px; margin: 0; }

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-size: 13px;
  color: var(--muted);
  padding-top: 24px;
  margin-top: 24px;
  border-top: 1px solid var(--border);
}
.meta-row strong { color: var(--text); margin-right: 6px; font-weight: 600; }

.app-hero-feature {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.app-hero-feature img { width: 100%; height: auto; display: block; }

/* === Screenshots === */
.screens { padding: 40px 0; }
.screens-row {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 8px 4px 24px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--surface);
}
.screens-row::-webkit-scrollbar { height: 8px; }
.screens-row::-webkit-scrollbar-track { background: var(--surface); border-radius: 4px; }
.screens-row::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 4px; }

.screen {
  flex: 0 0 220px;
  scroll-snap-align: start;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: transform .2s, box-shadow .3s;
}
.screen:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -16px rgba(0, 0, 0, 0.7);
}
.screen img { width: 100%; height: auto; display: block; }

/* === App body === */
.app-body { padding: 40px 0; }
.app-body-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 48px;
}
@media (max-width: 900px) { .app-body-grid { grid-template-columns: 1fr; } }

.app-desc h2 { font-size: 28px; margin: 0 0 16px; letter-spacing: -0.02em; }
.multiline { white-space: pre-line; color: #d0d0e0; line-height: 1.7; }

.app-side h3 {
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 16px;
  font-weight: 700;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.check-list li {
  position: relative;
  padding: 8px 0 8px 28px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: #d0d0e0;
}
.check-list li:last-child { border-bottom: none; }
.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 8px;
  color: var(--accent);
  font-weight: 800;
}

.yt-wrap {
  position: relative;
  padding-bottom: 177.78%;
  height: 0;
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
}
.yt-wrap iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}

.info-box {
  margin-top: 32px;
  padding: 18px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.info-box strong { color: var(--accent); display: block; margin-bottom: 6px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.info-box p { font-size: 13px; color: var(--muted); margin: 0 0 10px; }
.info-box a { font-size: 13px; color: var(--accent); }

.more { padding: 60px 0; border-top: 1px solid var(--border); }

/* === Static pages === */
.page-hero { padding: 80px 0 40px; }
.page-hero h1 {
  font-size: clamp(36px, 5vw, 64px);
  margin: 0 0 20px;
  letter-spacing: -0.025em;
  font-weight: 900;
}

.prose { padding: 20px 0 80px; }
.prose h2 {
  font-size: 22px;
  margin: 36px 0 12px;
  letter-spacing: -0.01em;
}
.prose p, .prose li {
  color: #d0d0e0;
  font-size: 16px;
  line-height: 1.7;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 32px;
}
.contact-card {
  display: block;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color .2s, transform .2s;
}
.contact-card:hover { border-color: var(--accent); transform: translateY(-3px); color: var(--text); }
.contact-card h3 { margin: 0 0 8px; font-size: 16px; }
.contact-card p { margin: 0 0 8px; color: var(--accent); font-size: 14px; font-weight: 600; }

/* === Footer === */
.footer {
  padding: 60px 0 40px;
  border-top: 1px solid var(--border);
  background: var(--bg-2);
  margin-top: 60px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer h4 { margin: 0 0 14px; font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { padding: 4px 0; }
.footer ul li a { color: #c5c5d8; font-size: 14px; }
.footer ul li a:hover { color: var(--accent); }
.footer .brand { margin-bottom: 12px; }

/* === Variant badges (added 2026-05-09 for 3-variant publishing model) === */
.variant-badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; }
.vb { font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 999px; letter-spacing: .2px; }
.vb-free { background: rgba(34, 197, 94, .15); color: #22c55e; border: 1px solid rgba(34, 197, 94, .3); }
.vb-paid { background: rgba(250, 204, 21, .15); color: #facc15; border: 1px solid rgba(250, 204, 21, .3); }
.vb-soon { background: rgba(148, 163, 184, .15); color: #94a3b8; border: 1px solid rgba(148, 163, 184, .3); }

.variants-block { margin-top: 28px; padding: 16px; background: rgba(255,255,255,.02); border: 1px solid rgba(255,255,255,.06); border-radius: 14px; }
.variants-title { font-size: 14px; text-transform: uppercase; letter-spacing: 1.2px; color: #94a3b8; margin: 0 0 12px; }
.variants-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.variants-list li { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: rgba(255,255,255,.03); border-radius: 10px; flex-wrap: wrap; }
.variants-list li.vrnt-off { opacity: .55; }
.vrnt-store { font-weight: 600; }
.vrnt-tag { font-size: 12px; color: #94a3b8; }
.vrnt-link { margin-left: auto; color: var(--accent); font-size: 13px; font-weight: 600; }
.vrnt-soon { margin-left: auto; font-size: 11px; padding: 2px 8px; background: rgba(148, 163, 184, .15); color: #94a3b8; border-radius: 999px; }
