/* =============================
   Design Tokens (CSS Variables)
   ============================= */
:root {
  /* Light theme */
  --background: 0 0% 100%;
  --foreground: 240 10% 3.9%;
  --card: 0 0% 100%;
  --card-foreground: 240 10% 3.9%;
  --primary: 262 83% 58%;
  --primary-foreground: 0 0% 100%;
  --secondary: 240 4.8% 95.9%;
  --secondary-foreground: 240 5.9% 10%;
  --muted: 240 4.8% 95.9%;
  --muted-foreground: 240 3.8% 46.1%;
  --accent: 240 4.8% 95.9%;
  --accent-foreground: 240 5.9% 10%;
  --destructive: 0 84% 60%;
  --destructive-foreground: 0 0% 98%;
  --border: 240 5.9% 90%;
  --input: 240 5.9% 90%;
  --ring: 262 83% 58%;
  --success: 142 71% 45%;

  --radius: 0.625rem;
  --radius-sm: calc(0.625rem - 4px);
  --radius-lg: calc(0.625rem + 4px);
  --radius-full: 9999px;

  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.03), 0 1px 3px 0 rgb(0 0 0 / 0.06);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.07), 0 4px 6px -4px rgb(0 0 0 / 0.05);

  --duration-fast: 150ms;
  --duration-normal: 250ms;
  --duration-slow: 350ms;

  --font-sans: 'DM Sans', system-ui, sans-serif;
  --font-display: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

.dark {
  --background: 240 15% 6%;
  --foreground: 0 0% 98%;
  --card: 240 15% 9%;
  --card-foreground: 0 0% 98%;
  --primary: 263 70% 58%;
  --primary-foreground: 0 0% 100%;
  --secondary: 240 10% 15%;
  --secondary-foreground: 0 0% 98%;
  --muted: 240 10% 15%;
  --muted-foreground: 240 5% 64.9%;
  --accent: 240 3.7% 15.9%;
  --accent-foreground: 0 0% 98%;
  --destructive: 0 63% 31%;
  --destructive-foreground: 0 0% 98%;
  --border: 240 3.7% 15.9%;
  --input: 240 3.7% 15.9%;
  --ring: 263 70% 50%;
  --success: 142 70% 45%;
  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.15), 0 1px 2px -1px rgb(0 0 0 / 0.15);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.2), 0 2px 4px -2px rgb(0 0 0 / 0.15);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.25), 0 4px 6px -4px rgb(0 0 0 / 0.15);
}

/* =============================
   Reset & Base
   ============================= */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; border-color: hsl(var(--border)); }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "rlig" 1, "calt" 1;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea { font-family: inherit; }

::selection { background-color: hsl(var(--primary) / 0.2); color: hsl(var(--primary)); }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background-color: transparent; }
::-webkit-scrollbar-thumb { background-color: hsl(var(--border)); border-radius: 9999px; }
::-webkit-scrollbar-thumb:hover { background-color: hsl(var(--muted-foreground) / 0.5); }

/* =============================
   Layout helpers
   ============================= */
.container { max-width: 1200px; margin-left: auto; margin-right: auto; padding-left: 1rem; padding-right: 1rem; }
@media (min-width: 640px) { .container { padding-left: 1.5rem; padding-right: 1.5rem; } }

.container-narrow { max-width: 800px; margin-left: auto; margin-right: auto; padding: 3rem 1rem; }
@media (min-width: 640px) { .container-narrow { padding: 3rem 1.5rem; } }

.font-display { font-family: var(--font-display); }
.font-mono { font-family: var(--font-mono); }
.tracking-tight { letter-spacing: -0.025em; }
.text-primary { color: hsl(var(--primary)); }

/* =============================
   Header
   ============================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  border-bottom: 1px solid hsl(var(--border) / 0.4);
  background-color: hsl(var(--background) / 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.site-header .inner {
  display: flex;
  height: 64px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
}
@media (min-width: 640px) { .site-header .inner { padding: 0 1.5rem; } }

.brand { display: inline-flex; align-items: center; gap: 0.5rem; }
.brand .logo-icon { width: 24px; height: 24px; color: hsl(var(--primary)); transition: transform var(--duration-normal); }
.brand:hover .logo-icon { transform: rotate(12deg); }
.brand .logo-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}
.brand .logo-text .accent { color: hsl(var(--primary)); }

.nav-desktop { display: none; align-items: center; gap: 0.25rem; }
@media (min-width: 768px) { .nav-desktop { display: flex; } }

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.4rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius);
  color: hsl(var(--foreground));
  transition: background-color var(--duration-fast), color var(--duration-fast);
}
.nav-link:hover { background-color: hsl(var(--accent)); color: hsl(var(--accent-foreground)); }
.nav-link.active { background-color: hsl(var(--primary) / 0.1); color: hsl(var(--primary)); }
.nav-link svg { width: 16px; height: 16px; }

.header-actions { display: flex; align-items: center; gap: 0.5rem; }

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  transition: background-color var(--duration-fast);
}
.menu-toggle:hover { background-color: hsl(var(--accent)); }
@media (min-width: 768px) { .menu-toggle { display: none; } }
.menu-toggle svg { width: 20px; height: 20px; }

.nav-mobile {
  display: none;
  border-top: 1px solid hsl(var(--border) / 0.4);
  background-color: hsl(var(--background) / 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.nav-mobile.open { display: block; }
.nav-mobile nav { display: flex; flex-direction: column; padding: 0.75rem 1rem; gap: 0.25rem; }
.nav-mobile .nav-link { width: 100%; justify-content: flex-start; padding: 0.6rem 0.75rem; }

/* =============================
   Buttons
   ============================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius);
  transition: background-color var(--duration-fast), color var(--duration-fast),
              transform var(--duration-fast), box-shadow var(--duration-fast),
              gap var(--duration-normal);
  white-space: nowrap;
  user-select: none;
}
.btn:focus-visible { outline: 2px solid hsl(var(--ring)); outline-offset: 2px; }
.btn svg { width: 16px; height: 16px; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-primary { background-color: hsl(var(--primary)); color: hsl(var(--primary-foreground)); }
.btn-primary:hover:not(:disabled) { background-color: hsl(var(--primary) / 0.9); }

.btn-outline {
  background-color: transparent;
  color: hsl(var(--foreground));
  border: 1px solid hsl(var(--border));
}
.btn-outline:hover:not(:disabled) { background-color: hsl(var(--accent)); }

.btn-ghost { background-color: transparent; color: hsl(var(--foreground)); }
.btn-ghost:hover:not(:disabled) { background-color: hsl(var(--accent)); }

.btn-secondary {
  background-color: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
}
.btn-secondary:hover:not(:disabled) { background-color: hsl(var(--secondary) / 0.8); }

.btn-destructive-ghost { background-color: transparent; color: hsl(var(--muted-foreground)); }
.btn-destructive-ghost:hover:not(:disabled) { background-color: hsl(var(--destructive) / 0.1); color: hsl(var(--destructive)); }

.btn-sm { padding: 0.375rem 0.75rem; font-size: 0.8125rem; }
.btn-lg { padding: 0.75rem 2rem; font-size: 1rem; }
.btn-lg svg { width: 20px; height: 20px; }
.btn-icon { width: 36px; height: 36px; padding: 0; }
.btn-icon-sm { width: 32px; height: 32px; padding: 0; }

/* =============================
   Cards
   ============================= */
.card {
  background-color: hsl(var(--card));
  color: hsl(var(--card-foreground));
  border: 1px solid hsl(var(--border) / 0.4);
  border-radius: var(--radius-lg);
  transition: box-shadow var(--duration-normal), transform var(--duration-normal);
}
.card-hoverable:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.card-content { padding: 1.5rem; }
.card-content-sm { padding: 1rem; }
.card-content-lg { padding: 2rem; }

.card-glass {
  background-color: hsl(var(--background) / 0.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid hsl(var(--primary) / 0.1);
}

.card-tinted {
  background-color: hsl(var(--primary) / 0.05);
  border-color: hsl(var(--primary) / 0.2);
}

/* =============================
   Badges / pills
   ============================= */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  background-color: hsl(var(--primary) / 0.1);
  color: hsl(var(--primary));
  font-size: 0.875rem;
  font-weight: 500;
}
.badge svg { width: 16px; height: 16px; }
.badge-lg {
  padding: 0.4rem 1rem;
  border: 1px solid hsl(var(--primary) / 0.2);
}
.badge-secondary {
  background-color: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
}

/* =============================
   Hero (home)
   ============================= */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    hsl(var(--background) / 0.7),
    hsl(var(--background) / 0.5),
    hsl(var(--background))
  );
}
.hero-content {
  position: relative;
  z-index: 10;
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 1rem;
  text-align: center;
  width: 100%;
}
@media (min-width: 640px) { .hero-content { padding: 5rem 1.5rem; } }

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.025em;
  font-size: clamp(2.25rem, 6vw, 4.5rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}
.hero h1 .accent { color: hsl(var(--primary)); }

.hero p.subtitle {
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  color: hsl(var(--muted-foreground));
  max-width: 42rem;
  margin: 0 auto 2rem;
}

.hero-cta { display: flex; flex-direction: column; gap: 1rem; justify-content: center; }
@media (min-width: 640px) { .hero-cta { flex-direction: row; } }

.stats-grid {
  margin-top: 4rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}
@media (min-width: 768px) { .stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat-card { text-align: center; padding: 1rem; }
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 4vw, 2.25rem);
  font-weight: 700;
  color: hsl(var(--primary));
}
.stat-label { font-size: 0.875rem; color: hsl(var(--muted-foreground)); margin-top: 0.25rem; }

/* =============================
   Sections
   ============================= */
.section { padding: 5rem 0; }
@media (min-width: 768px) { .section { padding: 7rem 0; } }
.section-tinted { background-color: hsl(var(--card) / 0.3); }

.section-head { text-align: center; margin-bottom: 4rem; }
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.025em;
  font-size: clamp(1.875rem, 4vw, 3rem);
  line-height: 1.15;
  margin-bottom: 1rem;
}
.section-head h2 .accent { color: hsl(var(--primary)); }
.section-head p {
  color: hsl(var(--muted-foreground));
  font-size: 1.125rem;
  max-width: 42rem;
  margin: 0 auto;
}
.section-head .badge { margin-bottom: 1rem; }

/* Two-column layout */
.two-col { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 768px) { .two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.img-square {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 28rem;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.img-square img { width: 100%; height: 100%; object-fit: cover; }

.img-video {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: hsl(var(--muted));
}
.img-video img { width: 100%; height: 100%; object-fit: cover; }
.img-video.hover-zoom img { transition: transform 500ms; }
.img-video.hover-zoom:hover img { transform: scale(1.05); }

.prose-block { display: flex; flex-direction: column; gap: 1.5rem; }
.prose-block p { color: hsl(var(--muted-foreground)); line-height: 1.7; }
.prose-block p strong { color: hsl(var(--foreground)); font-weight: 600; }

.pill-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.pill {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: var(--radius);
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border) / 0.4);
}
.pill svg { width: 20px; height: 20px; color: hsl(var(--primary)); flex-shrink: 0; }
.pill span { font-size: 0.875rem; font-weight: 500; }

/* =============================
   Steps grid (How it works)
   ============================= */
.step-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .step-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .step-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.step-card-head { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: var(--radius-full);
  background-color: hsl(var(--primary) / 0.1);
  color: hsl(var(--primary));
  font-family: var(--font-display);
  font-weight: 700;
}
.step-card-head svg { width: 20px; height: 20px; color: hsl(var(--primary)); }
.step-card h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.step-card p { font-size: 0.875rem; color: hsl(var(--muted-foreground)); line-height: 1.7; }

/* Science items */
.science-list { display: flex; flex-direction: column; gap: 2rem; }
.science-item { display: flex; gap: 1rem; }
.science-item .icon-box {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: var(--radius);
  background-color: hsl(var(--primary) / 0.1);
}
.science-item .icon-box svg { width: 24px; height: 24px; color: hsl(var(--primary)); }
.science-item h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.science-item p { font-size: 0.875rem; color: hsl(var(--muted-foreground)); line-height: 1.7; }

/* Numbers grid */
.nums-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .nums-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.num-card { text-align: center; height: 100%; }
.num-card .num-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px; height: 64px;
  border-radius: var(--radius-full);
  background-color: hsl(var(--primary) / 0.1);
  margin-bottom: 1.5rem;
}
.num-card .num-circle span {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: hsl(var(--primary));
}
.num-card .icon-row svg { width: 24px; height: 24px; color: hsl(var(--primary)); margin: 0 auto 0.75rem; }
.num-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.num-card p { font-size: 0.875rem; color: hsl(var(--muted-foreground)); line-height: 1.7; }

/* Journey CTA cards */
.journey-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .journey-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .journey-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.journey-card .icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: var(--radius);
  background-color: hsl(var(--primary) / 0.1);
  margin-bottom: 1rem;
}
.journey-card .icon-box svg { width: 24px; height: 24px; color: hsl(var(--primary)); }
.journey-card h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.journey-card p { font-size: 0.875rem; color: hsl(var(--muted-foreground)); line-height: 1.7; margin-bottom: 1rem; }
.journey-card .arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--primary));
  transition: gap var(--duration-normal);
}
.journey-card .arrow-link svg { width: 16px; height: 16px; }
.journey-card:hover .arrow-link { gap: 0.625rem; }

.cta-banner {
  margin-top: 4rem;
  text-align: center;
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(
    to right,
    hsl(var(--primary) / 0.1),
    hsl(var(--primary) / 0.05),
    hsl(var(--primary) / 0.1)
  );
  border: 1px solid hsl(var(--primary) / 0.2);
}
@media (min-width: 768px) { .cta-banner { padding: 3rem; } }
.cta-banner svg.spark { width: 40px; height: 40px; color: hsl(var(--primary)); margin: 0 auto 1rem; }
.cta-banner h3 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.cta-banner p { color: hsl(var(--muted-foreground)); max-width: 32rem; margin: 0 auto 1.5rem; }
.cta-banner .cta-buttons { display: flex; flex-direction: column; gap: 1rem; justify-content: center; }
@media (min-width: 640px) { .cta-banner .cta-buttons { flex-direction: row; } }

/* =============================
   Breadcrumb nav
   ============================= */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.breadcrumb a { color: hsl(var(--muted-foreground)); transition: color var(--duration-fast); }
.breadcrumb a:hover { color: hsl(var(--primary)); }
.breadcrumb svg { width: 14px; height: 14px; opacity: 0.6; }
.breadcrumb .current { color: hsl(var(--foreground)); font-weight: 500; }

/* =============================
   Page heading (used on subpages)
   ============================= */
.page-heading { margin-bottom: 3rem; }
.page-heading h1 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.025em;
  font-size: clamp(1.875rem, 4vw, 3rem);
  line-height: 1.15;
  margin-bottom: 1rem;
}
.page-heading h1 .accent { color: hsl(var(--primary)); }
.page-heading > .badge { margin-bottom: 1rem; }
.page-heading .lead {
  color: hsl(var(--muted-foreground));
  font-size: 1.125rem;
  max-width: 42rem;
  line-height: 1.6;
}

/* =============================
   About page
   ============================= */
.about-hero { display: grid; gap: 3rem; align-items: center; margin-bottom: 4rem; }
@media (min-width: 768px) { .about-hero { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.about-hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.025em;
  font-size: clamp(1.875rem, 4vw, 3rem);
  line-height: 1.15;
  margin-bottom: 1.5rem;
}
.about-hero h1 .accent { color: hsl(var(--primary)); }
.about-hero p { color: hsl(var(--muted-foreground)); line-height: 1.7; margin-bottom: 1rem; }

.value-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
  margin-bottom: 4rem;
}
@media (min-width: 640px) { .value-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .value-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.value-card .icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: var(--radius);
  background-color: hsl(var(--primary) / 0.1);
  margin-bottom: 1rem;
}
.value-card .icon-box svg { width: 24px; height: 24px; color: hsl(var(--primary)); }
.value-card h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.value-card p { font-size: 0.875rem; color: hsl(var(--muted-foreground)); line-height: 1.7; }

/* =============================
   Articles index
   ============================= */
.article-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.article-card .img-video { margin-bottom: 0; }
.article-card .meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.article-card .meta .read-time {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
}
.article-card .meta .read-time svg { width: 12px; height: 12px; }
.article-card h2 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--duration-fast);
}
.article-card:hover h2 { color: hsl(var(--primary)); }
.article-card p {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.7;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-card .arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--primary));
  transition: gap var(--duration-normal);
}
.article-card .arrow-link svg { width: 16px; height: 16px; }
.article-card:hover .arrow-link { gap: 0.625rem; }

/* =============================
   Article body (single article)
   ============================= */
.article-body {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 1rem;
}
@media (min-width: 640px) { .article-body { padding: 3rem 1.5rem; } }

.article-header { margin-bottom: 2.5rem; }
.article-header .meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.article-header .meta .read-time {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}
.article-header .meta .read-time svg { width: 14px; height: 14px; }
.article-header h1 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.025em;
  font-size: clamp(1.875rem, 4vw, 2.5rem);
  line-height: 1.2;
  margin-bottom: 1rem;
}
.article-header .lead {
  font-size: 1.125rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.6;
}

.article-hero-image {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 2.5rem;
  background-color: hsl(var(--muted));
}
.article-hero-image img { width: 100%; height: 100%; object-fit: cover; }

.prose { color: hsl(var(--muted-foreground)); }
.prose h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  letter-spacing: -0.015em;
}
.prose h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}
.prose p { line-height: 1.75; margin-bottom: 1rem; }
.prose strong { color: hsl(var(--foreground)); font-weight: 600; }
.prose em { font-style: italic; }
.prose ul, .prose ol { margin-bottom: 1rem; padding-left: 1.5rem; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { line-height: 1.75; margin-bottom: 0.5rem; }
.prose ul.no-bullets {
  list-style: none;
  padding-left: 0;
}
.prose ul.no-bullets li {
  padding-left: 1rem;
  border-left: 2px solid hsl(var(--primary) / 0.3);
  margin-bottom: 0.75rem;
}
.prose a { color: hsl(var(--primary)); text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { text-decoration: none; }

.article-cta {
  margin: 4rem 0;
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(
    to right,
    hsl(var(--primary) / 0.1),
    hsl(var(--primary) / 0.05),
    hsl(var(--primary) / 0.1)
  );
  border: 1px solid hsl(var(--primary) / 0.2);
  text-align: center;
}
.article-cta h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.article-cta p { color: hsl(var(--muted-foreground)); margin-bottom: 1rem; }

.related-articles h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}
.related-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* =============================
   Forms (contact)
   ============================= */
.form-grid { display: grid; gap: 1.25rem; }
.form-row { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .form-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.form-field { display: flex; flex-direction: column; gap: 0.5rem; }
.form-field label {
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--foreground));
}
.input-wrap { position: relative; }
.input-wrap > svg.icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: hsl(var(--muted-foreground));
  pointer-events: none;
}
.input, .textarea {
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  background-color: transparent;
  color: hsl(var(--foreground));
  border: 1px solid hsl(var(--input));
  border-radius: var(--radius);
  transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
}
.input:focus, .textarea:focus {
  outline: none;
  border-color: hsl(var(--ring));
  box-shadow: 0 0 0 3px hsl(var(--ring) / 0.2);
}
.input.with-icon { padding-left: 2.25rem; }
.textarea { min-height: 8rem; resize: vertical; line-height: 1.6; }
.form-helper { font-size: 0.75rem; color: hsl(var(--muted-foreground)); }

.form-success {
  text-align: center;
  padding: 2rem;
}
.form-success svg.success-icon {
  width: 48px;
  height: 48px;
  color: hsl(var(--success));
  margin: 0 auto 1rem;
}
.form-success h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.form-success p { color: hsl(var(--muted-foreground)); margin-bottom: 1rem; }

/* =============================
   Tracker
   ============================= */
.tracker-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 2rem;
}
@media (min-width: 640px) {
  .tracker-header { flex-direction: row; align-items: center; }
}
.tracker-header h1 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.025em;
  font-size: clamp(1.875rem, 4vw, 2.5rem);
  line-height: 1.15;
}
.tracker-header h1 .accent { color: hsl(var(--primary)); }
.tracker-header p {
  color: hsl(var(--muted-foreground));
  margin-top: 0.25rem;
}

.new-tracker-form {
  margin-bottom: 2rem;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 350ms ease, opacity 250ms ease, margin 250ms ease;
}
.new-tracker-form.open {
  max-height: 400px;
  opacity: 1;
}
.new-tracker-form .card { border-color: hsl(var(--primary) / 0.2); background-color: hsl(var(--primary) / 0.05); }
.new-tracker-form h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.new-tracker-form .helper {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 1rem;
}
.new-tracker-form .form-row-flex {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .new-tracker-form .form-row-flex { flex-direction: row; }
}
.new-tracker-form .input { flex: 1; }

.tracker-section { margin-bottom: 3rem; }
.tracker-section h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.tracker-section h2 svg { width: 20px; height: 20px; color: hsl(var(--primary)); }

.tracker-list { display: flex; flex-direction: column; gap: 1.5rem; }

.active-tracker .head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}
.active-tracker .affirmation-text {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 0.5rem;
}
.active-tracker .start-date {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}
.active-tracker .start-date svg { width: 14px; height: 14px; }

.progress-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.25rem 0 1rem;
}
.progress-bar {
  flex: 1;
  height: 8px;
  background-color: hsl(var(--secondary));
  border-radius: var(--radius-full);
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background-color: hsl(var(--primary));
  border-radius: var(--radius-full);
  transition: width 350ms ease;
}
.progress-text {
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
}

.day-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
}
.day-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
  padding: 0.75rem 0.5rem;
  border-radius: var(--radius);
  border: 1px solid hsl(var(--border) / 0.4);
  background-color: hsl(var(--card));
  color: hsl(var(--muted-foreground));
  transition: all 200ms;
}
.day-btn:hover { border-color: hsl(var(--primary) / 0.2); background-color: hsl(var(--primary) / 0.05); }
.day-btn.completed {
  background-color: hsl(var(--primary) / 0.1);
  border-color: hsl(var(--primary) / 0.3);
  color: hsl(var(--primary));
}
.day-btn svg { width: 24px; height: 24px; }
.day-btn .day-label { font-size: 0.75rem; font-weight: 500; }
.day-btn .day-sub { font-size: 0.625rem; }

.completed-tracker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  background-color: hsl(var(--primary) / 0.05);
  border: 1px solid hsl(var(--border) / 0.4);
  border-radius: var(--radius-lg);
}
.completed-tracker .left { display: flex; align-items: center; gap: 0.75rem; min-width: 0; }
.completed-tracker svg.check { width: 24px; height: 24px; color: hsl(var(--primary)); flex-shrink: 0; }
.completed-tracker .info { min-width: 0; }
.completed-tracker .info p:first-child {
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.completed-tracker .info p:last-child {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  margin-top: 0.125rem;
}
.completed-tracker .badge { background-color: hsl(var(--primary) / 0.1); color: hsl(var(--primary)); flex-shrink: 0; }

.empty-state {
  text-align: center;
  padding: 4rem 1rem;
}
.empty-state svg.empty-icon {
  width: 48px; height: 48px;
  color: hsl(var(--muted-foreground));
  margin: 0 auto 1rem;
}
.empty-state h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.empty-state p {
  color: hsl(var(--muted-foreground));
  max-width: 28rem;
  margin: 0 auto 1.5rem;
}

/* Toast notifications */
.toast-stack {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: calc(100vw - 3rem);
  width: 22rem;
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  animation: toastIn 250ms ease forwards;
  opacity: 0;
  transform: translateY(20px);
}
.toast.toast-success { border-left: 3px solid hsl(var(--success)); }
.toast.toast-error { border-left: 3px solid hsl(var(--destructive)); }
.toast .toast-icon { flex-shrink: 0; width: 20px; height: 20px; margin-top: 0.125rem; }
.toast.toast-success .toast-icon { color: hsl(var(--success)); }
.toast.toast-error .toast-icon { color: hsl(var(--destructive)); }
.toast .toast-msg { font-size: 0.875rem; line-height: 1.5; }
@keyframes toastIn {
  to { opacity: 1; transform: translateY(0); }
}

/* =============================
   Coming-soon page
   ============================= */
.coming-soon {
  text-align: center;
  padding: 4rem 1rem;
  max-width: 36rem;
  margin: 0 auto;
}
.coming-soon svg.spark-large {
  width: 56px;
  height: 56px;
  color: hsl(var(--primary));
  margin: 0 auto 1.5rem;
  animation: float 3s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.coming-soon h1 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.025em;
  font-size: clamp(1.875rem, 4vw, 2.5rem);
  line-height: 1.15;
  margin-bottom: 1rem;
}
.coming-soon h1 .accent { color: hsl(var(--primary)); }
.coming-soon p { color: hsl(var(--muted-foreground)); font-size: 1.125rem; line-height: 1.6; margin-bottom: 2rem; }
.coming-soon .actions { display: flex; flex-direction: column; gap: 1rem; justify-content: center; align-items: center; }
@media (min-width: 640px) { .coming-soon .actions { flex-direction: row; } }

/* =============================
   Footer
   ============================= */
.site-footer {
  border-top: 1px solid hsl(var(--border) / 0.4);
  background-color: hsl(var(--card) / 0.5);
}
.site-footer .inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1rem;
}
@media (min-width: 640px) { .site-footer .inner { padding: 2.5rem 1.5rem; } }
.site-footer .top-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .site-footer .top-row { flex-direction: row; justify-content: space-between; }
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}
.footer-nav a { transition: color var(--duration-fast); }
.footer-nav a:hover { color: hsl(var(--primary)); }
.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid hsl(var(--border) / 0.4);
  text-align: center;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}
.footer-bottom p { display: flex; align-items: center; justify-content: center; gap: 0.25rem; }
.footer-bottom svg.heart { width: 14px; height: 14px; color: hsl(var(--primary)); fill: hsl(var(--primary)); }

/* =============================
   Animations: scroll fade-in
   ============================= */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

.hero-rise { opacity: 0; transform: translateY(30px); animation: heroRise 0.7s ease forwards; }
.hero-rise.delay { animation-delay: 0.4s; }
@keyframes heroRise {
  to { opacity: 1; transform: translateY(0); }
}

.spin { animation: spin 1s linear infinite; }
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Reduced-motion respect */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
