:root {
  --bg-primary: #0d1117;
  --bg-secondary: #161b22;
  --bg-tertiary: #21262d;
  --text-primary: #f0f6fc;
  --text-secondary: #8b949e;
  --text-muted: #6e7681;
  --accent: #58a6ff;
  --accent-hover: #79b8ff;
  --border-color: #30363d;
  --card-bg: #161b22;
  --card-border: #30363d;
  --epaper-bg: #f5f5f0;
  --epaper-ink: #111111;
  --epaper-border: #222222;
  --badge-bg: rgba(56, 139, 253, 0.15);
  --badge-text: #58a6ff;
  --success: #3fb950;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif;
  --radius: 12px;
  --container-max: 1140px;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header & Navigation */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(13, 17, 23, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, #30363d, #161b22);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  font-weight: 800;
  font-size: 1rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
  text-decoration: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  text-decoration: none !important;
}

.btn-primary {
  background-color: var(--text-primary);
  color: var(--bg-primary) !important;
}

.btn-primary:hover {
  background-color: #ffffff;
  transform: translateY(-1px);
}

.btn-outline {
  background-color: transparent;
  color: var(--text-primary) !important;
  border-color: var(--border-color);
}

.btn-outline:hover {
  background-color: var(--bg-tertiary);
  border-color: var(--text-secondary);
}

/* Hero Section */
.hero {
  padding: 80px 0 60px;
  text-align: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  font-size: 0.825rem;
  font-weight: 600;
  background-color: var(--badge-bg);
  color: var(--badge-text);
  border: 1px solid rgba(88, 166, 255, 0.3);
  border-radius: 20px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 50px;
}

/* E-Paper Display Mockup */
.epaper-showcase {
  max-width: 800px;
  margin: 0 auto;
  background-color: #e5e5dc;
  color: var(--epaper-ink);
  border: 12px solid #2d3139;
  border-radius: 16px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05);
  overflow: hidden;
  position: relative;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, monospace;
}

.epaper-frame-header {
  background-color: #d8d8ce;
  border-bottom: 2px solid #222;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.epaper-body {
  padding: 24px;
}

.epaper-clock-bar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 3px solid #111;
  padding-bottom: 12px;
  margin-bottom: 20px;
}

.epaper-time {
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
}

.epaper-date {
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #333;
}

.epaper-event-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.epaper-event-item {
  border: 2px solid #111;
  padding: 12px 16px;
  border-radius: 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f7f7f2;
}

.epaper-event-item.now {
  background-color: #111;
  color: #f7f7f2;
}

.epaper-event-title {
  font-weight: 800;
  font-size: 1.05rem;
}

.epaper-event-meta {
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0.85;
}

.epaper-event-status {
  padding: 4px 8px;
  border: 1px solid currentColor;
  border-radius: 3px;
  font-size: 0.75rem;
  font-weight: 700;
}

/* Features Grid */
.features-section {
  padding: 90px 0;
  border-top: 1px solid var(--border-color);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.feature-card {
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  border-color: var(--text-secondary);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Privacy & Transparency Section */
.trust-section {
  padding: 80px 0;
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.trust-box {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 40px;
}

.trust-box h3 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.trust-box p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 20px;
  line-height: 1.7;
}

.trust-bullets {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.trust-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.trust-bullets li span.check {
  color: var(--success);
  font-weight: bold;
}

/* Legal Documents Layout (Privacy & Terms) */
.legal-page {
  padding: 60px 0 100px;
}

.legal-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 30px;
  margin-bottom: 40px;
}

.legal-header h1 {
  font-size: 2.75rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.legal-header .meta {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.legal-content {
  max-width: 860px;
  margin: 0 auto;
}

.legal-section {
  margin-bottom: 40px;
}

.legal-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
}

.legal-section h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 18px 0 10px;
}

.legal-section p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  font-size: 1rem;
  line-height: 1.75;
}

.legal-section ul,
.legal-section ol {
  color: var(--text-secondary);
  margin-left: 24px;
  margin-bottom: 18px;
  line-height: 1.75;
}

.legal-section li {
  margin-bottom: 8px;
}

.legal-highlight {
  background-color: var(--bg-tertiary);
  border-left: 4px solid var(--accent);
  padding: 16px 20px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 20px 0;
}

.legal-highlight p {
  color: var(--text-primary);
  margin: 0;
}

/* Footer */
footer {
  border-top: 1px solid var(--border-color);
  padding: 50px 0;
  background-color: var(--bg-primary);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--text-primary);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.25rem;
  }
  .hero p {
    font-size: 1.05rem;
  }
  .nav-links {
    gap: 16px;
  }
  .epaper-time {
    font-size: 2.2rem;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}
