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

:root {
  --bg: #3B7CED;
  --bg-dark: #2D62C4;
  --white: #ffffff;
}

body {
  font-family: 'Outfit', 'Noto Sans JP', sans-serif;
  background: var(--bg);
  color: var(--white);
  min-height: 100vh;
  overflow: hidden;
  position: relative;
}

/* Subtle grid texture */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

.container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  position: relative;
  z-index: 1;
}

/* Big checkmark */
.check-wrap {
  position: relative;
  width: 220px;
  height: 220px;
  margin-bottom: 48px;
}

.check-shadow {
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 160px;
  height: 24px;
  background: radial-gradient(ellipse, rgba(0,0,0,0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.check-mark {
  position: relative;
  width: 100%;
  height: 100%;
  animation: dropIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.check-mark svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 8px 32px rgba(0,0,0,0.12));
}

.check-path {
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  animation: drawCheck 0.5s ease-out 0.5s forwards;
}

/* Text */
.title {
  font-size: clamp(48px, 10vw, 80px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  text-transform: uppercase;
  margin-bottom: 12px;
  animation: fadeUp 0.5s ease 0.3s both;
  text-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.subtitle {
  font-size: clamp(13px, 2.5vw, 16px);
  font-weight: 400;
  opacity: 0.7;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 56px;
  animation: fadeUp 0.5s ease 0.45s both;
}

/* Email form */
.form-wrap {
  animation: fadeUp 0.5s ease 0.6s both;
  width: 100%;
  max-width: 420px;
}

.input-group {
  display: flex;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 60px;
  border: 1px solid rgba(255,255,255,0.2);
  padding: 5px;
  transition: all 0.3s ease;
}

.input-group:focus-within {
  background: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.4);
  box-shadow: 0 0 0 4px rgba(255,255,255,0.08);
}

.email-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--white);
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  padding: 14px 20px;
  letter-spacing: 0.01em;
}

.email-input::placeholder {
  color: rgba(255,255,255,0.5);
}

.submit-btn {
  background: var(--white);
  color: var(--bg);
  border: none;
  border-radius: 50px;
  padding: 14px 28px;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.submit-btn:hover {
  transform: scale(1.04);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.submit-btn:active {
  transform: scale(0.98);
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: scale(1);
}

/* Footer note */
.note {
  margin-top: 20px;
  font-size: 12px;
  opacity: 0.4;
  letter-spacing: 0.02em;
  text-align: center;
  animation: fadeUp 0.5s ease 0.7s both;
}

/* Success state */
.success-msg {
  text-align: center;
  animation: fadeUp 0.4s ease both;
}

.success-msg .check-inline {
  display: inline-block;
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  vertical-align: middle;
  margin-right: 8px;
  position: relative;
}

.success-msg .check-inline::after {
  content: '✓';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
}

.success-msg p {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.success-msg .sub {
  font-size: 13px;
  opacity: 0.6;
  margin-top: 8px;
  font-weight: 400;
}

/* Error message */
.error-msg {
  background: rgba(244, 67, 54, 0.9);
  color: var(--white);
  padding: 12px 20px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 14px;
  text-align: center;
  animation: fadeUp 0.3s ease both;
}

/* Corner badge */
.badge {
  position: fixed;
  top: 28px;
  left: 32px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.5;
  z-index: 2;
  animation: fadeIn 0.5s ease 0.8s both;
}

.version {
  position: fixed;
  top: 28px;
  right: 32px;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.08em;
  opacity: 0.3;
  z-index: 2;
  animation: fadeIn 0.5s ease 0.8s both;
}

/* Floating circles deco */
.deco {
  position: fixed;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.06);
  pointer-events: none;
  z-index: 0;
}

.deco-1 {
  width: 400px; height: 400px;
  top: -120px; right: -100px;
  animation: float 8s ease-in-out infinite;
}

.deco-2 {
  width: 300px; height: 300px;
  bottom: -80px; left: -60px;
  animation: float 10s ease-in-out infinite reverse;
}

.deco-3 {
  width: 180px; height: 180px;
  bottom: 20%; right: 8%;
  border-color: rgba(255,255,255,0.04);
  animation: float 12s ease-in-out infinite 2s;
}

/* Animations */
@keyframes dropIn {
  0% { opacity: 0; transform: translateY(-60px) scale(0.8); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes drawCheck {
  to { stroke-dashoffset: 0; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-12px, 16px); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

.shake {
  animation: shake 0.4s ease;
}

/* Responsive */
@media (max-width: 480px) {
  .input-group {
    flex-direction: column;
    border-radius: 20px;
    gap: 0;
  }
  .email-input {
    text-align: center;
  }
  .submit-btn {
    width: 100%;
    border-radius: 16px;
  }
  .badge, .version { display: none; }
}
