/* mmhadventures.com home page, revamp mockup (round 1, 2026-10-01).
   Direction: Raycast (the owner's pick): a dark page where each product is a card lit in its own
   colour, with a small live demo inside. Colours and type carry over from the approved Alt Time page
   (midnight + Geist), so the site reads as one place. Product colours come from each app's own theme
   (the same values the MMH Console uses in console/model.py BANDS), except Alt Time: its console
   colour is the brass the owner ruled out, so it uses its own Aurora finish teal.
   Layout: a centred studio statement over a row of glowing icons, then the apps, one per row with a
   big phone (the owner's pick of three layouts), then
   the free shelf led by FreeRoam, then the rules every app follows. */

:root {
  color-scheme: dark;
  --bg: #070B14;
  --surface: #0E1624;
  --surface-2: #152036;
  --text: #FFFFFF;
  --text-2: #9FB0C8;         /* 8.9:1 on --bg */
  --text-3: #7589A6;         /* 5.3:1 */
  --accent: #7CC4FF;
  --accent-hi: #A8D8FF;
  --accent-ink: #04101E;
  --line: rgb(159 176 200 / .14);
  --line-2: rgb(159 176 200 / .26);
  --nav-bg: rgb(14 22 36 / .74);
  --strip: #14335A;

  /* each product's glow, from its own theme */
  --c-alttime: #34C6B4;     /* teal from Alt Time's own "Aurora" finish (ClockTheme.swift), not the brass the owner ruled out */
  --c-purewx: #67B0FF;
  --c-streak: #F07A2C;
  --c-cac: #7B9BF0;
  --c-freeroam: #F2C14E;

  --display: "Geist", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --body: "Geist", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", "SF Mono", Menlo, monospace;
  --ios: -apple-system, "SF Pro Display", "Geist", "Helvetica Neue", Arial, sans-serif;

  --t-hero: clamp(3rem, 8.4vw, 7.6rem);
  --t-h2: clamp(2.2rem, 5vw, 4.2rem);
  --t-h3: clamp(1.35rem, 2vw, 1.6rem);
  --t-lead: clamp(1.08rem, 1.6vw, 1.3rem);
  --t-body: 1.0625rem;
  --t-small: .875rem;

  --gutter: clamp(16px, 4vw, 48px);
  --col: 1180px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--bg); scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 var(--t-body)/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video { max-width: 100%; display: block; }
a { color: var(--accent-hi); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { font-family: var(--display); font-weight: 650; letter-spacing: -.035em; line-height: 1.02; margin: 0; text-wrap: balance; }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--col); margin-inline: auto; padding-inline: var(--gutter); }
.eyebrow { font: 500 .75rem/1.2 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.lead { font-size: var(--t-lead); color: var(--text-2); max-width: 56ch; }
.mock-strip { font: 500 11px/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; text-align: center; padding: 8px var(--gutter); background: var(--strip); color: var(--text); }

/* ---------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; border-radius: 99px; font: 600 .95rem/1 var(--body); text-decoration: none; white-space: nowrap; transition: transform .2s var(--ease), background .2s, box-shadow .2s; }
.btn-pri { background: var(--accent-hi); color: var(--accent-ink); padding: 14px 22px; }
.btn-pri:hover { background: var(--text); transform: translateY(-1px); }
.btn-ghost { color: var(--text); padding: 14px 20px; box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--text-2); }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------------------------------------------------------------- nav */
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; }
.nav-in { display: flex; align-items: center; gap: 16px; margin-top: 14px; padding: 8px 8px 8px 12px; border-radius: 99px; background: var(--nav-bg); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3); box-shadow: 0 0 0 1px var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 650; color: var(--text); text-decoration: none; letter-spacing: -.01em; white-space: nowrap; }
.brand img { width: 30px; height: 30px; }
.nav .links { display: flex; gap: 22px; margin-left: auto; font-size: .92rem; }
.nav .links a { color: var(--text-2); text-decoration: none; }
.nav .links a:hover { color: var(--text); }
.gh { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 99px; background: var(--surface-2); color: var(--text); text-decoration: none; font-size: .9rem; font-weight: 600; box-shadow: inset 0 0 0 1px var(--line-2); }
.gh:hover { background: #1C2A45; }
.gh svg { width: 17px; height: 17px; }
@media (max-width: 720px) { .nav .links { display: none; } .gh { margin-left: auto; } }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; text-align: center; padding-top: clamp(64px, 10vw, 130px); padding-bottom: clamp(56px, 8vw, 100px); isolation: isolate; overflow-x: clip; }
.beams { position: absolute; inset: -10% 0 0; z-index: -1; pointer-events: none; overflow: hidden; -webkit-mask-image: radial-gradient(70% 70% at 50% 45%, #000 30%, transparent 75%); mask-image: radial-gradient(70% 70% at 50% 45%, #000 30%, transparent 75%); }
.beams i { position: absolute; top: -20%; height: 140%; width: clamp(60px, 9vw, 130px); left: var(--x); transform: rotate(32deg); background: linear-gradient(180deg, transparent, var(--c) 45%, transparent); opacity: .22; filter: blur(28px); animation: drift 14s ease-in-out infinite alternate; animation-delay: var(--d); }
@keyframes drift { to { transform: rotate(32deg) translateX(60px); opacity: .32; } }
.hero h1 { font-size: var(--t-hero); font-weight: 700; letter-spacing: -.055em; line-height: .95; max-width: none; margin: 22px auto 0; }
.hero h1 span { color: var(--text-2); }
.hero .lead { margin: 26px auto 0; }
.icon-row { display: flex; justify-content: center; flex-wrap: wrap; gap: clamp(14px, 2.4vw, 26px); margin-top: clamp(40px, 6vw, 64px); list-style: none; padding: 0; }
.icon-row a { display: grid; justify-items: center; align-content: start; gap: 10px; width: clamp(64px, 8vw, 96px); text-align: center; line-height: 1.25; text-decoration: none; color: var(--text-3); font-size: .8rem; font-weight: 500; transition: transform .3s var(--ease), color .2s; }
.icon-row img { width: clamp(58px, 7vw, 84px); height: auto; border-radius: 22.5%; box-shadow: 0 0 0 1px rgb(255 255 255 / .08), 0 14px 34px -10px color-mix(in srgb, var(--c) 55%, transparent), 0 0 50px -18px color-mix(in srgb, var(--c) 45%, transparent); }
.icon-row a:hover { transform: translateY(-6px); color: var(--text); }
.stats { margin-top: 34px; font: 500 12px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 18px; }
.stats b { color: var(--text); font-weight: 500; }
.stats span { white-space: nowrap; }

/* ---------------------------------------------------------------- sections */
.sec { padding-block: clamp(64px, 9vw, 120px); }
.sec-head { display: grid; gap: 14px; margin-bottom: clamp(32px, 5vw, 52px); max-width: 760px; }
.sec-head h2 { font-size: var(--t-h2); }

/* ---------------------------------------------------------------- Raycast-style product cards */
.card { --mx: 50%; --my: 0%; position: relative; border-radius: 24px; padding: 24px; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; gap: 16px; min-width: 0;
  background: radial-gradient(120% 80% at 50% 0%, color-mix(in srgb, var(--c) 26%, transparent), transparent 62%), linear-gradient(180deg, color-mix(in srgb, var(--c) 9%, var(--surface)), var(--surface));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 30%, var(--line)); transition: box-shadow .3s; }
.card::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s; background: radial-gradient(420px circle at var(--mx) var(--my), color-mix(in srgb, var(--c) 22%, transparent), transparent 60%); }
.card:hover::before { opacity: 1; }
.card:hover { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 55%, var(--line)); }
.card-top { display: flex; align-items: center; gap: 14px; }
.card-top img { width: 52px; height: 52px; border-radius: 12px; box-shadow: 0 0 0 1px rgb(255 255 255 / .1); }
.card-top h3 { font-size: var(--t-h3); letter-spacing: -.025em; }
.card-top .go { margin-left: auto; width: 36px; height: 36px; flex: none; border-radius: 10px; display: grid; place-items: center; color: var(--text); text-decoration: none; background: rgb(255 255 255 / .06); box-shadow: inset 0 0 0 1px var(--line-2); transition: background .2s; }
.card-top .go:hover { background: rgb(255 255 255 / .14); }
.card-desc { color: #DCE6F3; max-width: 46ch; }
.card hr { border: 0; border-top: 1px solid var(--line); margin: 0; width: 100%; }
.card-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: auto; }
.tag { display: inline-flex; align-items: center; gap: 6px; font: 500 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; padding: 7px 10px; border-radius: 99px; background: rgb(255 255 255 / .07); color: var(--text-2); white-space: nowrap; }
.tag.free { background: rgb(98 210 162 / .14); color: #8FE3BE; }
.tag.paid { background: rgb(255 255 255 / .1); color: var(--text); }
.tag.review { background: rgb(247 144 9 / .16); color: #FFC56B; }
.tag.review::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.card-foot .links { margin-left: auto; display: flex; gap: 16px; font-size: .92rem; font-weight: 600; }
.card-foot .links a { color: var(--text); text-decoration: none; white-space: nowrap; }
.card-foot .links a:hover { color: color-mix(in srgb, var(--c) 60%, #fff); }
.card-foot .note { font-size: .88rem; color: var(--text-3); margin-left: auto; }

/* ---------------------------------------------------------------- the free shelf */
.free-head h2 em { font-style: normal; color: var(--c-freeroam); }
.feature { --c: var(--c-freeroam); display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; padding: 28px; }
.feature .media { border-radius: 16px; overflow: hidden; background: #000; aspect-ratio: 16 / 9; position: relative; box-shadow: 0 0 0 1px rgb(255 255 255 / .08); }
.feature .media video { width: 100%; height: 100%; object-fit: cover; }
.feature .media .play { position: absolute; inset: 0; background: transparent; border: 0; cursor: pointer; border-radius: 16px; }
.feature .media .play:hover { background: rgb(242 193 78 / .06); }
.feature .body { display: flex; flex-direction: column; gap: 16px; justify-content: center; }
.keys { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; color: var(--text-3); font-size: .85rem; }
.keys span { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.keys kbd { font: 600 .8rem/1 var(--mono); min-width: 30px; padding: 7px 8px; text-align: center; border-radius: 7px; background: #1B2129; color: #EAEDF1; box-shadow: inset 0 -2px 0 #0E1116, inset 0 0 0 1px #28303A; }
.feature .ctas { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.btn-gold { background: var(--c-freeroam); color: #1A1406; padding: 14px 20px; }
.btn-gold:hover { background: #FFD877; transform: translateY(-1px); }
.feature .soon { font-size: .88rem; color: var(--text-3); }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; padding: 18px; } }
.shelf-more { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 20px; padding: 20px 24px; border-radius: 18px; border: 1px dashed var(--line-2); color: var(--text-2); }
.shelf-more b { color: var(--text); font-weight: 600; }
.shelf-more a { color: var(--text); font-weight: 600; text-decoration: none; white-space: nowrap; }
.shelf-more a:hover { color: var(--c-freeroam); }

/* ---------------------------------------------------------------- the rules every app follows */
.about { border-top: 1px solid var(--line); }
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 80px); align-items: start; }
.about h2 { font-size: var(--t-h2); }
.promises { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.promises li { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); color: var(--text-2); }
.promises li:first-child { border-top: 1px solid var(--line); }
.promises b { color: var(--text); font-weight: 600; }
.contact { margin-top: 26px; color: var(--text-2); }
.contact code { font: 500 .95rem var(--mono); color: var(--text); background: var(--surface-2); padding: 4px 8px; border-radius: 6px; user-select: all; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } .promises li { grid-template-columns: 1fr; gap: 4px; } }

.foot { border-top: 1px solid var(--line); padding-block: 30px 40px; display: flex; flex-wrap: wrap; gap: 12px 26px; justify-content: space-between; font-size: var(--t-small); color: var(--text-3); }
.foot nav { display: flex; gap: 20px; flex-wrap: wrap; }
.foot a { color: var(--text-2); text-decoration: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* phones: all five icons on one row, and the stats as a tidy 2 x 2 */
@media (max-width: 480px) {
  .icon-row { gap: 8px; }
  .icon-row a { width: 62px; font-size: .72rem; }
  .icon-row img { width: 54px; }
  .stats { display: grid; grid-template-columns: auto auto; justify-content: center; gap: 8px 22px; text-align: left; }
}
@media (max-width: 360px) {
  .icon-row { gap: 6px; }
  .icon-row a { width: 52px; font-size: .66rem; }
  .icon-row img { width: 46px; }
}

/* ---------------------------------------------------------------- the apps: one per row (owner's pick, round 3) */
.apps-layout .nm { display: flex; align-items: center; gap: 14px; }
.apps-layout .nm img { border-radius: 22.5%; box-shadow: 0 0 0 1px rgb(255 255 255 / .1), 0 10px 26px -12px color-mix(in srgb, var(--c) 50%, transparent); }
.apps-layout h3 { font-size: var(--t-h3); letter-spacing: -.025em; }
.apps-layout .more { color: var(--text-2); max-width: 48ch; }
.apps-layout .tags { display: flex; flex-wrap: wrap; gap: 8px; }
.apps-layout .links { display: grid; gap: 10px; font-weight: 600; margin-top: 6px; }
.buy-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.iap { font: 400 .88rem/1.4 var(--body); color: var(--text-3); padding-left: 4px; }
.apps-layout .links .more-link { color: var(--text-2); text-decoration: none; white-space: nowrap; }
.apps-layout .links .more-link:hover { color: var(--text); }
.btn-buy svg { width: 16px; height: 16px; margin-top: -2px; }
/* the price reads as part of the label: same face, same baseline, set off by a hairline */
.btn-buy .price { display: inline-flex; align-items: center; gap: 10px; font: inherit; font-weight: 500; font-variant-numeric: tabular-nums; opacity: .72; }
.btn-buy .price::before { content: ""; width: 1px; height: .95em; background: currentColor; opacity: .35; }
.btn-wait { padding: 13px 20px; color: #FFC56B; background: rgb(247 144 9 / .12); box-shadow: inset 0 0 0 1px rgb(247 144 9 / .3); cursor: default; }
.btn-wait i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.ph { position: relative; display: block; width: 100%; max-width: 280px; border-radius: 44px; padding: 9px; background: linear-gradient(145deg, #364052, #0C111B 40%, #262E3D); box-shadow: 0 0 0 1px #465166, 0 40px 80px -30px rgb(0 0 0 / .9), 0 0 110px -40px color-mix(in srgb, var(--c) 45%, transparent); }
/* the screenshot sets the frame's height, so nothing is cropped (the home bar keeps its gap) */
.ph img { width: 100%; height: auto; border-radius: 36px; }
a.ph, .apps-layout a.nm { color: inherit; text-decoration: none; }
a.ph { transition: transform .4s var(--ease); }
a.ph:hover { transform: translateY(-6px); }
.apps-layout a.nm:hover h3 { color: color-mix(in srgb, var(--c) 55%, #fff); }

.apps-layout { display: grid; gap: clamp(56px, 9vw, 120px); }
.row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 90px); align-items: center; }
.row-art { display: grid; place-items: center; position: relative; isolation: isolate; }
.row-art::before { content: ""; position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--c) 14%, transparent), transparent); z-index: -1; }
.row.flip .row-art { order: 2; }
.row-text { display: flex; flex-direction: column; gap: 18px; }
.row-text .big { font: 650 clamp(1.8rem, 3.6vw, 2.9rem)/1.08 var(--display); letter-spacing: -.035em; color: var(--text); max-width: 16ch; text-wrap: balance; }
@media (max-width: 760px) { .row { grid-template-columns: 1fr; } .row.flip .row-art { order: 0; } .ph { max-width: 240px; } }


/* Cute Animals Cussing: the Messages chat, masked until the switch is on */
.ph-wrap { display: grid; justify-items: center; gap: 18px; width: 100%; }
/* The chat sets its own size (same shape as the screenshots, 640x1384) and the frame wraps it, like the
   image phones. No percentage height: Safari resolved height:100% here taller than the frame. */
.ph-chat { display: block; }
.chat { width: 100%; aspect-ratio: 640 / 1384; border-radius: 36px; background: #fff; color: #000; font-family: var(--ios); display: flex; flex-direction: column; padding: 12px 14px 18px; overflow: hidden; font-size: 13.5px; }
.chat-top { display: grid; grid-template-columns: 24px 1fr 24px; align-items: center; justify-items: center; padding-bottom: 10px; border-bottom: 1px solid #E5E5EA; margin: 0 -14px 10px; padding-inline: 14px; }
.chat-back { color: #0A84FF; font-size: 28px; line-height: 1; justify-self: start; }
.chat-av { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(180deg, #A5ABB9, #858994); color: #fff; display: grid; place-items: center; font-weight: 600; grid-column: 2; }
.chat-nm { grid-column: 2; font-size: 11px; color: #333; margin-top: 3px; }
.chat-time { text-align: center; font-size: 10.5px; color: #8E8E93; margin: 8px 0 10px; }
.bub { max-width: 78%; padding: 8px 12px; border-radius: 18px; line-height: 1.3; margin: 0 0 4px; }
.bub.in { background: #E9E9EB; align-self: flex-start; border-bottom-left-radius: 6px; }
.sticker { align-self: flex-end; width: 62%; height: auto; margin-top: 14px; transform: rotate(4deg); filter: drop-shadow(0 2px 6px rgb(0 0 0 / .12)); }
.chat-read { align-self: flex-end; font-size: 10.5px; color: #8E8E93; margin-top: 4px; }
.reveal { display: inline-flex; align-items: center; gap: 10px; color: var(--text-2); font: 500 .9rem var(--body); cursor: pointer; user-select: none; }
.reveal input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.reveal .track { width: 40px; height: 24px; border-radius: 99px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); position: relative; transition: background .2s; }
.reveal .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--text-2); transition: transform .2s var(--ease), background .2s; }
.reveal input:checked + .track { background: var(--c-cac); }
.reveal input:checked + .track::after { transform: translateX(16px); background: #fff; }
.reveal input:focus-visible + .track { outline: 2px solid var(--accent-hi); outline-offset: 3px; }
.chat-status { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; font-size: 12px; font-weight: 600; padding: 2px 10px 14px; }
.chat-status .isl { width: 78px; height: 22px; border-radius: 12px; background: #000; }
.chat-status .sig { justify-self: end; display: flex; }
