/* Rideely — aligned with app dark theme (TonalPalettes / ThemeColors.dark) */
:root {
  --surface-default: #000107;
  --surface-subtle: #1a1a20;
  --surface-muted: #4d4d51;
  --brand: #92cc1d;
  --brand-hover: #80b319;
  --secondary: #1d2559;
  --content: #f7f7f7;
  --content-subtle: #f4f4f4;
  --content-muted: #808083;
  --border: #333439;
  --error: #d44f4f;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 8px 32px rgba(0, 1, 7, 0.45);
  --font: "DM Sans", "Noto Sans Arabic", system-ui, -apple-system, sans-serif;
  --max: 720px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  background: var(--surface-default);
  color: var(--content);
  line-height: 1.65;
  font-size: 1.05rem;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--brand);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--brand-hover);
}

/* Nav */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0, 1, 7, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--content);
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand) 0%, #6e9916 100%);
  display: grid;
  place-items: center;
  color: var(--surface-default);
  font-size: 0.75rem;
  font-weight: 800;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  align-items: center;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--content-subtle);
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover {
  color: var(--brand);
}

.nav-links a[aria-current="page"] {
  color: var(--brand);
  border-bottom-color: var(--brand);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem;
  border-radius: 10px;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
}

.lang-btn {
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.55rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  background: transparent;
  color: var(--content-muted);
  transition: background 0.15s, color 0.15s;
}

.lang-btn:hover {
  color: var(--content);
}

.lang-btn.lang-btn-active {
  background: rgba(146, 204, 29, 0.18);
  color: var(--brand);
}

[dir="rtl"] .nav-inner {
  flex-direction: row-reverse;
}

[dir="rtl"] .lang-switch {
  flex-direction: row-reverse;
}

[dir="rtl"] .card ul,
[dir="rtl"] .card ol {
  padding-inline-start: 1.25rem;
  padding-inline-end: 0;
}

[dir="rtl"] .cta-card strong {
  letter-spacing: 0;
}

/* Layout */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.hero {
  text-align: center;
  padding: 2.5rem 0 2rem;
}

.hero h1 {
  font-size: clamp(1.75rem, 5vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 0 0 1rem;
}

.hero .lede {
  font-size: 1.1rem;
  color: var(--content-muted);
  max-width: 36ch;
  margin: 0 auto 1.5rem;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  color: var(--content-subtle);
}

.pill-accent {
  background: rgba(146, 204, 29, 0.12);
  border-color: rgba(146, 204, 29, 0.35);
  color: var(--brand);
}

.card {
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow);
}

.card h2 {
  font-size: 1.15rem;
  margin: 0 0 0.75rem;
  color: var(--content);
  letter-spacing: -0.02em;
}

.card h3 {
  font-size: 1rem;
  margin: 1.25rem 0 0.5rem;
  color: var(--brand);
}

.card p,
.card li {
  margin: 0 0 0.65rem;
  color: var(--content-subtle);
  font-size: 0.98rem;
}

.card ul,
.card ol {
  margin: 0 0 0.75rem;
  padding-left: 1.25rem;
}

.card li {
  margin-bottom: 0.4rem;
}

.muted {
  color: var(--content-muted);
  font-size: 0.9rem;
}

footer.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.25rem;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--content-muted);
  font-size: 0.85rem;
}

.cta-grid {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

@media (min-width: 560px) {
  .cta-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.cta-card {
  display: block;
  padding: 1.35rem;
  border-radius: var(--radius-sm);
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  color: inherit;
  transition: border-color 0.2s, transform 0.2s;
}

.cta-card:hover {
  border-color: var(--brand);
  transform: translateY(-2px);
}

.cta-card strong {
  display: block;
  color: var(--brand);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.35rem;
}

.cta-card span {
  color: var(--content-subtle);
  font-size: 0.95rem;
}

.alert {
  border-radius: var(--radius-sm);
  padding: 1rem 1.1rem;
  background: rgba(212, 79, 79, 0.12);
  border: 1px solid rgba(212, 79, 79, 0.35);
  color: #ecb4b4;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

code {
  font-size: 0.88em;
  background: var(--surface-muted);
  padding: 0.15em 0.45em;
  border-radius: 6px;
}
