/* CHATWITHPDFAI.COM — Aurora design system
   Dark · iridescent gradient mesh · frosted glass · glowing type
   Type: Inter (UI) + JetBrains Mono (eyebrows, citations) */

:root {
  /* Base */
  --bg: #050614;
  --bg-2: #0a0c20;
  --bg-3: #11142e;

  /* Surfaces (glass) */
  --glass-1: rgba(255, 255, 255, 0.04);
  --glass-2: rgba(255, 255, 255, 0.06);
  --glass-3: rgba(255, 255, 255, 0.09);
  --glass-strong: rgba(255, 255, 255, 0.14);

  --stroke-1: rgba(255, 255, 255, 0.08);
  --stroke-2: rgba(255, 255, 255, 0.14);
  --stroke-3: rgba(255, 255, 255, 0.22);

  /* Text */
  --text: #ffffff;
  --text-2: rgba(255, 255, 255, 0.78);
  --text-3: rgba(255, 255, 255, 0.55);
  --text-4: rgba(255, 255, 255, 0.32);

  /* Brand iridescence */
  --violet: #b76aff;
  --violet-2: #d9b6ff;
  --blue: #4ea3ff;
  --teal: #4eecd1;
  --green: #7eff9d;
  --pink: #ff7ec5;

  --grad-iris: linear-gradient(90deg, #b76aff 0%, #4ea3ff 50%, #7eff9d 100%);
  --grad-iris-2: linear-gradient(135deg, #b76aff, #4ea3ff);
  --grad-iris-3: linear-gradient(135deg, #ff7ec5, #b76aff 40%, #4ea3ff);
  --grad-fade: linear-gradient(180deg, #fff 30%, rgba(255,255,255,0.4) 100%);

  /* Backgrounds (the aurora mesh) */
  --mesh:
    radial-gradient(ellipse 70% 50% at 18% 22%, oklch(0.32 0.18 280 / 0.85), transparent 60%),
    radial-gradient(ellipse 55% 50% at 82% 75%, oklch(0.45 0.18 200 / 0.55), transparent 55%),
    radial-gradient(ellipse 45% 40% at 65% 18%, oklch(0.5 0.18 340 / 0.4), transparent 55%);

  /* Type */
  --sans: "Inter", "Söhne", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Radius + shadow */
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-pill: 999px;

  --shadow-glow: 0 30px 60px -20px oklch(0.4 0.2 290 / 0.55);
  --shadow-card: 0 24px 60px -24px rgba(0, 0, 0, 0.65);
  --shadow-sm: 0 6px 18px -8px rgba(0, 0, 0, 0.5);
}

* { box-sizing: border-box; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: var(--stroke-2); border-radius: 999px; }
*::-webkit-scrollbar-thumb:hover { background: var(--stroke-3); }

html, body {
  color-scheme: dark;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
}

::selection { background: rgba(183, 106, 255, 0.45); color: #fff; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* ============================================================
   AURORA BACKGROUND — full-page mesh with grid overlay
   ============================================================ */
.aurora-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: var(--bg);
}
.aurora-bg::before {
  content: "";
  position: absolute;
  inset: -10%;
  background: var(--mesh);
  filter: blur(20px) saturate(120%);
}
.aurora-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

/* Section-level aurora blob (subtle) */
.section-blob {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
}

/* ============================================================
   TYPE
   ============================================================ */
.display {
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.98;
  background: var(--grad-fade);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.iris {
  background: var(--grad-iris);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.mono {
  font-family: var(--mono);
  font-feature-settings: "ss01";
}

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  padding: 11px 20px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s, box-shadow .2s, background .15s, border-color .15s;
  white-space: nowrap;
}
.btn-iris {
  background: var(--grad-iris-2);
  color: #fff;
  box-shadow: 0 10px 30px -8px oklch(0.55 0.22 290 / 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-iris:hover { transform: translateY(-1px); box-shadow: 0 14px 36px -8px oklch(0.55 0.22 290 / 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.btn-glass {
  background: var(--glass-2);
  color: var(--text);
  border-color: var(--stroke-2);
  backdrop-filter: blur(20px);
}
.btn-glass:hover { background: var(--glass-3); border-color: var(--stroke-3); }
.btn-ghost {
  background: transparent;
  color: var(--text-2);
  border-color: transparent;
}
.btn-ghost:hover { color: var(--text); background: var(--glass-1); }
.btn-sm { padding: 8px 14px; font-size: 12.5px; }
.btn-lg { padding: 14px 26px; font-size: 15px; }

/* ============================================================
   PILLS / BADGES / CHIPS
   ============================================================ */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 13px;
  border-radius: var(--r-pill);
  background: var(--glass-1);
  border: 1px solid var(--stroke-2);
  backdrop-filter: blur(20px);
  font-size: 11.5px;
  color: var(--text-2);
  letter-spacing: 0.02em;
}
.pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
  animation: pulseDot 2s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 0 oklch(0.85 0.2 145 / 0.5); }
  50% { box-shadow: 0 0 0 6px oklch(0.85 0.2 145 / 0); }
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: var(--r-pill);
  background: var(--glass-1);
  border: 1px solid var(--stroke-2);
  font-size: 12px;
  color: var(--text-2);
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
  font-family: var(--sans);
}
.chip:hover { background: var(--glass-2); border-color: var(--stroke-3); color: var(--text); }

.tag-new {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--violet);
  color: #fff;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-left: 6px;
}

/* ============================================================
   GLASS CARDS
   ============================================================ */
.glass {
  background: var(--glass-1);
  border: 1px solid var(--stroke-2);
  border-radius: var(--r-lg);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.glass-strong {
  background: var(--glass-2);
  border-color: var(--stroke-3);
}
.glass-iris-border {
  position: relative;
}
.glass-iris-border::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: var(--grad-iris);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.5;
}

/* ============================================================
   INPUTS
   ============================================================ */
.input {
  background: var(--glass-1);
  border: 1px solid var(--stroke-2);
  border-radius: var(--r);
  padding: 11px 14px;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: border-color .15s, background .15s;
  width: 100%;
}
.input::placeholder { color: var(--text-4); }
.input:focus {
  border-color: var(--violet);
  background: var(--glass-2);
  box-shadow: 0 0 0 4px oklch(0.65 0.2 290 / 0.15);
}

/* ============================================================
   CITATION FOOTNOTE
   ============================================================ */
.fn {
  display: inline-flex;
  align-items: center;
  padding: 1px 6px;
  margin: 0 2px;
  border-radius: 4px;
  background: rgba(183, 106, 255, 0.18);
  border: 1px solid rgba(183, 106, 255, 0.4);
  color: var(--violet-2);
  font-family: var(--mono);
  font-size: 0.65em;
  font-weight: 600;
  vertical-align: super;
  line-height: 1.2;
  cursor: pointer;
  transition: background .15s;
}
.fn:hover { background: rgba(183, 106, 255, 0.3); }

/* ============================================================
   SECTION SCAFFOLD
   ============================================================ */
.spread {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 56px;
  position: relative;
}
@media (max-width: 720px) {
  .spread { padding: 0 24px; }
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
}
.section-eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--grad-iris);
}

.section-title {
  font-size: clamp(36px, 4.5vw, 60px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin: 16px 0 14px;
  max-width: 900px;
  background: var(--grad-fade);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.section-lede {
  font-size: 17px;
  line-height: 1.5;
  color: var(--text-3);
  max-width: 580px;
  margin: 0 0 48px;
}

/* ============================================================
   MASTHEAD (sticky)
   ============================================================ */
.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 16px 0;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  background: linear-gradient(180deg, rgba(5, 6, 20, 0.7), rgba(5, 6, 20, 0.4));
  border-bottom: 1px solid var(--stroke-1);
}
.masthead-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text);
}
.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--grad-iris-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  box-shadow: 0 6px 20px -6px oklch(0.55 0.22 290 / 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.brand .domain { color: var(--text-3); font-weight: 500; }
.nav {
  display: flex;
  gap: 28px;
  font-size: 13.5px;
  color: var(--text-2);
}
.nav a { transition: color .15s; }
.nav a:hover { color: var(--text); }

/* ============================================================
   HOVER GLOW UTIL
   ============================================================ */
.hover-glow { transition: transform .2s, box-shadow .25s, border-color .2s; }
.hover-glow:hover {
  border-color: var(--stroke-3);
  box-shadow: 0 16px 40px -16px oklch(0.5 0.2 290 / 0.5);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.shimmer {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  background-size: 200% 100%;
  animation: shimmer 2s linear infinite;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .nav { display: none; }
}
@media (max-width: 720px) {
  .masthead-inner { padding: 0 24px; }
  .spread { padding: 0 24px; }
  .section-title { font-size: clamp(30px, 7vw, 44px); }
}
@media (max-width: 480px) {
  .masthead-inner { padding: 0 16px; gap: 12px; }
  .spread { padding: 0 18px; }
}

/* Native form-control popups render dark (fixes light <select> dropdown lists) */
select { color-scheme: dark; }
select option, select optgroup { background-color: #0b0c1f; color: #e8e8f0; }

/* Loading skeleton */
.skel { background: linear-gradient(90deg, var(--glass-1) 25%, var(--glass-2) 50%, var(--glass-1) 75%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; border-radius: var(--r); display: block; }
