/* ── TOKENS ─────────────────────────────────────────────────────────────────── */
:root {
  --cream:        #e5dcd2;
  --cream-light:  #f0e9e3;
  --terra:        #631515;
  --terra-mid:    #80311b;
  --terra-pale:   #f0d0d0;
  --terra-ghost:  #f9edec;
  --ink:          #2a1a14;
  --ink-mid:      #2a1a14;
  --ink-muted:    #5a4a42;
  --footer-bg:    #80301a;

  --f-mono: 'IBM Plex Mono', 'Courier New', monospace;
  --f-body: 'Inter', Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--f-body);
  font-weight: 400;
  line-height: 1.65;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

/* subtle grain */
body::after {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.022;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── HEADER ──────────────────────────────────────────────────────────────────
   Background: #E5DCD2 from reform_beje_a_red SVG
────────────────────────────────────────────────────────────────────────────── */
.site-header {
  background: #e5dcd2;
  border-bottom: 1.5px solid rgba(99,21,21,0.14);
}
.header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header-logo {
  display: block;
  width: clamp(140px, 22vw, 240px);
  padding: 0.5rem 0;
  flex-shrink: 0;
  line-height: 0;
}
.header-logo img {
  width: 100%;
  height: auto;
  display: block;
}
.header-logo a {
  display: contents;
}
.header-logo a img {
  border: none;
}

/* ── LANG TOGGLE ─────────────────────────────────────────────────────────── */
.lang-bar {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}
.lang-btn {
  background: none;
  border: none;
  font-family: var(--f-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  cursor: pointer;
  padding: 0.28rem 0.55rem;
  border-radius: 5px;
  transition: color 0.18s, background 0.18s;
}
.lang-btn.active {
  color: var(--terra);
  background: rgba(99,21,21,0.08);
}
.lang-btn:hover:not(.active) { color: var(--terra-mid); }
.lang-sep { color: var(--ink-muted); opacity: 0.22; font-size: 0.68rem; }

/* ── MAIN ────────────────────────────────────────────────────────────────── */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 2rem 5rem;
}

/* thin drop line */
main::before {
  content: '';
  display: block;
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, rgba(99,21,21,0.22), transparent);
  margin-bottom: 2.2rem;
  flex-shrink: 0;
}

/* ── YEAR BADGE ──────────────────────────────────────────────────────────── */
.year-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--f-mono);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terra);
  background: var(--terra-ghost);
  border: 1px solid var(--terra-pale);
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  margin-bottom: 1.8rem;
  opacity: 0;
  animation: fadeUp 0.65s ease 0.1s forwards;
}
.badge-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--terra);
  flex-shrink: 0;
  animation: blink 2.2s ease-in-out 1.8s infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.3; transform: scale(0.6); }
}

/* ── HEADLINE ────────────────────────────────────────────────────────────── */
.headline-block {
  text-align: center;
  max-width: 540px;
  margin-bottom: 1.6rem;
  opacity: 0;
  animation: fadeUp 0.65s ease 0.24s forwards;
}
.headline {
  font-family: var(--f-mono);
  font-size: clamp(1.45rem, 3.8vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 0.95rem;
  letter-spacing: -0.03em;
}
.subline {
  font-family: var(--f-body);
  font-size: clamp(0.87rem, 1.7vw, 0.96rem);
  font-weight: 400;
  color: var(--ink-muted);
  line-height: 1.85;
  max-width: 46ch;
  margin: 0 auto;
}

/* ── ORNAMENT ────────────────────────────────────────────────────────────── */
.ornament {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.65rem;
  opacity: 0;
  animation: fadeUp 0.65s ease 0.36s forwards;
}
.ornament-line { width: 22px; height: 1px; background: var(--terra); opacity: 0.17; }
.ornament-dot  { width: 3px; height: 3px; border-radius: 50%; background: var(--terra); opacity: 0.28; }

/* ── FORM ────────────────────────────────────────────────────────────────── */
.form-card {
  width: 100%;
  max-width: 370px;
  opacity: 0;
  animation: fadeUp 0.65s ease 0.46s forwards;
}
.form-label {
  font-family: var(--f-mono);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--terra-mid);
  text-align: center;
  margin-bottom: 0.8rem;
  display: block;
}
.signup-form { display: flex; flex-direction: column; gap: 0.45rem; }

.form-input {
  width: 100%;
  background: var(--cream-light);
  border: 1.5px solid rgba(99,21,21,0.15);
  border-radius: 8px;
  padding: 0.8rem 1.05rem;
  font-family: var(--f-body);
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--ink);
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}
.form-input::placeholder { color: var(--ink-muted); opacity: 0.42; }
.form-input:focus {
  border-color: var(--terra);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(99,21,21,0.08);
}

.form-btn {
  width: 100%;
  background: var(--terra);
  color: var(--cream);
  border: none;
  border-radius: 8px;
  padding: 0.88rem 1rem;
  font-family: var(--f-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  margin-top: 0.1rem;
  transition: background 0.18s, transform 0.18s, box-shadow 0.18s;
}
.form-btn:hover {
  background: var(--terra-mid);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(99,21,21,0.22);
}
.form-btn:active  { transform: translateY(0); box-shadow: none; }
.form-btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; box-shadow: none; }

.form-note {
  font-family: var(--f-body);
  font-size: 0.67rem;
  font-weight: 400;
  color: var(--ink-muted);
  opacity: 0.52;
  margin-top: 0.6rem;
  text-align: center;
  line-height: 1.5;
}

/* ── SUCCESS / ERROR MESSAGES ────────────────────────────────────────────── */
.success-msg {
  display: none;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 1.25rem 1.15rem;
  background: var(--terra-ghost);
  border: 1px solid var(--terra-pale);
  border-radius: 10px;
}
.success-msg.visible { display: flex; }
.success-icon {
  width: 28px; height: 28px;
  background: var(--terra);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.success-title {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--terra);
  letter-spacing: -0.01em;
}
.success-body {
  font-family: var(--f-body);
  font-size: 0.82rem;
  color: var(--ink-muted);
  line-height: 1.65;
}

/* ── FOOTER ──────────────────────────────────────────────────────────────────
   Background: #80301A from reform_redbege_a SVG
────────────────────────────────────────────────────────────────────────────── */
footer {
  background: var(--footer-bg);
}
.footer-logo-band {
  max-width: 540px;
  margin: 0 auto;
  padding: 1.5rem 2.5rem 0;
  line-height: 0;
}
.footer-logo-band img {
  width: 100%;
  height: auto;
  display: block;
}
.footer-logo-band a {
  display: contents;
}
.footer-logo-band a img {
  border: none;
}
.footer-bottom {
  max-width: 540px;
  margin: 0 auto;
  padding: 0.6rem 2.5rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-ig {
  font-family: var(--f-body);
  font-size: 0.76rem;
  font-weight: 500;
  color: rgba(229,220,210,0.65);
  text-decoration: none;
  transition: color 0.18s;
}
.footer-ig:hover { color: var(--cream); }
.footer-copy {
  font-family: var(--f-body);
  font-size: 0.76rem;
  font-weight: 500;
  color: rgba(229,220,210,0.65);
}

/* ── ANIMATIONS ──────────────────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── RESPONSIVE ──────────────────────────────────────────────────────────── */
@media (max-width: 580px) {
  .header-inner { padding: 0 1.5rem; }
  .header-logo { width: clamp(120px, 40vw, 180px); }
  main { padding: 2.5rem 1.5rem 4rem; }
  .footer-logo-band { padding: 1.25rem 1.5rem 0; }
  .footer-bottom { padding: 0.5rem 1.5rem 1.2rem; flex-direction: column; align-items: flex-start; }
}

/* ── i18n ────────────────────────────────────────────────────────────────── */
html[data-lang="pt"] [data-en] { display: none; }
html[data-lang="en"] [data-pt] { display: none; }
