/* landing.css — loveable-inspired design for bush10.org landing page */
/* Реальность — это вопрос восприятия. Этот CSS — красная таблетка. */

/* ===== Custom Properties ===== */
:root {
  --bg: #fafafa;
  --fg: #1a1f3a;
  --card: #ffffff;
  --primary: #fcd43c;
  --primary-fg: #1a1f3a;
  --primary-10: rgba(252, 212, 60, 0.12);
  --primary-hover: #e6c235;
  --secondary: #f0f3f7;
  --secondary-50: rgba(240, 243, 247, 0.5);
  --secondary-60: rgba(240, 243, 247, 0.6);
  --muted-fg: #6b7b9c;
  --border: #e6ebf5;
  --shadow-card: 0 10px 30px rgba(0,0,0,0.08);
  --shadow-primary: 0 10px 30px rgba(252, 212, 60, 0.08);
  --radius: 0.75rem;
  --container: 768px;
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1117;
    --fg: #f2f2f2;
    --card: #141d2e;
    --primary: #fcd43c;
    --primary-fg: #1a1f3a;
    --primary-10: rgba(252, 212, 60, 0.12);
    --primary-hover: #e6c235;
    --secondary: #1f2a3a;
    --secondary-50: rgba(31, 42, 58, 0.5);
    --secondary-60: rgba(31, 42, 58, 0.6);
    --muted-fg: #8a96b3;
    --border: #2a3040;
    --shadow-card: 0 10px 30px rgba(0,0,0,0.3);
    --shadow-primary: 0 10px 30px rgba(252, 212, 60, 0.05);
  }
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===== Container ===== */
.l-container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.l-container-wide {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== Animations ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.anim-fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.anim-fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* stagger delays */
.anim-delay-1 { transition-delay: 0.1s; }
.anim-delay-2 { transition-delay: 0.2s; }
.anim-delay-3 { transition-delay: 0.3s; }
.anim-delay-4 { transition-delay: 0.24s; }

.anim-hero {
  animation: fadeInUp 0.6s ease forwards;
}

/* ===== Header ===== */
.l-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.l-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.l-header-logo img {
  height: 32px;
  width: auto;
}

.l-header-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.l-header-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-fg);
  transition: color 0.2s;
}

.l-header-nav a:hover {
  color: var(--fg);
}

/* Mobile hamburger */
.l-header-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--fg);
}

.l-header-toggle svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

/* Mobile nav */
.l-mobile-nav {
  display: none;
  border-top: 1px solid var(--border);
  background: var(--bg);
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease, opacity 0.25s ease;
  opacity: 0;
}

.l-mobile-nav.is-open {
  max-height: 300px;
  opacity: 1;
}

.l-mobile-nav-inner {
  padding: 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.l-mobile-nav-inner a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-fg);
  padding: 0.5rem 0;
  transition: color 0.2s;
}

.l-mobile-nav-inner a:hover {
  color: var(--fg);
}

/* ===== Main ===== */
.l-main {
  flex: 1;
}

/* ===== Hero Section ===== */
.l-hero {
  padding: 5rem 0 2rem;
}

.l-hero-badge {
  display: inline-block;
  margin-bottom: 1.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background: var(--primary-10);
  color: var(--primary-fg);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

@media (prefers-color-scheme: dark) {
  .l-hero-badge {
    color: var(--primary);
  }
}

.l-hero h1 {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--fg);
  margin-bottom: 1.5rem;
}

.l-hero-lead {
  font-size: 1.125rem;
  color: var(--muted-fg);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.l-hero-text {
  font-size: 1rem;
  color: var(--muted-fg);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.l-hero-text:last-child {
  margin-bottom: 0;
}

/* ===== Practice Cards ===== */
.l-practices {
  padding: 2rem 0;
}

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

.l-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: box-shadow 0.3s ease;
}

.l-card:hover {
  box-shadow: var(--shadow-primary);
}

/* accent bar */
.l-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 2rem;
  width: 3rem;
  height: 4px;
  background: var(--primary);
  border-radius: 0 0 4px 4px;
}

.l-card h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 0.5rem;
}

.l-card-subtitle {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-fg);
  margin-bottom: 0.75rem;
}

@media (prefers-color-scheme: dark) {
  .l-card-subtitle {
    color: var(--primary);
  }
}

.l-card-desc {
  color: var(--muted-fg);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.l-card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.l-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--fg);
  transition: color 0.2s;
}

.l-card-link:hover {
  color: var(--primary-fg);
}

@media (prefers-color-scheme: dark) {
  .l-card-link:hover {
    color: var(--primary);
  }
}

.l-card-link svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s;
}

.l-card:hover .l-card-link svg {
  transform: translateX(2px);
}

/* ===== More Section ===== */
.l-more {
  padding: 5rem 0;
}

.l-more h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 2.5rem;
}

.l-more-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.l-more-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  border-radius: 0.5rem;
  transition: background 0.2s;
}

.l-more-item:hover {
  background: var(--secondary-60);
}

.l-more-icon {
  flex-shrink: 0;
  margin-top: 2px;
  padding: 0.5rem;
  border-radius: 0.375rem;
  background: var(--primary-10);
  color: var(--primary-fg);
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (prefers-color-scheme: dark) {
  .l-more-icon {
    color: var(--primary);
  }
}

.l-more-icon svg {
  width: 18px;
  height: 18px;
}

.l-more-content {
  flex: 1;
  min-width: 0;
}

.l-more-title {
  font-weight: 600;
  color: var(--fg);
  transition: color 0.2s;
}

.l-more-item:hover .l-more-title {
  color: var(--primary-fg);
}

@media (prefers-color-scheme: dark) {
  .l-more-item:hover .l-more-title {
    color: var(--primary);
  }
}

.l-more-desc {
  font-size: 0.875rem;
  color: var(--muted-fg);
}

.l-more-arrow {
  flex-shrink: 0;
  margin-top: 4px;
  color: var(--muted-fg);
  transition: color 0.2s;
}

.l-more-item:hover .l-more-arrow {
  color: var(--primary-fg);
}

@media (prefers-color-scheme: dark) {
  .l-more-item:hover .l-more-arrow {
    color: var(--primary);
  }
}

.l-more-arrow svg {
  width: 16px;
  height: 16px;
}

/* ===== Meaning Section ===== */
.l-meaning {
  padding: 4rem 0;
}

.l-meaning-box {
  background: var(--secondary-50);
  border-radius: var(--radius);
  padding: 2rem;
}

.l-meaning-box h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 0.75rem;
}

.l-meaning-box p {
  color: var(--muted-fg);
  line-height: 1.7;
}

/* ===== Date Section ===== */
.l-date {
  padding: 0 0 2rem;
}

.l-date p {
  font-size: 0.875rem;
  color: var(--muted-fg);
}

/* ===== Footer ===== */
.l-footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0;
}

.l-footer-top {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.l-footer-logo img {
  height: 24px;
  width: auto;
  opacity: 0.6;
}

.l-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 2rem;
}

.l-footer-nav a {
  font-size: 0.875rem;
  color: var(--muted-fg);
  transition: color 0.2s;
}

.l-footer-nav a:hover {
  color: var(--fg);
}

.l-footer-social {
  display: flex;
  gap: 1rem;
}

.l-footer-social a {
  font-size: 1.25rem;
  color: var(--muted-fg);
  transition: color 0.2s;
}

.l-footer-social a:hover {
  color: var(--fg);
}

.l-footer-bottom {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--muted-fg);
}

/* ===== Responsive ===== */
@media (min-width: 768px) {
  .l-hero {
    padding: 8rem 0 2rem;
  }

  .l-hero h1 {
    font-size: 3rem;
  }

  .l-hero-lead {
    font-size: 1.25rem;
  }

  .l-card {
    padding: 2.5rem;
  }

  .l-card h2 {
    font-size: 1.875rem;
  }

  .l-more h2 {
    font-size: 1.875rem;
  }

  .l-meaning-box {
    padding: 2.5rem;
  }

  .l-footer-top {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (min-width: 1024px) {
  .l-hero h1 {
    font-size: 3.75rem;
  }
}

@media (max-width: 767px) {
  .l-header-nav {
    display: none;
  }

  .l-header-toggle {
    display: block;
  }

  .l-mobile-nav {
    display: block;
  }
}
