:root {
  --primary: #367C2B;
  --secondary: #FFDE00;
  --background: #367C2B;
  --panel: #ffffff;
  --text: #1b1b1b;
  --muted: #444444;
  --success: #1f6f2a;
  --error: #a32020;
  --shadow: rgba(0, 0, 0, 0.22);
}

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

body {
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--background);
}

.page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 18px;
}

.hero {
  width: min(100%, 920px);
  padding: clamp(34px, 6vw, 72px);
  border: 4px solid var(--secondary);
  border-radius: 34px;
  background: var(--panel);
  box-shadow: 0 28px 70px var(--shadow);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.corners span {
  position: absolute;
  width: 46px;
  height: 46px;
  border-color: var(--primary);
  pointer-events: none;
}

.corners span:nth-child(1) {
  top: 22px;
  left: 22px;
  border-top: 4px solid;
  border-left: 4px solid;
  border-top-left-radius: 18px;
}

.corners span:nth-child(2) {
  top: 22px;
  right: 22px;
  border-top: 4px solid;
  border-right: 4px solid;
  border-top-right-radius: 18px;
}

.corners span:nth-child(3) {
  bottom: 22px;
  left: 22px;
  border-bottom: 4px solid;
  border-left: 4px solid;
  border-bottom-left-radius: 18px;
}

.corners span:nth-child(4) {
  right: 22px;
  bottom: 22px;
  border-right: 4px solid;
  border-bottom: 4px solid;
  border-bottom-right-radius: 18px;
}

.subtitle {
  max-width: 760px;
  margin: 0 auto;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.15rem, 5vw, 4.8rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.coming-soon {
  display: inline-block;
  margin-top: 34px;
  padding: 13px 20px;
  border-radius: 999px;
  color: var(--primary);
  background: var(--secondary);
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.form-wrap {
  max-width: 620px;
  margin: 38px auto 0;
  padding: 8px;
  border: 2px solid var(--primary);
  border-radius: 22px;
  background: var(--secondary);
}

form {
  display: flex;
  gap: 10px;
}

label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

input[type="email"] {
  flex: 1;
  min-width: 0;
  border: 2px solid var(--primary);
  outline: 0;
  border-radius: 16px;
  padding: 18px 18px;
  color: var(--text);
  background: #ffffff;
  font: inherit;
}

input[type="email"]::placeholder {
  color: #767676;
}

input[type="email"]:focus-visible {
  border-color: #1f4f19;
  outline: 3px solid #1f4f19;
  outline-offset: 2px;
}

button {
  border: 2px solid #1f4f19;
  border-radius: 16px;
  padding: 18px 26px;
  color: #ffffff;
  background: var(--primary);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease;
}

button:hover {
  background: #2c6624;
  transform: translateY(-2px);
}

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

button:focus-visible {
  outline: 3px solid #1f4f19;
  outline-offset: 2px;
}

.note {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.95rem;
}

.form-message {
  max-width: 620px;
  margin: 18px auto 0;
  padding: 14px 16px;
  border-radius: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.form-message.success {
  color: #ffffff;
  background: var(--success);
}

.form-message.error {
  color: #ffffff;
  background: var(--error);
}

@media (prefers-reduced-motion: reduce) {
  button {
    transition: none;
  }

  button:hover {
    transform: none;
  }
}

@media (max-width: 640px) {
  .hero {
    border-radius: 26px;
    padding: 52px 24px;
  }

  form {
    flex-direction: column;
  }

  button {
    width: 100%;
  }

  .corners span {
    width: 32px;
    height: 32px;
  }

  .corners span:nth-child(1) {
    top: 16px;
    left: 16px;
  }

  .corners span:nth-child(2) {
    top: 16px;
    right: 16px;
  }

  .corners span:nth-child(3) {
    bottom: 16px;
    left: 16px;
  }

  .corners span:nth-child(4) {
    right: 16px;
    bottom: 16px;
  }
}
