/* ==========================================================================
   ryanbarn.es — shared design system
   Used by every page. Page-specific styles live in that page's own block.
   ========================================================================== */

/* ---- Reset & tokens ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --grad: linear-gradient(120deg, #7c3aed, #ec4899, #06b6d4);
  --grad-text: linear-gradient(120deg, #7c3aed 0%, #ec4899 50%, #06b6d4 100%);
  --grad-subtle: linear-gradient(135deg, rgba(124,58,237,.12), rgba(236,72,153,.08), rgba(6,182,212,.12));
  --grad-glow: radial-gradient(circle, rgba(124,58,237,.25) 0%, rgba(236,72,153,.15) 50%, transparent 80%);

  --bg: #ffffff;
  --text: #1a1a25;
  --text-body: #33333f;
  --muted: #4a4a55;
  --muted-light: #6b6b78;

  --card-bg: rgba(255, 255, 255, 0.70);
  --card-bg-subtle: rgba(255, 255, 255, 0.55);
  --card-border: #e6e6ec;
  --card-border-focus: rgba(124,58,237,.35);

  --accent: #7c3aed;
  --accent-pink: #ec4899;
  --accent-cyan: #06b6d4;
  --accent-green: #22c55e;
  --accent-red: #ef4444;
  --accent-yellow: #f59e0b;

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  --font-serif: "Instrument Serif", Georgia, serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ---- Aurora background ---- */
.aurora {
  position: fixed;
  inset: 0;
  filter: blur(70px) saturate(140%);
  z-index: 0;
  pointer-events: none;
  animation: aurora-drift 18s ease-in-out infinite alternate;
}
.aurora .blob {
  position: absolute;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.aurora .b1 { left: 20%; top: 20%; width: 55%; height: 55%;
  background: radial-gradient(circle, rgba(124,58,237,.28) 0%, transparent 70%); }
.aurora .b2 { left: 78%; top: 15%; width: 45%; height: 45%;
  background: radial-gradient(circle, rgba(236,72,153,.20) 0%, transparent 70%); }
.aurora .b3 { left: 50%; top: 75%; width: 50%; height: 50%;
  background: radial-gradient(circle, rgba(6,182,212,.16) 0%, transparent 70%); }
.aurora .b4 { left: 85%; top: 65%; width: 35%; height: 35%;
  background: radial-gradient(circle, rgba(124,58,237,.14) 0%, transparent 70%); }
@keyframes aurora-drift {
  0%   { transform: scale(1) rotate(0deg); }
  100% { transform: scale(1.15) rotate(10deg); }
}

/* ---- Floating sparkles ---- */
.sparkles { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.sparkles span {
  position: absolute;
  color: rgba(124,58,237,.18);
  font-size: 12px;
  animation: float-sparkle ease-in-out infinite;
}
.sparkles span:nth-child(1) { left: 8%;  top: 15%; animation-duration: 7s;  animation-delay: 0s; }
.sparkles span:nth-child(2) { left: 90%; top: 22%; animation-duration: 9s;  animation-delay: 1s; color: rgba(236,72,153,.16); }
.sparkles span:nth-child(3) { left: 15%; top: 70%; animation-duration: 8s;  animation-delay: 2s; color: rgba(6,182,212,.16); }
.sparkles span:nth-child(4) { left: 82%; top: 80%; animation-duration: 10s; animation-delay: .5s; }
.sparkles span:nth-child(5) { left: 50%; top: 10%; animation-duration: 6s;  animation-delay: 1.5s; color: rgba(236,72,153,.14); }
.sparkles span:nth-child(6) { left: 35%; top: 45%; animation-duration: 11s; animation-delay: 3s; color: rgba(6,182,212,.14); }
@keyframes float-sparkle {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: .4; }
  50% { transform: translateY(-20px) rotate(45deg); opacity: .9; }
}

/* ---- Atoms ---- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid #d2d2da;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 400;
  transition: transform .2s ease, box-shadow .2s ease;
}
.pill:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,.06); }

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 10px 0 var(--accent-green);
  display: inline-block;
  animation: pulse-dot 1.6s ease-in-out infinite;
}
.dot-purple { background: var(--accent); box-shadow: 0 0 10px 0 var(--accent); }
.dot-cyan { background: var(--accent-cyan); box-shadow: 0 0 10px 0 var(--accent-cyan); }
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(.85); }
}

.grad-text {
  background: var(--grad);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: grad-shift 8s ease infinite;
}
@keyframes grad-shift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.sparkle-icon {
  display: inline-block;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-size: 13px;
  animation: twinkle 2.4s ease-in-out infinite;
}
@keyframes twinkle {
  0%, 100% { opacity: 1; }
  50% { opacity: .25; }
}

/* ---- Section header ---- */
.section-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 28px;
}
.section-header .line {
  height: 1px;
  flex: 1;
  max-width: 60px;
  background: linear-gradient(90deg, transparent, var(--card-border), transparent);
}
.section-header .label {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-light);
  white-space: nowrap;
}

/* ---- Glass card ---- */
.glass-card {
  position: relative;
  background: var(--card-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(210,210,218,.55);
  border-radius: 20px;
  padding: 40px 44px;
  box-shadow: 0 4px 32px rgba(0,0,0,.05);
  transition: box-shadow .3s ease, transform .3s ease;
  overflow: hidden;
}
.glass-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(124,58,237,.2), rgba(236,72,153,.15), rgba(6,182,212,.2));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: .8;
}
.glass-card:hover { box-shadow: 0 8px 40px rgba(124,58,237,.08); }
.glass-card .lead {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  line-height: 1.75;
  color: var(--text);
  font-weight: 400;
}
.glass-card .body-text {
  font-size: clamp(.95rem, 1.6vw, 1.05rem);
  line-height: 1.8;
  color: var(--text-body);
}
.glass-card .body-text + .body-text { margin-top: 1.25rem; }
.glass-card strong {
  font-weight: 600;
  color: #0b0b10;
  background: linear-gradient(120deg, rgba(124,58,237,.06), rgba(236,72,153,.06));
  padding: 1px 4px;
  border-radius: 4px;
}
.glass-card .spacer { height: 20px; }

/* ---- Footer ---- */
footer {
  margin-top: 90px;
  padding: 40px 1.5rem;
  text-align: center;
  border-top: 1px solid var(--card-border);
}
footer .big-back {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #d0d0d8;
}
footer .footer-meta {
  margin-top: 14px;
  font-size: 13px;
  color: #b0b0ba;
}
footer .footer-meta a {
  color: inherit;
  text-decoration: none;
  transition: color .2s ease;
}
footer .footer-meta a:hover { color: var(--accent); }

/* Not By AI badge (guidelines: min 42px height, unaltered, linked to notbyai.fyi) */
footer .notbyai-badge { display: inline-block; margin-top: 18px; line-height: 0; }
footer .notbyai-badge img { height: 42px; width: auto; }

/* ---- Animations ---- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, .aurora, .dot, .grad-text, .sparkle-icon, .pill, .sparkles span {
    animation: none !important;
  }
  .reveal { opacity: 1; transform: none; transition: none; }
}
