/* SetaLink — Dark Nordic landing page */
:root {
  --bg0: #0b0b12;
  --bg1: #11111a;
  --bg2: #181825;
  --bg3: #1f1f30;
  --border: #26263a;
  --accent: #4f9cf9;
  --accent2: #7c6af5;
  --accent-glow: rgba(79,156,249,.18);
  --green: #3dd68c;
  --yellow: #f5b942;
  --red: #f56b6b;
  --text: #e2e2ee;
  --text2: #8a8aaa;
  --text3: #55556a;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0,0,0,.5);
  --transition: .2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg0);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body[dir="rtl"] {
  font-family: 'Vazirmatn', 'Tahoma', system-ui, sans-serif;
}

a { color: var(--accent); text-decoration: none; }
a:hover { opacity: .82; }
img { max-width: 100%; }

/* ── NAV ── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11,11,18,.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  height: 60px;
  display: flex; align-items: center; justify-content: space-between;
}

.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 1.15rem; color: var(--text);
}

.nav-logo svg { width: 28px; height: 28px; }

.nav-logo span.dot { color: var(--accent); }

.nav-actions { display: flex; align-items: center; gap: 10px; }

.btn-lang {
  background: var(--bg2); border: 1px solid var(--border);
  color: var(--text2); font-size: .82rem; font-weight: 600;
  padding: 5px 14px; border-radius: 20px; cursor: pointer;
  transition: var(--transition); letter-spacing: .04em;
}
.btn-lang:hover { border-color: var(--accent); color: var(--accent); }

/* ── HERO ── */
.hero {
  min-height: 82vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 80px 24px 60px;
  position: relative; overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 55% at 50% 30%, rgba(79,156,249,.09) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 20px; padding: 6px 16px;
  font-size: .78rem; font-weight: 600; color: var(--text2);
  margin-bottom: 28px; letter-spacing: .05em; text-transform: uppercase;
}
.hero-badge .dot-live {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; } 50% { opacity: .4; }
}

.hero h1 {
  font-size: clamp(2rem, 6vw, 3.6rem);
  font-weight: 800; line-height: 1.15;
  letter-spacing: -.03em;
  margin-bottom: 20px;
  max-width: 800px;
}

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--text2); max-width: 560px;
  margin-bottom: 36px;
}

.hero-btns {
  display: flex; gap: 12px; flex-wrap: wrap; justify-content: center;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: var(--radius-sm);
  font-size: .95rem; font-weight: 600; cursor: pointer;
  transition: var(--transition); border: none;
}

.btn-primary {
  background: var(--accent); color: #050810;
  box-shadow: 0 0 20px rgba(79,156,249,.3);
}
.btn-primary:hover { background: #6aaffe; transform: translateY(-1px); color: #050810; opacity: 1; }

.btn-secondary {
  background: var(--bg2); color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); opacity: 1; }

.btn-outline {
  background: transparent; color: var(--accent);
  border: 1px solid var(--accent);
}
.btn-outline:hover { background: var(--accent-glow); opacity: 1; }

/* ── SECTION ── */
.section { padding: 80px 24px; max-width: 1100px; margin: 0 auto; }
.section-sm { padding: 60px 24px; max-width: 1100px; margin: 0 auto; }

.section-label {
  font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 12px;
}

.section h2 {
  font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800;
  letter-spacing: -.025em; margin-bottom: 14px;
}

.section .sub {
  color: var(--text2); font-size: 1.05rem; max-width: 520px;
  margin-bottom: 48px;
}

/* ── DOWNLOAD CARDS ── */
.app-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px;
}

.app-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px 20px;
  display: flex; flex-direction: column; gap: 14px;
  transition: var(--transition);
}
.app-card:hover { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent-glow); transform: translateY(-2px); }

.app-card-top {
  display: flex; align-items: center; gap: 12px;
}

.app-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--bg3); display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
}

.app-name { font-weight: 700; font-size: 1rem; }
.app-meta { font-size: .78rem; color: var(--text2); }

.app-badge {
  display: inline-block; background: var(--accent-glow); color: var(--accent);
  font-size: .7rem; font-weight: 700; padding: 2px 8px; border-radius: 4px;
  letter-spacing: .04em;
}

/* ── HOW-TO STEPS ── */
.steps { display: flex; flex-direction: column; gap: 0; }

.step {
  display: flex; gap: 20px; padding: 24px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.step:last-child { border-bottom: none; }

.step-num {
  width: 38px; height: 38px; min-width: 38px;
  border-radius: 50%; background: var(--bg3); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .9rem; color: var(--accent);
}

.step-content h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; }
.step-content p { font-size: .92rem; color: var(--text2); }
.step-content code {
  background: var(--bg3); padding: 2px 8px; border-radius: 4px;
  font-size: .85rem; color: var(--accent); font-family: monospace;
}

/* ── TRANSPORT STATUS ── */
.transports-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px;
  margin-bottom: 24px;
}

.transport-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 18px;
}

.transport-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px;
}

.transport-name { font-weight: 700; font-size: .95rem; }

.status-dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 8px var(--green);
}
.status-dot.offline { background: var(--red); box-shadow: 0 0 8px var(--red); }
.status-dot.checking { background: var(--yellow); box-shadow: 0 0 8px var(--yellow); animation: pulse 1.5s infinite; }

.transport-desc { font-size: .8rem; color: var(--text2); line-height: 1.5; }
.transport-tag {
  display: inline-block; margin-top: 10px;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 4px; padding: 2px 8px;
  font-size: .7rem; color: var(--text3); font-family: monospace;
}

/* ── FAQ ── */
.faq-list { display: flex; flex-direction: column; gap: 8px; }

.faq-item {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); overflow: hidden;
  transition: border-color var(--transition);
}
.faq-item.open { border-color: var(--accent); }

.faq-q {
  width: 100%; background: none; border: none; color: var(--text);
  text-align: left; padding: 18px 20px;
  display: flex; justify-content: space-between; align-items: center;
  cursor: pointer; font-size: .97rem; font-weight: 600; gap: 16px;
}
body[dir="rtl"] .faq-q { text-align: right; }

.faq-icon {
  width: 22px; height: 22px; min-width: 22px; border-radius: 50%;
  background: var(--bg3); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; color: var(--text2);
  transition: transform var(--transition), background var(--transition);
}
.faq-item.open .faq-icon { transform: rotate(45deg); background: var(--accent-glow); color: var(--accent); border-color: var(--accent); }

.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .35s ease, padding .2s ease;
  padding: 0 20px;
}
.faq-item.open .faq-a { max-height: 400px; padding: 0 20px 18px; }

.faq-a p { font-size: .9rem; color: var(--text2); line-height: 1.7; }

/* ── CONTACT / FOOTER ── */
.contact-section {
  text-align: center; padding: 80px 24px;
  border-top: 1px solid var(--border);
}

.contact-card {
  max-width: 440px; margin: 40px auto 0;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 36px 32px;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}

.tg-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, #2CA5E0, #1a8bc0);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 0 20px rgba(44,165,224,.3);
}

.contact-card h3 { font-size: 1.2rem; font-weight: 700; }
.contact-card p { font-size: .9rem; color: var(--text2); text-align: center; }

footer {
  text-align: center; padding: 24px;
  border-top: 1px solid var(--border);
  font-size: .8rem; color: var(--text3);
}

/* ── DIVIDER ── */
.divider {
  height: 1px; background: var(--border);
  max-width: 1100px; margin: 0 auto;
}

/* ── NOTICE BANNER ── */
.notice {
  background: rgba(79,156,249,.08);
  border: 1px solid rgba(79,156,249,.22);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: .88rem; color: var(--text2);
  display: flex; align-items: flex-start; gap: 10px;
  margin-top: 32px;
}
.notice .icon { font-size: 1rem; margin-top: 1px; }

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  .hero { padding: 60px 20px 40px; min-height: 75vh; }
  .section, .section-sm { padding: 56px 20px; }
  .contact-section { padding: 56px 20px; }
  .app-grid { grid-template-columns: 1fr 1fr; }
  .transports-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 420px) {
  .app-grid { grid-template-columns: 1fr; }
  .transports-grid { grid-template-columns: 1fr; }
  .hero-btns .btn { width: 100%; justify-content: center; }
}

/* ── RTL OVERRIDES ── */
body[dir="rtl"] .faq-q { flex-direction: row-reverse; }
body[dir="rtl"] .step { flex-direction: row-reverse; text-align: right; }
body[dir="rtl"] .app-card-top { flex-direction: row-reverse; text-align: right; }
body[dir="rtl"] .transport-header { flex-direction: row-reverse; }
