/* mdpeek Pro official site — shared styles */
:root {
  --bg: #0f0d17;
  --bg-soft: #16131f;
  --card: #1c1828;
  --card-border: #2c263d;
  --text: #ece9f4;
  --text-dim: #a49bc0;
  --purple: #8b5cf6;
  --purple-deep: #6d28d9;
  --gold: #fbbf24;
  --green: #34d399;
  --red: #f87171;
  --radius: 14px;
  --maxw: 1080px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--purple); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* Nav */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(15, 13, 23, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--card-border);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; color: var(--text); }
.nav-brand:hover { text-decoration: none; }
.nav-brand img { width: 28px; height: 28px; border-radius: 6px; }
.nav-links { display: flex; gap: 22px; align-items: center; font-size: 14px; }
.nav-links a { color: var(--text-dim); }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-cta {
  background: var(--purple-deep); color: #fff !important;
  padding: 7px 16px; border-radius: 8px; font-weight: 600;
}
.nav-cta:hover { background: var(--purple); text-decoration: none !important; }

/* Hero */
.hero { padding: 88px 0 64px; text-align: center; }
.hero-badge {
  display: inline-block; padding: 5px 14px; border-radius: 999px;
  border: 1px solid var(--purple); color: var(--purple);
  font-size: 13px; margin-bottom: 22px; letter-spacing: 0.5px;
}
.hero h1 { font-size: clamp(34px, 6vw, 54px); font-weight: 800; line-height: 1.2; }
.hero h1 .accent { color: var(--purple); }
.hero .sub {
  font-size: clamp(16px, 2.4vw, 19px); color: var(--text-dim);
  max-width: 640px; margin: 18px auto 0;
}
.hero-actions { margin-top: 32px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 12px 28px; border-radius: 10px;
  font-weight: 600; font-size: 15px; transition: transform .15s, background .15s;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn-primary { background: var(--purple-deep); color: #fff; }
.btn-primary:hover { background: var(--purple); }
.btn-ghost { border: 1px solid var(--card-border); color: var(--text); }
.btn-ghost:hover { border-color: var(--purple); }
.hero-note { margin-top: 14px; font-size: 13px; color: var(--text-dim); }
.hero-icon { width: 128px; height: 128px; border-radius: 28px; margin-bottom: 28px;
  box-shadow: 0 20px 60px rgba(109, 40, 217, 0.45); }

/* Sections */
section { padding: 72px 0; }
.section-alt { background: var(--bg-soft); }
.section-title { font-size: clamp(26px, 4vw, 34px); font-weight: 800; text-align: center; }
.section-sub { text-align: center; color: var(--text-dim); margin-top: 10px; max-width: 560px; margin-left: auto; margin-right: auto; }

/* Feature grid */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; margin-top: 44px; }
.card {
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: var(--radius); padding: 26px;
}
.card .icon { font-size: 28px; margin-bottom: 12px; }
.card h3 { font-size: 17px; margin-bottom: 8px; }
.card p { font-size: 14px; color: var(--text-dim); }
.card .pro-tag {
  display: inline-block; font-size: 11px; font-weight: 700;
  background: linear-gradient(135deg, var(--purple-deep), var(--gold));
  color: #fff; padding: 2px 9px; border-radius: 999px; margin-left: 8px; vertical-align: middle;
}

/* Comparison table */
.compare-wrap { overflow-x: auto; margin-top: 44px; }
table.compare { width: 100%; border-collapse: collapse; min-width: 640px; }
table.compare th, table.compare td {
  padding: 14px 18px; text-align: center; border-bottom: 1px solid var(--card-border);
  font-size: 14.5px;
}
table.compare th:first-child, table.compare td:first-child { text-align: left; }
table.compare thead th {
  font-size: 15px; color: var(--text); border-bottom: 2px solid var(--purple);
}
table.compare thead th.col-pro { color: var(--gold); }
table.compare tbody tr:hover { background: rgba(139, 92, 246, 0.06); }
table.compare td:first-child { color: var(--text-dim); }
.yes { color: var(--green); font-weight: 700; }
.no { color: var(--red); }
.part { color: var(--gold); font-size: 13px; }
.compare-cta { text-align: center; margin-top: 34px; }

/* FAQ */
.faq { max-width: 760px; margin: 44px auto 0; }
details {
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: 12px; padding: 18px 22px; margin-bottom: 12px;
}
details summary { cursor: pointer; font-weight: 600; font-size: 15.5px; list-style: none; }
details summary::before { content: "▸ "; color: var(--purple); }
details[open] summary::before { content: "▾ "; }
details p { margin-top: 10px; font-size: 14px; color: var(--text-dim); }

/* Privacy / support prose */
.prose { max-width: 780px; margin: 48px auto 0; }
.prose h2 { font-size: 22px; margin: 36px 0 12px; padding-top: 8px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { font-size: 15px; color: var(--text-dim); }
.prose strong { color: var(--text); }
.prose table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; }
.prose th, .prose td { border: 1px solid var(--card-border); padding: 10px 14px; text-align: left; }
.prose th { background: var(--card); color: var(--text); }
.prose code {
  background: var(--card); padding: 2px 7px; border-radius: 6px;
  font-size: 13px; color: var(--gold); word-break: break-all;
}
.callout {
  background: rgba(139, 92, 246, 0.1); border-left: 3px solid var(--purple);
  border-radius: 8px; padding: 14px 18px; margin: 16px 0; font-size: 14.5px; color: var(--text);
}

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--purple-deep), #4c1d95);
  border-radius: 20px; padding: 56px 32px; text-align: center; margin: 24px 0;
}
.cta-band h2 { font-size: clamp(24px, 4vw, 32px); color: #fff; }
.cta-band p { color: rgba(255,255,255,0.85); margin-top: 10px; }
.cta-band .btn { background: #fff; color: var(--purple-deep); margin-top: 24px; }

/* Footer */
footer { border-top: 1px solid var(--card-border); padding: 36px 0 44px; margin-top: 40px; }
.footer-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  font-size: 13px; color: var(--text-dim);
}
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { color: var(--text-dim); }
.footer-links a:hover { color: var(--text); }

/* Language switcher */
.lang-switch { margin-left: 4px; }
.lang-select {
  background: var(--card); color: var(--text-dim);
  border: 1px solid var(--card-border); border-radius: 8px;
  padding: 6px 10px; font-size: 13px; cursor: pointer;
  font-family: inherit;
}
.lang-select:hover { color: var(--text); border-color: var(--purple); }
.lang-select:focus { outline: none; border-color: var(--purple); }

@media (max-width: 640px) {
  .nav-links a:not(.nav-cta) { display: none; }
  .lang-switch { display: inline-block; }
  .hero { padding: 56px 0 44px; }
}
