/* Shared styles for the app landing pages under /apps/*.
   Each page sets its own --accent, --accent-2, --grad, --glow-a and --glow-b on :root. */
:root {
  --bg: #0a0a0f;
  --surface: rgba(255,255,255,0.03); --surface-2: rgba(255,255,255,0.06);
  --border: rgba(255,255,255,0.08); --border-2: rgba(255,255,255,0.14);
  --text: #e8e8ef; --dim: rgba(255,255,255,0.62); --muted: rgba(255,255,255,0.36);
  --accent: #7b61ff; --accent-2: #00f0ff;
  --grad: linear-gradient(120deg, var(--accent) 0%, var(--accent-2) 100%);
  --glow-a: rgba(123,97,255,0.18); --glow-b: rgba(0,240,255,0.12);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --display: var(--font);
  color-scheme: dark;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--text);
  line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* background */
.bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.grid { position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 74px 74px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, black 20%, transparent 75%);
  mask-image: radial-gradient(ellipse at 50% 0%, black 20%, transparent 75%); }
.glow { position: absolute; border-radius: 50%; filter: blur(20px); }
.glow-a { top: -160px; left: -120px; width: 620px; height: 620px;
  background: radial-gradient(circle, var(--glow-a) 0%, transparent 66%); }
.glow-b { top: 420px; right: -160px; width: 680px; height: 680px;
  background: radial-gradient(circle, var(--glow-b) 0%, transparent 66%); }

.wrap { position: relative; z-index: 1; max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* header */
header { position: sticky; top: 0; z-index: 20; background: rgba(10,10,15,0.72);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); }
.bar { max-width: 1120px; margin: 0 auto; padding: 15px 24px; display: flex; align-items: center; gap: 12px; }
.tkm-mark { font-weight: 800; font-size: 19px; letter-spacing: -0.045em;
  background: linear-gradient(176deg,#fff 4%,#cfd3df 20%,#7a7f92 42%,#15151c 50%,#3f4250 54%,#9a9eb0 64%,#f6f7fb 80%,#c2c6d3 92%,#fff 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.5)); }
.divider { width: 1px; height: 16px; background: rgba(255,255,255,0.16); }
.crumb { font-size: 11px; font-weight: 600; letter-spacing: 0.28em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.bar .spacer { flex: 1; }
.bar-link { font-size: 13px; font-weight: 600; color: var(--dim); transition: color .2s; }
.bar-link:hover { color: var(--text); }

/* hero */
.hero { padding: 84px 0 40px; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; font-family: var(--mono);
  font-size: 11px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--dim); padding: 7px 14px; border: 1px solid var(--border); border-radius: 100px;
  background: var(--surface); margin-bottom: 26px; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--grad);
  box-shadow: 0 0 12px var(--accent); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: .45 } }
.app-icon { width: 76px; height: 76px; border-radius: 20px; margin-bottom: 22px; display: block;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.06); }
h1 { font-family: var(--display); font-size: clamp(46px, 7vw, 80px); font-weight: 900; line-height: 0.98; letter-spacing: -0.03em; }
h1 .accent { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.lede { font-size: clamp(19px, 2.4vw, 23px); color: var(--text); font-weight: 650; margin: 22px 0 10px; letter-spacing: -0.01em; }
.sub { font-size: 16px; color: var(--dim); margin-bottom: 30px; max-width: 44ch; }
.cta-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.store { display: inline-flex; align-items: center; gap: 12px; background: #fff; color: #000;
  padding: 11px 20px 11px 16px; border-radius: 14px; font-weight: 700;
  transition: transform .3s cubic-bezier(.16,1,.3,1), box-shadow .3s; }
.store:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(255,255,255,0.14); }
.store svg { width: 25px; height: 25px; flex: 0 0 auto; }
.store .small { font-size: 10px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; opacity: .6; display: block; line-height: 1.15; }
.store .big { font-size: 17px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; display: block; }
.store.ghost { background: transparent; color: var(--text); border: 1px solid var(--border-2); cursor: default; }
.store.ghost:hover { transform: none; box-shadow: none; }
.store.ghost .small { opacity: .55; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 14px;
  background: var(--grad); color: #fff; font-weight: 750; font-size: 15px; letter-spacing: -0.01em;
  box-shadow: 0 14px 40px var(--glow-a); transition: transform .3s cubic-bezier(.16,1,.3,1); }
.btn:hover { transform: translateY(-2px); }
.pill { font-family: var(--mono); font-size: 12px; color: var(--accent-2); letter-spacing: 0.05em;
  border: 1px solid color-mix(in srgb, var(--accent-2) 35%, transparent); border-radius: 100px; padding: 8px 14px; white-space: nowrap; }
.status-line { display: flex; align-items: center; gap: 9px; margin-top: 22px; font-size: 13.5px; color: var(--dim); }
.status-line .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.status-line .dot.live { animation: pulse 2s ease-in-out infinite; }

/* hero visuals */
.visual { display: flex; justify-content: center; position: relative; }
.visual-glow { position: absolute; width: min(360px, 80vw); height: min(360px, 80vw); border-radius: 50%; top: 50%; left: 50%;
  transform: translate(-50%,-50%); z-index: 0; background: radial-gradient(circle, var(--glow-a) 0%, transparent 68%);
  animation: vglow 5s ease-in-out infinite; }
@keyframes vglow { 0%,100% { transform: translate(-50%,-50%) scale(1); opacity: .75 } 50% { transform: translate(-50%,-50%) scale(1.15); opacity: 1 } }
/* store-framed marketing shots: show flat */
.shot { position: relative; z-index: 1; width: 300px; max-width: 80%; border-radius: 30px;
  border: 1px solid var(--border-2); box-shadow: 0 40px 90px rgba(0,0,0,0.6); }
/* raw app captures: device frame */
.phone { position: relative; z-index: 1; width: 280px; max-width: 78%; border-radius: 44px; padding: 11px;
  background: linear-gradient(160deg,#22232c,#0c0c11); border: 1px solid rgba(255,255,255,0.09);
  box-shadow: 0 40px 90px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.08); }
.phone img { width: 100%; display: block; border-radius: 34px; }
.phone.back { position: absolute; z-index: 0; width: 240px; transform: translateX(118px) translateY(18px) rotate(6deg); opacity: .55; filter: saturate(.8); }

/* sections */
.section { padding: 70px 0; }
.section-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; max-width: 22ch; }
.section-sub { color: var(--dim); font-size: 16px; max-width: 58ch; margin-top: 14px; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 44px; }
.features.two { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 26px;
  transition: all .4s cubic-bezier(.16,1,.3,1); }
.card:hover { border-color: var(--border-2); background: var(--surface-2); transform: translateY(-4px); box-shadow: 0 18px 50px rgba(0,0,0,0.35); }
.card .ico { font-size: 24px; margin-bottom: 14px; display: block; }
.card h3 { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 8px; }
.card p { color: var(--dim); font-size: 14.5px; }
.tag { display: inline-block; font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent-2); border: 1px solid color-mix(in srgb, var(--accent-2) 30%, transparent);
  border-radius: 100px; padding: 2px 8px; margin-left: 6px; vertical-align: 2px; }

/* what's new */
.whatsnew { margin-top: 40px; border: 1px solid var(--border); border-radius: 22px; background: var(--surface); overflow: hidden; }
.whatsnew-head { display: flex; align-items: baseline; gap: 14px; padding: 22px 26px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.whatsnew-head .ver { font-family: var(--mono); font-size: 13px; font-weight: 700; color: var(--accent); letter-spacing: 0.04em; }
.whatsnew-head .when { font-size: 13px; color: var(--muted); }
.whatsnew ul { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); }
.whatsnew li { padding: 18px 26px; border-bottom: 1px solid var(--border); font-size: 14.5px; color: var(--dim); }
.whatsnew li:nth-child(odd) { border-right: 1px solid var(--border); }
.whatsnew li b { color: var(--text); font-weight: 650; display: block; margin-bottom: 2px; }

/* gallery */
.gallery { display: flex; gap: 18px; overflow-x: auto; padding: 44px 0 14px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.gallery::-webkit-scrollbar { height: 6px; }
.gallery::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 100px; }
.gallery img { flex: 0 0 auto; width: 236px; border-radius: 24px; scroll-snap-align: center;
  border: 1px solid var(--border); box-shadow: 0 20px 50px rgba(0,0,0,0.4); }
.gallery.raw img { border-radius: 30px; }

/* wide feature image (e.g. a venue screen) */
.wide { margin-top: 40px; border-radius: 22px; overflow: hidden; border: 1px solid var(--border-2); box-shadow: 0 40px 90px rgba(0,0,0,0.55); }
.wide img { display: block; width: 100%; }

/* fine print + footer */
.note { border: 1px solid var(--border); border-radius: 18px; background: var(--surface); padding: 24px 28px; }
.note p { color: var(--muted); font-size: 13.5px; line-height: 1.7; }
.note p + p { margin-top: 8px; }
.note strong { color: var(--dim); }
footer { border-top: 1px solid var(--border); margin-top: 70px; padding: 40px 0 56px; position: relative; z-index: 1; }
.foot { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.foot .spacer { flex: 1; }
.foot a { font-size: 13.5px; font-weight: 600; color: var(--dim); transition: color .2s; }
.foot a:hover { color: var(--text); }
.foot .copy { font-size: 12.5px; color: var(--muted); }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .eyebrow .dot, .status-line .dot.live, .visual-glow { animation: none; }
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding: 56px 0 20px; gap: 36px; }
  .visual { order: -1; }
  .features { grid-template-columns: 1fr 1fr; }
  .whatsnew ul { grid-template-columns: 1fr; }
  .whatsnew li:nth-child(odd) { border-right: none; }
  .phone.back { display: none; }
}
@media (max-width: 600px) {
  .wrap, .bar { padding-left: 16px; padding-right: 16px; }
  .features, .features.two { grid-template-columns: 1fr; }
  .bar-link.opt { display: none; }
  .section { padding: 54px 0; }
  .gallery img { width: 210px; }
}
