/* marbyte.dev — Apple-clean dark. Plain CSS, system fonts, no build step. */

:root{
  --bg:#05070D; --bg-alt:#0B1020; --surface:#13151C; --surface-2:#0E1118;
  --hairline:rgba(255,255,255,.10); --hairline-strong:rgba(255,255,255,.18);
  --text:#F5F5F7; --text-muted:#86868B; --text-faint:#8A8A90; --link:#2997FF;
  --grad:linear-gradient(135deg,#38BDF8 0%,#6366F1 55%,#7C5CFF 100%);
  --maxw:1080px; --nav-h:56px; --pill:980px;
  --font:-apple-system,BlinkMacSystemFont,"SF Pro Display","SF Pro Text","Helvetica Neue",Inter,Arial,sans-serif;
}

*,*::before,*::after{box-sizing:border-box;}
html{-webkit-text-size-adjust:100%;color-scheme:dark;scroll-behavior:smooth;}
body{margin:0;background:var(--bg);color:var(--text);font-family:var(--font);
  -webkit-font-smoothing:antialiased;line-height:1.5;overflow-x:hidden;}
img{max-width:100%;display:block;}
a{color:var(--link);}
::selection{background:rgba(41,151,255,.30);}
:focus-visible{outline:2px solid var(--link);outline-offset:3px;border-radius:4px;}

.skip{position:absolute;left:-9999px;top:0;z-index:100;background:var(--surface);
  color:var(--text);padding:10px 16px;border-radius:0 0 10px 0;text-decoration:none;}
.skip:focus{left:0;}

.container{width:100%;max-width:var(--maxw);margin:0 auto;padding:0 22px;}
.center{text-align:center;display:flex;flex-direction:column;align-items:center;}

/* ---- nav ---- */
.nav{position:fixed;inset:0 0 auto;height:var(--nav-h);display:flex;align-items:center;
  justify-content:center;z-index:50;background:transparent;border-bottom:1px solid transparent;
  transition:background .4s ease,border-color .4s ease,backdrop-filter .4s ease;}
.nav.is-scrolled{background:rgba(5,7,13,.72);backdrop-filter:saturate(180%) blur(20px);
  -webkit-backdrop-filter:saturate(180%) blur(20px);border-bottom-color:var(--hairline);}
.nav__inner{width:100%;max-width:var(--maxw);padding:0 22px;display:flex;align-items:center;
  justify-content:space-between;gap:16px;}
.wordmark{display:flex;align-items:center;gap:9px;text-decoration:none;color:var(--text);}
.wordmark__mark{width:22px;height:22px;object-fit:contain;}
.wordmark__text{font-size:16px;font-weight:600;letter-spacing:-.01em;}
.wordmark__dot{color:var(--text-muted);font-weight:500;}
.nav__links{display:flex;align-items:center;gap:clamp(16px,3vw,34px);}
.nav__links a{font-size:14px;color:var(--text-muted);text-decoration:none;transition:color .2s ease;}
.nav__links a:hover{color:var(--text);}

/* ---- buttons ---- */
.btn{display:inline-flex;align-items:center;justify-content:center;height:50px;padding:0 30px;
  border-radius:var(--pill);background:var(--grad);color:#fff;font-size:17px;font-weight:500;
  text-decoration:none;box-shadow:0 6px 28px rgba(99,102,241,.30);
  transition:filter .2s ease,transform .2s ease;}
.btn:hover{filter:brightness(1.10);}
.btn:active{transform:translateY(1px);}

/* ---- text utils ---- */
.eyebrow{margin:0 0 16px;font-size:14px;font-weight:500;color:var(--text-muted);}
.grad-text{background:var(--grad);-webkit-background-clip:text;background-clip:text;
  -webkit-text-fill-color:transparent;color:transparent;}
.lede{margin:28px auto 0;max-width:600px;font-size:clamp(18px,2vw,21px);color:var(--text-muted);}
.section__title{margin:0;font-size:clamp(30px,4vw,48px);line-height:1.1;font-weight:600;
  letter-spacing:-.025em;color:var(--text);}
.section__lede{margin:22px auto 0;max-width:540px;font-size:clamp(17px,1.7vw,19px);color:var(--text-muted);}

/* ---- hero ---- */
.hero{position:relative;min-height:min(92vh,800px);display:flex;align-items:center;
  padding:120px 0 90px;scroll-margin-top:var(--nav-h);overflow:hidden;}
.hero__media{position:absolute;inset:0;z-index:0;width:100%;height:100%;
  object-fit:cover;object-position:right center;pointer-events:none;}
.hero::before{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;
  background:linear-gradient(90deg,var(--bg) 0%,rgba(5,7,13,.94) 30%,rgba(5,7,13,.70) 50%,rgba(5,7,13,.24) 67%,rgba(5,7,13,0) 85%);}
.hero__inner{position:relative;z-index:3;width:100%;max-width:var(--maxw);margin:0 auto;padding:0 22px;}
.hero__content{position:relative;max-width:500px;text-align:left;}
.hero__title{margin:0;font-size:clamp(40px,6.5vw,80px);line-height:1.05;font-weight:600;letter-spacing:-.03em;}
.hero__content .lede{margin-left:0;margin-right:0;}
.hero__cta{margin-top:40px;display:flex;flex-wrap:wrap;gap:18px 22px;align-items:center;justify-content:flex-start;}
.glow{position:absolute;top:42%;left:38%;width:min(760px,92vw);height:min(560px,70vh);
  transform:translate(-50%,-50%);pointer-events:none;z-index:2;filter:blur(8px);
  background:radial-gradient(closest-side,rgba(56,189,248,.16),rgba(124,92,255,.10) 45%,rgba(5,7,13,0) 72%);
  animation:glow 14s ease-in-out infinite;}
@keyframes glow{0%,100%{opacity:.55;transform:translate(-50%,-50%) scale(1);}
  50%{opacity:.8;transform:translate(-50%,-50%) scale(1.08);}}

/* ---- sections ---- */
.section{padding:clamp(86px,13vw,150px) 22px;scroll-margin-top:var(--nav-h);background:var(--bg);}
.section--alt{background:var(--bg-alt);}

/* ---- app card (empty state) ---- */
.appcard{margin:52px auto 0;width:100%;max-width:360px;padding:44px 32px;border-radius:22px;
  background:var(--surface);border:1px solid var(--hairline);display:flex;flex-direction:column;
  align-items:center;gap:22px;transition:border-color .3s ease,transform .3s ease;}
.appcard:hover{border-color:var(--hairline-strong);transform:translateY(-3px);}
.appcard__icon{position:relative;width:96px;height:96px;border-radius:22px;background:var(--surface-2);
  border:1px solid rgba(255,255,255,.08);display:flex;align-items:center;justify-content:center;overflow:hidden;}
.appcard__icon::before{content:"";position:absolute;inset:0;
  background:radial-gradient(closest-side,rgba(99,102,241,.14),rgba(5,7,13,0) 75%);}
.appcard__icon img{position:relative;width:50px;height:50px;opacity:.30;}
.appcard__status{margin:0;display:inline-flex;align-items:center;gap:8px;font-size:13px;
  font-weight:500;color:var(--text-muted);}
.dot{width:6px;height:6px;border-radius:50%;background:var(--link);box-shadow:0 0 10px rgba(41,151,255,.7);}
.appcard__badge{display:flex;flex-direction:column;align-items:center;gap:9px;margin-top:4px;}
.badge--disabled{display:inline-flex;align-items:center;height:38px;padding:0 18px;border-radius:10px;
  border:1px solid var(--hairline);background:var(--surface-2);color:var(--text-muted);
  font-size:13px;font-weight:500;opacity:.75;}
.appcard__cap{font-size:11px;font-weight:500;letter-spacing:.04em;text-transform:uppercase;color:var(--text-faint);}
.badge{display:inline-flex;align-items:center;gap:11px;height:46px;padding:0 20px 0 17px;border-radius:11px;
  background:#000;color:#fff;border:1px solid rgba(255,255,255,.16);text-decoration:none;
  transition:background .2s ease,border-color .2s ease,transform .2s ease;}
.badge:hover{background:#161616;border-color:rgba(255,255,255,.30);}
.badge:active{transform:translateY(1px);}
.badge svg{flex:0 0 auto;}
.badge__txt{display:flex;flex-direction:column;line-height:1.05;}
.badge__txt span{font-size:10px;font-weight:400;letter-spacing:.01em;opacity:.9;}
.badge__txt strong{font-size:17px;font-weight:600;letter-spacing:-.01em;margin-top:1px;}

/* ---- app list (live apps) ---- */
.applist{margin:52px auto 0;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));
  gap:22px;max-width:760px;}
.appitem{display:flex;align-items:center;gap:18px;padding:22px;border-radius:22px;text-align:left;
  background:var(--surface);border:1px solid var(--hairline);text-decoration:none;color:inherit;
  transition:border-color .3s ease,transform .3s ease;}
.appitem:hover{border-color:var(--hairline-strong);transform:translateY(-3px);}
.appitem__icon{flex:0 0 auto;width:72px;height:72px;border-radius:17px;
  border:1px solid rgba(255,255,255,.08);overflow:hidden;background:var(--surface-2);}
.appitem__icon img{width:100%;height:100%;object-fit:cover;opacity:1;}
.appitem__body{display:flex;flex-direction:column;gap:5px;min-width:0;}
.appitem__name{margin:0;font-size:19px;font-weight:600;letter-spacing:-.01em;color:var(--text);}
.appitem__desc{margin:0;font-size:15px;color:var(--text-muted);}
.appitem__meta{display:inline-flex;align-items:center;gap:7px;margin-top:3px;font-size:12px;
  font-weight:500;color:var(--text-faint);}

/* ---- product page ---- */
.product{max-width:920px;margin:0 auto;padding:calc(var(--nav-h) + 64px) 22px 40px;}
.product__back{display:inline-block;margin-bottom:34px;font-size:14px;color:var(--text-muted);text-decoration:none;}
.product__back:hover{color:var(--text);}
.product__hero{position:relative;display:flex;align-items:center;gap:26px;flex-wrap:wrap;}
.product__hero>*{position:relative;z-index:1;}
.product__hero::before{content:"";position:absolute;z-index:0;top:50%;left:-3%;
  width:min(460px,72%);height:340px;transform:translateY(-50%);pointer-events:none;filter:blur(10px);
  background:radial-gradient(closest-side,rgba(99,102,241,.18),rgba(124,92,255,.08) 48%,rgba(5,7,13,0) 72%);}
.product__icon{flex:0 0 auto;width:108px;height:108px;border-radius:25px;overflow:hidden;
  border:1px solid rgba(255,255,255,.08);
  box-shadow:0 18px 50px rgba(0,0,0,.45),0 0 0 1px rgba(255,255,255,.06),0 8px 30px rgba(99,102,241,.18);}
.product__icon img{width:100%;height:100%;object-fit:cover;}
.product__heading{min-width:0;}
.product__name{margin:0;font-size:clamp(30px,5vw,44px);font-weight:600;letter-spacing:-.025em;line-height:1.1;}
.product__tagline{margin:10px 0 0;font-size:clamp(17px,2vw,20px);color:var(--text-muted);max-width:520px;}
.product__cta{margin-top:30px;display:flex;flex-wrap:wrap;align-items:center;gap:14px 18px;}
.product__lede{margin:40px 0 0;font-size:clamp(17px,1.9vw,20px);line-height:1.6;color:var(--text-muted);max-width:680px;}

/* product page sections + heading rhythm */
.product__section{margin-top:clamp(64px,9vw,104px);}
.product__section-head{margin-bottom:clamp(26px,3.5vw,38px);}
.product__eyebrow{margin:0 0 7px;font-size:13px;font-weight:600;letter-spacing:.05em;
  text-transform:uppercase;color:var(--text-muted);}
.product__h2{margin:0;font-size:clamp(24px,3.4vw,34px);font-weight:600;letter-spacing:-.02em;
  line-height:1.12;color:var(--text);}
.product__subhead{margin:clamp(40px,6vw,60px) 0 22px;font-size:18px;font-weight:600;
  letter-spacing:-.01em;color:var(--text);}

/* Full-bleed gallery: break out of the 920px product column so the screenshots
   use the whole viewport width. --shots-gutter aligns the first/last shot with
   the page content edge (920/2 - 22 = 438), and clamps to 22px on narrow screens. */
.shots{--shots-gutter:max(22px,calc(50vw - 438px));
  display:flex;gap:18px;margin:0;margin-inline:calc(50% - 50vw);width:100vw;
  padding:4px var(--shots-gutter) 14px;list-style:none;overflow-x:auto;
  scroll-snap-type:x mandatory;scroll-padding-inline:var(--shots-gutter);
  overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;}
.shots .shot{flex:0 0 auto;scroll-snap-align:start;}
.shots figure{margin:0;display:flex;flex-direction:column;gap:12px;width:232px;}
.shots img{width:232px;height:auto;aspect-ratio:232/504;border-radius:22px;
  border:1px solid var(--hairline);box-shadow:0 20px 50px rgba(0,0,0,.5);}
.shots figcaption{font-size:14px;color:var(--text-muted);text-align:center;line-height:1.35;}
.shots:focus-visible{outline-offset:6px;}

.features{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));
  gap:clamp(26px,4vw,44px);margin:0;}
@media (min-width:760px){.features--pillars{grid-template-columns:repeat(3,1fr);}}
.feature{display:flex;flex-direction:column;gap:10px;}
.feature h3{margin:0;font-size:19px;font-weight:600;letter-spacing:-.01em;color:var(--text);}
.feature p{margin:0;font-size:16px;color:var(--text-muted);}

.callout{margin:0;padding:28px 26px;border-radius:20px;background:var(--surface);
  border:1px solid var(--hairline);}
.callout h2,.callout h3{margin:0 0 8px;font-size:19px;font-weight:600;letter-spacing:-.01em;color:var(--text);}
.callout p{margin:0;font-size:16px;color:var(--text-muted);}
.callout--privacy{display:flex;gap:16px;align-items:flex-start;border-color:rgba(99,102,241,.28);
  box-shadow:0 0 0 1px rgba(99,102,241,.12),0 10px 30px rgba(0,0,0,.3);}
.callout__icon{flex:0 0 auto;color:var(--link);margin-top:1px;}

.product__closing{margin-top:clamp(72px,10vw,120px);padding-top:clamp(40px,6vw,56px);
  border-top:1px solid var(--hairline);text-align:center;}
.product__payoff{margin:0 0 26px;font-size:clamp(26px,4vw,40px);font-weight:600;
  letter-spacing:-.025em;color:var(--text);}
.product__closing .product__cta{margin-top:0;justify-content:center;}

/* ---- values ---- */
.approach__head{margin-bottom:clamp(48px,7vw,80px);}
.values{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));
  gap:clamp(28px,5vw,56px) clamp(36px,6vw,72px);max-width:1000px;margin:0 auto;}
.value{display:flex;flex-direction:column;align-items:flex-start;gap:16px;}
.value__icon{color:var(--text-muted);}
.value h3{margin:0;font-size:21px;font-weight:600;letter-spacing:-.01em;color:var(--text);}
.value p{margin:0;font-size:17px;color:var(--text-muted);}

/* ---- contact ---- */
.contact .btn{margin-top:36px;height:52px;padding:0 34px;}

/* ---- contact page ---- */
.contactpage{max-width:600px;margin:0 auto;padding:calc(var(--nav-h) + 64px) 22px 40px;}
.contactpage__head{text-align:center;margin-bottom:clamp(34px,5vw,50px);}
.contactpage__title{margin:0;font-size:clamp(30px,5vw,44px);font-weight:600;letter-spacing:-.025em;
  line-height:1.1;color:var(--text);}
.contactpage__lede{margin:16px auto 0;max-width:460px;font-size:clamp(16px,1.8vw,18px);
  line-height:1.55;color:var(--text-muted);}
.cform{display:flex;flex-direction:column;gap:20px;}
.cform__row{display:flex;flex-direction:column;gap:8px;}
.cform__label{font-size:14px;font-weight:500;color:var(--text);}
.cform__opt{color:var(--text-faint);font-weight:400;}
.cform__input{width:100%;padding:12px 14px;border-radius:12px;background:var(--surface-2);
  border:1px solid var(--hairline);color:var(--text);font-family:inherit;font-size:16px;line-height:1.4;
  transition:border-color .2s ease,box-shadow .2s ease;}
.cform__input::placeholder{color:var(--text-faint);}
.cform__input:focus-visible{outline:none;border-color:var(--link);box-shadow:0 0 0 3px rgba(41,151,255,.22);}
.cform__textarea{resize:vertical;min-height:132px;line-height:1.5;}
.cform__select{appearance:none;-webkit-appearance:none;cursor:pointer;padding-right:40px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2386868B' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 14px center;}
.cform__submit{margin-top:4px;align-self:flex-start;}
.cform__note{margin:2px 0 0;font-size:13px;line-height:1.5;color:var(--text-faint);}
.cform__direct{margin-top:clamp(34px,5vw,46px);padding-top:clamp(26px,4vw,34px);
  border-top:1px solid var(--hairline);text-align:center;}
.cform__direct-label{margin:0 0 12px;font-size:12px;font-weight:600;letter-spacing:.05em;
  text-transform:uppercase;color:var(--text-muted);}
.cform__direct-row{display:inline-flex;align-items:center;gap:12px;flex-wrap:wrap;justify-content:center;}
.cform__email{font-size:18px;color:var(--link);text-decoration:none;font-weight:500;}
.cform__email:hover{text-decoration:underline;}
.cform__copy{height:34px;padding:0 14px;border-radius:9px;background:var(--surface-2);
  border:1px solid var(--hairline);color:var(--text-muted);font-family:inherit;font-size:13px;
  font-weight:500;cursor:pointer;transition:border-color .2s ease,color .2s ease;}
.cform__copy:hover{border-color:var(--hairline-strong);color:var(--text);}

/* ---- footer ---- */
.footer{background:var(--bg);border-top:1px solid var(--hairline);padding:clamp(56px,8vw,80px) 22px 48px;}
.footer__inner{max-width:var(--maxw);margin:0 auto;display:flex;flex-direction:column;align-items:center;
  text-align:center;gap:18px;}
.footer .wordmark__mark{width:24px;height:24px;}
.footer__tag{margin:0;font-size:15px;color:var(--text-muted);}
.footer__links{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px 18px;margin-top:4px;}
.footer__links a{font-size:14px;color:var(--text-muted);text-decoration:none;transition:color .2s ease;}
.footer__links a:hover{color:var(--text);}
.footer__sep{color:var(--text-faint);font-size:13px;}
.footer__copy{margin:14px 0 0;font-size:13px;color:var(--text-faint);}

/* ---- legal pages ---- */
.legal{max-width:720px;margin:0 auto;padding:calc(var(--nav-h) + 60px) 22px 100px;}
.legal__back{display:inline-block;margin-bottom:28px;font-size:14px;color:var(--text-muted);text-decoration:none;}
.legal__back:hover{color:var(--text);}
.legal h1{margin:0 0 6px;font-size:clamp(30px,5vw,44px);font-weight:600;letter-spacing:-.025em;line-height:1.1;}
.legal__updated{margin:0 0 36px;font-size:14px;color:var(--text-faint);}
.legal h2{margin:42px 0 12px;font-size:21px;font-weight:600;letter-spacing:-.01em;color:var(--text);}
.legal p{margin:0 0 16px;color:var(--text-muted);font-size:16px;}
.legal ul{margin:0 0 16px;padding-left:22px;color:var(--text-muted);font-size:16px;}
.legal li{margin:0 0 8px;}
.legal a{color:var(--link);text-decoration:none;}
.legal a:hover{text-decoration:underline;}
.legal strong{color:var(--text);font-weight:600;}

/* ---- reveal (progressive enhancement: only hidden when JS is active) ---- */
html.js [data-reveal]{opacity:0;transform:translateY(18px);
  transition:opacity .7s cubic-bezier(.22,.61,.36,1),transform .7s cubic-bezier(.22,.61,.36,1);
  will-change:opacity,transform;}
html.js [data-reveal].is-visible{opacity:1;transform:none;}

/* ---- responsive ---- */
@media (max-width:1080px){
  .hero{min-height:auto;padding:120px 0 76px;}
  .hero__content{max-width:600px;margin:0 auto;text-align:center;}
  .hero__content .lede{margin-left:auto;margin-right:auto;}
  .hero__cta{justify-content:center;}
  .hero__media{object-position:center;opacity:.26;}
  .hero::before{background:linear-gradient(180deg,rgba(5,7,13,.60) 0%,rgba(5,7,13,.40) 45%,var(--bg) 100%);}
  .glow{left:50%;}
}
@media (max-width:640px){
  .hero{padding:108px 0 64px;}
  .btn{width:100%;max-width:340px;}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto;}
  html.js [data-reveal]{opacity:1;transform:none;transition:none;}
  .glow{animation:none;}
  .btn,.nav,.appcard,.nav__links a,.footer__links a{transition:none;}
}
