:root{
  --bg:#FBF7F1; --ink:#17192A; --muted:#6A6C7E; --line:#ECE4D8; --soft:#F3EDE3; --card:#FFFFFF;
  --accent:#E8643F; --dash:color-mix(in srgb,var(--muted) 40%,transparent);
  --ease:cubic-bezier(.2,.8,.2,1);
}
@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]){ --bg:#0E1220; --ink:#F1EEE8; --muted:#9A9DB0; --line:#22283D; --soft:#151A2C; --card:#141A2C; --accent:#FF8D6B; }
}
:root[data-theme="dark"]{ --bg:#0E1220; --ink:#F1EEE8; --muted:#9A9DB0; --line:#22283D; --soft:#151A2C; --card:#141A2C; --accent:#FF8D6B; }

*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:80px}
body{margin:0;background:var(--bg);color:var(--ink);font:17px/1.55 "DM Sans",system-ui,-apple-system,sans-serif;-webkit-font-smoothing:antialiased;overflow-x:clip}
a{color:inherit;text-decoration:none}
img{max-width:100%;height:auto;display:block}
button{font:inherit;color:inherit}
.wrap{width:min(1120px,100% - 32px);margin-inline:auto}
.serif{font-family:Fraunces,Georgia,serif;font-variation-settings:"SOFT" 100;letter-spacing:-.025em}
:focus-visible{outline:2px solid var(--accent);outline-offset:3px;border-radius:10px}
.kicker{font-size:13px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--accent)}

/* ---------- nav ---------- */
.nav{position:sticky;top:0;z-index:30;background:color-mix(in srgb,var(--bg) 82%,transparent);backdrop-filter:saturate(1.5) blur(16px);-webkit-backdrop-filter:saturate(1.5) blur(16px);border-bottom:1px solid transparent;transition:border-color .3s}
.nav.scrolled{border-color:var(--line)}
.nav .wrap{display:flex;align-items:center;justify-content:space-between;height:64px}
.brand{display:flex;align-items:center;gap:10px;font-weight:700;letter-spacing:-.01em;white-space:nowrap}
.brand img{width:30px;height:30px}
.nav nav{display:flex;align-items:center;gap:4px;font-size:15px;font-weight:500}
.nav nav a{padding:7px 13px;border-radius:999px;color:var(--muted);transition:color .2s,background .2s}
.nav nav a:hover{color:var(--ink);background:var(--soft)}
.nav nav a[aria-current="page"]{color:var(--ink);background:var(--soft)}

/* ---------- buttons ---------- */
.btn{display:inline-flex;align-items:center;gap:10px;height:50px;padding:0 22px;border-radius:999px;font-weight:600;font-size:16px;background:var(--a-btn,var(--ink));color:var(--a-btn-ink,var(--bg));transition:transform .2s var(--ease),box-shadow .2s;box-shadow:0 10px 24px -12px rgba(0,0,0,.5)}
.btn:hover{transform:translateY(-2px)}
.btn svg{width:18px;height:18px}
.btn.ghost{background:transparent;color:inherit;box-shadow:inset 0 0 0 1.5px color-mix(in srgb,currentColor 22%,transparent)}
.btn.ghost:hover{box-shadow:inset 0 0 0 1.5px color-mix(in srgb,currentColor 45%,transparent)}
.textlink{font-weight:600;color:var(--accent);white-space:nowrap;display:inline-flex;align-items:center;gap:6px}
.textlink:hover{text-decoration:underline;text-underline-offset:4px}

/* ---------- app identity ---------- */
.app-id{display:flex;align-items:center;gap:14px}
.app-id img{width:60px;height:60px;border-radius:23%;box-shadow:0 10px 24px -10px rgba(0,0,0,.35)}
.app-id b{display:flex;align-items:center;gap:8px;font-size:19px;letter-spacing:-.01em;flex-wrap:wrap}
.app-id span.cat{font-size:14px;color:var(--a-muted,var(--muted))}
.pill{display:inline-flex;align-items:center;gap:6px;font-size:11.5px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;padding:4px 10px;border-radius:999px;background:color-mix(in srgb,var(--a-ink,var(--ink)) 8%,transparent)}
.pill i{width:6px;height:6px;border-radius:50%;background:#2DB37A}
.pill.soon i{background:#E0A526}

/* ---------- phone mock ---------- */
.phone{--w:232px;--b:9px;flex:none;width:var(--w);padding:var(--b);border-radius:calc((var(--w) - 2 * var(--b)) * .14 + var(--b));background:#0B0B0F;
  box-shadow:0 0 0 1.5px #34343c inset,0 40px 80px -30px rgba(40,20,40,.5),0 16px 32px -18px rgba(40,20,40,.35)}
.phone img{width:100%;height:auto;aspect-ratio:1206/2622;object-fit:cover;border-radius:calc((var(--w) - 2 * var(--b)) * .14)}
.duo{display:flex;align-items:center;justify-content:center}
.duo .phone:first-child{position:relative;z-index:2}
.duo .phone + .phone{margin-left:calc(var(--w) * -.16);transform:translateY(calc(var(--w) * .16))}

/* ---------- app stage (home + app hero) ---------- */
.stage{position:relative;border-radius:40px;background:var(--a-bg);color:var(--a-ink);overflow:hidden;isolation:isolate;
  display:grid;grid-template-columns:1fr 1.05fr;min-height:640px}
.stage + .stage{margin-top:28px}
.stage .copy{padding:72px 0 72px 64px;display:flex;flex-direction:column;justify-content:center;max-width:480px}
.stage .app-id{margin-bottom:36px}
.stage h2,.stage h1{font-size:clamp(36px,4.4vw,58px);line-height:1.04;font-weight:500;margin:0 0 18px}
.stage p.sub{color:var(--a-muted);font-size:18px;margin:0 0 36px;max-width:30ch}
.stage .actions{display:flex;flex-wrap:wrap;align-items:center;gap:14px 18px}
.stage .meta{font-size:14px;color:var(--a-muted)}
.stage .devices{display:flex;align-items:center;justify-content:center;padding:56px 48px 80px 0}
a.stage-link{position:absolute;inset:0;z-index:0}
.stage .copy,.stage .devices{position:relative;z-index:1;pointer-events:none}
.stage .copy a{pointer-events:auto}

/* ---------- section headings ---------- */
.page-head{padding:88px 0 48px}
.page-head h1{font-size:clamp(44px,6.4vw,80px);line-height:1;font-weight:500;margin:14px 0 18px}
.page-head p{color:var(--muted);font-size:clamp(17px,2vw,20px);margin:0;max-width:40ch}
.sec-head{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:28px;flex-wrap:wrap}
.sec-head h2{font-size:clamp(30px,3.6vw,42px);line-height:1.1;font-weight:500;margin:8px 0 0}

/* ---------- home ---------- */
.hero{text-align:center;padding:96px 0 72px}
.hero h1{font-size:clamp(46px,7.4vw,92px);line-height:1;font-weight:500;margin:0 auto;max-width:12ch}
.hero h1 em{font-style:italic;color:var(--accent)}
.hero p{color:var(--muted);font-size:clamp(17px,2vw,20px);margin:22px 0 0}
.shelf{display:flex;justify-content:center;gap:clamp(20px,4vw,44px);margin-top:56px}
.shelf a{display:flex;flex-direction:column;align-items:center;gap:12px;font-size:14px;font-weight:500;color:var(--muted);width:96px;text-align:center}
.shelf .ic{width:clamp(72px,10vw,96px);aspect-ratio:1;border-radius:23%;overflow:hidden;box-shadow:0 18px 40px -18px rgba(23,25,42,.45);transition:transform .35s var(--ease)}
.shelf a:hover .ic{transform:translateY(-6px) scale(1.04)}
.shelf a:hover{color:var(--ink)}
.shelf .ic.more{display:grid;place-items:center;border:1.5px dashed var(--dash);box-shadow:none;font-size:26px;font-weight:300}
.home-more{display:flex;justify-content:center;margin:40px 0 0}

/* ---------- portfolio grid ---------- */
.filters{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:28px}
.filters button{border:1.5px solid var(--line);background:transparent;border-radius:999px;padding:8px 16px;font-size:15px;font-weight:600;color:var(--muted);cursor:pointer;transition:all .2s}
.filters button:hover{color:var(--ink);border-color:var(--muted)}
.filters button[aria-pressed="true"]{background:var(--ink);border-color:var(--ink);color:var(--bg)}
.filters button span{opacity:.6;margin-left:4px;font-weight:500}
.grid{display:grid;grid-template-columns:repeat(2,1fr);gap:24px}
.tile{position:relative;display:flex;flex-direction:column;border-radius:32px;background:var(--a-bg);color:var(--a-ink);overflow:hidden;padding:32px 32px 0;transition:transform .45s var(--ease),box-shadow .45s var(--ease)}
.tile:hover{transform:translateY(-6px);box-shadow:0 30px 60px -30px rgba(23,25,42,.45)}
.tile h3{font-size:clamp(26px,2.6vw,32px);line-height:1.1;font-weight:500;margin:28px 0 8px}
.tile p{color:var(--a-muted);margin:0;font-size:16px}
.tile .go{position:absolute;top:28px;right:28px;width:40px;height:40px;border-radius:50%;display:grid;place-items:center;background:color-mix(in srgb,var(--a-ink) 8%,transparent);transition:transform .3s var(--ease),background .3s}
.tile:hover .go{transform:rotate(-45deg);background:var(--a-btn);color:var(--a-btn-ink)}
.tile .go svg{width:18px;height:18px}
.tile .devices{display:flex;justify-content:center;margin-top:36px;padding-bottom:40px}
.tile .phone{--w:200px;--b:8px}
.tile[hidden]{display:none}
.tile.next{background:transparent;border:1.5px dashed var(--dash);color:var(--ink);justify-content:center;align-items:center;text-align:center;padding:48px 32px;min-height:420px}
.tile.next:hover{transform:none;box-shadow:none}
.tile.next .q{width:72px;height:72px;border-radius:23%;border:1.5px dashed var(--dash);display:grid;place-items:center;font-size:28px;color:var(--muted);margin-bottom:24px}
.tile.next h3{margin:0 0 8px}
.tile.next p{color:var(--muted);margin-bottom:24px}
.empty{color:var(--muted);padding:40px 0}

/* ---------- app page ---------- */
.crumb{display:inline-flex;align-items:center;gap:6px;color:var(--muted);font-weight:500;font-size:15px;margin:28px 0 20px}
.crumb:hover{color:var(--ink)}
.crumb svg{width:16px;height:16px}
.facts{display:grid;grid-template-columns:repeat(4,1fr);border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin:56px 0 0}
.facts div{padding:24px 24px 24px 0}
.facts div + div{padding-left:24px;border-left:1px solid var(--line)}
.facts dt{font-size:13px;color:var(--muted);margin-bottom:4px}
.facts dd{margin:0;font-weight:600}
.gallery-sec{padding:96px 0 0}
.gallery-wrap{position:relative}
.gallery{display:flex;gap:20px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;padding:8px max(16px,(100vw - 1120px) / 2) 40px;scroll-padding-inline:max(16px,(100vw - 1120px) / 2)}
.gallery::-webkit-scrollbar{display:none}
.gallery > *{scroll-snap-align:start;flex:none}
.gallery .poster{width:260px;border-radius:28px;overflow:hidden;box-shadow:0 24px 48px -28px rgba(23,25,42,.45);background:var(--soft)}
.gallery .poster img{aspect-ratio:1206/2622;object-fit:cover;width:100%}
.gallery .phone{--w:250px}
.arrows{display:flex;gap:8px}
.arrows button{width:44px;height:44px;border-radius:50%;border:1.5px solid var(--line);background:var(--bg);display:grid;place-items:center;cursor:pointer;transition:all .2s}
.arrows button:hover:not(:disabled){border-color:var(--muted)}
.arrows button:disabled{opacity:.35;cursor:default}
.arrows svg{width:18px;height:18px}
.features{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;padding:56px 0 0}
.feature{background:var(--card);border:1px solid var(--line);border-radius:24px;padding:24px}
.feature .ico{width:44px;height:44px;border-radius:14px;display:grid;place-items:center;background:color-mix(in srgb,var(--a-tint) 14%,transparent);color:var(--a-tint);margin-bottom:18px}
.feature .ico svg{width:22px;height:22px}
.feature h3{margin:0 0 4px;font-size:18px;letter-spacing:-.01em}
.feature p{margin:0;color:var(--muted);font-size:15px}
.cta-band{margin:96px 0 0;border-radius:32px;background:var(--a-bg);color:var(--a-ink);padding:48px;display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:wrap}
.cta-band .app-id img{width:72px;height:72px}
.cta-band h2{font-size:clamp(26px,3vw,36px);font-weight:500;margin:0;line-height:1.1}
.more-apps{padding:96px 0 0}
.more-apps .grid{grid-template-columns:repeat(2,1fr)}
.mini{display:flex;align-items:center;gap:16px;padding:20px;border-radius:24px;border:1px solid var(--line);background:var(--card);transition:transform .3s var(--ease),border-color .3s}
.mini:hover{transform:translateY(-3px);border-color:var(--muted)}
.mini img{width:56px;height:56px;border-radius:23%}
.mini b{display:block}
.mini span{color:var(--muted);font-size:15px}
.mini .arrow{margin-left:auto;color:var(--muted)}

/* ---------- promises ---------- */
.promises{display:grid;grid-template-columns:repeat(4,1fr);border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.promises div{padding:28px 24px;display:flex;align-items:center;gap:14px;font-weight:600}
.promises div + div{border-left:1px solid var(--line)}
.promises svg{flex:none;width:22px;height:22px;color:var(--accent)}

/* ---------- about ---------- */
.statement{font-size:clamp(30px,4.2vw,52px);line-height:1.12;font-weight:400;max-width:22ch;margin:0}
.statement em{color:var(--accent)}
.values{display:grid;grid-template-columns:repeat(2,1fr);gap:16px;margin:72px 0 0}
.value{border:1px solid var(--line);background:var(--card);border-radius:24px;padding:28px}
.value .ico{width:44px;height:44px;border-radius:14px;display:grid;place-items:center;background:color-mix(in srgb,var(--accent) 12%,transparent);color:var(--accent);margin-bottom:18px}
.value .ico svg{width:22px;height:22px}
.value h3{margin:0 0 4px;font-size:19px}
.value p{margin:0;color:var(--muted)}

/* ---------- contact band ---------- */
.contact{text-align:center;padding:120px 0}
.contact .logo{width:56px;height:56px;margin:0 auto 28px}
.contact h2{font-size:clamp(30px,4vw,46px);line-height:1.15;font-weight:400;max-width:20ch;margin:0 auto 32px}
.contact h2 em{color:var(--accent)}
.mail{display:inline-flex;align-items:center;gap:10px;height:50px;padding:0 24px;border-radius:999px;border:1.5px solid var(--line);font-weight:600;transition:background .2s,border-color .2s}
.mail:hover{background:var(--soft);border-color:var(--muted)}

footer{border-top:1px solid var(--line);padding:28px 0 40px;color:var(--muted);font-size:14px}
footer .wrap{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap}
footer nav{display:flex;gap:20px;flex-wrap:wrap}
footer a:hover{color:var(--ink)}

/* ---------- motion ---------- */
.reveal{opacity:0;transform:translateY(24px);transition:opacity .8s var(--ease),transform .8s var(--ease)}
.reveal.in{opacity:1;transform:none}
.reveal .duo .phone + .phone{transition:transform 1.1s var(--ease) .15s}
.reveal:not(.in) .duo .phone + .phone{transform:translateY(calc(var(--w) * .4))}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}.reveal{opacity:1;transform:none;transition:none}.reveal .phone{transition:none!important}}

/* ---------- responsive ---------- */
@media (max-width:900px){
  .stage{grid-template-columns:1fr;min-height:0;border-radius:32px}
  .stage .copy{padding:44px 28px 8px;max-width:none}
  .stage .devices{padding:40px 24px 72px}
  .stage .phone{--w:210px;--b:8px}
  .promises,.features{grid-template-columns:repeat(2,1fr)}
  .promises div:nth-child(3){border-left:0}
  .promises div:nth-child(n+3){border-top:1px solid var(--line)}
  .facts{grid-template-columns:repeat(2,1fr)}
  .facts div:nth-child(3){padding-left:0;border-left:0}
  .facts div:nth-child(n+3){border-top:1px solid var(--line)}
  .grid,.more-apps .grid{grid-template-columns:1fr}
}
@media (max-width:600px){
  .nav nav a{padding:7px 10px}
  .nav nav a.hide-sm{display:none}
  .hero{padding:64px 0 48px}
  .shelf{gap:10px}
  .stage{border-radius:28px}
  .stage .copy{padding:36px 22px 0}
  .stage .app-id{margin-bottom:24px}
  .stage .devices{padding:32px 12px 56px}
  .stage .phone{--w:150px;--b:6px}
  .tile{padding:26px 22px 0;border-radius:28px}
  .tile .phone{--w:170px;--b:7px}
  .features{grid-template-columns:1fr}
  .values{grid-template-columns:1fr}
  .promises div{padding:20px 14px;font-size:15px}
  .gallery .poster{width:220px;border-radius:24px}
  .gallery .phone{--w:210px;--b:8px}
  .arrows{display:none}
  .cta-band{padding:32px 24px}
  .page-head{padding:56px 0 32px}
  .contact{padding:88px 0}
}
