/* Asanar Enterprises — studio site
   Colour: stone ground, ink text, one coral accent; each app niche keeps its own hue. */
:root {
  --ground: #f2f3ef;
  --surface: #ffffff;
  --ink: #111317;
  --muted: #5b6070;
  --line: #dde0da;
  --accent: #ff5a36;
  --accent-ink: #ffffff;
  --health: #ff6a2b;
  --games: #6d4aff;
  --sleep: #2a3a8f;
  --learn: #0f9d7a;
  --tools: #e2a412;
  --invert-bg: #111317;
  --invert-ink: #f2f3ef;
  --shadow: 0 1px 2px rgba(17, 19, 23, .05), 0 12px 32px -12px rgba(17, 19, 23, .18);
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "Hanken Grotesk", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #0e0f12;
    --surface: #16181d;
    --ink: #ecedef;
    --muted: #9ea3ae;
    --line: #262932;
    --accent: #ff7a5a;
    --accent-ink: #0e0f12;
    --sleep: #6f7fe0;
    --invert-bg: #ecedef;
    --invert-ink: #0e0f12;
    --shadow: 0 12px 32px -12px rgba(0, 0, 0, .6);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 17px/1.65 var(--body); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -.025em; line-height: 1.05; margin: 0; text-wrap: balance; }
p { margin: 0; }
[id] { scroll-margin-top: 80px; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.label { font: 500 12px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.label.accent { color: var(--accent); }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--ground) 82%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.top.scrolled { border-bottom-color: var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 700 19px/1 var(--display); letter-spacing: -.02em; }
.logo svg { width: 32px; height: 32px; flex: none; }
.logo .wm { font: 800 20px/1 var(--display); letter-spacing: -.03em; color: var(--ink); white-space: nowrap; }
.logo .wm em { font-style: normal; font-weight: 600; color: var(--accent); margin-left: .18em; letter-spacing: -.02em; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a { text-decoration: none; font-weight: 600; font-size: 15px; color: var(--muted); padding: 8px 12px; border-radius: 999px; transition: color .15s, background .15s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: var(--surface); }
.nav a.cta { background: var(--ink); color: var(--ground); margin-left: 6px; }
.nav a.cta:hover { background: var(--accent); color: var(--accent-ink); }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 16px; padding: 14px 22px; border-radius: 999px; background: var(--ink); color: var(--ground); transition: transform .2s, background .2s; }
.btn:hover { transform: translateY(-2px); background: var(--accent); color: var(--accent-ink); }
.btn.line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.line:hover { box-shadow: inset 0 0 0 1.5px var(--ink); background: transparent; color: var(--ink); }
.btn .arr { transition: transform .2s; }
.btn:hover .arr { transform: translateX(3px); }

/* hero */
.hero { padding-top: 72px; padding-bottom: 40px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(44px, 7.4vw, 92px); margin: 18px 0 24px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { font-size: clamp(18px, 1.6vw, 20px); color: var(--muted); max-width: 52ch; margin-bottom: 32px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* hero tile wall: one tile per niche we build in */
.wall { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px 16px; max-width: 440px; margin-left: auto; }
.tile { aspect-ratio: 1; border-radius: 28%; display: grid; place-items: center; position: relative; color: #fff; box-shadow: var(--shadow); animation: float 6s ease-in-out infinite; }
.tile svg { width: 42%; height: 42%; }
.tile img { width: 100%; height: 100%; border-radius: 28%; object-fit: cover; }
.tile span { position: absolute; bottom: -24px; left: 0; right: 0; text-align: center; font: 500 10.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.tile.health { background: var(--health); }
.tile.games { background: var(--games); animation-delay: -1s; }
.tile.sleep { background: var(--sleep); animation-delay: -2s; }
.tile.learn { background: var(--learn); animation-delay: -3s; }
.tile.tools { background: var(--tools); animation-delay: -4s; }
.tile.more { background: var(--surface); color: var(--muted); box-shadow: inset 0 0 0 1.5px var(--line); animation-delay: -5s; }
.tile.ghost { background: transparent; box-shadow: none; animation: none; }
.wall .tile:nth-child(3n+2) { transform: translateY(26px); }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }

/* page-load sequence: content starts visible, then settles in */
.rise { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
.rise.d1 { animation-delay: .08s; } .rise.d2 { animation-delay: .16s; } .rise.d3 { animation-delay: .24s; } .rise.d4 { animation-delay: .32s; }
@keyframes rise { from { transform: translateY(16px); } to { transform: none; } }

/* niche marquee */
.marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; padding: 22px 0; margin-top: 64px; }
.marquee .track { display: flex; gap: 48px; width: max-content; animation: slide 38s linear infinite; }
.marquee b { font: 700 clamp(22px, 3vw, 34px)/1 var(--display); letter-spacing: -.02em; white-space: nowrap; display: inline-flex; align-items: center; gap: 48px; }
.marquee b::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
@keyframes slide { to { transform: translateX(-50%); } }

/* sections */
.section { padding: 112px 0; }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(34px, 4.8vw, 60px); margin-top: 14px; }
.section-head p { color: var(--muted); font-size: 18px; max-width: 46ch; }

.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; }
.service { background: var(--surface); padding: 40px; display: grid; gap: 14px; align-content: start; transition: background .25s; }
.service:hover { background: var(--ground); }
.service .ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--ground); color: var(--accent); }
.service:hover .ico { background: var(--surface); }
.service .ico svg { width: 24px; height: 24px; }
.service h3 { font-size: 26px; }
.service p { color: var(--muted); }

/* niches */
.niches { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.niche { background: var(--surface); border-radius: 22px; padding: 26px 22px 24px; display: grid; gap: 28px; align-content: start; border: 1px solid var(--line); transition: transform .25s, box-shadow .25s; }
.niche:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.niche .dot { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; color: #fff; }
.niche .dot svg { width: 22px; height: 22px; }
.niche h3 { font-size: 22px; margin-bottom: 6px; }
.niche p { color: var(--muted); font-size: 15px; line-height: 1.5; }
.status { font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 7px; margin-top: 12px; color: var(--muted); }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--line); }
.status.live { color: var(--learn); }
.status.live::before { background: var(--learn); box-shadow: 0 0 0 4px color-mix(in srgb, var(--learn) 22%, transparent); }

/* process */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; }
.step { padding: 28px 28px 0 0; border-top: 2px solid var(--line); position: relative; }
.step::before { counter-increment: step; content: "0" counter(step); font: 500 13px/1 var(--mono); color: var(--accent); position: absolute; top: -9px; left: 0; background: var(--ground); padding-right: 12px; }
.step h3 { font-size: 24px; margin: 18px 0 10px; }
.step p { color: var(--muted); font-size: 16px; }

/* featured app: BodyQuest's own colours (near-black + orange glow) in both themes */
.feature { --bq: #ff5a1f; background: radial-gradient(70% 90% at 78% 50%, rgba(255, 90, 31, .45), rgba(255, 90, 31, 0) 70%), linear-gradient(150deg, #24130b 0%, #0d0c0a 62%); color: #fff8f3; border-radius: 32px; padding: 64px; display: grid; grid-template-columns: 1fr 1.05fr; gap: 40px; align-items: center; overflow: hidden; }
.feature .label { color: #ffb08f; }
.feature h2 { font-size: clamp(34px, 4.4vw, 56px); margin: 16px 0 18px; }
.feature h2 em { font-style: normal; color: var(--bq); }
.feature p.copy { color: rgba(255, 248, 243, .74); font-size: 18px; max-width: 46ch; margin-bottom: 28px; }
.feature .btn { background: var(--bq); color: #fff; }
.feature .btn:hover { background: #fff8f3; color: #0d0c0a; }
.feature .btn.line { background: transparent; color: #fff8f3; box-shadow: inset 0 0 0 1.5px rgba(255, 248, 243, .35); }
.feature .btn.line:hover { box-shadow: inset 0 0 0 1.5px #fff8f3; color: #fff8f3; }
.fan { position: relative; height: 520px; }
.fan img { position: absolute; top: 50%; left: 50%; width: 210px; border-radius: 26px; box-shadow: 0 30px 60px -18px rgba(0, 0, 0, .75); transition: transform .4s cubic-bezier(.2, .7, .2, 1); }
.fan img:nth-child(1) { transform: translate(-118%, -46%) rotate(-7deg); }
.fan img:nth-child(2) { width: 240px; transform: translate(-50%, -50%); z-index: 2; }
.fan img:nth-child(3) { transform: translate(18%, -46%) rotate(7deg); }
.feature:hover .fan img:nth-child(1) { transform: translate(-126%, -47%) rotate(-9deg); }
.feature:hover .fan img:nth-child(3) { transform: translate(26%, -47%) rotate(9deg); }
.shots { display: flex; gap: 16px; justify-content: center; }
.shots img { width: 46%; max-width: 230px; border-radius: 22px; }
.shots img:nth-child(2) { translate: 0 40px; }

/* principles */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.principle h3 { font-size: 24px; margin-bottom: 10px; }
.principle p { color: var(--muted); }
.principle .num { font: 700 64px/1 var(--display); color: var(--accent); letter-spacing: -.04em; margin-bottom: 14px; }

/* company facts */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; background: var(--surface); }
.fact { padding: 28px; border-right: 1px solid var(--line); display: grid; gap: 10px; align-content: start; }
.fact:last-child { border-right: 0; }
.fact strong { font: 600 18px/1.35 var(--display); letter-spacing: -.01em; overflow-wrap: anywhere; }
.fact a { text-decoration: none; }
.fact a:hover { color: var(--accent); }

/* contact band */
.band { text-align: center; padding: 120px 0; }
.band h2 { font-size: clamp(40px, 7vw, 88px); margin: 16px auto 28px; max-width: 14ch; }
.band .mail { font: 700 clamp(20px, 2.6vw, 30px)/1.2 var(--display); color: var(--accent); text-decoration: none; border-bottom: 2px solid currentColor; }

/* apps index + app page */
.page-hero { padding-top: 88px; padding-bottom: 56px; }
.page-hero h1 { font-size: clamp(44px, 7vw, 84px); margin: 16px 0 20px; }
.page-hero p { color: var(--muted); font-size: 19px; max-width: 58ch; }
.app-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.app-card { background: var(--surface); border: 1px solid var(--line); border-radius: 26px; padding: 28px; display: grid; gap: 18px; align-content: start; text-decoration: none; transition: transform .25s, box-shadow .25s; }
a.app-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.app-card img.icon, .app-card .icon-ph { width: 72px; height: 72px; border-radius: 18px; }
.app-card .icon-ph { display: grid; place-items: center; color: #fff; }
.app-card .icon-ph svg { width: 34px; height: 34px; }
.app-card h3 { font-size: 26px; }
.app-card p { color: var(--muted); font-size: 16px; }
.app-card .go { font-weight: 700; color: var(--accent); }
.app-card.soon { background: transparent; border-style: dashed; }

.app-hero { padding-top: 72px; padding-bottom: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.app-hero .app-id { display: flex; align-items: center; gap: 20px; margin-bottom: 26px; }
.app-hero .app-id img { width: 96px; height: 96px; border-radius: 24px; box-shadow: var(--shadow); }
.app-hero h1 { font-size: clamp(40px, 5.6vw, 68px); margin-bottom: 18px; }
.app-hero p.copy { color: var(--muted); font-size: 19px; max-width: 50ch; margin-bottom: 30px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip { font: 500 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; padding: 8px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); }
.chip.on { color: var(--learn); border-color: color-mix(in srgb, var(--learn) 40%, var(--line)); }
.gallery { display: flex; gap: 18px; overflow-x: auto; padding: 8px 24px 24px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.gallery img { width: 240px; flex: none; border-radius: 24px; scroll-snap-align: center; box-shadow: var(--shadow); }
.gallery img:first-child { margin-left: auto; }
.gallery img:last-child { margin-right: auto; }
.feature-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-list div { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 28px; }
.feature-list h3 { font-size: 22px; margin-bottom: 8px; }
.feature-list p { color: var(--muted); font-size: 16px; }
.support { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.support a.card { display: grid; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 26px; text-decoration: none; transition: border-color .2s; }
.support a.card:hover { border-color: var(--ink); }
.support strong { font: 600 19px/1.3 var(--display); }
.support span { color: var(--muted); font-size: 15px; }

/* legal */
.prose { max-width: 760px; padding: 80px 0 112px; }
.prose h1 { font-size: clamp(40px, 6vw, 64px); margin: 14px 0 12px; }
.prose h2 { font-size: 24px; margin: 40px 0 10px; }
.prose p { margin-bottom: 14px; }
.prose a { color: var(--accent); }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 56px 0 40px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.foot h4 { font: 500 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 16px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot ul a { text-decoration: none; font-weight: 600; }
.foot ul a:hover { color: var(--accent); }
.foot .about { color: var(--muted); max-width: 34ch; margin-top: 16px; font-size: 15px; }
.foot .legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: 14px; }

/* responsive */
@media (max-width: 1000px) {
  .niches { grid-template-columns: repeat(2, 1fr); }
  .niches .niche:last-child { grid-column: span 2; }
  .process { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(2) { border-right: 0; }
  .fact:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .app-list, .feature-list, .support { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .hero, .app-hero, .feature, .section-head { grid-template-columns: 1fr; }
  .hero { padding-top: 48px; gap: 64px; }
  .wall { margin: 0 auto 24px; max-width: 360px; }
  .section { padding: 80px 0; }
  .services { grid-template-columns: 1fr; }
  .service { padding: 30px; }
  .feature { padding: 40px 24px 8px; border-radius: 26px; background: radial-gradient(90% 50% at 50% 82%, rgba(255, 90, 31, .5), rgba(255, 90, 31, 0) 72%), linear-gradient(170deg, #24130b 0%, #0d0c0a 60%); }
  .fan { height: 360px; }
  .fan img { width: 132px; border-radius: 18px; }
  .fan img:nth-child(2) { width: 158px; }
  .principles { grid-template-columns: 1fr; gap: 32px; }
  .nav a:not(.cta):not(.keep) { display: none; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .logo .wm { font-size: 18px; }
  .niches, .process, .app-list, .feature-list, .support, .facts, .foot-grid { grid-template-columns: 1fr; }
  .niches .niche:last-child { grid-column: auto; }
  .niche { min-height: 0; gap: 24px; }
  .fact { border-right: 0; border-bottom: 1px solid var(--line); }
  .fact:last-child { border-bottom: 0; }
  .band { padding: 88px 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
