/* Dr. Debug — Design System */
@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600;700&family=Roboto+Mono:wght@400;500;600&display=swap');

:root {
  /* Brand */
  --primary: #FF6B2B;
  --primary-dark: #E85A1A;
  --success: #3EC96A;
  --success-dark: #28A352;

  /* Neutrals */
  --charcoal: #242424;
  --midnight: #111111;
  --mid-gray: #898989;
  --light-gray: #F5F5F5;
  --bg: #FAFAF9;
  --white: #FFFFFF;

  /* Semantic */
  --focus: #3B82F6;
  --error: #EF4444;

  /* Shadows (Cal.com ring system) */
  --ring: 0 0 0 1px rgba(34, 42, 53, 0.08);
  --ring-strong: 0 0 0 1px rgba(34, 42, 53, 0.12);
  --shadow-1: inset 0 1px 2px rgba(0, 0, 0, 0.08);
  --shadow-2: 0 0 0 1px rgba(34, 42, 53, 0.08), 0 2px 4px rgba(0, 0, 0, 0.06), 0 8px 20px rgba(0, 0, 0, 0.07);
  --shadow-3: 0 0 0 1px rgba(34, 42, 53, 0.08), 0 4px 8px rgba(0, 0, 0, 0.08), 0 16px 32px rgba(0, 0, 0, 0.1);
  --shadow-brand: 0 0 0 1px rgba(255, 107, 43, 0.2), 0 4px 16px rgba(255, 107, 43, 0.15), 0 16px 32px rgba(255, 107, 43, 0.08);

  --shadow-btn-primary: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 0 0 1px rgba(255, 107, 43, 0.3), 0 2px 8px rgba(255, 107, 43, 0.35);
  --shadow-btn-dark: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 0 0 1px rgba(34, 42, 53, 0.08), 0 2px 4px rgba(0, 0, 0, 0.15);
  --shadow-btn-ghost: 0 0 0 1px rgba(34, 42, 53, 0.12), 0 2px 4px rgba(0, 0, 0, 0.06), 0 6px 16px rgba(0, 0, 0, 0.06);
  --shadow-btn-success: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 0 0 1px rgba(62, 201, 106, 0.3), 0 2px 8px rgba(62, 201, 106, 0.3);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Vazirmatn', sans-serif;
  background: var(--bg);
  color: var(--charcoal);
  direction: rtl;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

.en {
  font-family: 'Inter', sans-serif;
  direction: ltr;
  display: inline-block;
}

.mono {
  font-family: 'Roboto Mono', monospace;
  direction: ltr;
  display: inline-block;
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 8px;
  font-family: 'Vazirmatn', sans-serif;
  font-weight: 600;
  font-size: 14px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.18s ease;
  white-space: nowrap;
  line-height: 1;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: var(--shadow-btn-primary);
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.btn-dark {
  background: var(--charcoal);
  color: white;
  box-shadow: var(--shadow-btn-dark);
}
.btn-dark:hover {
  background: var(--midnight);
}

.btn-ghost {
  background: white;
  color: var(--charcoal);
  box-shadow: var(--shadow-btn-ghost);
}
.btn-ghost:hover {
  background: #fafafa;
}

.btn-success {
  background: var(--success);
  color: white;
  box-shadow: var(--shadow-btn-success);
}
.btn-success:hover {
  background: var(--success-dark);
}

.btn-pill {
  border-radius: 9999px;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 15px;
}

.btn-sm {
  padding: 7px 14px;
  font-size: 12px;
}

/* Tags */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.4;
}

.tag-brand {
  background: rgba(255, 107, 43, 0.10);
  color: var(--primary-dark);
  box-shadow: inset 0 0 0 0.5px rgba(255, 107, 43, 0.30);
}

.tag-success {
  background: rgba(62, 201, 106, 0.10);
  color: var(--success-dark);
  box-shadow: inset 0 0 0 0.5px rgba(62, 201, 106, 0.30);
  border-radius: 9999px;
}

.tag-neutral {
  background: rgba(137, 137, 137, 0.10);
  color: var(--mid-gray);
  border-radius: 9999px;
}

/* Cards */
.card {
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow-2);
}

.card-flat {
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow-1);
}

.card-floating {
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow-3);
}

.card-brand {
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow-brand);
}

/* Logo */
.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--primary);
  position: relative;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 4px 12px rgba(255, 107, 43, 0.4);
  flex-shrink: 0;
}

.logo-mark::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 2px solid white;
  border-radius: 4px;
}

.logo-mark::after {
  content: '';
  position: absolute;
  top: -3px;
  right: -3px;
  width: 11px;
  height: 11px;
  background: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--bg), 0 0 8px rgba(62, 201, 106, 0.6);
}

.logo-mark-lg {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 4px 16px rgba(255, 107, 43, 0.45);
}
.logo-mark-lg::before {
  inset: 14px;
  border-width: 3px;
  border-radius: 8px;
}
.logo-mark-lg::after {
  width: 15px;
  height: 15px;
  top: -4px;
  right: -4px;
  box-shadow: 0 0 0 3px var(--bg), 0 0 12px rgba(62, 201, 106, 0.7);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--charcoal);
}

.logo-text {
  font-family: 'Vazirmatn', sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 1;
  color: var(--charcoal);
  letter-spacing: -0.01em;
}

.logo-tagline {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 500;
  color: var(--mid-gray);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 3px;
  display: block;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 249, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(34, 42, 53, 0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: 1400px;
  margin: 0 auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-family: 'Vazirmatn', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--charcoal);
  text-decoration: none;
  transition: color 0.15s ease;
  position: relative;
}

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

.nav-links a.active {
  color: var(--primary);
}

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

/* Sections */
.section {
  padding: 80px 0;
}

.section-hero {
  padding: 64px 0 96px;
}

.section-title {
  font-family: 'Vazirmatn', sans-serif;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--charcoal);
  text-wrap: balance;
}

.section-subtitle {
  font-size: 17px;
  color: var(--mid-gray);
  margin-top: 14px;
  max-width: 600px;
  text-wrap: pretty;
}

.eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
  margin-bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.eyebrow::before {
  content: '';
  width: 16px;
  height: 1.5px;
  background: var(--primary);
}

/* Footer */
.footer {
  background: var(--midnight);
  color: rgba(255, 255, 255, 0.7);
  padding: 80px 0 32px;
  margin-top: 80px;
}

.footer .logo-text { color: white; }
.footer .logo-tagline { color: rgba(255,255,255,0.4); }

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-col h4 {
  font-family: 'Vazirmatn', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: white;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 14px;
  font-family: 'Vazirmatn', sans-serif;
  transition: color 0.15s ease;
}

.footer-col a:hover { color: var(--primary); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}

/* Utilities */
.flex { display: flex; }
.grid { display: grid; }
.center { display: flex; align-items: center; justify-content: center; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.gap-8 { gap: 32px; }

/* Selection */
::selection {
  background: rgba(255, 107, 43, 0.25);
  color: var(--charcoal);
}

/* Scroll bar */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(34,42,53,0.15); border-radius: 6px; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: rgba(34,42,53,0.3); }
