/* Limn — limnapp.tech. Graphite + indigo, the same tokens as the apps. */
:root {
  --bg0: #0a0a0c;
  --bg1: #101012;
  --bg2: #17171a;
  --bg3: #1e1e22;
  --line: #25252a;
  --line2: #383840;
  --text: #ececf1;
  --text2: #b3b3bf;
  --dim: #787885;
  --accent: #6e72f7;
  --accent2: #9a9dff;
  --accent-bg: rgba(110, 114, 247, 0.14);
  --video: #2b5cc0;
  --audio: #1c8f68;
  --comp: #7446c9;
  --textc: #b8741f;
  --green: #2fc98a;
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "Manrope", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", "Cascadia Mono", Consolas, monospace;
  --wrap: 1120px;
}
html[lang="fa"] {
  --display: "Vazirmatn", "Segoe UI", Tahoma, sans-serif;
  --body: "Vazirmatn", "Segoe UI", Tahoma, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg1);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html[lang="fa"] body { line-height: 1.95; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--display); margin: 0; line-height: 1.08; letter-spacing: -0.02em; font-weight: 700; text-wrap: balance; }
html[lang="fa"] h1, html[lang="fa"] h2, html[lang="fa"] h3 { line-height: 1.45; letter-spacing: 0; font-weight: 800; }
p { margin: 0; text-wrap: pretty; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.ltr { direction: ltr; unicode-bidi: isolate; }
:focus-visible { outline: 2px solid var(--accent2); outline-offset: 3px; border-radius: 6px; }

/* ── top bar ── */
.top { position: sticky; top: 0; z-index: 50; background: rgba(16, 16, 18, 0.78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: "Bricolage Grotesque", sans-serif; font-weight: 700; font-size: 21px; letter-spacing: -0.02em; direction: ltr; }
.brand svg { width: 28px; height: 28px; }
.nav { display: flex; gap: 24px; margin-inline-start: auto; font-size: 15px; color: var(--text2); }
.nav a:hover { color: var(--text); }
.lang { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 13px; border: 1px solid var(--line2); border-radius: 999px; font-size: 14px; color: var(--text2); }
.lang:hover { color: var(--text); border-color: var(--accent); }
.lang svg { width: 15px; height: 15px; }

/* ── buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 0 22px; border-radius: 12px; font-weight: 700; font-size: 16px; border: 1px solid transparent; cursor: pointer; font-family: inherit; transition: transform 0.15s, background 0.15s, border-color 0.15s; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:hover { background: #7f83ff; transform: translateY(-1px); }
.btn.ghost { border-color: var(--line2); color: var(--text); }
.btn.ghost:hover { border-color: var(--accent); }
.btn.off { background: var(--bg3); color: var(--dim); border-color: var(--line2); cursor: default; }

/* ── hero ── */
.hero { position: relative; padding: 84px 0 40px; }
.hero::before { content: ""; position: absolute; inset: -80px 0 auto; height: 620px; background: radial-gradient(620px 340px at 50% 0, rgba(110, 114, 247, 0.2), transparent 70%); pointer-events: none; }
.hero .wrap { position: relative; text-align: center; }
.pill { display: inline-flex; align-items: center; gap: 9px; height: 32px; padding: 0 14px; border: 1px solid var(--line2); border-radius: 999px; background: var(--bg2); color: var(--text2); font-size: 13.5px; }
.pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(47, 201, 138, 0.16); }
.hero h1 { margin: 26px auto 0; max-width: 15ch; font-size: clamp(42px, 7.4vw, 88px); }
html[lang="fa"] .hero h1 { max-width: 17ch; font-size: clamp(36px, 6.2vw, 72px); }
.hero h1 em { font-style: normal; color: var(--accent2); }
.hero .lead { margin: 24px auto 0; max-width: 62ch; color: var(--text2); font-size: clamp(17px, 1.6vw, 19.5px); }
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }
.cta-note { margin-top: 14px; color: var(--dim); font-size: 14px; }

/* ── the app, drawn ── */
.shot { margin: 64px auto 0; max-width: 1040px; direction: ltr; border: 1px solid var(--line2); border-radius: 16px; background: var(--bg0); box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(110, 114, 247, 0.08); overflow: hidden; text-align: left; }
.shot-bar { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 14px; background: var(--bg2); border-bottom: 1px solid var(--line); font: 600 12.5px var(--body); color: var(--text2); }
.shot-bar svg { width: 16px; height: 16px; }
.shot-bar span:last-child { margin-left: auto; font-family: var(--mono); font-weight: 400; color: var(--dim); }
.shot-body { display: grid; grid-template-columns: 1fr 300px; }
.shot-view { position: relative; aspect-ratio: 16 / 8.2; background: radial-gradient(120% 90% at 30% 20%, #2a2f55, #14151f 60%, #0c0c12); border-right: 1px solid var(--line); overflow: hidden; }
.shot-view .frame { position: absolute; inset: 9% 31%; border-radius: 10px; background: linear-gradient(160deg, #474dc0, #23265e 55%, #11122a); box-shadow: 0 16px 50px rgba(0, 0, 0, 0.5); display: grid; place-items: center; }
.shot-view .frame svg { width: 38%; opacity: 0.95; }
.shot-view .cap { position: absolute; left: 50%; bottom: 15%; transform: translateX(-50%); padding: 5px 12px; border-radius: 7px; background: rgba(0, 0, 0, 0.6); color: #fff; font: 600 12.5px var(--body); white-space: nowrap; }
.shot-side { background: var(--bg2); padding: 14px; display: flex; flex-direction: column; gap: 10px; font-size: 12.5px; min-width: 0; }
.shot-side b { font: 600 11px var(--body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); }
.bubble { padding: 10px 12px; border-radius: 10px; background: var(--bg3); border: 1px solid var(--line2); color: var(--text); line-height: 1.5; }
.bubble.me { background: var(--accent-bg); border-color: rgba(110, 114, 247, 0.4); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; color: var(--text2); }
.steps li { display: flex; gap: 8px; align-items: center; }
.steps li::before { content: ""; width: 13px; height: 13px; flex: none; border-radius: 50%; border: 1.5px solid var(--green); background: radial-gradient(circle, var(--green) 38%, transparent 42%); }
.steps li.now::before { border-color: var(--accent2); background: none; animation: spin 1.1s linear infinite; border-right-color: transparent; }
.bar { height: 4px; border-radius: 4px; background: var(--bg3); overflow: hidden; margin-top: auto; }
.bar i { display: block; height: 100%; width: 72%; background: var(--accent); border-radius: 4px; animation: grow 6s ease-in-out infinite; }
.tl { position: relative; padding: 12px 14px 16px; background: var(--bg1); border-top: 1px solid var(--line); display: grid; gap: 6px; }
.tl .ruler { height: 14px; background: repeating-linear-gradient(90deg, var(--line2) 0 1px, transparent 1px 44px); opacity: 0.8; }
.tl .row { display: flex; gap: 3px; height: 26px; }
.tl .row i { display: block; border-radius: 5px; height: 100%; }
.c-v { background: var(--video); } .c-a { background: var(--audio); } .c-g { background: var(--comp); } .c-t { background: var(--textc); }
.tl .row.wave i { background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.28) 0 2px, transparent 2px 5px); background-size: auto 60%; background-repeat: repeat-x; background-position: center; background-color: var(--audio); }
.tl .row.wave.music i { background-color: #14694d; }
.tl .head { position: absolute; top: 8px; bottom: 10px; left: 14px; width: 2px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4); animation: play 9s linear infinite; }
.tl .head::before { content: ""; position: absolute; top: -2px; left: -5px; border: 6px solid transparent; border-top-color: #fff; }
@keyframes play { from { transform: translateX(0); } to { transform: translateX(min(1010px, calc(100vw - 80px))); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes grow { 0% { width: 8%; } 80%, 100% { width: 96%; } }

/* ── sections ── */
section { padding: 96px 0; }
.eyebrow { font: 600 13px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent2); }
html[lang="fa"] .eyebrow { font: 700 14px var(--body); letter-spacing: 0; }
.sec-h { max-width: 720px; }
.sec-h h2 { margin-top: 14px; font-size: clamp(30px, 4.4vw, 50px); }
html[lang="fa"] .sec-h h2 { font-size: clamp(27px, 3.8vw, 42px); }
.sec-h p { margin-top: 16px; color: var(--text2); }

.apps { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 48px; }
.app { position: relative; padding: 32px; border: 1px solid var(--line2); border-radius: 20px; background: linear-gradient(180deg, var(--bg2), var(--bg1)); overflow: hidden; }
.app::after { content: ""; position: absolute; inset: auto -40px -120px auto; width: 260px; height: 260px; background: radial-gradient(circle, rgba(110, 114, 247, 0.18), transparent 65%); pointer-events: none; }
.app svg.mark { width: 54px; height: 54px; }
.app h3 { margin-top: 22px; font-size: 28px; font-family: "Bricolage Grotesque", sans-serif; letter-spacing: -0.02em; line-height: 1.1; font-weight: 700; direction: ltr; text-align: start; }
html[dir="rtl"] .app h3 { text-align: right; }
.app .what { margin-top: 6px; color: var(--accent2); font-weight: 600; font-size: 15.5px; }
.app p.d { margin-top: 14px; color: var(--text2); font-size: 16px; }
.app ul { margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 9px; font-size: 15.5px; color: var(--text); }
.app li { display: flex; gap: 10px; align-items: flex-start; }
.app li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 0.68em; border-radius: 50%; background: var(--accent); }

.feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 48px; border: 1px solid var(--line2); border-radius: 20px; overflow: hidden; background: var(--line2); }
.feat { padding: 28px; background: var(--bg1); }
.feat svg { width: 26px; height: 26px; color: var(--accent2); }
.feat h3 { margin-top: 16px; font-size: 19px; line-height: 1.3; letter-spacing: -0.01em; }
html[lang="fa"] .feat h3 { line-height: 1.6; }
.feat p { margin-top: 8px; color: var(--text2); font-size: 15.5px; }

.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; counter-reset: s; }
.how > div { padding: 26px; border-radius: 18px; background: var(--bg2); border: 1px solid var(--line); counter-increment: s; }
.how > div::before { content: "0" counter(s); display: block; font: 600 14px var(--mono); color: var(--accent2); }
.how h3 { margin-top: 12px; font-size: 20px; line-height: 1.3; }
html[lang="fa"] .how h3 { line-height: 1.6; }
.how p { margin-top: 8px; color: var(--text2); font-size: 15.5px; }

.phone { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.phone ul { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.phone li { display: flex; gap: 10px; }
.phone li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 0.7em; border-radius: 50%; background: var(--accent); }
.device { justify-self: center; width: 250px; padding: 12px; border-radius: 40px; background: #050507; border: 1px solid var(--line2); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55); direction: ltr; }
.device .scr { border-radius: 30px; background: linear-gradient(180deg, #17171c, #0e0e11); padding: 34px 14px 16px; min-height: 450px; display: flex; flex-direction: column; gap: 10px; font-size: 12.5px; }
.device .t { font: 700 20px "Bricolage Grotesque", sans-serif; }
.device .card { padding: 11px 12px; border-radius: 14px; background: var(--bg3); border: 1px solid var(--line); }
.device .card small { display: block; color: var(--dim); font-size: 11px; margin-bottom: 4px; }
.device .tabs { margin-top: auto; display: flex; justify-content: space-around; padding: 10px; border-radius: 22px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.08); }
.device .tabs i { width: 22px; height: 22px; border-radius: 7px; background: var(--line2); }
.device .tabs i:first-child { background: var(--accent); }

/* ── download ── */
.dl { padding: 44px; border-radius: 24px; border: 1px solid rgba(110, 114, 247, 0.35); background: radial-gradient(700px 300px at 85% 0, rgba(110, 114, 247, 0.2), transparent 70%), var(--bg2); display: grid; grid-template-columns: 1fr auto; gap: 36px; align-items: center; }
.dl h2 { font-size: clamp(28px, 3.8vw, 44px); margin-top: 14px; }
.dl p { margin-top: 14px; color: var(--text2); max-width: 54ch; }
.dl .side { display: grid; gap: 12px; justify-items: stretch; min-width: 250px; }
.dl .meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; color: var(--dim); font-size: 14px; }
.dl .meta span { display: inline-flex; gap: 7px; align-items: center; }
.dl .meta svg { width: 15px; height: 15px; }
.badge { justify-self: start; display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 999px; background: rgba(240, 176, 60, 0.12); border: 1px solid rgba(240, 176, 60, 0.35); color: #f0b03c; font-size: 13.5px; font-weight: 600; }

footer { padding: 40px 0 56px; border-top: 1px solid var(--line); color: var(--dim); font-size: 14.5px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; }
footer .links { display: flex; gap: 20px; margin-inline-start: auto; }
footer a:hover { color: var(--text); }
footer .mean { flex-basis: 100%; font-style: italic; color: var(--dim); }
html[lang="fa"] footer .mean { font-style: normal; }

.rise { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.rise.in { opacity: 1; transform: none; }
.mark-l { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.1s 0.2s cubic-bezier(0.6, 0, 0.2, 1) forwards; }
.mark-p { opacity: 0; transform: scale(0.6); transform-origin: 160px 94px; animation: pop 0.5s 1.1s cubic-bezier(0.3, 1.5, 0.5, 1) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  .nav { display: none; }
  .lang { margin-inline-start: auto; }
  .shot-body { grid-template-columns: 1fr; }
  .shot-side { display: none; }
  .apps, .how, .phone, .dl { grid-template-columns: 1fr; }
  .feats { grid-template-columns: 1fr 1fr; }
  .dl { padding: 30px 24px; }
  .dl .side { min-width: 0; }
  section { padding: 68px 0; }
  .hero { padding-top: 56px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .feats { grid-template-columns: 1fr; }
  .app { padding: 24px; }
  .shot-view .frame { inset: 9% 26%; }
  .btn { width: 100%; }
  footer .links { margin-inline-start: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rise { opacity: 1; transform: none; }
  .mark-l { stroke-dashoffset: 0; }
  .mark-p { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
