/* Red Alert Lebanon — landing microsite for redalert-lb.com.
   Matches alert-lb.com's visual language: dark-by-default, sharp corners,
   Noto Kufi Arabic for RTL, system stack for LTR. */

:root {
  --bg-primary: #0a0a0f;
  --bg-card: #16161f;
  --bg-elevated: #1e1e2a;
  --text-primary: #f0f0f5;
  --text-secondary: #aaaab8;
  --text-muted: #6b6b80;
  --border: #2a2a38;
  --border-subtle: #1e1e2a;
  --red: #ff3b4e;
  --red-dim: #ff3b4e22;
  --orange: #ff8c2e;
  --blue: #3b8eff;
  --green: #34d399;
  --font-ar: "Noto Kufi Arabic", system-ui, -apple-system, sans-serif;
  --font-en: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg-primary: #f5f5fa;
    --bg-card: #ffffff;
    --bg-elevated: #ffffff;
    --text-primary: #1a1a2e;
    --text-secondary: #55556a;
    --text-muted: #88889a;
    --border: #d0d0da;
    --border-subtle: #e0e0ea;
  }
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-en);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

body[dir="rtl"] { font-family: var(--font-ar); }

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 20px 60px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* Sections — sharp corners, subtle borders, no rounded card aesthetic */
section, .card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Hero */
.hero {
  background: var(--bg-primary);
  border: none;
  padding: 24px 0 12px;
  align-items: center;
  text-align: center;
  gap: 18px;
}

.hero img.logo { width: 80px; height: 80px; }

.hero h1 {
  font-size: 26px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.01em;
}

@media (min-width: 600px) {
  .hero h1 { font-size: 32px; }
}

.hero .subtitle {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.85;
  max-width: 480px;
}

/* Section heading style */
.section-eyebrow {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

h2 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
}

h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

p { color: var(--text-secondary); line-height: 1.85; font-size: 14px; }
section p { font-size: 14px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: opacity 0.15s ease;
  border: 1px solid transparent;
  width: 100%;
}

.btn:hover { opacity: 0.85; }

.btn-primary {
  background: var(--red);
  color: #fff;
}

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border-color: var(--border-subtle);
}

/* Channel grid */
.channels {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

@media (min-width: 520px) {
  .channels { grid-template-columns: 1fr 1fr; }
}

.channel {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  transition: opacity 0.15s ease;
}

.channel:hover { opacity: 0.85; }

.channel-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  font-size: 18px;
  flex-shrink: 0;
}

.channel-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.channel-handle { font-size: 12px; color: var(--text-muted); font-weight: 500; }

/* Install steps */
.install-platforms {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 600px) {
  .install-platforms { grid-template-columns: 1fr 1fr 1fr; }
}

.platform {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.platform-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.platform-name::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--red);
  display: inline-block;
}

.platform ol {
  list-style: none;
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.platform ol li {
  counter-increment: step;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
  padding-inline-start: 24px;
  position: relative;
}

.platform ol li::before {
  content: counter(step);
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  width: 18px;
  height: 18px;
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Features */
.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

@media (min-width: 520px) {
  .features { grid-template-columns: 1fr 1fr; }
}

.feature {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.feature-dot {
  width: 8px;
  height: 8px;
  background: var(--red);
  margin-top: 7px;
  flex-shrink: 0;
}

.feature-text { font-size: 13px; color: var(--text-secondary); line-height: 1.75; }
.feature-text strong { color: var(--text-primary); font-weight: 700; }

/* Trust strip */
.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.trust-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 6px 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

/* FAQ details */
details.faq-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  padding: 14px 16px;
}

details.faq-item summary {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

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

details.faq-item summary::before {
  content: "+";
  font-size: 16px;
  color: var(--text-muted);
  flex-shrink: 0;
  width: 16px;
  text-align: center;
}

details.faq-item[open] summary::before { content: "−"; }

details.faq-item p {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.75;
}

/* Footer */
footer {
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.footer-links a {
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: none;
}

.footer-links a:hover { color: var(--text-primary); text-decoration: underline; }

.footer-copy {
  font-size: 11px;
  color: var(--text-muted);
}

.lang-switch {
  display: inline-flex;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
}

.lang-switch a {
  font-weight: 700;
  color: var(--text-secondary);
}

.lang-switch a.active { color: var(--red); }

/* Tiny brand bar at top */
.brandbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  gap: 16px;
}

.brandbar-name {
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.brandbar-name img { width: 22px; height: 22px; }

.brandbar a.brandbar-cta {
  font-size: 12px;
  font-weight: 700;
  color: var(--red);
}
