/*
  GitQuotes static site styles
  Minimal, responsive, and accessible. Supports light and dark mode.
*/

:root {
  --brand-50: #eef2ff;
  --brand-100: #e0e7ff;
  --brand-200: #c7d2fe;
  --brand-300: #a5b4fc;
  --brand-400: #818cf8;
  --brand-500: #6366f1;
  --brand-600: #4f46e5;
  --brand-700: #4338ca;

  --bg: #ffffff;
  --surface: #f8fafc;
  --text: #0f172a;
  --muted: #475569;
  --border: #e2e8f0;

  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 24px rgba(2,6,23,0.08);
  --shadow-lg: 0 24px 48px rgba(2,6,23,0.12);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1020;
    --surface: #0f172a;
    --text: #e5e7eb;
    --muted: #9ca3af;
    --border: #1f2937;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.6);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.45);
    --shadow-lg: 0 24px 48px rgba(0,0,0,0.6);
  }
}

* { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 10% -10%, var(--brand-50), transparent 60%),
    radial-gradient(900px 500px at 90% 10%, var(--brand-100), transparent 60%),
    var(--bg);
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: saturate(140%) blur(8px);
  background-color: color-mix(in srgb, var(--bg) 85%, transparent);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.2px;
}
.brand .logo {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  color: white;
  font-size: 18px;
  box-shadow: var(--shadow-sm);
}
.nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}
.nav-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.2px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}
.button:hover { filter: brightness(1.03); }
.button:active { transform: translateY(1px); }
.button.primary {
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  border-color: transparent;
  color: white;
  box-shadow: var(--shadow-md);
}
.button.ghost {
  background: transparent;
}

/* Hero */
.hero {
  padding: 72px 0 40px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: color-mix(in srgb, var(--brand-200) 45%, transparent);
  color: #ffffff;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--brand-300) 60%, var(--border));
}
.hero h1 {
  font-size: clamp(32px, 6vw, 54px);
  line-height: 1.05;
  margin: 14px 0 10px;
}
.lead {
  font-size: clamp(16px, 2.3vw, 20px);
  color: var(--muted);
  margin: 0 0 22px;
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-visual {
  display: grid;
  place-items: center;
}
.widget-preview {
  width: min(100%, 360px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 16px;
  box-shadow: var(--shadow-lg);
}
.widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.widget-header .dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--brand-500);
}
.quote {
  font-size: 18px;
  line-height: 1.5;
}
.verse {
  margin-top: 12px;
  font-weight: 700;
  color: var(--brand-600);
}

/* Features */
.section { padding: 28px 0 72px; }
.section h2 { font-size: clamp(24px, 3.5vw, 34px); margin: 0 0 16px; }
.muted { color: var(--muted); }
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow-sm);
}
.card .icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-grid;
  place-items: center;
  background: color-mix(in srgb, var(--brand-200) 50%, transparent);
  color: var(--brand-700);
  font-size: 18px;
}
.card h3 { margin: 12px 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); }

/* Support */
.support-hero { padding: 56px 0 12px; }
.support-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.faq-item { border: 1px solid var(--border); border-radius: 14px; padding: 14px; background: var(--bg); }
.faq-item h3 { margin: 0 0 6px; font-size: 18px; }
.faq-item p { margin: 0 0 10px; }
.faq-item ol, .faq-item ul { margin: 0 0 10px 18px; }
.contact-card { border: 1px solid var(--border); border-radius: 14px; padding: 14px; background: linear-gradient(180deg, var(--surface), transparent); }

/* Footer */
footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  color: var(--muted);
}
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* Utilities */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 920px) {
  .hero-inner { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr 1fr; }
  .support-grid { grid-template-columns: 1fr; }
}

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


