@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,600;1,9..144,500&family=Manrope:wght@400;500;600;700;800&display=swap');

:root{
  --ink:#14121f;
  --ink-soft:#312c47;
  --paper:#f7f5fb;
  --panel:#ffffff;
  --line:#e6e1f2;
  --line-strong:#d3cce8;
  --violet:#6c4ce0;
  --violet-deep:#4d33ad;
  --violet-tint:#efe9fd;
  --amber:#e8a33d;
  --green:#3fae7a;
  --muted:#6f6a85;

  --font-display:'Fraunces', 'Iowan Old Style', serif;
  --font-ui:'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius-sm:10px;
  --radius-md:16px;
  --radius-lg:26px;
  --shadow-soft:0 1px 2px rgba(20,18,31,.04), 0 12px 30px -14px rgba(20,18,31,.18);
  --shadow-lift:0 20px 44px -18px rgba(76,51,173,.35);
}

*, *::before, *::after{ box-sizing:border-box; }
[hidden]{ display:none !important; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family:var(--font-ui);
  color:var(--ink);
  background:var(--paper);
  -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; display:block; }
button{ font-family:inherit; }
a{ color:inherit; }

.container{ max-width:1240px; margin:0 auto; padding:0 32px; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce){
  *{ animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; }
}

/* ---------- Nav ---------- */
.nav{
  position:sticky; top:0; z-index:40;
  display:flex; align-items:center; justify-content:space-between;
  padding:18px 32px;
  background:rgba(247,245,251,.97);
  border-bottom:1px solid var(--line);
}
section[id], header[id]{ scroll-margin-top:104px; }
.nav__brand{ display:flex; align-items:center; gap:10px; font-weight:800; letter-spacing:-.01em; font-size:1.05rem; text-decoration:none; color:inherit; }
a.nav__brand:hover{ color:var(--violet-deep); }
.nav__mark{
  width:30px; height:30px; border-radius:9px;
  background:linear-gradient(135deg, var(--violet), var(--violet-deep));
  position:relative; flex:none;
  box-shadow:var(--shadow-lift);
}
.nav__mark::after{
  content:''; position:absolute; inset:8px;
  background:#fff; clip-path:polygon(58% 4%,22% 58%,46% 58%,40% 96%,80% 40%,54% 40%);
}
.nav__links{ display:flex; align-items:center; gap:28px; font-size:.92rem; color:var(--ink-soft); }
.nav__links a{ text-decoration:none; }
.nav__links a:hover{ color:var(--violet-deep); }

.nav__dropdown{ position:relative; }
.nav__dropdown-toggle{
  display:flex; align-items:center; gap:5px; background:none; border:none; padding:0;
  font:inherit; font-size:.92rem; color:var(--ink-soft); cursor:pointer;
}
.nav__dropdown-toggle:hover{ color:var(--violet-deep); }
.nav__dropdown-toggle svg{ width:13px; height:13px; transition:transform .15s ease; }
.nav__dropdown.is-open .nav__dropdown-toggle{ color:var(--violet-deep); }
.nav__dropdown.is-open .nav__dropdown-toggle svg{ transform:rotate(180deg); }
.nav__dropdown-menu{
  position:absolute; top:calc(100% + 16px); left:50%; transform:translateX(-50%) translateY(-6px);
  background:#fff; border:1px solid var(--line); border-radius:14px; box-shadow:var(--shadow-lift);
  padding:8px; min-width:190px; display:flex; flex-direction:column; gap:1px;
  opacity:0; pointer-events:none; transition:opacity .15s ease, transform .15s ease; z-index:50;
}
.nav__dropdown.is-open .nav__dropdown-menu{ opacity:1; pointer-events:auto; transform:translateX(-50%) translateY(0); }
.nav__dropdown-menu a{ padding:9px 12px; border-radius:8px; font-size:.87rem; color:var(--ink-soft) !important; white-space:nowrap; }
.nav__dropdown-menu a:hover{ background:var(--violet-tint); color:var(--violet-deep) !important; }
.btn{
  display:inline-flex; align-items:center; gap:8px;
  border:none; cursor:pointer; border-radius:999px;
  font-family:inherit; font-weight:700; font-size:.92rem;
  padding:11px 20px; transition:transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:active{ transform:translateY(1px); }
.btn:disabled{ opacity:.45; cursor:not-allowed; transform:none; }
.btn:disabled:hover{ background-color:inherit; }
.btn--primary{ background:var(--ink); color:#fff; box-shadow:var(--shadow-soft); }
.btn--primary:hover{ background:var(--violet-deep); }
.btn--accent{ background:var(--violet); color:#fff; box-shadow:0 14px 30px -12px rgba(108,76,224,.55); }
.btn--accent:hover{ background:var(--violet-deep); }
.btn--ghost{ background:transparent; color:var(--ink); border:1.5px solid var(--line-strong); }
.btn--ghost:hover{ border-color:var(--violet); color:var(--violet-deep); }
.btn--block{ width:100%; justify-content:center; padding:13px 20px; }
.btn svg{ width:16px; height:16px; }

/* ---------- Hero ---------- */
.hero{ position:relative; overflow:hidden; padding:96px 0 64px; }

/* ---------- Tool page hero (compact variant) ---------- */
.tool-hero{ padding:52px 0 8px; }
.tool-hero .container{ max-width:760px; }
.tool-hero h1{
  font-family:var(--font-display); font-weight:600; letter-spacing:-.01em;
  font-size:clamp(1.9rem, 3.6vw, 2.6rem); line-height:1.08; margin:0 0 14px;
}
.tool-hero p{ font-size:1.02rem; line-height:1.6; color:var(--ink-soft); max-width:64ch; margin:0; }

.hero__grid{
  position:absolute; inset:-10% -5% auto -5%; height:640px;
  display:grid; grid-template-columns:repeat(8,1fr); gap:18px;
  opacity:.5; pointer-events:none; z-index:0;
  mask-image:radial-gradient(ellipse 70% 60% at 68% 20%, #000 40%, transparent 78%);
}
.hero__grid span{
  aspect-ratio:1; border-radius:24%;
  background:var(--violet-tint);
  animation:float 7s ease-in-out infinite;
}
.hero__grid span:nth-child(odd){ background:#fff; border:1px solid var(--line); animation-delay:-2.4s; }
.hero__grid span:nth-child(3n){ background:var(--ink); opacity:.06; animation-delay:-4.1s; }
@keyframes float{ 0%,100%{ transform:translateY(0) } 50%{ transform:translateY(-14px) } }

.hero__inner{ position:relative; z-index:1; max-width:760px; }
.eyebrow{ display:inline-flex; align-items:center; gap:8px; font-size:.85rem; color:var(--violet-deep); font-weight:700; margin-bottom:18px; }
.eyebrow::before{ content:''; width:7px; height:7px; border-radius:50%; background:var(--amber); }

.hero h1{
  font-family:var(--font-display); font-weight:600; letter-spacing:-.01em;
  font-size:clamp(2.4rem, 5vw, 4rem); line-height:1.04; margin:0 0 22px;
}
.hero h1 em{ font-style:italic; color:var(--violet-deep); }
.hero p{ font-size:1.15rem; line-height:1.6; color:var(--ink-soft); max-width:56ch; margin:0 0 34px; }
.hero__actions{ display:flex; gap:14px; align-items:center; flex-wrap:wrap; }
.hero__note{ margin-top:26px; font-size:.88rem; color:var(--muted); }

.hero__platforms{ display:flex; gap:10px; flex-wrap:wrap; margin-top:38px; }
.hero__platforms span{
  font-size:.8rem; font-weight:600; color:var(--ink-soft);
  border:1px solid var(--line-strong); border-radius:999px; padding:6px 14px; background:#fff;
}

/* ---------- Section headers ---------- */
.section-head{ max-width:640px; margin:0 0 40px; }
.section-head h2{ font-family:var(--font-display); font-weight:600; font-size:clamp(1.7rem,3vw,2.3rem); margin:0 0 10px; letter-spacing:-.01em; }
.section-head p{ color:var(--muted); font-size:1.02rem; line-height:1.55; margin:0; }

/* ---------- Feature strip ---------- */
.features{ padding:20px 0 90px; }
.features__grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:1px; background:var(--line); border:1px solid var(--line); border-radius:var(--radius-md); overflow:hidden; }
.feature{ background:var(--panel); padding:26px 24px; }
.feature__icon{ width:38px; height:38px; border-radius:10px; background:var(--violet-tint); display:flex; align-items:center; justify-content:center; margin-bottom:16px; color:var(--violet-deep); }
.feature__icon svg{ width:19px; height:19px; }
.feature h3{ font-size:1rem; margin:0 0 6px; }
.feature p{ font-size:.88rem; color:var(--muted); margin:0; line-height:1.5; }

/* ---------- Studio ---------- */
.studio{ padding:10px 0 110px; }

.tabs{
  display:flex; gap:8px; overflow-x:auto; padding-bottom:14px; margin-bottom:24px;
  border-bottom:1px solid var(--line);
}
.tabs::-webkit-scrollbar{ display:none; }
.tab{
  flex:none; display:flex; align-items:center; gap:9px;
  padding:10px 16px; border-radius:12px 12px 0 0; cursor:pointer;
  font-size:.88rem; font-weight:700; color:var(--muted); white-space:nowrap;
  border:1px solid transparent; border-bottom:none;
  transition:color .15s ease, background .15s ease;
}
.tab:hover{ color:var(--ink); }
.tab.is-active{ color:var(--violet-deep); background:#fff; border-color:var(--line); position:relative; top:1px; }
.tab__dot{ width:8px; height:8px; border-radius:50%; background:var(--line-strong); flex:none; }
.tab.is-active .tab__dot{ background:var(--violet); }

.studio__grid{
  display:grid; grid-template-columns:340px 1fr; gap:26px; align-items:start;
}

/* ---- Control panel ---- */
.panel{
  background:var(--panel); border:1px solid var(--line); border-radius:var(--radius-lg);
  padding:22px; box-shadow:var(--shadow-soft);
}
.panel + .panel{ margin-top:18px; }
.panel__title{ font-size:.72rem; text-transform:uppercase; letter-spacing:.08em; font-weight:800; color:var(--muted); margin:0 0 16px; }
.panel__title-row{ display:flex; align-items:center; justify-content:space-between; margin-bottom:16px; }
.panel__title-row .panel__title{ margin-bottom:0; }
.panel__title-action{
  border:none; background:transparent; color:var(--muted); font-size:.76rem; font-weight:700;
  text-transform:none; letter-spacing:normal; cursor:pointer; padding:2px 0;
}
.panel__title-action:hover{ color:#c94f4f; text-decoration:underline; }

.field{ margin-bottom:16px; }
.field:last-child{ margin-bottom:0; }
.field__label{ display:flex; justify-content:space-between; align-items:center; font-size:.84rem; font-weight:700; margin-bottom:8px; color:var(--ink-soft); }
.field__label span.val{ font-weight:600; color:var(--muted); }

.segmented{ display:flex; background:var(--paper); border:1px solid var(--line); border-radius:11px; padding:3px; gap:2px; }
.segmented button{
  flex:1; border:none; background:transparent; padding:8px 10px; border-radius:9px;
  font-size:.83rem; font-weight:700; color:var(--muted); cursor:pointer; transition:all .15s ease;
}
.segmented button.is-active{ background:#fff; color:var(--violet-deep); box-shadow:var(--shadow-soft); }

.text-input, select.text-input, textarea.text-input{
  width:100%; border:1.5px solid var(--line-strong); border-radius:10px; padding:10px 12px;
  font-family:inherit; font-size:.9rem; color:var(--ink); background:#fff;
  transition:border-color .15s ease;
}
.text-input:focus{ outline:none; border-color:var(--violet); }

.icon-grid{
  display:grid; grid-template-columns:repeat(6,1fr); gap:6px;
  max-height:172px; overflow-y:auto; padding:4px;
  border:1px solid var(--line); border-radius:10px; background:var(--paper);
}
.icon-grid button{
  aspect-ratio:1; border:1px solid transparent; background:#fff; border-radius:8px;
  display:flex; align-items:center; justify-content:center; cursor:pointer;
  color:var(--ink-soft); transition:all .12s ease;
}
.icon-grid button svg{ width:18px; height:18px; }
.icon-grid button:hover{ border-color:var(--line-strong); }
.icon-grid button.is-active{ background:var(--violet); color:#fff; }

.color-row{ display:flex; align-items:center; gap:10px; }
.swatch{
  width:38px; height:38px; border-radius:10px; border:1px solid var(--line-strong);
  cursor:pointer; position:relative; flex:none; overflow:hidden;
}
.swatch input[type="color"]{ position:absolute; inset:-4px; width:calc(100% + 8px); height:calc(100% + 8px); border:none; cursor:pointer; padding:0; }
.swatch-hex{ font-size:.82rem; color:var(--muted); font-variant-numeric:tabular-nums; }

.upload-drop{
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  border:1.5px dashed var(--line-strong); border-radius:12px; padding:22px 14px; min-height:104px;
  text-align:center; cursor:pointer; background:var(--paper); transition:border-color .15s ease, background .15s ease;
}
.upload-drop:hover, .upload-drop.is-drag{ border-color:var(--violet); background:var(--violet-tint); }
.upload-drop svg{ width:22px; height:22px; color:var(--muted); margin-bottom:8px; display:block; flex:none; }
.upload-drop strong{ display:block; font-size:.85rem; margin-bottom:2px; }
.upload-drop span{ font-size:.76rem; color:var(--muted); }

.upload-preview{
  display:flex; align-items:center; gap:12px; padding:10px; border:1px solid var(--line); border-radius:12px; background:var(--paper);
  animation:pop .22s cubic-bezier(.2,.8,.2,1);
}
.upload-preview__thumb{
  width:44px; height:44px; border-radius:10px; flex:none; background:#fff repeating-conic-gradient(#eee 0% 25%, transparent 0% 50%) 0 0/10px 10px;
  background-size:cover; background-position:center; box-shadow:0 0 0 1px var(--line-strong) inset;
}
.upload-preview__meta{ flex:1; min-width:0; display:flex; flex-direction:column; gap:2px; }
.upload-preview__meta strong{ font-size:.82rem; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.upload-preview__meta span{ font-size:.74rem; color:var(--muted); }
.upload-preview__remove{
  flex:none; width:28px; height:28px; border-radius:8px; border:1px solid var(--line-strong); background:#fff;
  color:var(--muted); cursor:pointer; display:flex; align-items:center; justify-content:center; transition:all .15s ease;
}
.upload-preview__remove svg{ width:14px; height:14px; }
.upload-preview__remove:hover{ color:#c94f4f; border-color:#eec3c3; background:#fdf2f2; }

input[type="range"]{
  -webkit-appearance:none; width:100%; height:4px; border-radius:2px; background:var(--line-strong); outline:none;
}
input[type="range"]::-webkit-slider-thumb{
  -webkit-appearance:none; width:17px; height:17px; border-radius:50%; background:var(--violet);
  border:3px solid #fff; box-shadow:0 0 0 1px var(--line-strong); cursor:pointer;
}

.toggle{ position:relative; width:42px; height:24px; border-radius:999px; background:var(--line-strong); border:none; cursor:pointer; flex:none; transition:background .15s ease; }
.toggle::after{ content:''; position:absolute; top:3px; left:3px; width:18px; height:18px; border-radius:50%; background:#fff; transition:transform .15s ease; box-shadow:0 1px 2px rgba(0,0,0,.25); }
.toggle.is-on{ background:var(--violet); }
.toggle.is-on::after{ transform:translateX(18px); }

.badge-select{ display:flex; gap:8px; }
.badge-select div{ width:100%; }

/* ---- Stage (preview) ---- */
.stage-wrap > * + *{ margin-top:18px; }
.stage{
  background:linear-gradient(180deg, #1b1730, var(--ink));
  border-radius:var(--radius-lg); min-height:560px;
  display:flex; align-items:center; justify-content:center; position:relative;
  overflow:hidden; padding:40px 20px;
}
.stage::before{
  content:''; position:absolute; inset:0; opacity:.5;
  background:radial-gradient(circle at 20% 15%, rgba(108,76,224,.35), transparent 55%),
             radial-gradient(circle at 85% 80%, rgba(232,163,61,.18), transparent 50%);
}
.stage__mock{ position:relative; z-index:1; }
.stage__toolbar{
  position:absolute; top:16px; left:16px; right:16px; z-index:2;
  display:flex; justify-content:space-between; align-items:center; gap:10px;
}
.stage__label{ font-size:.78rem; color:rgba(255,255,255,.65); font-weight:700; letter-spacing:.02em; }
.stage__zoom{ display:flex; gap:6px; }
.stage__zoom button{
  width:30px; height:30px; border-radius:9px; border:1px solid rgba(255,255,255,.18);
  background:rgba(255,255,255,.06); color:#fff; cursor:pointer; display:flex; align-items:center; justify-content:center;
}
.stage__zoom button:hover{ background:rgba(255,255,255,.14); }

.master-canvas-fade{ animation:pop .32s cubic-bezier(.2,.8,.2,1); }
@keyframes pop{ from{ transform:scale(.94); opacity:.4 } to{ transform:scale(1); opacity:1 } }

.export-bar{
  display:flex; align-items:center; justify-content:space-between; gap:16px;
  flex-wrap:wrap; background:var(--panel); border:1px solid var(--line); border-radius:var(--radius-lg);
  padding:18px 22px; box-shadow:var(--shadow-soft);
}
.export-bar__sizes{ font-size:.84rem; color:var(--muted); line-height:1.5; max-width:56ch; }
.export-bar__sizes strong{ color:var(--ink); }
.export-bar__actions{ display:flex; gap:10px; flex-wrap:wrap; }

/* ---------- Device mockups ---------- */
.mock-icon-face{
  width:100%; height:100%; background-size:cover; background-position:center;
}

/* Phone (Android / iOS / Web-as-home-screen) */
.mock-phone{ width:250px; height:520px; border-radius:46px; background:#0c0a16; padding:12px; box-shadow:0 30px 60px -20px rgba(0,0,0,.6); }
.mock-phone__screen{ width:100%; height:100%; border-radius:36px; overflow:hidden; position:relative; background:linear-gradient(160deg,#4b3aa8,#8b6de0 55%,#e3a866); }
.mock-phone__notch{ position:absolute; top:0; left:50%; transform:translateX(-50%); width:120px; height:22px; background:#0c0a16; border-radius:0 0 16px 16px; z-index:3; }
.mock-phone__status{ display:flex; justify-content:space-between; padding:14px 22px 0; font-size:.72rem; color:#fff; font-weight:700; }
.mock-phone__widget{ margin:26px 18px 0; color:#fff; }
.mock-phone__widget .t{ font-weight:700; font-size:.95rem; }
.mock-phone__widget .s{ font-size:.72rem; opacity:.85; margin-top:4px; }
.mock-phone__dock{
  position:absolute; left:14px; right:14px; bottom:16px;
  background:rgba(255,255,255,.14); backdrop-filter:blur(6px); border-radius:20px;
  display:flex; justify-content:space-between; align-items:center; gap:8px; padding:10px 10px;
}
.dock-icon{
  flex:1; min-width:0; max-width:52px; aspect-ratio:1; border-radius:16%; overflow:hidden;
  background:rgba(255,255,255,.28); background-size:cover; background-position:center; background-repeat:no-repeat;
}
.mock-phone__apps{ position:absolute; left:18px; right:18px; top:150px; display:grid; grid-template-columns:repeat(4,1fr); gap:16px 8px; }
.appicon{ display:flex; flex-direction:column; align-items:center; gap:5px; min-width:0; width:100%; }
.appicon__glyph{ width:100%; aspect-ratio:1; border-radius:24%; box-shadow:0 6px 14px -6px rgba(0,0,0,.5); overflow:hidden; background:#fff; background-size:cover; background-position:center; background-repeat:no-repeat; }
.appicon__glyph.is-round{ border-radius:50%; }
.appicon__glyph.is-square{ border-radius:16%; }
.appicon.is-hero .appicon__glyph{ box-shadow:0 0 0 3px rgba(255,255,255,.7), 0 10px 24px -6px rgba(0,0,0,.6); }
.appicon span{ font-size:.62rem; color:#fff; text-shadow:0 1px 3px rgba(0,0,0,.4); max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.appicon__glyph--dummy{ background:rgba(255,255,255,.28); }

/* Browser (Web icons) */
.mock-browser{ width:420px; border-radius:16px; overflow:hidden; box-shadow:0 30px 60px -20px rgba(0,0,0,.6); background:#1d1a2e; }
.mock-browser__bar{ background:#242038; padding:10px 14px; display:flex; align-items:center; gap:10px; }
.mock-browser__dots{ display:flex; gap:6px; }
.mock-browser__dots span{ width:9px; height:9px; border-radius:50%; background:#4a4568; }
.mock-browser__tab{ background:#332f4d; border-radius:8px 8px 0 0; padding:7px 12px; display:flex; align-items:center; gap:7px; font-size:.75rem; color:#cfc9ea; max-width:180px; }
.mock-browser__tab .fav{ width:16px; height:16px; border-radius:4px; overflow:hidden; flex:none; background-size:cover; background-position:center; background-repeat:no-repeat; }
.mock-browser__page{ background:#faf9fd; height:150px; padding:16px; }
.mock-browser__page .url{ background:#eee9f7; border-radius:8px; padding:8px 12px; font-size:.72rem; color:#847ea3; display:flex; align-items:center; gap:8px; }
.mock-browser__page .lock{ width:12px; height:12px; }
.mock-browser__addhome{ display:flex; align-items:center; gap:12px; margin-top:18px; }
.mock-browser__addhome .tile{ width:44px; height:44px; border-radius:22%; overflow:hidden; box-shadow:var(--shadow-soft); background-size:cover; background-position:center; background-repeat:no-repeat; }
.mock-browser__addhome .txt{ font-size:.74rem; color:var(--ink-soft); line-height:1.4; }

/* macOS */
.mock-mac{ width:560px; height:340px; border-radius:14px; overflow:hidden; position:relative; background:linear-gradient(150deg,#2c2154,#8b5fd6 45%,#e69a5a 90%); box-shadow:0 30px 70px -22px rgba(0,0,0,.6); }
.mock-mac__menubar{ position:absolute; top:0; left:0; right:0; height:26px; background:rgba(20,15,40,.35); backdrop-filter:blur(6px); display:flex; align-items:center; padding:0 14px; gap:6px; }
.mock-mac__menubar span{ width:8px; height:8px; border-radius:50%; background:rgba(255,255,255,.5); }
.mock-mac__dock{
  position:absolute; bottom:14px; left:50%; transform:translateX(-50%);
  display:flex; align-items:flex-end; gap:12px; padding:10px 16px; border-radius:20px;
  background:rgba(255,255,255,.16); backdrop-filter:blur(10px);
}
.mock-mac__dock .d{ width:46px; height:46px; border-radius:22%; box-shadow:0 8px 14px -6px rgba(0,0,0,.4); overflow:hidden; background:#fff; background-size:cover; background-position:center; background-repeat:no-repeat; }
.mock-mac__dock .d.is-hero{ width:56px; height:56px; box-shadow:0 0 0 2px rgba(255,255,255,.7), 0 12px 22px -6px rgba(0,0,0,.5); }
.mock-mac__dock .sep{ width:1px; align-self:stretch; background:rgba(255,255,255,.3); margin:4px 2px; }

/* watchOS */
.mock-watch{ width:230px; height:280px; border-radius:52px; background:#0c0a16; padding:10px; box-shadow:0 30px 60px -20px rgba(0,0,0,.6); position:relative; }
.mock-watch::after{ content:''; position:absolute; right:-8px; top:50%; transform:translateY(-50%); width:14px; height:38px; background:#141020; border-radius:4px; }
.mock-watch__screen{ width:100%; height:100%; border-radius:42px; background:#000; position:relative; overflow:hidden; }
.mock-watch__grid{ position:absolute; inset:0; display:grid; grid-template-columns:repeat(4,1fr); align-items:center; justify-items:center; gap:9px; padding:26px 16px; }
.mock-watch__grid .w{ width:30px; height:30px; border-radius:50%; overflow:hidden; background:#3a3555; background-size:cover; background-position:center; background-repeat:no-repeat; }
.mock-watch__grid .w.is-hero{ width:38px; height:38px; box-shadow:0 0 0 2px #fff; }
.mock-watch__time{ position:absolute; top:14px; left:0; right:0; text-align:center; color:#fff; font-size:.68rem; font-weight:700; letter-spacing:.03em; }

/* TV */
.mock-tv{ width:560px; border-radius:14px; overflow:hidden; box-shadow:0 30px 70px -22px rgba(0,0,0,.6); background:#000; padding:16px 16px 22px; }
.mock-tv__screen{ background:linear-gradient(160deg,#171227,#2c2154); border-radius:6px; padding:26px 22px; }
.mock-tv__row-label{ color:rgba(255,255,255,.5); font-size:.72rem; font-weight:700; letter-spacing:.05em; margin-bottom:12px; }
.mock-tv__row{ display:flex; gap:14px; }
.mock-tv__tile{ width:150px; height:84px; border-radius:8px; background:#3a3555; overflow:hidden; flex:none; background-size:cover; background-position:center; background-repeat:no-repeat; }
.mock-tv__tile.is-hero{ box-shadow:0 0 0 3px #fff, 0 14px 26px -8px rgba(0,0,0,.6); transform:translateY(-3px); }
.mock-tv__stand{ height:14px; background:#111; margin:0 auto; width:120px; border-radius:0 0 8px 8px; }

/* Play Store listing */
.mock-store{ width:340px; border-radius:32px; overflow:hidden; background:#0c0a16; padding:12px; box-shadow:0 30px 60px -20px rgba(0,0,0,.6); }
.mock-store__screen{ background:#fff; border-radius:24px; overflow:hidden; }
.mock-store__hero{ height:150px; background-size:cover; background-position:center; }
.mock-store__meta{ display:flex; gap:12px; padding:14px 16px; align-items:center; }
.mock-store__meta .icon{ width:56px; height:56px; border-radius:22%; overflow:hidden; box-shadow:var(--shadow-soft); margin-top:-30px; border:3px solid #fff; background:#fff; background-size:cover; background-position:center; background-repeat:no-repeat; }
.mock-store__meta .txt strong{ display:block; font-size:.86rem; }
.mock-store__meta .txt span{ font-size:.72rem; color:var(--muted); }
.mock-store__cta{ margin:0 16px 16px; background:var(--violet-tint); color:var(--violet-deep); text-align:center; padding:9px; border-radius:999px; font-size:.78rem; font-weight:700; }

/* ---------- Screenshot studio ---------- */
.shot-list{
  display:flex; gap:10px; overflow-x:auto; padding:12px 2px 2px; margin-top:2px;
}
.shot-list:empty{ display:none; }
.shot-item{
  position:relative; flex:none; width:64px; height:110px; border-radius:10px; overflow:hidden;
  border:2px solid transparent; cursor:pointer; background:var(--paper) center/cover no-repeat;
  transition:border-color .15s ease, transform .15s ease;
}
.shot-item:hover{ transform:translateY(-2px); }
.shot-item.is-active{ border-color:var(--violet); box-shadow:0 6px 14px -6px rgba(108,76,224,.45); }
.shot-item__index{
  position:absolute; top:4px; left:4px; background:rgba(0,0,0,.55); color:#fff; font-size:.62rem; font-weight:700;
  padding:1px 5px; border-radius:6px;
}
.shot-item__remove{
  position:absolute; top:3px; right:3px; width:18px; height:18px; border-radius:50%; border:none;
  background:rgba(0,0,0,.6); color:#fff; display:flex; align-items:center; justify-content:center; cursor:pointer;
  opacity:0; transition:opacity .15s ease;
}
.shot-item__remove svg{ width:10px; height:10px; }
.shot-item:hover .shot-item__remove{ opacity:1; }

.shot-empty{
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:14px;
  color:rgba(255,255,255,.5); text-align:center; max-width:280px; margin:0 auto;
}
.shot-empty svg{ width:40px; height:40px; }
.shot-empty p{ font-size:.88rem; line-height:1.5; margin:0; }

.shot-preview-img{
  max-height:78vh; max-width:100%; border-radius:8px; box-shadow:0 30px 70px -22px rgba(0,0,0,.7);
  animation:pop .28s cubic-bezier(.2,.8,.2,1);
}

/* ---------- About page ---------- */
.about-hero{ display:flex; gap:32px; align-items:center; flex-wrap:wrap; padding:64px 0 40px; }
.about-avatar{ width:120px; height:120px; border-radius:50%; background:linear-gradient(135deg,var(--violet),var(--violet-deep)); display:flex; align-items:center; justify-content:center; color:#fff; font-family:var(--font-display); font-size:2.4rem; font-weight:600; flex:none; box-shadow:var(--shadow-lift); }
.about-hero__text h1{ font-family:var(--font-display); font-size:clamp(1.8rem,3vw,2.6rem); margin:0 0 8px; font-weight:600; }
.about-hero__text .role{ color:var(--violet-deep); font-weight:700; margin:0 0 14px; }
.about-hero__text p{ color:var(--muted); max-width:60ch; line-height:1.6; margin:0 0 20px; }
.about-actions{ display:flex; gap:12px; flex-wrap:wrap; }

.tag-cloud{ display:flex; flex-wrap:wrap; gap:8px; }
.tag{ padding:7px 14px; border-radius:999px; background:var(--violet-tint); color:var(--violet-deep); font-size:.82rem; font-weight:700; }

.timeline-item{ padding:22px 0; border-bottom:1px solid var(--line); display:grid; grid-template-columns:170px 1fr; gap:20px; }
.timeline-item:last-child{ border-bottom:none; }
.timeline-item__when{ color:var(--muted); font-size:.83rem; font-weight:700; }
.timeline-item__role{ font-weight:800; margin:0 0 2px; font-size:1rem; }
.timeline-item__org{ color:var(--violet-deep); font-size:.88rem; margin:0 0 10px; font-weight:600; }
.timeline-item ul{ margin:0; padding-left:18px; color:var(--muted); font-size:.88rem; line-height:1.6; }

.project-card{ display:flex; justify-content:space-between; align-items:flex-start; gap:16px; padding:22px; border:1px solid var(--line); border-radius:var(--radius-md); background:#fff; }
.project-card h3{ margin:0 0 6px; font-size:1rem; }
.project-card p{ margin:0; color:var(--muted); font-size:.88rem; line-height:1.5; }
.project-card .badge{ font-size:.72rem; font-weight:800; color:var(--violet-deep); background:var(--violet-tint); padding:4px 10px; border-radius:999px; white-space:nowrap; flex:none; }
.project-links{ display:flex; gap:14px; margin-top:10px; flex-wrap:wrap; }
.project-links a{ font-size:.8rem; font-weight:700; color:var(--violet-deep); text-decoration:none; }
.project-links a:hover{ text-decoration:underline; }

.legal p, .legal li{ color:var(--ink-soft); line-height:1.7; font-size:.95rem; }
.legal h2{ font-family:var(--font-display); font-size:1.4rem; margin:36px 0 12px; font-weight:600; }
.legal h2:first-of-type{ margin-top:0; }
.legal ul{ padding-left:20px; }

/* ---------- URL shortener ---------- */
.short-result{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.short-result a{
  flex:1; min-width:0; font-weight:700; color:var(--violet-deep); text-decoration:none; font-size:1rem;
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap; padding:12px 14px; background:var(--violet-tint); border-radius:10px;
}
.short-result a:hover{ text-decoration:underline; }
.short-result__meta{ margin-top:10px; font-size:.82rem; color:var(--muted); word-break:break-all; }

.link-history{ display:flex; flex-direction:column; gap:10px; }
.link-history__item{ display:flex; align-items:center; gap:14px; padding:14px 16px; border:1px solid var(--line); border-radius:12px; background:#fff; flex-wrap:wrap; }
.link-history__short{ font-weight:700; color:var(--violet-deep); text-decoration:none; white-space:nowrap; }
.link-history__long{ flex:1; min-width:140px; font-size:.82rem; color:var(--muted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.link-history__clicks{ font-size:.78rem; font-weight:700; color:var(--muted); background:var(--paper); padding:4px 10px; border-radius:999px; white-space:nowrap; flex:none; }
.link-history__actions{ display:flex; gap:4px; flex:none; }
.link-history__actions button{ border:none; background:transparent; color:var(--muted); cursor:pointer; padding:6px; border-radius:8px; display:flex; }
.link-history__actions button:hover{ color:var(--violet-deep); background:var(--violet-tint); }
.link-history__actions svg{ width:16px; height:16px; }
.history-empty{ padding:30px 24px; text-align:center; border:1.5px dashed var(--line-strong); border-radius:var(--radius-md); }
.history-empty p{ color:var(--muted); font-size:.9rem; margin:0; }

/* ---------- Buy me a coffee / donate widget ---------- */
.donate-fab{
  position:fixed; right:22px; bottom:22px; z-index:60;
  display:flex; align-items:center; gap:9px;
  background:linear-gradient(135deg, var(--amber), #c9791f); color:#fff;
  border:none; border-radius:999px; padding:13px 20px 13px 16px;
  font-family:inherit; font-weight:800; font-size:.9rem; cursor:pointer;
  box-shadow:0 16px 32px -12px rgba(201,121,31,.55);
  transition:transform .18s ease, box-shadow .18s ease;
}
.donate-fab:hover{ transform:translateY(-2px); box-shadow:0 20px 38px -10px rgba(201,121,31,.65); }
.donate-fab svg{ width:20px; height:20px; flex:none; }

.donate-overlay{
  position:fixed; inset:0; z-index:100; background:rgba(20,18,31,.55);
  display:flex; align-items:center; justify-content:center; padding:20px;
  opacity:0; pointer-events:none; transition:opacity .2s ease;
}
.donate-overlay.is-open{ opacity:1; pointer-events:auto; }
.donate-modal{
  background:#fff; border-radius:var(--radius-lg); max-width:420px; width:100%;
  padding:28px; box-shadow:0 40px 80px -20px rgba(0,0,0,.4);
  transform:translateY(14px) scale(.98); transition:transform .22s ease;
}
.donate-overlay.is-open .donate-modal{ transform:translateY(0) scale(1); }
.donate-modal__head{ display:flex; align-items:flex-start; justify-content:space-between; gap:12px; margin-bottom:6px; }
.donate-modal__head h3{ font-family:var(--font-display); font-size:1.3rem; margin:0; font-weight:600; }
.donate-modal__close{ border:none; background:var(--paper); color:var(--muted); width:30px; height:30px; border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; flex:none; }
.donate-modal__close:hover{ background:var(--violet-tint); color:var(--violet-deep); }
.donate-modal__close svg{ width:15px; height:15px; }
.donate-modal p.donate-blurb{ color:var(--muted); font-size:.88rem; line-height:1.55; margin:0 0 20px; }

.donate-amounts{ display:grid; grid-template-columns:repeat(4,1fr); gap:8px; margin-bottom:14px; }
.donate-amounts button{
  padding:12px 6px; border-radius:10px; border:1.5px solid var(--line-strong); background:#fff;
  font-family:inherit; font-weight:800; font-size:.9rem; color:var(--ink); cursor:pointer; transition:all .15s ease;
}
.donate-amounts button.is-active{ border-color:var(--amber); background:#fdf3e4; color:#a3641c; }
.donate-custom{ display:flex; align-items:center; gap:8px; margin-bottom:20px; }
.donate-custom span{ font-weight:800; color:var(--muted); }
.donate-custom input{
  flex:1; border:1.5px solid var(--line-strong); border-radius:10px; padding:10px 12px;
  font-family:inherit; font-size:.92rem; color:var(--ink);
}
.donate-custom input:focus{ outline:none; border-color:var(--amber); }
.donate-pay-btn{
  width:100%; border:none; border-radius:12px; padding:14px; cursor:pointer;
  background:linear-gradient(135deg, var(--amber), #c9791f); color:#fff;
  font-family:inherit; font-weight:800; font-size:.95rem;
  display:flex; align-items:center; justify-content:center; gap:8px;
  box-shadow:0 14px 28px -10px rgba(201,121,31,.5); transition:transform .15s ease;
}
.donate-pay-btn svg{ width:18px; height:18px; flex:none; }
.donate-pay-btn:hover{ transform:translateY(-1px); }
.donate-pay-btn:disabled{ opacity:.6; cursor:not-allowed; transform:none; }
.donate-note{ text-align:center; font-size:.76rem; color:var(--muted); margin:14px 0 0; }
.donate-thanks{ text-align:center; padding:10px 0; }
.donate-thanks svg{ width:46px; height:46px; color:var(--green); margin:0 auto 14px; display:block; }
.donate-thanks h3{ font-family:var(--font-display); font-size:1.3rem; margin:0 0 8px; }
.donate-thanks p{ color:var(--muted); font-size:.9rem; margin:0; }

@media (max-width: 640px){
  .donate-fab span{ display:none; }
  .donate-fab{ padding:14px; border-radius:50%; }
}

/* ---------- Image compressor ---------- */
.compress-summary{
  display:flex; gap:28px; flex-wrap:wrap; padding:16px 20px; background:var(--violet-tint);
  border-radius:var(--radius-md); margin-bottom:16px;
}
.compress-summary div{ font-size:.82rem; color:var(--ink-soft); }
.compress-summary strong{ display:block; font-size:1.15rem; color:var(--violet-deep); font-family:var(--font-display); }
.compress-list{ display:flex; flex-direction:column; gap:10px; }
.compress-item{
  display:flex; align-items:center; gap:14px; padding:12px 14px; border:1px solid var(--line);
  border-radius:12px; background:#fff; flex-wrap:wrap; cursor:pointer; transition:border-color .15s ease;
}
.compress-item:hover{ border-color:var(--line-strong); }
.compress-item.is-selected{ border-color:var(--violet); box-shadow:0 0 0 1px var(--violet); }
.compress-item__thumb{
  width:52px; height:52px; border-radius:10px; background-size:cover; background-position:center;
  flex:none; background-color:var(--paper);
}
.compress-item__name{ font-size:.85rem; font-weight:700; flex:1; min-width:120px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.compress-item__sizes{ font-size:.8rem; color:var(--muted); white-space:nowrap; }
.compress-item__sizes strong{ color:var(--green); font-weight:700; }
.compress-item__status{ font-size:.76rem; color:var(--muted); white-space:nowrap; font-weight:700; }
.compress-item__actions{ display:flex; gap:2px; flex:none; }
.compress-item__actions button{ border:none; background:transparent; color:var(--muted); cursor:pointer; padding:6px; border-radius:8px; display:flex; }
.compress-item__actions button:hover{ color:var(--violet-deep); background:var(--violet-tint); }
.compress-item__actions svg{ width:16px; height:16px; }

.compare{ display:grid; grid-template-columns:1fr 1fr; gap:2px; width:100%; height:100%; }
.compare > div{ position:relative; display:flex; align-items:center; justify-content:center; overflow:hidden; background:#0c0a16; }
.compare img{ max-width:100%; max-height:100%; object-fit:contain; }
.compare__label{
  position:absolute; top:10px; left:10px; background:rgba(0,0,0,.55); color:#fff; font-size:.72rem;
  font-weight:700; padding:3px 9px; border-radius:999px;
}

/* ---------- Tool cards (landing page) ---------- */
.tool-cards{ display:grid; grid-template-columns:repeat(auto-fit, minmax(260px, 1fr)); gap:20px; }
.tool-card{
  display:block; text-decoration:none; color:inherit;
  background:#fff; border:1px solid var(--line); border-radius:var(--radius-lg); padding:30px;
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.tool-card:hover{ transform:translateY(-3px); box-shadow:var(--shadow-lift); border-color:var(--violet); }
.tool-card__icon{ width:50px; height:50px; border-radius:14px; display:flex; align-items:center; justify-content:center; margin-bottom:18px; color:#fff; }
.tool-card__icon svg{ width:24px; height:24px; }
.tool-card h3{ font-size:1.18rem; margin:0 0 8px; }
.tool-card p{ color:var(--muted); font-size:.92rem; line-height:1.55; margin:0 0 18px; }
.tool-card__cta{ font-size:.85rem; font-weight:800; color:var(--violet-deep); display:inline-flex; align-items:center; gap:6px; }
.tool-card:hover .tool-card__cta{ text-decoration:underline; }

/* ---------- Footer ---------- */
.footer{ border-top:1px solid var(--line); padding:56px 0 0; }
.footer__grid{ display:grid; grid-template-columns:1.6fr 1fr 1fr 1fr; gap:32px; padding-bottom:40px; }
.footer__brand p{ font-size:.88rem; color:var(--muted); line-height:1.6; margin:14px 0 18px; max-width:34ch; }
.footer__social{ display:flex; gap:8px; flex-wrap:wrap; }
.footer__social a{
  padding:7px 14px; border-radius:999px; border:1px solid var(--line-strong);
  font-size:.8rem; font-weight:700; color:var(--ink-soft);
  transition:all .15s ease; text-decoration:none;
}
.footer__social a:hover{ background:var(--violet); border-color:var(--violet); color:#fff; }
.footer__col-title{ font-size:.72rem; text-transform:uppercase; letter-spacing:.08em; font-weight:800; color:var(--muted); margin:0 0 14px; }
.footer__col{ display:flex; flex-direction:column; gap:10px; }
.footer__col a{ font-size:.88rem; color:var(--ink-soft); text-decoration:none; }
.footer__col a:hover{ color:var(--violet-deep); }
.footer__bottom{
  display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:10px;
  border-top:1px solid var(--line); padding:20px 0; font-size:.82rem; color:var(--muted);
}
.footer__bottom a{ color:var(--ink-soft); font-weight:700; text-decoration:none; }
.footer__bottom a:hover{ color:var(--violet-deep); }

/* ---------- Toast ---------- */
.toast{
  position:fixed; bottom:24px; left:50%; transform:translateX(-50%) translateY(20px);
  background:var(--ink); color:#fff; padding:12px 20px; border-radius:12px; font-size:.86rem;
  opacity:0; pointer-events:none; transition:all .25s ease; z-index:100; display:flex; align-items:center; gap:10px;
  box-shadow:0 20px 40px -14px rgba(0,0,0,.5);
}
.toast.is-visible{ opacity:1; transform:translateX(-50%) translateY(0); }
.toast svg{ width:16px; height:16px; color:var(--green); flex:none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px){
  .studio__grid{ grid-template-columns:1fr; }
  .features__grid{ grid-template-columns:1fr 1fr; }
  .stage{ min-height:480px; }
}
@media (max-width: 900px){
  .nav__links{ display:none; }
}
@media (max-width: 640px){
  .container{ padding:0 18px; }
  .nav{ padding:14px 18px; }
  .hero{ padding:56px 0 40px; }
  .features__grid{ grid-template-columns:1fr; }
  .export-bar{ flex-direction:column; align-items:stretch; }
  .mock-browser, .mock-mac, .mock-tv{ width:100%; max-width:340px; }
  .mock-phone{ width:210px; height:440px; }
  .footer__grid{ grid-template-columns:1fr 1fr; }
  .footer__brand{ grid-column:1 / -1; }
  .timeline-item{ grid-template-columns:1fr; gap:6px; }
  .about-hero{ padding:40px 0 30px; }
  .project-card{ flex-direction:column; }
}
