@font-face {
  font-family: "Vazirmatn";
  src: url("/fonts/Vazirmatn-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #0f1419;
  --bg-deep: #0a0e12;
  --surface: #161c23;
  --raised: #1d252e;
  --border: #26313c;
  --text: #e6edf3;
  --text-2: #c9d3dc;
  --muted: #8b98a5;
  --accent: #3fb6a8;
  --accent-light: #8fdcd1;
  --accent-tint: #13231f;
  --on-accent: #0b1f1c;
  --danger: #f06a60;
  --warn: #d29922;
  --blue: #5b9bf0;
  --radius: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Vazirmatn", Tahoma, sans-serif;
  font-size: 16px;
  line-height: 1.85;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-light); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font-family: ui-monospace, "Cascadia Mono", monospace; font-size: .85em; background: var(--raised); padding: 1px 6px; border-radius: 6px; direction: ltr; unicode-bidi: embed; }
h1, h2, h3 { line-height: 1.35; margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 5vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); font-weight: 750; }
h3 { font-size: 1.08rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
section { padding-block: clamp(48px, 8vw, 96px); }
.eyebrow { color: var(--accent); font-weight: 700; font-size: .9rem; margin-bottom: .6em; }
.sub, .lead { color: var(--text-2); }
.lead { font-size: 1.1rem; max-width: 36em; }
.muted { color: var(--muted); }
.note { color: var(--muted); font-size: .92rem; border-inline-start: 3px solid var(--accent); padding-inline-start: 12px; }

/* Header */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.top-in { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; }
.brand img { border-radius: 9px; }
.links { display: flex; gap: 20px; margin-inline-start: auto; }
.links a { color: var(--text-2); font-size: .95rem; }
@media (max-width: 720px) { .links { display: none; } .top-in .btn { margin-inline-start: auto; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent); color: var(--on-accent); font: inherit; font-weight: 700;
  border: 1px solid var(--accent); border-radius: 12px; padding: 10px 18px; cursor: pointer;
  transition: transform .15s, background .15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); background: #4cc5b7; }
.btn:focus-visible { outline: 3px solid var(--accent-light); outline-offset: 2px; }
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn-sm { padding: 6px 14px; font-size: .92rem; }
.btn-lg { padding: 14px 24px; font-size: 1.05rem; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface); }

/* Hero */
.hero { background: radial-gradient(1000px 500px at 80% -10%, rgba(63, 182, 168, .18), transparent 60%); }
.hero-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 10px; }
.meta { color: var(--muted); font-size: .9rem; margin-bottom: .4em; }
.alt-links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: .92rem; color: var(--muted); }
.alt-links a { display: inline-flex; align-items: center; gap: 6px; }
.alt-links svg { width: 18px; height: 18px; fill: currentColor; }
.cta .btn-ghost svg { fill: none; }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--accent-light); cursor: pointer; }
.grid-install { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 880px) { .grid-install { grid-template-columns: 1fr; } }
.hero-shot { position: relative; min-height: 520px; }
.hero-shot .phone { position: absolute; width: 58%; inset-inline-end: 4%; top: 0; z-index: 2; }
.hero-shot .phone-back { inset-inline-end: auto; inset-inline-start: 2%; top: 60px; z-index: 1; opacity: .55; transform: rotate(-4deg); }
@media (max-width: 880px) {
  .hero-in { grid-template-columns: 1fr; }
  .hero-shot { min-height: 0; display: flex; justify-content: center; }
  .hero-shot .phone { position: static; width: min(300px, 80%); }
  .hero-shot .phone-back { display: none; }
}

.phone {
  border-radius: 28px; overflow: hidden; border: 1px solid var(--border);
  box-shadow: 0 30px 60px rgba(0, 0, 0, .45), 0 0 0 8px var(--bg-deep);
  background: var(--bg-deep);
}

/* Cards */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 880px) { .grid, .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .grid, .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.card p { color: var(--text-2); margin: 0; font-size: .95rem; }
.ic { font-size: 1.6rem; margin-bottom: 6px; }

/* Split sections */
.split { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.split .phone { width: min(320px, 100%); justify-self: center; }
.split-rev { grid-template-columns: .85fr 1.15fr; }
.split-rev .split-text { order: 2; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 880px) {
  .split, .split-rev { grid-template-columns: 1fr; }
  .split-rev .split-text { order: 0; }
}
.sev { font-size: .8rem; font-weight: 700; padding: 1px 8px; border-radius: 6px; }
.sev.c { color: var(--danger); background: rgba(240, 106, 96, .14); }
.sev.l { color: var(--blue); background: rgba(91, 155, 240, .14); }
.checks, .steps { padding-inline-start: 1.2em; color: var(--text-2); }
.checks li, .steps li { margin-bottom: .5em; }
.checks li::marker { color: var(--accent); }
.steps li::marker { color: var(--accent); font-weight: 800; }
.plain { padding-inline-start: 1.2em; color: var(--text-2); margin: 0; }

/* Privacy band */
.band { background: linear-gradient(135deg, var(--accent-tint), var(--surface)); border: 1px solid #1f4a42; border-radius: 24px; padding: clamp(24px, 5vw, 48px); }
.band p { color: var(--text-2); font-size: .95rem; }

.hash { margin-top: 20px; color: var(--muted); font-size: .9rem; }
.hash code { display: block; margin-top: 8px; word-break: break-all; }

/* Footer */
.foot { border-top: 1px solid var(--border); padding: 28px 0 calc(28px + env(safe-area-inset-bottom)); font-size: .9rem; }
.foot-in { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
