:root {
  color-scheme: dark;
  --bg: #ba7a5e;
  --cream: #f7f2ea;
  --ink: #241f1a;
  --crimson: #9c3b2e;
  --crimson-dark: #7c2e24;
  --crimson-light: #e0937d;
  --line: rgba(247, 242, 234, 0.25);
  --muted: rgba(247, 242, 234, 0.7);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  background: linear-gradient(160deg, #ff906c 0%, #603e17 50%, #cfa097 100%);
  color: var(--cream);
  font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.grainient-bg {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.enso {
  position: fixed;
  top: 50%;
  left: 50%;
  width: min(140vw, 900px);
  height: min(140vw, 900px);
  transform: translate(-50%, -50%);
  color: #ffffff;
  opacity: 0.1;
  pointer-events: none;
  z-index: 0;
}

.enso svg {
  width: 100%;
  height: 100%;
}

.page {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 560px;
  padding: calc(48px + env(safe-area-inset-top)) calc(32px + env(safe-area-inset-right)) calc(32px + env(safe-area-inset-bottom)) calc(32px + env(safe-area-inset-left));
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-bottom: 56px;
}

.brand-mark {
  font-family: "Cormorant Garamond", serif;
  font-size: 22px;
  letter-spacing: 0.35em;
  font-weight: 500;
}

.brand-sub {
  font-size: 11px;
  letter-spacing: 0.25em;
  color: var(--muted);
}

.lang-select {
  margin-top: 14px;
  padding: 9px 40px 9px 16px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.06) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23f7f2ea' stroke-width='1.4' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 16px center;
  background-size: auto, 10px 6px;
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  backdrop-filter: blur(10px) saturate(140%);
  color: var(--cream);
  font-family: inherit;
  font-size: 12px;
  letter-spacing: 0.06em;
  border-radius: 999px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  text-align: left;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    inset 0 -1px 4px rgba(0, 0, 0, 0.12),
    0 2px 10px rgba(0, 0, 0, 0.18);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.lang-select:hover {
  border-color: rgba(255, 255, 255, 0.45);
}

.lang-select:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.8);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -1px 4px rgba(0, 0, 0, 0.12),
    0 0 0 3px rgba(255, 255, 255, 0.25),
    0 0 16px rgba(255, 255, 255, 0.35);
}

.lang-select option {
  background: var(--bg);
  color: var(--cream);
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.kicker {
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--crimson-light);
  margin: 0 0 20px;
}

.headline {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 300;
  font-size: clamp(34px, 6.5vw, 52px);
  line-height: 1.2;
  margin: 0 0 24px;
  letter-spacing: -0.01em;
}

.body-text {
  font-size: 16px;
  line-height: 1.75;
  color: var(--muted);
  max-width: 420px;
  margin: 0 0 16px;
}

.body-text:last-of-type {
  margin-bottom: 40px;
}

.signup-form {
  display: flex;
  width: 100%;
  max-width: 420px;
  gap: 10px;
  margin-bottom: 16px;
}

.signup-form input[type="email"] {
  flex: 1;
  padding: 16px 18px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 2px;
  font-family: inherit;
  font-size: 15px;
  color: var(--cream);
}

.signup-form input[type="email"]::placeholder {
  color: rgba(247, 242, 234, 0.45);
}

.signup-form input[type="email"]:focus {
  outline: none;
  border-color: var(--crimson-light);
}

.signup-form button {
  padding: 16px 26px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.15) 45%, rgba(255, 255, 255, 0) 46%),
    linear-gradient(180deg, #ffffff 0%, #f4efe6 55%, #e4dbcc 100%);
  color: var(--ink);
  font-family: inherit;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 3px;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -1px 2px rgba(0, 0, 0, 0.08),
    0 4px 14px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.signup-form button:hover {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.2) 45%, rgba(255, 255, 255, 0) 46%),
    linear-gradient(180deg, #ffffff 0%, #ffe9d8 55%, #ffe1cc 100%);
  border-color: #ffffff;
  color: var(--ink);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 -1px 2px rgba(0, 0, 0, 0.06),
    0 8px 20px rgba(0, 0, 0, 0.3);
}

.signup-form button:active {
  transform: translateY(0);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    inset 0 1px 3px rgba(0, 0, 0, 0.15),
    0 2px 6px rgba(0, 0, 0, 0.2);
}

.signup-form.is-success input,
.signup-form.is-success button {
  opacity: 0.5;
  pointer-events: none;
}

.form-message {
  min-height: 20px;
  font-size: 13px;
  margin: 0 0 24px;
}

.form-message.success {
  color: var(--crimson-light);
}

.form-message.error {
  color: #b3261e;
}

.fine-print {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}

.footer {
  margin-top: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.footer-email {
  color: var(--muted);
  text-decoration: none;
}

.footer-email:hover {
  color: var(--crimson-light);
}

@media (max-width: 480px) {
  .signup-form {
    flex-direction: column;
  }
  .signup-form button {
    width: 100%;
  }
}
