/* ============================================
   FLUENTS — warm editorial design system
   ============================================ */

:root {
  /* Cream stack (warm paper) */
  --cream-50:  #FBF8F2;
  --cream-100: #F5F1E8;
  --cream-200: #EDE6D6;
  --cream-300: #E2D8C0;

  /* Ink (warm near-black) */
  --ink-900: #141310;
  --ink-800: #1C1A16;
  --ink-700: #2A2720;
  --ink-600: #4A4438;
  --ink-500: #6B6354;
  --ink-400: #8D8471;
  --ink-300: #B0A693;

  /* Rust — signature accent */
  --rust-700: #8F3C1B;
  --rust-600: #B04A22;
  --rust-500: #C85A30;

  /* Moss — secondary accent */
  --moss-600: #4D5F43;
  --moss-500: #5E7252;

  /* Plum — tertiary accent (varied palette) */
  --plum-600: #6F2C47;
  --plum-500: #8B3A5A;

  /* Ochre — quaternary */
  --ochre-600: #A36B1C;
  --ochre-500: #C48428;

  /* Soft backgrounds for feature icons */
  --rust-soft: rgba(200, 90, 48, 0.10);
  --rust-line: rgba(200, 90, 48, 0.25);
  --moss-soft: rgba(94, 114, 82, 0.12);
  --plum-soft: rgba(139, 58, 90, 0.10);
  --ochre-soft: rgba(196, 132, 40, 0.12);

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(20, 19, 16, 0.04);
  --shadow-md: 0 8px 24px -12px rgba(20, 19, 16, 0.12);
  --shadow-lg: 0 30px 60px -30px rgba(20, 19, 16, 0.25);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--cream-50);
  color: var(--ink-900);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.serif {
  font-family: 'Fraunces', Georgia, serif;
  font-variation-settings: "opsz" 144, "SOFT" 50;
}

.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }

/* Subtle grain */
.grain::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Pills & status */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--cream-300);
  border-radius: 999px;
  background: var(--cream-100);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-600);
}
.pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--moss-500);
  box-shadow: 0 0 0 3px rgba(94, 114, 82, 0.15);
  animation: pulse 2.4s infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.35} }

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.6rem;
  background: var(--ink-900);
  color: var(--cream-50);
  border-radius: 12px;
  font-weight: 500;
  transition: all 0.2s ease;
  letter-spacing: -0.01em;
}
.btn-primary:hover {
  background: var(--rust-500);
  transform: translateY(-1px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.4rem;
  color: var(--ink-900);
  border-radius: 12px;
  font-weight: 500;
  transition: all 0.2s ease;
}
.btn-ghost:hover { background: var(--cream-100); }

/* Cards */
.card {
  background: #FFFFFF;
  border: 1px solid var(--cream-200);
  border-radius: 20px;
  padding: 2rem;
  transition: all 0.25s ease;
}
.card:hover {
  border-color: var(--cream-300);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Underline highlight */
.underline-rust {
  background: linear-gradient(transparent 60%, rgba(200, 90, 48, 0.22) 60%);
  padding: 0 0.05em;
}

/* Dotted grid backdrop */
.dotted-grid {
  background-image: radial-gradient(circle, var(--ink-300) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Overlay demo */
.overlay-demo {
  background: #0B0B0F;
  border: 1px solid #26241E;
  border-radius: 18px;
  color: var(--cream-50);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,0.02);
}

.kbd {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  padding: 0.15rem 0.4rem;
  border: 1px solid var(--cream-300);
  border-bottom-width: 2px;
  border-radius: 4px;
  background: var(--cream-100);
  color: var(--ink-600);
}

/* Ticker */
.ticker { animation: ticker 35s linear infinite; }
@keyframes ticker { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }

/* Link */
.link {
  border-bottom: 1px solid var(--cream-300);
  transition: border-color 0.2s, color 0.2s;
}
.link:hover { border-color: var(--rust-500); color: var(--rust-500); }

/* FAQ details */
details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
details[open] .faq-chevron { transform: rotate(45deg); }
.faq-chevron { transition: transform 0.2s; }

/* Section labels */
.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-400);
}

/* Check icons reusable */
.check { color: var(--rust-500); flex-shrink: 0; margin-top: 2px; }
.check-dark { color: var(--rust-500); flex-shrink: 0; margin-top: 2px; }

/* Logo mark */
.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}
