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

:root{
  --bg: #000;
  --panel: #111;
  --panel-2: #1a1a1a;
  --text: #fff;
  --muted: #9a9a9a;
  --muted-2:#666;
  --brand: #4ecdc4;
  --brand-600:#45b7b8;
  --ring: #78e7df;
  --danger-bg:#2f1515; --danger:#ffb3b3; --danger-br:#6b1f1f;
  --success-bg:#0f2f19; --success:#a6f3c0; --success-br:#1f6b3e;
  --info-bg:#0f2238; --info:#b6dcff; --info-br:#204a7a;
}

html, body { height: 100%; }

body{
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  display: grid;
  place-items: center;
  padding: 20px;
}

.container{
  width: 100%;
  max-width: 420px;
  text-align: center;
}

/* Avatar */
.avatar{
  width: 88px; height: 88px; border-radius: 50%;
  background: linear-gradient(135deg, #ff6b6b, var(--brand));
  margin: 0 auto 20px;
  display: grid; place-items: center;
  font-size: 32px; color: #fff;
  box-shadow: 0 8px 24px rgba(78,205,196,.15);
}

/* Headings */
h1{
  font-size: 2.6rem; font-weight: 800;
  letter-spacing: -0.02em; margin-bottom: 8px;
}
h2{
  font-size: 1rem; font-weight: 500;
  color: var(--muted); margin-bottom: 10px;
}
.subscriber-count{
  font-size: .95rem; color: var(--muted-2); margin-bottom: 28px;
}

/* Form */
form{
  display: grid; gap: 14px; margin-bottom: 18px;
}

input[type="text"], input[type="email"]{
  width: 100%; font-size: 1rem;
  padding: 12px 14px; border-radius: 10px;
  background: var(--panel-2); color: var(--text);
  border: 1px solid #2a2a2a;
  transition: border-color .15s ease, box-shadow .15s ease;
}

input::placeholder{ color: var(--muted-2); }

input:focus{
  outline: none;
  border-color: var(--ring);
  box-shadow: 0 0 0 3px rgba(120,231,223,.15);
}

/* Subscribe button */
.subscribe{
  width: 100%;
  padding: 12px 24px;
  border: 0; border-radius: 10px;
  background: var(--brand); color: #000;
  font-size: 1rem; font-weight: 700;
  transition: filter .15s ease, transform .02s ease, opacity .15s ease;
  cursor: pointer;
}

/* Disabled by default; enable via JS by removing disabled and adding .enabled */
.subscribe[disabled]{
  opacity: .5; cursor: not-allowed; filter: grayscale(.15);
}
.subscribe.enabled:hover{ filter: brightness(1.08); }
.subscribe.enabled:active{ transform: translateY(1px); }

/* Legal & links */
.legal{
  font-size: .8rem; line-height: 1.5;
  color: var(--muted-2); margin-top: 14px;
}
.legal a{ color: var(--brand); text-decoration: underline; }
.no-thanks{
  display: inline-flex; gap: 6px; align-items: center;
  margin-top: 12px; color: var(--muted-2); text-decoration: none;
}
.brand{ color: var(--brand); text-decoration: none; }
.no-thanks:hover{ color: #fff; }

/* Flash / alerts (no bullets, nice cards) */
.flashes{ list-style: none; padding: 0; margin: 0 0 12px; }
.alert{
  text-align: left; border-radius: 12px; padding: 12px 14px;
  border: 1px solid transparent; background: var(--panel);
}
.alert-error   { background: var(--danger-bg);  color: var(--danger);  border-color: var(--danger-br); }
.alert-success { background: var(--success-bg); color: var(--success); border-color: var(--success-br); }
.alert-info    { background: var(--info-bg);    color: var(--info);    border-color: var(--info-br); }

/* Thank-you card (optional) */
.thankyou-card{
  margin-top: 16px; padding: 24px 20px; border-radius: 14px;
  background: var(--panel); border: 1px solid #1f1f1f;
}
.thankyou-title{ font-size: 2rem; margin: 8px 0; }
.thankyou-subtitle{ color: var(--muted); margin-bottom: 8px; }

/* Small screens spacing */
@media (max-width: 380px){
  .container{ max-width: 94vw; }
  h1{ font-size: 2.2rem; }
}
/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid #1f1f1f;
  margin-top: 60px;
  padding: 24px 0;
  background: var(--panel);
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted-2);
}

.site-footer .brand {
  color: var(--brand);
  font-weight: 600;
}