/*
 * تیمینو — teaminou.ir
 *
 * Plain CSS on purpose: the site has to load fast on a phone over Iranian
 * mobile data and keep working on the national intranet, so there is no build
 * step, no framework and nothing fetched from outside this folder. The fonts
 * are served from here rather than Google Fonts, which is unreachable here —
 * the one detail most Persian sites get wrong.
 *
 * The palette is the app's, from packages/shared/src/index.ts. Keep them equal.
 */

@font-face { font-family: Vazirmatn; font-weight: 400; font-display: swap; src: url('fonts/Vazirmatn_400Regular.ttf') format('truetype'); }
@font-face { font-family: Vazirmatn; font-weight: 500; font-display: swap; src: url('fonts/Vazirmatn_500Medium.ttf') format('truetype'); }
@font-face { font-family: Vazirmatn; font-weight: 600; font-display: swap; src: url('fonts/Vazirmatn_600SemiBold.ttf') format('truetype'); }
@font-face { font-family: Vazirmatn; font-weight: 700; font-display: swap; src: url('fonts/Vazirmatn_700Bold.ttf') format('truetype'); }
@font-face { font-family: Vazirmatn; font-weight: 800; font-display: swap; src: url('fonts/Vazirmatn_800ExtraBold.ttf') format('truetype'); }

:root {
  --bg: #0B0C10;
  --rail: #07080B;
  --panel: #101116;
  --surface: #14151B;
  --surface-raised: #1B1D25;
  --border: #262833;
  --border-subtle: #1F2029;
  --text: #EDEEF2;
  --text-secondary: #A3A7B3;
  --text-muted: #6F7383;
  --accent: #5B49E8;
  --accent-text: #8B7CFF;
  --accent-soft: #1F1B3A;
  --success: #34D399;
  --warning: #F5B94A;

  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --page: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Vazirmatn, Tahoma, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.5; }
p { margin: 0; }
img, svg { max-width: 100%; }

.wrap {
  width: 100%;
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------------------------------------------------------------- header */

header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 12, 16, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
}

.bar {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 19px;
  white-space: nowrap;
}

.brand img { width: 34px; height: 34px; }

nav {
  display: flex;
  align-items: center;
  gap: 26px;
  flex: 1;
}

nav a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 15px;
  transition: color 0.15s var(--ease);
}

nav a:hover { color: var(--text); }

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 48px;
  padding: 0 24px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-family: inherit;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(0.98); }

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #6B5BF0; }

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover { border-color: #3A3070; background: var(--surface); }

.btn-sm { height: 42px; padding: 0 18px; font-size: 14px; border-radius: 12px; }

/* ---------------------------------------------------------------- hero */

.hero {
  position: relative;
  padding: 72px 0 90px;
  overflow: hidden;
}

/* A soft purple wash behind the headline, the same accent as the app's. */
.hero::before {
  content: '';
  position: absolute;
  top: -220px;
  right: 50%;
  transform: translateX(50%);
  width: 900px;
  height: 620px;
  background: radial-gradient(circle, rgba(91, 73, 232, 0.22), transparent 62%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 56px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid #2E2756;
  color: #C9C0FF;
  font-size: 13px;
  font-weight: 600;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.18);
}

h1 {
  font-size: clamp(32px, 5.2vw, 52px);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin: 20px 0 16px;
}

h1 .accent { color: var(--accent-text); }

.lead {
  font-size: 17px;
  line-height: 2.1;
  color: var(--text-secondary);
  max-width: 560px;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.cta-note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-muted);
}

/* ------------------------------------------------- the little app preview */

.preview {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.preview-top {
  height: 86px;
  background: linear-gradient(135deg, #2A2250, #1A1733);
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 12px 16px;
}

.preview-top b { font-size: 16px; font-weight: 800; }

.preview-body { padding: 10px; }

.ch {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  padding: 0 11px;
  border-radius: 11px;
  color: #D7D9E0;
  font-size: 14px;
  font-weight: 500;
}

.ch.on { background: var(--surface-raised); }

.ch .hash { color: var(--text-muted); font-weight: 700; }

.section-label {
  padding: 14px 12px 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
}

.voice-card {
  margin: 8px 4px 4px;
  padding: 12px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.who {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 9px;
}

.who:last-child { margin-bottom: 0; }

.av {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
}

.who span { font-size: 13px; color: #C7CAD3; }

.speaking { box-shadow: 0 0 0 2px var(--panel), 0 0 0 4px rgba(52, 211, 153, 0.9); }

/* ---------------------------------------------------------------- sections */

section { padding: 84px 0; }

.section-head { text-align: center; margin-bottom: 48px; }

h2 {
  font-size: clamp(26px, 3.6vw, 36px);
  font-weight: 800;
  letter-spacing: -0.4px;
}

.section-head p {
  margin-top: 12px;
  color: var(--text-secondary);
  font-size: 16px;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feat {
  padding: 26px 22px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.feat:hover {
  transform: translateY(-4px);
  border-color: #3A3070;
  background: #15142A;
}

.feat .ico {
  width: 46px;
  height: 46px;
  border-radius: 15px;
  background: var(--accent-soft);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}

.feat h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }

.feat p { color: var(--text-secondary); font-size: 14.5px; line-height: 2; }

/* --------------------------------------------------------------- iran band */

.band {
  background: linear-gradient(135deg, #15142A, #0E0F18);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.band-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.band h2 { margin-bottom: 16px; }

.band p { color: var(--text-secondary); font-size: 16px; line-height: 2.1; }

.points { margin-top: 26px; display: grid; gap: 14px; }

.point { display: flex; align-items: flex-start; gap: 12px; }

.check {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: rgba(52, 211, 153, 0.12);
  display: grid;
  place-items: center;
  margin-top: 4px;
}

.point b { font-weight: 600; font-size: 15px; }
.point small { display: block; color: var(--text-muted); font-size: 13.5px; line-height: 1.9; }

/* --------------------------------------------------------------- download */

.download-card {
  max-width: 620px;
  margin: 0 auto;
  padding: 40px 32px;
  border-radius: 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  text-align: center;
}

.stores {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.soon {
  margin-top: 22px;
  font-size: 13.5px;
  color: var(--text-muted);
}

/* -------------------------------------------------------------------- faq */

.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }

.qa {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.qa summary {
  padding: 18px 22px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
}

.qa summary::-webkit-details-marker { display: none; }

.qa summary .chev {
  margin-inline-start: auto;
  color: var(--text-muted);
  transition: transform 0.25s var(--ease);
  flex: none;
}

.qa[open] summary .chev { transform: rotate(180deg); }

.qa .ans {
  padding: 0 22px 20px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 2.1;
}

/* ----------------------------------------------------------------- footer */

footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--rail);
  padding: 46px 0 34px;
}

.foot-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-start;
}

.foot-links { display: flex; flex-wrap: wrap; gap: 26px; }

.foot-links a {
  color: var(--text-secondary);
  font-size: 14.5px;
  transition: color 0.15s var(--ease);
}

.foot-links a:hover { color: var(--text); }

.foot-bottom {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 13.5px;
}

.powered { display: inline-flex; align-items: center; gap: 6px; }

/* ------------------------------------------------------------- legal pages */

.legal { padding: 56px 0 90px; max-width: 760px; }

.legal h1 { font-size: clamp(28px, 4vw, 38px); margin: 0 0 10px; }

.legal .updated { color: var(--text-muted); font-size: 14px; margin-bottom: 36px; }

.legal h2 { font-size: 21px; margin: 38px 0 12px; }

.legal p, .legal li { color: var(--text-secondary); font-size: 15.5px; line-height: 2.2; }

.legal ul { padding-inline-start: 22px; margin: 10px 0; }

.legal li { margin-bottom: 8px; }

.legal strong { color: var(--text); font-weight: 600; }

.notice {
  padding: 18px 22px;
  border-radius: 16px;
  background: rgba(245, 185, 74, 0.08);
  border: 1px solid rgba(245, 185, 74, 0.28);
  color: #F0D49A;
  font-size: 14.5px;
  line-height: 2;
  margin-bottom: 32px;
}

/* ------------------------------------------------------------- animations */

@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.rise { animation: rise 0.7s var(--ease) both; }
.d1 { animation-delay: 0.08s; }
.d2 { animation-delay: 0.16s; }
.d3 { animation-delay: 0.24s; }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.float { animation: float 6s ease-in-out infinite; }

@keyframes speak {
  0%, 100% { box-shadow: 0 0 0 2px var(--panel), 0 0 0 3px rgba(52, 211, 153, 0.95); }
  50% { box-shadow: 0 0 0 2px var(--panel), 0 0 0 6px rgba(52, 211, 153, 0.22); }
}
.speaking { animation: speak 1.4s ease-in-out infinite; }

/* ------------------------------------------------------------- responsive */

@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .preview { max-width: 380px; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .band-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 680px) {
  section { padding: 60px 0; }
  .hero { padding: 48px 0 64px; }
  nav { display: none; }
  .features { grid-template-columns: 1fr; }
  .cta .btn { flex: 1 1 100%; }
  .download-card { padding: 30px 22px; }
  .foot-bottom { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
