@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

:root {
  --wine: #991B1B;
  --wine-dark: #2a0606;
  --bg: #000000;
  --text: #ffffff;
  --text-dim: rgba(255,255,255,0.7);
  --text-faint: rgba(255,255,255,0.5);
  --border: rgba(255,255,255,0.1);
  --card: rgba(255,255,255,0.03);
  --card-hover: rgba(255,255,255,0.06);
}

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

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
  font-weight: 500;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

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

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.container-form { max-width: 640px; margin: 0 auto; padding: 0 24px; }

/* Nav */
nav.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
}
nav.top .logo { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
nav.top .links { display: flex; gap: 24px; font-size: 14px; color: var(--text-dim); }
nav.top .links a:hover { color: var(--text); }

/* Gradients */
.bg-radial {
  background: radial-gradient(ellipse at top, #991B1B 0%, #2a0606 40%, #000 100%);
}
.bg-linear {
  background: linear-gradient(180deg, #000 0%, #2a0606 60%, #991B1B 100%);
}

/* Hero */
.hero { padding: 60px 0 100px; }
.hero h1 {
  font-size: clamp(40px, 7vw, 80px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.hero h1 .dim { color: rgba(255,255,255,0.6); }
.hero p.lead {
  font-size: clamp(16px, 1.6vw, 20px);
  color: var(--text-dim);
  max-width: 620px;
  line-height: 1.6;
  margin-bottom: 36px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  text-decoration: none;
}
.btn-primary { background: #fff; color: #000; }
.btn-primary:hover { background: rgba(255,255,255,0.9); }
.btn-secondary { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.2); }
.btn-secondary:hover { background: rgba(255,255,255,0.1); }
.btn-wine { background: var(--wine); color: #fff; }
.btn-wine:hover { background: rgba(153,27,27,0.85); }
.btn-row { display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 600px) { .btn-row { flex-direction: row; } }

/* Section */
section { padding: 96px 0; }
section h2 {
  font-size: clamp(32px, 5vw, 50px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
section h2 .dim { color: rgba(255,255,255,0.5); }
section .section-intro { max-width: 640px; margin-bottom: 64px; }

/* Features grid */
.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 700px) { .features { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .features { grid-template-columns: 1fr 1fr 1fr; } }
.feature {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  transition: background 0.2s;
}
.feature:hover { background: var(--card-hover); }
.feature .icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(153,27,27,0.4) 0%, rgba(153,27,27,0.15) 100%);
  border: 1px solid rgba(153,27,27,0.5);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffb4b4;
}
.feature .icon svg {
  width: 22px;
  height: 22px;
}
.feature h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.feature p { font-size: 14px; color: var(--text-dim); line-height: 1.6; }

/* Download */
.download-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
  align-items: center;
}
@media (min-width: 600px) { .download-row { flex-direction: row; } }
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #000;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 16px;
  padding: 16px 28px;
  transition: background 0.2s;
}
.store-btn:hover { background: rgba(255,255,255,0.05); }
.store-btn.disabled { opacity: 0.4; cursor: not-allowed; border-color: rgba(255,255,255,0.1); }
.store-btn .small { font-size: 11px; color: var(--text-dim); display: block; }
.store-btn .big { font-size: 17px; font-weight: 700; display: block; }

/* Donate card */
.donate {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  text-align: center;
}
.donate h3 { font-size: 24px; font-weight: 700; margin-bottom: 8px; }
.donate p.intro { color: var(--text-dim); font-size: 14px; margin-bottom: 24px; }
.donate-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (min-width: 600px) { .donate-grid { grid-template-columns: repeat(4, 1fr); } }
.donate-btn {
  background: var(--wine);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 14px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: background 0.2s;
}
.donate-btn:hover { background: rgba(153,27,27,0.85); }
.donate-note { font-size: 11px; color: var(--text-faint); margin-top: 16px; }

/* Footer */
footer {
  border-top: 1px solid var(--border);
  background: #000;
  padding: 40px 0 24px;
  margin-top: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
@media (min-width: 800px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }
.footer-grid h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
  color: rgba(255,255,255,0.9);
}
.footer-grid ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-grid li, .footer-grid p { font-size: 13px; color: var(--text-dim); }
.footer-grid a:hover { color: #fff; }
.footer-grid .brand { font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 12px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  margin-top: 32px;
  padding-top: 24px;
  text-align: center;
  font-size: 12px;
  color: var(--text-faint);
}

/* Article (privacy / terms) */
article.doc { padding: 60px 0 80px; }
article.doc .back {
  display: inline-block;
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 32px;
}
article.doc .back:hover { color: #fff; }
article.doc h1 {
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
article.doc .meta { font-size: 13px; color: var(--text-faint); margin-bottom: 32px; }
article.doc h2 { font-size: 22px; font-weight: 700; margin: 36px 0 12px; }
article.doc h3 { font-size: 18px; font-weight: 600; margin: 24px 0 8px; }
article.doc p { margin: 12px 0; color: rgba(255,255,255,0.85); line-height: 1.7; }
article.doc ul, article.doc ol { margin: 12px 0; padding-left: 24px; color: rgba(255,255,255,0.85); }
article.doc li { margin: 6px 0; line-height: 1.6; }
article.doc a { text-decoration: underline; }
article.doc a:hover { color: rgba(255,255,255,0.7); }
article.doc strong { color: #fff; font-weight: 600; }

/* Form */
.form-section { padding: 60px 0 80px; }
.form-section h1 {
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.form-section .desc { color: var(--text-dim); margin-bottom: 32px; line-height: 1.7; }
.warn-box {
  background: rgba(153,27,27,0.1);
  border: 1px solid rgba(153,27,27,0.3);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 32px;
}
.warn-box h3 { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.warn-box ul { font-size: 14px; color: rgba(255,255,255,0.8); list-style: disc; padding-left: 20px; }
.warn-box li { margin: 4px 0; }

.form-field { margin-bottom: 20px; }
.form-field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.form-field input, .form-field textarea {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 12px 16px;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  outline: none;
  transition: border-color 0.2s;
}
.form-field input:focus, .form-field textarea:focus { border-color: rgba(255,255,255,0.3); }
.form-field textarea { resize: vertical; min-height: 80px; }
.form-field .hint { font-size: 12px; color: var(--text-faint); margin-top: 4px; }
.form-checkbox { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.form-checkbox input { margin-top: 4px; }
.form-checkbox span { font-size: 14px; color: rgba(255,255,255,0.8); }

.form-submit {
  width: 100%;
  background: var(--wine);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 16px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  margin-top: 12px;
  transition: background 0.2s;
}
.form-submit:hover { background: rgba(153,27,27,0.85); }

.form-error { color: #f87171; font-size: 14px; margin-top: 8px; }
.form-success {
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.3);
  border-radius: 16px;
  padding: 24px;
}
.form-success h3 { font-weight: 700; margin-bottom: 8px; }
.form-success p { color: rgba(255,255,255,0.8); font-size: 14px; }

.fallback-note {
  text-align: center;
  font-size: 12px;
  color: var(--text-faint);
  margin-top: 16px;
}

/* Support */
.contact-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 16px;
}
.contact-card h2 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.contact-card p { font-size: 14px; color: var(--text-dim); margin-bottom: 12px; line-height: 1.6; }
.contact-card a { color: var(--wine); font-weight: 600; }
.contact-card a:hover { color: rgba(153,27,27,0.8); }

.faq { margin-top: 32px; }
.faq h2 { font-size: 22px; font-weight: 700; margin-bottom: 16px; }
.faq details {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 12px;
}
.faq summary {
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq details[open] summary { margin-bottom: 12px; }
.faq details p { font-size: 14px; color: var(--text-dim); line-height: 1.6; }
