:root {
  --accent-start: #4f8ef7;
  --accent-end: #9b5cf6;
  --bg: #f8f9fc;
  --surface: #ffffff;
  --text: #1a1a2e;
  --text-secondary: #6b7280;
  --border: rgba(0,0,0,0.07);
  --radius: 16px;
  --shadow: 0 4px 24px rgba(79,142,247,0.08);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0f1a;
    --surface: #1a1a2e;
    --text: #f0f0ff;
    --text-secondary: #9ca3af;
    --border: rgba(255,255,255,0.08);
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* NAV */
nav {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 40px;
  position: sticky;
  top: 0;
  background: rgba(248,249,252,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}
@media (prefers-color-scheme: dark) {
  nav { background: rgba(15,15,26,0.85); }
}
.nav-logo { font-size: 1.25rem; font-weight: 700; margin-right: auto; }
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a { text-decoration: none; color: var(--text-secondary); font-size: 0.9rem; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.lang-switcher { display: flex; gap: 8px; }
.lang-switcher a {
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text-secondary);
  transition: all .2s;
}
.lang-switcher a:hover, .lang-switcher a.active {
  background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
  color: white;
  border-color: transparent;
}

/* HERO */
.hero {
  max-width: 800px;
  margin: 0 auto;
  padding: 80px 24px 60px;
  text-align: center;
}
.hero-icon {
  width: 96px; height: 96px;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  margin-bottom: 28px;
  box-shadow: 0 8px 32px rgba(79,142,247,0.3);
}
.hero h1 { font-size: 3rem; font-weight: 800; line-height: 1.15; margin-bottom: 20px; }
.hero p { font-size: 1.2rem; color: var(--text-secondary); max-width: 560px; margin: 0 auto 36px; }
@media (max-width: 600px) {
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1rem; }
}

/* BUTTONS */
.btn-group { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all .2s;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
  color: white;
  box-shadow: 0 4px 20px rgba(79,142,247,0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(79,142,247,0.45); }
.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover { border-color: var(--accent-start); color: var(--accent-start); }

/* FEATURES */
.features {
  max-width: 1000px;
  margin: 0 auto 80px;
  padding: 0 24px;
}
.features h2 { text-align: center; font-size: 1.75rem; font-weight: 700; margin-bottom: 40px; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
}
.feature-icon { font-size: 2rem; margin-bottom: 14px; }
.feature-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6; }

/* WEEKLY ARC preview */
.arc-section {
  max-width: 780px;
  margin: 0 auto 80px;
  padding: 0 24px;
  text-align: center;
}
.arc-section h2 { font-size: 1.75rem; font-weight: 700; margin-bottom: 16px; }
.arc-section > p { color: var(--text-secondary); margin-bottom: 0; }

.arc-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 28px;
  text-align: left;
}
@media (max-width: 620px) {
  .arc-compare { grid-template-columns: 1fr; }
}
.arc-view {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 18px;
  box-shadow: var(--shadow);
}
.arc-view-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3px 10px;
  margin-bottom: 16px;
}
.arc-view-desc {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-top: 14px;
  line-height: 1.5;
}

/* Today page — circle dots */
.week-dots { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.week-dot {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}
.week-dot.done { background: #22c55e; color: white; }
.week-dot.today {
  background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
  color: white;
  box-shadow: 0 2px 12px rgba(79,142,247,0.45);
  transform: scale(1.12);
}
.week-dot.finale { background: linear-gradient(135deg, #f97316, #facc15); color: white; }
.week-dot.empty { background: var(--surface); border: 2px dashed var(--border); color: var(--text-secondary); }

/* Story collection — rounded square dots */
.week-collection { display: flex; flex-direction: column; gap: 10px; }
.week-row { display: flex; align-items: center; gap: 8px; }
.week-row-label {
  font-size: 0.68rem;
  color: var(--text-secondary);
  width: 38px;
  flex-shrink: 0;
  font-weight: 600;
}
.week-sq-dots { display: flex; gap: 4px; }
.week-sq {
  width: 26px; height: 26px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 700;
  flex-shrink: 0;
}
.week-sq.done { background: #22c55e; color: white; }
.week-sq.today {
  background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
  color: white;
  box-shadow: 0 1px 8px rgba(79,142,247,0.4);
}
.week-sq.finale { background: linear-gradient(135deg, #f97316, #facc15); color: white; }
.week-sq.empty { background: var(--surface); border: 1.5px dashed var(--border); color: var(--text-secondary); }
.week-sq.finale-pending {
  background: var(--surface);
  border: 1.5px dashed rgba(249,115,22,0.35);
  color: rgba(249,115,22,0.4);
}

/* FOOTER */
footer {
  text-align: center;
  padding: 40px 24px;
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.85rem;
}
footer a { color: var(--accent-start); text-decoration: none; }
footer a:hover { text-decoration: underline; }
.footer-links { display: flex; gap: 20px; justify-content: center; margin-bottom: 12px; }

/* PRIVACY PAGE */
.prose {
  max-width: 720px;
  margin: 60px auto 80px;
  padding: 0 24px;
}
.prose h1 { font-size: 2rem; font-weight: 800; margin-bottom: 8px; }
.prose .meta { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 48px; }
.prose h2 { font-size: 1.2rem; font-weight: 700; margin: 36px 0 12px; }
.prose p, .prose li { color: var(--text-secondary); margin-bottom: 12px; font-size: 0.95rem; line-height: 1.75; }
.prose ul { padding-left: 20px; }
.prose a { color: var(--accent-start); text-decoration: none; }
.prose a:hover { text-decoration: underline; }
.prose .highlight {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
  margin: 24px 0;
  font-size: 0.9rem;
}

@media (max-width: 640px) {
  nav { padding: 12px 16px; flex-wrap: wrap; row-gap: 10px; }
  .nav-logo { margin-right: 0; }
  .nav-links { display: none; }
  .lang-switcher { width: 100%; justify-content: center; gap: 6px; }
  .lang-switcher a { padding: 5px 11px; font-size: 0.72rem; }
}
