Files
Abolfazl Ranjbaran 2075db529d feat(site): GitHub Pages landing page, CI coverage summary, dependabot + PR template
- Persian-first RTL landing page in site/ (measured numbers, benchmark
  table, screenshots, quickstart, architecture chain, og-image), pushed
  to production by the new pages.yml workflow on every main push
- CI test job now measures branch coverage over sokhan + sokhan_bot and
  appends a per-file markdown table to the job summary
  (scripts/coverage_summary.py); pytest-cov joins the backend dev extra
- weekly dependabot updates (pip, npm, github-actions, docker) and a PR
  template that repeats the measurement-first checklist
- README: fix stale honest-limits/roadmap claims — streaming decode and
  signed webhooks shipped in v1.3.0, not open items; add Docker badge and
  landing-page link
2026-11-23 06:46:45 +00:00

351 lines
9.4 KiB
CSS

/* Sokhan landing page — dark, RTL-first, Vazirmatn */
@font-face {
font-family: "Vazirmatn";
src: url("./assets/fonts/Vazirmatn-Regular.woff2") format("woff2");
font-weight: 400;
font-display: swap;
}
@font-face {
font-family: "Vazirmatn";
src: url("./assets/fonts/Vazirmatn-Medium.woff2") format("woff2");
font-weight: 500;
font-display: swap;
}
@font-face {
font-family: "Vazirmatn";
src: url("./assets/fonts/Vazirmatn-Bold.woff2") format("woff2");
font-weight: 700;
font-display: swap;
}
:root {
--bg: #0b1220;
--bg-alt: #0e1728;
--card: #121a2b;
--line: #1e2a44;
--text: #e2e8f0;
--muted: #94a3b8;
--accent: #2dd4bf;
--accent-2: #60a5fa;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
background: var(--bg);
color: var(--text);
font-family: "Vazirmatn", "Tahoma", sans-serif;
line-height: 1.8;
-webkit-font-smoothing: antialiased;
}
.container { max-width: 1060px; margin: 0 auto; padding: 0 24px; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code {
font-family: ui-monospace, "SF Mono", Consolas, monospace;
background: rgba(45, 212, 191, 0.08);
border: 1px solid var(--line);
border-radius: 6px;
padding: 1px 7px;
font-size: 0.88em;
color: #a5f3eb;
}
/* ---------- nav ---------- */
.nav {
position: sticky;
top: 0;
z-index: 10;
background: rgba(11, 18, 32, 0.85);
backdrop-filter: blur(10px);
border-bottom: 1px solid var(--line);
}
.nav-inner {
display: flex;
align-items: center;
justify-content: space-between;
height: 62px;
}
.brand {
font-weight: 700;
font-size: 1.35rem;
color: var(--text);
}
.brand-en {
margin-inline-start: 8px;
font-size: 0.8rem;
font-weight: 400;
color: var(--muted);
letter-spacing: 2px;
text-transform: lowercase;
}
.brand:hover { text-decoration: none; }
.nav nav { display: flex; gap: 22px; align-items: center; }
.nav nav a { color: var(--muted); font-size: 0.95rem; }
.nav nav a:hover { color: var(--text); text-decoration: none; }
.nav-cta {
border: 1px solid var(--accent);
border-radius: 999px;
padding: 5px 16px !important;
color: var(--accent) !important;
}
/* ---------- hero ---------- */
.hero {
padding: 84px 0 56px;
text-align: center;
background:
radial-gradient(700px 340px at 20% 0%, rgba(45, 212, 191, 0.09), transparent 60%),
radial-gradient(700px 340px at 80% 10%, rgba(96, 165, 250, 0.09), transparent 60%);
}
.eyebrow {
color: var(--accent);
letter-spacing: 2px;
font-size: 0.85rem;
margin-bottom: 18px;
font-weight: 500;
}
.hero h1 {
font-size: clamp(1.9rem, 5vw, 3.1rem);
font-weight: 700;
line-height: 1.5;
margin-bottom: 22px;
}
.accent { color: var(--accent); }
.hero-fa {
max-width: 760px;
margin: 0 auto 12px;
color: #cbd5e1;
font-size: 1.06rem;
}
.hero-en {
color: var(--muted);
font-size: 0.95rem;
margin-bottom: 34px;
}
.cta-row {
display: flex;
gap: 14px;
justify-content: center;
flex-wrap: wrap;
margin-bottom: 42px;
}
.btn {
display: inline-block;
padding: 12px 26px;
border-radius: 12px;
font-weight: 500;
font-size: 1rem;
transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary {
background: linear-gradient(120deg, var(--accent), #14b8a6);
color: #06231f !important;
box-shadow: 0 8px 26px rgba(45, 212, 191, 0.25);
}
.btn-ghost {
border: 1px solid var(--line);
color: var(--text) !important;
background: rgba(18, 26, 43, 0.6);
}
.btn-ghost:hover { border-color: var(--accent); }
/* animated waveform */
.wave {
display: flex;
gap: 6px;
justify-content: center;
align-items: center;
height: 64px;
margin-bottom: 14px;
}
.wave i {
width: 6px;
border-radius: 3px;
background: linear-gradient(180deg, var(--accent-2), var(--accent));
animation: pulse 1.6s ease-in-out infinite;
}
.wave i:nth-child(1) { height: 22%; animation-delay: 0s; }
.wave i:nth-child(2) { height: 44%; animation-delay: 0.1s; }
.wave i:nth-child(3) { height: 68%; animation-delay: 0.2s; }
.wave i:nth-child(4) { height: 90%; animation-delay: 0.3s; }
.wave i:nth-child(5) { height: 64%; animation-delay: 0.4s; }
.wave i:nth-child(6) { height: 96%; animation-delay: 0.5s; }
.wave i:nth-child(7) { height: 52%; animation-delay: 0.6s; }
.wave i:nth-child(8) { height: 78%; animation-delay: 0.7s; }
.wave i:nth-child(9) { height: 34%; animation-delay: 0.8s; }
.wave i:nth-child(10) { height: 60%; animation-delay: 0.9s; }
.wave i:nth-child(11) { height: 88%; animation-delay: 1s; }
.wave i:nth-child(12) { height: 46%; animation-delay: 1.1s; }
.wave i:nth-child(13) { height: 70%; animation-delay: 1.2s; }
.wave i:nth-child(14) { height: 30%; animation-delay: 1.3s; }
.wave i:nth-child(15) { height: 56%; animation-delay: 1.4s; }
.wave i:nth-child(16) { height: 82%; animation-delay: 1.5s; }
.wave i:nth-child(17) { height: 40%; animation-delay: 1.6s; }
.wave i:nth-child(18) { height: 66%; animation-delay: 1.7s; }
.wave i:nth-child(19) { height: 24%; animation-delay: 1.8s; }
.wave i:nth-child(20) { height: 50%; animation-delay: 1.9s; }
.wave i:nth-child(21) { height: 74%; animation-delay: 2s; }
.wave i:nth-child(22) { height: 36%; animation-delay: 2.1s; }
.wave i:nth-child(23) { height: 58%; animation-delay: 2.2s; }
.wave i:nth-child(24) { height: 28%; animation-delay: 2.3s; }
.wave i:nth-child(25) { height: 48%; animation-delay: 2.4s; }
.wave i:nth-child(26) { height: 20%; animation-delay: 2.5s; }
.wave i:nth-child(27) { height: 38%; animation-delay: 2.6s; }
.wave i:nth-child(28) { height: 26%; animation-delay: 2.7s; }
@keyframes pulse {
0%, 100% { transform: scaleY(0.55); opacity: 0.75; }
50% { transform: scaleY(1.15); opacity: 1; }
}
.hero-note { color: var(--muted); font-size: 0.88rem; }
/* ---------- stats ---------- */
.stats { padding: 20px 0 8px; }
.stats-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 14px;
}
.stat {
background: var(--card);
border: 1px solid var(--line);
border-radius: 14px;
padding: 20px 16px;
text-align: center;
}
.stat-num {
font-size: 1.9rem;
font-weight: 700;
color: var(--accent);
margin-bottom: 4px;
}
.stat-label { color: var(--muted); font-size: 0.9rem; }
.stat-label small { display: block; font-size: 0.78rem; margin-top: 2px; }
/* ---------- sections ---------- */
.section { padding: 72px 0; }
.section.alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.sec-en {
color: var(--accent-2);
font-size: 0.8rem;
letter-spacing: 3px;
text-transform: uppercase;
margin-bottom: 8px;
}
h2 { font-size: 1.7rem; font-weight: 700; margin-bottom: 16px; }
.lead { color: #b8c4d6; max-width: 780px; margin-bottom: 26px; }
/* ---------- feature cards ---------- */
.cards {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 16px;
margin-top: 30px;
}
.card {
background: var(--card);
border: 1px solid var(--line);
border-radius: 14px;
padding: 22px;
}
.card h3 { font-size: 1.05rem; margin-bottom: 10px; color: var(--text); }
.card p { color: var(--muted); font-size: 0.93rem; }
/* ---------- screenshots ---------- */
.shots {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 18px;
margin: 26px 0 34px;
}
.shots figure {
background: var(--card);
border: 1px solid var(--line);
border-radius: 14px;
overflow: hidden;
}
.shots img { width: 100%; display: block; }
.shots figcaption {
padding: 12px 16px;
color: var(--muted);
font-size: 0.88rem;
border-top: 1px solid var(--line);
}
/* ---------- benchmark table ---------- */
.table-wrap {
border: 1px solid var(--line);
border-radius: 14px;
overflow-x: auto;
margin: 26px 0 16px;
}
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { padding: 13px 18px; text-align: start; border-bottom: 1px solid var(--line); }
thead th { background: #0f1829; color: var(--muted); font-weight: 500; }
tbody tr:last-child td { border-bottom: none; }
tr.best { background: rgba(45, 212, 191, 0.07); }
tr.best td { color: #a5f3eb; }
.fineprint { color: var(--muted); font-size: 0.86rem; max-width: 780px; }
/* ---------- quickstart ---------- */
.code {
background: #0a1120;
border: 1px solid var(--line);
border-radius: 14px;
padding: 20px 24px;
margin: 24px 0 18px;
overflow-x: auto;
}
.code pre {
font-family: ui-monospace, "SF Mono", Consolas, monospace;
font-size: 0.88rem;
line-height: 1.75;
color: #d7e0ee;
}
.code .c { color: #64748b; }
.arch {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 10px;
margin-top: 30px;
}
.chip {
background: var(--card);
border: 1px solid var(--line);
border-radius: 999px;
padding: 8px 18px;
font-size: 0.9rem;
color: #cbd5e1;
}
.chip-strong { border-color: var(--accent); color: var(--accent); }
.arrow { color: var(--muted); }
/* ---------- footer ---------- */
.footer {
border-top: 1px solid var(--line);
padding: 36px 0 44px;
background: var(--bg-alt);
}
.footer-inner { text-align: center; }
.footer-fa { margin-bottom: 14px; color: var(--text); }
.footer nav { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin-bottom: 14px; }
.footer nav a { color: var(--muted); font-size: 0.92rem; }
.footer nav a:hover { color: var(--accent); }
.footer-en { color: #64748b; font-size: 0.82rem; }
/* ---------- responsive ---------- */
@media (max-width: 860px) {
.stats-grid { grid-template-columns: repeat(2, 1fr); }
.cards { grid-template-columns: 1fr; }
.shots { grid-template-columns: 1fr; }
.nav nav a:not(.nav-cta) { display: none; }
}