:root {
  --accent: #ff5a3c;
  --bg: #101014;
  --fg: #f5f4f2;
  --muted: #97969c;
  --field-bg: #1c1c21;
  --field-border: #2c2c33;
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 2rem 1.25rem;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  text-align: center;
}

.lang-switch {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.lang-switch button {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 0.2rem 0.3rem;
  font: inherit;
}

.lang-switch button.active {
  color: var(--fg);
  font-weight: 600;
}

main {
  max-width: 34rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.25rem, 7vw, 3.5rem);
  margin: 0;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.tagline {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.01em;
}

.body {
  max-width: 30rem;
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

form {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.field-row {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}

input[type="email"] {
  flex: 1 1 16rem;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid var(--field-border);
  background: var(--field-bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1rem;
}

input[type="email"]:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

button[type="submit"] {
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  border: none;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
}

button[type="submit"]:disabled {
  opacity: 0.6;
  cursor: default;
}

.micro {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.form-message {
  min-height: 1.2em;
  margin: 0;
  font-size: 0.9rem;
}

.form-message.success {
  color: #4ade80;
}

.form-message.error {
  color: #f87171;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

footer {
  color: var(--muted);
  font-size: 0.8rem;
}

[hidden] {
  display: none !important;
}
