:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-raised: #fbfcfe;
  --ink: #111111;
  --muted: #55606e;
  --faint: #6b7484;
  --hairline: #d0d0cc;
  --hairline-soft: #e7e7e3;
  --accent: #235eff;
  --accent-ink: #ffffff;
  --accent-soft: #eef2ff;
  --success: #136e49;
  --error: #b23a3a;

  --font-display: "Noto Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Noto Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  padding: clamp(24px, 6vw, 64px) 20px;
  display: flex;
  justify-content: center;
}

.page {
  width: 100%;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: clamp(36px, 7vw, 56px);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.mark {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.mark-badge {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--bg-raised);
  border: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  color: var(--accent);
  flex-shrink: 0;
}

.mark-word {
  font-family: var(--font-body);
  font-weight: 800;
  font-style: italic;
  font-size: 19px;
  letter-spacing: -0.02em;
}

.mark-word em {
  font-style: italic;
  color: var(--accent);
}

.lang-switch {
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: var(--bg-raised);
  border: 1px solid var(--hairline);
}

.lang-switch a {
  display: block;
  padding: 5px 13px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--faint);
}

.lang-switch a[aria-current="page"] {
  background: var(--accent);
  color: var(--accent-ink);
}

.hero {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.badge-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.construction-badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.construction-badge svg {
  width: 24px;
  height: 24px;
  fill: var(--accent);
  animation: sway 3.2s ease-in-out infinite;
  transform-origin: 50% 85%;
}

@keyframes sway {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-8deg); }
  75% { transform: rotate(8deg); }
}

.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
}

h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(32px, 6vw, 46px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-wrap: balance;
  max-width: 14ch;
}

.body-text {
  margin: 0;
  max-width: 46ch;
  font-size: 17px;
  line-height: 1.65;
  color: var(--muted);
}

.body-text a {
  color: var(--ink);
  text-decoration-color: var(--hairline);
  text-underline-offset: 3px;
}

.body-text a:hover {
  color: var(--accent);
}

.signup {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.signup-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.field {
  flex: 1 1 260px;
}

input[type="email"] {
  width: 100%;
  padding: 13px 16px;
  border-radius: 11px;
  border: 1px solid var(--hairline);
  background: var(--bg-raised);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input[type="email"]::placeholder {
  color: var(--faint);
}

input[type="email"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

button {
  padding: 13px 22px;
  border-radius: 11px;
  border: none;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.12s ease, opacity 0.12s ease;
}

button:hover {
  transform: translateY(-1px);
}

button:active {
  transform: translateY(0);
}

button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.form-message {
  margin: 0;
  font-size: 14px;
  min-height: 1.4em;
  display: flex;
  align-items: center;
  gap: 7px;
}

.form-message::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  background: currentColor;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.form-message[data-state="success"] {
  color: var(--success);
}

.form-message[data-state="error"] {
  color: var(--error);
}

.form-message[data-state="success"]::before,
.form-message[data-state="error"]::before {
  opacity: 1;
}

.foot {
  padding-top: 4px;
  border-top: 1px solid var(--hairline-soft);
  font-size: 13px;
  color: var(--faint);
}

@media (prefers-reduced-motion: reduce) {
  .construction-badge svg {
    animation: none;
  }
  button {
    transition: none;
  }
}
