/* ============================================================
   marsoft.click — shared stylesheet
   Direction: "studio paper" — warm paper + ink, editorial.
   Hand-written CSS. Mobile-first. No frameworks.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400..800&family=Inter:wght@400;500;600&display=swap');

/* ---- Design tokens ------------------------------------------*/
:root {
  /* paper + ink */
  --paper:    #F3F1EA;   /* main warm paper */
  --paper-2:  #EBE8DF;   /* recessed sections / cards */
  --paper-3:  #E2DED2;   /* deeper fill */
  --ink:      #17160F;   /* primary text / dark blocks */
  --ink-2:    #4C473C;   /* secondary text */
  --ink-3:    #847C6B;   /* muted / captions */
  --on-ink:   #EEEBE1;   /* text on ink blocks */
  --on-ink-2: #B7B1A2;   /* muted on ink */
  --on-ink-3: #7C7768;   /* faint on ink */

  /* hairlines */
  --line:    rgba(23,22,15,.14);
  --line-2:  rgba(23,22,15,.26);
  --line-i:  rgba(255,255,255,.12);   /* on ink */
  --line-i2: rgba(255,255,255,.20);

  /* single brand accent — electric cobalt */
  --accent:  #2B40E8;
  --accent-2:#1B2BB6;

  /* app spectrum — tuned to read on paper (fills + accents) */
  --green:  #1FA45F;
  --orange: #D9661B;
  --violet: #6A4BE0;
  --lime:   #7FA300;
  --blue:   #2B40E8;
  --gold:   #B0801A;
  --fiber:  #2C72D6;
  --plasma: #9430CC;
  --teal:   #0E9C89;

  /* shape */
  --r-sm: 9px;
  --r:    14px;
  --r-lg: 18px;
  --r-xl: 22px;

  /* shadow (soft, on paper) */
  --sh-1: 0 1px 2px rgba(23,22,15,.10);
  --sh-2: 0 22px 50px -28px rgba(23,22,15,.40);
  --sh-3: 0 40px 90px -50px rgba(23,22,15,.55);

  /* type */
  --display: 'Bricolage Grotesque', 'Space Grotesk', system-ui, sans-serif;
  --body:    'Inter', system-ui, -apple-system, sans-serif;
  --mono:    ui-monospace, 'SF Mono', 'JetBrains Mono', 'Cascadia Code', Menlo, monospace;

  /* layout */
  --maxw: 1200px;
  --pad:  clamp(20px, 5vw, 68px);
  --ease: cubic-bezier(.2,.7,.2,1);
}

/* ---- Reset --------------------------------------------------*/
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body { font-optical-sizing: auto; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
::selection { background: var(--ink); color: var(--paper); }

/* subtle paper grain — adds a tactile, printed feel */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 92; pointer-events: none; opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 150px;
}
@media (prefers-reduced-motion: reduce) { body::after { display: none; } }

/* ---- Layout helpers -----------------------------------------*/
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: clamp(72px, 11vw, 130px); position: relative; }
.section--light { background: var(--paper); color: var(--ink); }
.section--dark  { background: var(--paper-2); color: var(--ink); }
.section--dark2 { background: var(--paper); color: var(--ink); }

/* ---- Eyebrow / labels ---------------------------------------*/
.eyebrow {
  font-family: var(--mono); font-size: 12px; letter-spacing: .2em;
  text-transform: uppercase; display: inline-flex; align-items: center; gap: 12px;
  color: var(--ink-3);
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; opacity: .7; }

/* ---- Headings -----------------------------------------------*/
.h-display {
  font-family: var(--display); font-weight: 800; letter-spacing: -0.035em;
  line-height: 0.96; font-size: clamp(2.7rem, 8vw, 6rem); text-wrap: balance;
}
.h1 {
  font-family: var(--display); font-weight: 700; letter-spacing: -0.03em;
  line-height: 1.0; font-size: clamp(2.1rem, 5vw, 3.6rem); text-wrap: balance;
}
.h2 { font-family: var(--display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.lede {
  font-size: clamp(1.06rem, 1.7vw, 1.32rem); color: var(--ink-2);
  max-width: 58ch; text-wrap: pretty; line-height: 1.5;
}
.grad { color: var(--accent); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--paper) 80%, transparent);
  backdrop-filter: blur(14px) saturate(130%);
  border-bottom: 1px solid var(--line);
}
.site-header__bar { display: flex; align-items: center; gap: 24px; height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand__mark { width: 34px; height: 34px; border-radius: 9px; box-shadow: var(--sh-1); }
.brand__word { font-family: var(--display); font-weight: 800; font-size: 1.22rem; letter-spacing: -0.03em; color: var(--ink); }
.brand__word .dot { color: var(--accent); }

.nav { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.nav__link {
  position: relative; font-size: 0.95rem; font-weight: 500; color: var(--ink-2);
  padding: 9px 14px; border-radius: 9px;
  transition: color .18s var(--ease), background .18s var(--ease);
}
.nav__link:hover { color: var(--ink); background: rgba(23,22,15,.05); }
.nav__link[aria-current="page"] { color: var(--ink); }
.nav__link[aria-current="page"]::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px;
  height: 2px; border-radius: 2px; background: var(--accent);
}

.lang {
  display: inline-flex; border: 1px solid var(--line-2); border-radius: 999px;
  overflow: hidden; font-family: var(--mono); font-size: 12px; margin-left: 10px;
}
.lang a { padding: 6px 11px; color: var(--ink-3); transition: color .15s, background .15s; }
.lang a[aria-current="true"] { color: var(--paper); background: var(--ink); }
.lang a:not([aria-current="true"]):hover { color: var(--ink); }

.burger { display: none; margin-left: auto; width: 44px; height: 44px; background: transparent; border: 1px solid var(--line-2); border-radius: 11px; position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s; }
.burger span:nth-child(1) { top: 16px; } .burger span:nth-child(2) { top: 21px; } .burger span:nth-child(3) { top: 26px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 880px) {
  .burger { display: block; }
  .nav {
    position: fixed; inset: 70px 0 auto 0; flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 14px var(--pad) 22px;
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: transform .25s var(--ease), opacity .25s;
  }
  .nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav__link { padding: 14px 12px; font-size: 1.05rem; border-radius: 12px; }
  .nav__link[aria-current="page"]::after { display: none; }
  .lang { margin: 12px 0 0; align-self: flex-start; }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--display); font-weight: 600; font-size: 0.98rem; letter-spacing: -0.01em;
  padding: 14px 22px; border-radius: 999px; border: 1px solid transparent;
  transition: transform .18s var(--ease), box-shadow .25s var(--ease), background .2s, border-color .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn .arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn--lg { padding: 17px 28px; font-size: 1.06rem; }

.btn--primary { color: var(--paper); background: var(--ink); box-shadow: 0 14px 30px -16px rgba(23,22,15,.6); }
.btn--primary:hover { box-shadow: 0 20px 44px -18px rgba(23,22,15,.55); }
.btn--ghost { color: var(--ink); background: transparent; border-color: var(--line-2); }
.btn--ghost:hover { background: rgba(23,22,15,.05); border-color: var(--ink); }
.btn--ink { color: var(--paper); background: var(--ink); }
.btn--ink:hover { box-shadow: var(--sh-2); }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; overflow: hidden; background: var(--paper); padding-block: clamp(72px, 12vw, 138px) clamp(64px, 10vw, 116px); }
.hero__halo { position: absolute; inset: -20% -10% auto auto; width: 60vw; height: 60vw; z-index: 0; pointer-events: none; }
.hero__halo i { position: absolute; inset: 0; border-radius: 50%; filter: blur(80px); opacity: .14; background: radial-gradient(circle, var(--accent), transparent 62%); }
.hero__halo i:nth-child(2), .hero__halo i:nth-child(3) { display: none; }
/* fine baseline rule under the hero copy */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(rgba(23,22,15,.05) 1px, transparent 1.4px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 80% 18%, #000 10%, transparent 70%);
          mask-image: radial-gradient(ellipse 70% 60% at 80% 18%, #000 10%, transparent 70%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero__inner { max-width: 960px; }
.hero h1 { margin-top: 22px; }
.hero h1 .grad { color: var(--accent); }
.hero__sub { margin-top: 26px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 48px; font-family: var(--mono); font-size: 12.5px; letter-spacing: .04em; color: var(--ink-3); }
.hero__meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero__meta span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

/* ============================================================
   SEC-HEAD + SERVICES (pillars)
   ============================================================ */
.sec-head { max-width: 740px; margin-bottom: clamp(40px, 6vw, 66px); }
.sec-head .h1 { margin-top: 16px; }
.sec-head .lede { margin-top: 18px; }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.pillar { padding: 38px 32px 38px 0; border-right: 1px solid var(--line); }
.pillar:last-child { border-right: 0; padding-right: 0; }
.pillar + .pillar { padding-left: 32px; }
.pillar__icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line-2); color: var(--ink); margin-bottom: 22px; }
.pillar__icon svg { width: 24px; height: 24px; }
.pillar h3 { font-family: var(--display); font-weight: 600; font-size: 1.3rem; letter-spacing: -0.02em; }
.pillar p { margin-top: 10px; color: var(--ink-2); font-size: 0.99rem; }
.pillar__tags { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 7px; }
.tag { font-family: var(--mono); font-size: 11.5px; letter-spacing: .03em; padding: 5px 10px; border-radius: 7px; background: var(--paper-2); color: var(--ink-2); border: 1px solid var(--line); }

@media (max-width: 820px) {
  .pillars { grid-template-columns: 1fr; }
  .pillar { padding: 30px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .pillar + .pillar { padding-left: 0; }
  .pillar:last-child { border-bottom: 0; padding-bottom: 0; }
}

/* ============================================================
   WORK INDEX (apps) — editorial clickable rows
   ============================================================ */
.apps { margin-top: clamp(34px, 5vw, 54px); border-top: 1px solid var(--line-2); }
.appcard {
  --tint: var(--accent);
  position: relative; cursor: pointer;
  display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 40px; align-items: center;
  padding: clamp(30px, 4vw, 48px) 0;
  border-bottom: 1px solid var(--line);
  transition: background .3s var(--ease);
}
/* cursor spotlight wash in the app's colour */
.appcard::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0;
  transition: opacity .35s var(--ease);
  background: radial-gradient(420px circle at var(--mx,50%) var(--my,50%), color-mix(in oklab, var(--tint), transparent 86%), transparent 60%);
}
/* left accent bar that grows on hover */
.appcard::after {
  content: ""; position: absolute; left: calc(var(--pad) * -0.5); top: 50%; transform: translateY(-50%);
  width: 3px; height: 0; border-radius: 3px; background: var(--tint);
  transition: height .35s var(--ease);
}
@media (hover: hover) {
  .appcard:hover::before { opacity: 1; }
  .appcard:hover::after { height: 64%; }
  .appcard:hover { background: color-mix(in oklab, var(--tint), transparent 95%); }
}
.appcard:focus-within::after { height: 64%; }
.appcard__body { position: relative; z-index: 1; }
.appcard__id { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.appicon {
  width: 52px; height: 52px; border-radius: 13px; flex-shrink: 0; object-fit: cover;
  background: var(--paper-2); box-shadow: 0 9px 22px -12px rgba(23,22,15,.5), 0 0 0 1px var(--line);
}
.appcard__id .num { font-family: var(--mono); font-size: 12px; color: var(--ink-3); letter-spacing: .12em; text-transform: uppercase; }
.appcard h3 { font-family: var(--display); font-weight: 700; font-size: clamp(1.9rem, 3.4vw, 2.6rem); letter-spacing: -0.03em; line-height: 1.02; }
.appcard__pitch { margin-top: 14px; color: var(--ink-2); font-size: 1.04rem; max-width: 46ch; }
.appcard__tags { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 7px; }
.appcard__link { margin-top: 26px; display: inline-flex; align-items: center; gap: 9px; font-family: var(--display); font-weight: 600; color: var(--ink); }
.appcard__link::after { content: ""; position: absolute; left: 0; bottom: -3px; width: 0; height: 1.5px; background: var(--tint); transition: width .3s var(--ease); }
.appcard__link { position: relative; }
.appcard:hover .appcard__link::after { width: 100%; }
.appcard__link .arrow { color: var(--tint); transition: transform .2s var(--ease); }
.appcard:hover .appcard__link .arrow { transform: translateX(4px); }
.appcard__visual { position: relative; z-index: 1; display: grid; place-items: center; transition: transform .4s var(--ease); }
@media (hover: hover) { .appcard:hover .appcard__visual { transform: translateY(-4px) scale(1.025); } }

@media (max-width: 760px) {
  .appcard { grid-template-columns: 1fr; gap: 26px; }
  .appcard__visual { order: -1; }
  .appcard::after { display: none; }
}

/* ============================================================
   TECH DEMOS — live, clickable AI demo cards
   ============================================================ */
.demos { margin-top: clamp(34px, 5vw, 54px); display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
@media (max-width: 760px) { .demos { grid-template-columns: 1fr; } }
.demo {
  --tint: var(--accent);
  position: relative; display: flex; flex-direction: column; cursor: pointer;
  padding: clamp(26px, 3.2vw, 38px);
  background: var(--paper-2); border: 1px solid var(--line); border-radius: 18px;
  text-decoration: none; color: inherit; overflow: hidden;
  transition: border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
.demo::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0;
  transition: opacity .35s var(--ease);
  background: radial-gradient(440px circle at var(--mx,50%) var(--my,50%), color-mix(in oklab, var(--tint), transparent 85%), transparent 60%);
}
@media (hover: hover) {
  .demo:hover { border-color: color-mix(in oklab, var(--tint), var(--line) 30%); transform: translateY(-3px); box-shadow: 0 24px 54px -30px rgba(23,22,15,.5); }
  .demo:hover::before { opacity: 1; }
}
.demo:focus-visible { outline: 2px solid var(--tint); outline-offset: 3px; }
.demo > * { position: relative; z-index: 1; }
.demo__top { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.demo__icon { width: 54px; height: 54px; flex-shrink: 0; border-radius: 15px; display: grid; place-items: center; color: #fff; background: var(--tint); box-shadow: 0 12px 26px -12px var(--tint); }
.demo__icon svg { width: 26px; height: 26px; }
.demo__live { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.demo__live i { width: 7px; height: 7px; border-radius: 50%; background: #1FA45F; box-shadow: 0 0 0 3px color-mix(in oklab, #1FA45F, transparent 80%); animation: demopulse 2.4s ease-in-out infinite; }
@keyframes demopulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.demo h3 { font-family: var(--display); font-weight: 700; font-size: clamp(1.5rem, 2.6vw, 1.95rem); letter-spacing: -0.02em; line-height: 1.05; margin-top: 22px; }
.demo__pitch { margin-top: 12px; color: var(--ink-2); font-size: 1.02rem; }
.demo__tags { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 7px; }
.demo__link { margin-top: auto; padding-top: 22px; display: inline-flex; align-items: center; gap: 9px; font-family: var(--display); font-weight: 600; color: var(--ink); }
.demo__tags + .demo__link { margin-top: 22px; }
.demo__link .arrow { color: var(--tint); transition: transform .2s var(--ease); }
.demo:hover .demo__link .arrow { transform: translateX(4px); }
@media (prefers-reduced-motion: reduce) { .demo__live i { animation: none; } }

/* ============================================================
   PHONE MOCKUP + screenshots
   ============================================================ */
.phone {
  position: relative; width: 240px; max-width: 72vw; aspect-ratio: 9 / 19.5;
  border-radius: 32px; border: 2px solid #23262d; background: #0a0c10;
  padding: 9px; box-shadow: var(--sh-3), 0 0 0 1px rgba(23,22,15,.06);
}
.phone::before { content: ""; position: absolute; left: 50%; top: 12px; transform: translateX(-50%); width: 64px; height: 7px; border-radius: 999px; background: rgba(255,255,255,.2); z-index: 3; }
.phone__screen { width: 100%; height: 100%; border-radius: 24px; overflow: hidden; position: relative; background: #0c1119; }
.phone__screen img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }

/* captioned shot (gallery) */
.shot { margin: 0; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.shot .phone { width: 100%; max-width: none; }
.shot figcaption { font-family: var(--mono); font-size: 11.5px; letter-spacing: .04em; color: var(--ink-3); text-align: center; line-height: 1.45; }
.shot figcaption b { color: var(--ink); font-weight: 600; }

/* ============================================================
   APPROACH — stats + stack
   ============================================================ */
.craft { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.craft__points { display: grid; gap: 22px; margin-top: 30px; }
.craft__point { display: flex; gap: 16px; }
.craft__point .b { width: 34px; height: 34px; flex-shrink: 0; border-radius: 9px; display: grid; place-items: center; background: var(--ink); color: var(--paper); }
.craft__point .b svg { width: 18px; height: 18px; }
.craft__point h4 { font-family: var(--display); font-weight: 600; font-size: 1.1rem; }
.craft__point p { color: var(--ink-2); font-size: .96rem; margin-top: 3px; }

.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.stat { background: var(--paper); padding: 28px 24px; }
.stat__num { font-family: var(--display); font-weight: 700; font-size: clamp(2.1rem, 4vw, 2.9rem); letter-spacing: -0.04em; color: var(--ink); }
.stat__lbl { margin-top: 6px; color: var(--ink-2); font-size: .92rem; }
.stack-title { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin: 30px 0 14px; }
.stack { display: flex; flex-wrap: wrap; gap: 8px; }
.stack .tag { background: var(--paper); font-size: 12.5px; padding: 7px 12px; }

@media (max-width: 820px) { .craft { grid-template-columns: 1fr; } }

/* ============================================================
   CTA band — the one ink moment
   ============================================================ */
.cta-band { position: relative; overflow: hidden; background: var(--ink); color: var(--on-ink); }
.cta-band__halo { position: absolute; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(60% 120% at 20% 0%, color-mix(in oklab, var(--accent), transparent 78%), transparent), radial-gradient(50% 120% at 85% 100%, color-mix(in oklab, var(--accent), transparent 86%), transparent); }
.cta-band .wrap { position: relative; z-index: 1; text-align: center; padding-block: clamp(64px, 9vw, 112px); }
.cta-band .h1 { color: var(--paper); margin-bottom: 14px; }
.cta-band .lede { color: var(--on-ink-2); margin: 0 auto 32px; }
.cta-band__row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; align-items: center; }
.cta-band__mail { font-family: var(--mono); font-size: 14px; color: var(--on-ink-2); }
.cta-band__mail a { color: var(--paper); border-bottom: 1px solid var(--line-i2); }
.cta-band .btn--primary { background: var(--paper); color: var(--ink); box-shadow: none; }
.cta-band .btn--primary:hover { box-shadow: 0 18px 40px -18px rgba(0,0,0,.6); }
.cta-band .btn--ghost { color: var(--paper); border-color: var(--line-i2); }
.cta-band .btn--ghost:hover { background: rgba(255,255,255,.08); border-color: var(--paper); }

/* ============================================================
   FOOTER — ink block
   ============================================================ */
.footer { background: #100F0A; color: var(--on-ink-2); padding-block: 58px 40px; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer__brand .brand__word { color: var(--on-ink); }
.footer__brand .brand__word .dot { color: var(--accent); }
.footer__tag { margin-top: 16px; font-size: .92rem; max-width: 34ch; color: var(--on-ink-3); }
.footer h5 { font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--on-ink-3); margin-bottom: 14px; }
.footer__col a { display: block; padding: 5px 0; font-size: .95rem; color: var(--on-ink-2); transition: color .15s; }
.footer__col a:hover { color: var(--on-ink); }
.footer__bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line-i); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; font-size: .85rem; color: var(--on-ink-3); font-family: var(--mono); letter-spacing: .03em; }
.footer__wordmark {
  margin-top: 8px; font-family: var(--display); font-weight: 800; letter-spacing: -0.05em;
  line-height: .82; font-size: clamp(3.4rem, 17vw, 13rem); color: rgba(238,235,225,.07);
  white-space: nowrap; overflow: hidden; user-select: none; pointer-events: none;
}
.footer__wordmark .dot { color: color-mix(in oklab, var(--accent), white 8%); }
@media (max-width: 720px) { .footer__top { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }

/* ============================================================
   APP DETAIL — hero + gallery + features
   ============================================================ */
.app-hero { --tint: var(--green); position: relative; overflow: hidden; padding-block: clamp(70px, 11vw, 128px) clamp(56px, 8vw, 96px); background: var(--paper); }
.app-hero__halo { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.app-hero__halo i { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .16; }
.app-hero__halo i:nth-child(1) { width: 48vw; height: 48vw; left: -10vw; top: -16vw; background: radial-gradient(circle, var(--tint), transparent 64%); }
.app-hero__halo i:nth-child(2) { display: none; }
.app-hero .wrap { position: relative; z-index: 1; }
.app-hero__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(36px, 6vw, 72px); align-items: center; }
.app-hero__id { display: flex; align-items: center; gap: 16px; }
.app-hero h1 { margin-top: 24px; }
.app-hero h1 .grad { color: var(--tint); }
.app-hero .lede { margin-top: 22px; }
.app-hero__cta { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 13px; align-items: center; }
.app-hero__visual { display: grid; place-items: center; }
.app-hero .appicon { width: 58px; height: 58px; border-radius: 14px; }
.crumbs { font-family: var(--mono); font-size: 12.5px; letter-spacing: .04em; color: var(--ink-3); margin-bottom: 26px; }
.crumbs a:hover { color: var(--ink); }
.crumbs .sep { opacity: .5; padding: 0 8px; }
@media (max-width: 820px) { .app-hero__grid { grid-template-columns: 1fr; } .app-hero__visual { order: -1; } }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: clamp(36px, 5vw, 56px); }
.gallery .phone { width: 100%; max-width: none; }
@media (max-width: 920px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 680px) { .gallery { grid-template-columns: repeat(2, 1fr); gap: 16px; } }

/* feature list */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin-top: clamp(32px, 4vw, 48px); }
.feature { background: var(--paper); padding: 28px 30px; display: flex; gap: 16px; transition: background .2s; }
.feature:hover { background: var(--paper-2); }
.feature .fi { width: 40px; height: 40px; flex-shrink: 0; border-radius: 11px; display: grid; place-items: center; color: var(--tint); background: color-mix(in oklab, var(--tint), transparent 88%); border: 1px solid color-mix(in oklab, var(--tint), transparent 70%); }
.feature .fi svg { width: 20px; height: 20px; }
.feature h4 { font-family: var(--display); font-weight: 600; font-size: 1.08rem; color: var(--ink); }
.feature p { color: var(--ink-2); font-size: .95rem; margin-top: 4px; }
@media (max-width: 680px) { .features { grid-template-columns: 1fr; } }

/* play badge */
.playbadge { display: inline-flex; align-items: center; gap: 12px; padding: 11px 20px; border-radius: 13px; background: var(--ink); color: var(--paper); border: 1px solid var(--ink); transition: transform .2s var(--ease), box-shadow .2s; }
.playbadge:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }
.playbadge svg { width: 26px; height: 26px; }
.playbadge .pb-sm { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--on-ink-2); }
.playbadge .pb-lg { display: block; line-height: 1.15; font-family: var(--display); font-weight: 600; font-size: 1.05rem; color: var(--paper); }

/* ============================================================
   SUB-PAGE HERO (contact / legal)
   ============================================================ */
.page-hero { position: relative; overflow: hidden; background: var(--paper); padding-block: clamp(64px, 10vw, 116px) clamp(40px, 6vw, 64px); }
.page-hero__halo { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.page-hero__halo i { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .14; }
.page-hero__halo i:nth-child(1) { width: 46vw; height: 46vw; right: -12vw; top: -20vw; background: radial-gradient(circle, var(--accent), transparent 64%); }
.page-hero__halo i:nth-child(2) { display: none; }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { margin-top: 18px; max-width: 18ch; }
.page-hero .lede { margin-top: 20px; max-width: 60ch; }

/* ============================================================
   CONTACT page
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.contact-card { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(28px, 4vw, 44px); }
.contact-card h2 { font-family: var(--display); font-weight: 700; font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -.03em; }
.contact-card .lede { margin: 14px 0 26px; color: var(--ink-2); }
.mailrow { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.mailrow .cta-band__mail { font-size: 15px; color: var(--ink-3); }
.mailrow .cta-band__mail a { color: var(--ink); border-bottom: 1px solid var(--line-2); }
.contact-list { --tint: var(--accent); display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.contact-list .feature { border: 0; }
.assist-link { margin-top: 18px; font-size: .95rem; color: var(--ink-2); }
.assist-link a { color: var(--ink); border-bottom: 1px solid var(--line-2); padding-bottom: 2px; transition: border-color .2s; }
.assist-link a:hover { border-color: var(--accent); }
.assist-link .arrow { color: var(--accent); }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }

/* ============================================================
   LEGAL / PROSE
   ============================================================ */
.prose { max-width: 74ch; }
.prose h2 { font-family: var(--display); font-weight: 700; font-size: clamp(1.3rem, 2.6vw, 1.65rem); letter-spacing: -.03em; color: var(--ink); margin: 40px 0 12px; padding-top: 28px; border-top: 1px solid var(--line); }
.prose h2:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.prose h3 { font-family: var(--display); font-weight: 600; font-size: 1.05rem; color: var(--ink); margin: 22px 0 8px; }
.prose p, .prose li { color: var(--ink-2); font-size: 1rem; }
.prose p { margin: 12px 0; }
.prose ul { margin: 12px 0; padding-left: 1.2em; display: grid; gap: 6px; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.prose strong { color: var(--ink); }
.legal-meta { display: block; margin-top: 8px; font-family: var(--mono); font-size: .82rem; letter-spacing: .02em; color: var(--ink-3); }

/* ============================================================
   SCROLL REVEAL + motion
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .appcard::before { display: none; }
  .appcard:hover .appcard__visual { transform: none; }
}

/* ============================================================
   Floating chat widget (assistant)
   ============================================================ */
.chatw__fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 80;
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  color: var(--paper); border: none; background: var(--ink);
  box-shadow: 0 16px 34px -12px rgba(23,22,15,.55), 0 0 0 1px rgba(23,22,15,.06);
  transition: transform .2s var(--ease), box-shadow .2s, background .2s;
}
.chatw__fab svg { width: 27px; height: 27px; }
.chatw__fab:hover { transform: translateY(-3px) scale(1.04); background: var(--accent); box-shadow: 0 22px 44px -14px rgba(43,64,232,.5); }
.chatw.open .chatw__fab { display: none; }

.chatw__panel {
  position: fixed; right: 22px; bottom: 22px; z-index: 81;
  width: 392px; max-width: calc(100vw - 32px); height: min(660px, calc(100vh - 96px));
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--paper); border: 1px solid var(--line-2); border-radius: 18px;
  box-shadow: var(--sh-3); animation: chatw-in .22s var(--ease);
}
.chatw__panel[hidden] { display: none; }
@keyframes chatw-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.chatw__bar { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 14px; background: var(--paper-2); border-bottom: 1px solid var(--line); }
.chatw__title { display: inline-flex; align-items: center; gap: 9px; font-family: var(--display); font-weight: 700; font-size: .96rem; color: var(--ink); }
.chatw__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent), transparent 78%); }
.chatw__close { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; background: transparent; border: 1px solid var(--line-2); color: var(--ink-2); transition: color .15s, border-color .15s; }
.chatw__close:hover { color: var(--ink); border-color: var(--ink); }
.chatw__close svg { width: 16px; height: 16px; }
.chatw__frame { flex: 1; width: 100%; border: 0; background: var(--paper); }

@media (max-width: 520px) {
  .chatw__fab { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); width: 54px; height: 54px; }
  .chatw__panel { right: 10px; left: 10px; top: 10px; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); width: auto; height: auto; max-width: none; border-radius: 16px; }
}
@media (prefers-reduced-motion: reduce) { .chatw__panel { animation: none; } .chatw__fab { transition: none; } }
