/* ============================================
   Rashed Tech — Shared Design System
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&family=DM+Serif+Display:ital@0;1&display=swap');

:root {
  --brand-primary: #1a1a2e;
  --brand-accent: #e94560;
  --brand-accent-2: #0f3460;
  --brand-accent-3: #533483;
  --surface: #ffffff;
  --surface-2: #f8f7fc;
  --surface-3: #f0eef9;
  --text-primary: #1a1a2e;
  --text-secondary: #5a5872;
  --text-muted: #9896a8;
  --border: rgba(26,26,46,0.1);
  --border-strong: rgba(26,26,46,0.2);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(26,26,46,0.08), 0 1px 2px rgba(26,26,46,0.04);
  --shadow-md: 0 4px 16px rgba(26,26,46,0.1), 0 2px 4px rgba(26,26,46,0.05);
  --font-sans: 'DM Sans', system-ui, sans-serif;
  --font-serif: 'DM Serif Display', Georgia, serif;
  --max-width: 760px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --surface: #0f0e1a;
    --surface-2: #17162a;
    --surface-3: #1f1d34;
    --text-primary: #f0eef9;
    --text-secondary: #9896a8;
    --text-muted: #5a5872;
    --border: rgba(240,238,249,0.08);
    --border-strong: rgba(240,238,249,0.15);
  }
}

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

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

body {
  font-family: var(--font-sans);
  background: var(--surface);
  color: var(--text-primary);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---- NAV ---- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.3px;
}
.nav-brand .logo-mark {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--brand-accent) 0%, var(--brand-accent-3) 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 15px;
}
.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
}
.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--text-primary); }

/* ---- HERO / PAGE HEADER ---- */
.page-header {
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  padding: 56px 24px 48px;
  text-align: center;
}
.page-header .eyebrow {
  display: inline-block;
  background: var(--surface-3);
  border: 1px solid var(--border-strong);
  color: var(--brand-accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.page-header h1 {
  font-family: var(--font-serif);
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}
.page-header .meta {
  color: var(--text-muted);
  font-size: 14px;
}
.page-header .app-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 6px 14px;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 500;
}

/* ---- CONTENT ---- */
main {
  flex: 1;
  padding: 48px 24px 80px;
}
.content-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
}
.content-wrap h2 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 400;
  margin: 48px 0 12px;
  color: var(--text-primary);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.content-wrap h2:first-child { margin-top: 0; }
.content-wrap h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 28px 0 8px;
}
.content-wrap p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  font-size: 15.5px;
}
.content-wrap ul, .content-wrap ol {
  color: var(--text-secondary);
  padding-left: 20px;
  margin-bottom: 16px;
  font-size: 15.5px;
}
.content-wrap li { margin-bottom: 6px; }
.content-wrap a {
  color: var(--brand-accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s;
}
.content-wrap a:hover { border-bottom-color: var(--brand-accent); }
.content-wrap strong { color: var(--text-primary); font-weight: 600; }

/* ---- CALLOUT BOX ---- */
.callout {
  background: var(--surface-3);
  border: 1px solid var(--border-strong);
  border-left: 3px solid var(--brand-accent);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin: 24px 0;
  font-size: 14.5px;
  color: var(--text-secondary);
}

/* ---- CONTACT CARD ---- */
.contact-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-top: 48px;
  text-align: center;
}
.contact-card h3 {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 400;
  margin-bottom: 8px;
}
.contact-card p { color: var(--text-muted); font-size: 14px; margin-bottom: 20px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand-accent);
  color: white;
  text-decoration: none;
  border: none;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
}
.btn:hover { opacity: 0.88; }
.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover { background: var(--surface-2); opacity: 1; }

/* ---- FOOTER ---- */
.site-footer {
  background: var(--surface-2);
  border-top: 1px solid var(--border);
  padding: 32px 24px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--text-primary); }
.footer-copy {
  color: var(--text-muted);
  font-size: 13px;
}

/* ---- TABLE OF CONTENTS ---- */
.toc {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 40px;
}
.toc-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.toc ol {
  padding-left: 16px;
  margin: 0;
}
.toc li { margin-bottom: 4px; }
.toc a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.15s;
}
.toc a:hover { color: var(--brand-accent); }

@media (max-width: 600px) {
  .nav-links { display: none; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}
