:root {
  --bg-deep: #4a1535;
  --bg-card: rgba(52, 24, 58, 0.88);
  --bg-card-hover: rgba(68, 32, 74, 0.94);
  --bg-card-gradient: linear-gradient(145deg, rgba(62, 30, 68, 0.95) 0%, rgba(48, 22, 54, 0.98) 100%);
  --accent: #e9d8ff;
  --accent-soft: rgba(233, 216, 255, 0.18);
  --accent-glow: rgba(233, 216, 255, 0.35);
  --text: #fff9fc;
  --text-secondary: #f0e4f4;
  --text-muted: #d4bddc;
  --text-faint: #b89ec4;
  --border: rgba(255, 255, 255, 0.2);
  --shadow-text: 0 1px 3px rgba(30, 8, 28, 0.45);
  --danger: #ffb4b4;
  --success: #a7f3c8;
  --radius: 16px;
  --radius-lg: 24px;
  --font-sans: "DM Sans", system-ui, sans-serif;
  --font-display: "Playfair Display", Georgia, serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

.bg-pattern {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 90% 60% at 50% 0%, rgba(255, 192, 210, 0.4), transparent),
    radial-gradient(ellipse 70% 50% at 100% 60%, rgba(232, 140, 180, 0.28), transparent),
    radial-gradient(ellipse 60% 45% at 0% 70%, rgba(210, 120, 165, 0.25), transparent),
    linear-gradient(165deg, #3a0f28 0%, #6b2550 38%, #a84578 72%, #e8a8c0 100%);
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem 4rem;
}

.hero-inner {
  width: 100%;
  max-width: 900px;
  text-align: center;
}

/* Progress bar */
.progress-section {
  background: var(--bg-card-gradient);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem 1.1rem;
  margin-bottom: 2rem;
  box-shadow: 0 8px 28px rgba(30, 8, 28, 0.3);
  text-align: left;
}

.progress-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.progress-title {
  font-family: var(--font-display);
  font-size: clamp(1rem, 3vw, 1.2rem);
  font-weight: 700;
  color: var(--text);
  text-shadow: 0 1px 2px rgba(20, 5, 18, 0.3);
}

.progress-percent {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 6px rgba(233, 216, 255, 0.25);
}

.progress-track {
  width: 100%;
  height: 14px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 2px 6px rgba(20, 5, 18, 0.25);
}

.progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #c49ad4 0%, #e9d8ff 50%, #f5ecff 100%);
  box-shadow: 0 0 16px rgba(233, 216, 255, 0.45);
  transition: width 0.6s ease;
}

.progress-detail {
  margin-top: 0.65rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  text-shadow: var(--shadow-text);
  margin-bottom: 1.5rem;
}

/* Daily quote */
.daily-quote {
  position: relative;
  background: var(--bg-card-gradient);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem 1.5rem;
  margin-bottom: 2.5rem;
  text-align: left;
  box-shadow: 0 8px 32px rgba(30, 8, 28, 0.35);
}

.quote-mark {
  position: absolute;
  top: 0.5rem;
  left: 1.25rem;
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 1;
  color: var(--accent);
  opacity: 0.25;
  pointer-events: none;
}

.quote-text {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 3vw, 1.45rem);
  font-weight: 600;
  line-height: 1.55;
  color: var(--text);
  padding-left: 0.5rem;
  text-shadow: 0 1px 2px rgba(20, 5, 18, 0.3);
}

.quote-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.quote-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.quote-date {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Countdown */
.countdown-wrapper {
  background: var(--bg-card-gradient);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 1.5rem 2rem;
  box-shadow:
    0 0 0 1px rgba(233, 216, 255, 0.1),
    0 20px 60px rgba(30, 8, 28, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.countdown-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--text);
  text-shadow: 0 2px 8px rgba(20, 5, 18, 0.35);
}

.countdown-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.25rem;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 72px;
}

.countdown-value {
  font-size: clamp(2.5rem, 10vw, 4.5rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  color: var(--accent);
  text-shadow: 0 2px 12px var(--accent-glow), 0 1px 3px rgba(20, 5, 18, 0.4);
}

.countdown-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-top: 0.5rem;
}

.countdown-sep {
  font-size: clamp(2rem, 8vw, 3.5rem);
  font-weight: 300;
  color: var(--text-faint);
  align-self: flex-start;
  margin-top: 0.35rem;
  user-select: none;
}

.countdown-ended {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--success);
  margin-top: 1rem;
}

.hidden {
  display: none !important;
}

/* Info section */
main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem 4rem;
}

.info-section,
.news-section {
  margin-bottom: 5rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.5rem;
  color: var(--text);
  text-shadow: var(--shadow-text);
}

.section-desc {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 2.5rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 1px 2px rgba(30, 8, 28, 0.35);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}

.info-card {
  background: var(--bg-card-gradient);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  text-align: center;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  box-shadow: 0 4px 20px rgba(30, 8, 28, 0.25);
}

.info-card:hover {
  transform: translateY(-3px);
  background: linear-gradient(145deg, rgba(72, 36, 78, 0.96) 0%, rgba(58, 28, 64, 0.98) 100%);
  border-color: rgba(233, 216, 255, 0.35);
}

.info-icon {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.info-card h3 {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.info-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.2;
  text-shadow: 0 1px 6px rgba(233, 216, 255, 0.25);
}

.info-detail {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
  line-height: 1.45;
}

/* News */
.news-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--bg-card-gradient);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: 0 12px 40px rgba(30, 8, 28, 0.3);
}

.news-card--reverse .news-image-wrap {
  order: 2;
}

.news-card--reverse .news-content {
  order: 1;
}

.news-image-wrap {
  position: relative;
  min-height: 280px;
  background: linear-gradient(135deg, #5a3060 0%, #3d2248 100%);
  overflow: hidden;
}

.news-image {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}

.news-card:hover .news-image {
  transform: scale(1.03);
}

.news-content {
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.news-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  background: rgba(255, 140, 140, 0.22);
  color: var(--danger);
}

.news-tag--calm {
  background: rgba(120, 230, 170, 0.2);
  color: var(--success);
}

.news-date {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.news-headline {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.5vw, 1.4rem);
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 1rem;
  color: var(--text);
}

.news-body {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 0.85rem;
  line-height: 1.75;
}

.news-body:last-child {
  margin-bottom: 0;
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 2rem 1.25rem 3rem;
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.85rem;
  text-shadow: var(--shadow-text);
}

.footer-note {
  margin-top: 0.35rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 768px) {
  .news-card,
  .news-card--reverse {
    grid-template-columns: 1fr;
  }

  .news-card--reverse .news-image-wrap,
  .news-card--reverse .news-content {
    order: unset;
  }

  .news-content {
    padding: 1.5rem 1.25rem;
  }

  .countdown-unit {
    min-width: 60px;
  }

  .countdown-sep {
    display: none;
  }

  .countdown {
    gap: 0.75rem;
  }
}

@media (max-width: 480px) {
  .daily-quote {
    padding: 1.5rem 1.25rem 1.25rem;
  }

  .countdown-wrapper {
    padding: 2rem 1rem 1.5rem;
  }
}
