/* SSMP coming soon page */

:root {
  --bg: #0a0a0b;
  --text: #f2f2f2;
  --muted: #8e8f94;
  --label: #b8b8bd;
  --placeholder: #6b6c71;
  --note: #8c8d92;
  --footer: #a8aab2;
  --silver: #c9cbd0;
  --btn: #ededee;
  --glass: rgba(255, 255, 255, 0.04);
  --glass-line: rgba(255, 255, 255, 0.10);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

button, input, textarea { font: inherit; color: inherit; }

/* ---------- Background ---------- */

.bg {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  will-change: transform;
}

.blob-1 {
  width: 62vw; height: 58vh;
  left: -15vw; bottom: -14vh;
  background: linear-gradient(120deg, #2a2b2f, #9a9da4 50%, #3a3b40);
  opacity: 0.9;
  animation: drift-1 26s ease-in-out infinite alternate;
}

.blob-2 {
  width: 54vw; height: 52vh;
  right: -14vw; top: -14vh;
  background: linear-gradient(200deg, #1e1f22, #c9cbd0 50%, #2c2d31);
  opacity: 0.75;
  animation: drift-2 32s ease-in-out infinite alternate;
}

.blob-3 {
  width: 44vw; height: 32vh;
  left: 36vw; bottom: -18vh;
  background: linear-gradient(90deg, #5e6168, #e4e5e8 50%, #4a4c52);
  opacity: 0.4;
  animation: drift-3 22s ease-in-out infinite alternate;
}

.sheen {
  position: absolute;
  width: 18vw; height: 160vh;
  top: -30vh; left: 58vw;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  filter: blur(60px);
  transform: rotate(28deg);
  animation: sheen 14s ease-in-out infinite;
}

.vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 38% 48% at 50% 50%, rgba(10, 10, 11, 0.6), transparent 100%),
    radial-gradient(ellipse 75% 75% at 50% 50%, transparent 30%, rgba(10, 10, 11, 0.55) 100%);
}

@keyframes drift-1 {
  0%   { transform: translate(0, 0) rotate(-18deg) scale(1); }
  100% { transform: translate(8vw, -6vh) rotate(-8deg) scale(1.1); }
}
@keyframes drift-2 {
  0%   { transform: translate(0, 0) rotate(24deg) scale(1); }
  100% { transform: translate(-10vw, 8vh) rotate(12deg) scale(1.12); }
}
@keyframes drift-3 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-12vw, -4vh) scale(1.15); }
}
@keyframes sheen {
  0%, 100% { transform: translateX(-12vw) rotate(28deg); opacity: 0.4; }
  50%      { transform: translateX(10vw) rotate(28deg); opacity: 1; }
}

/* ---------- Layout ---------- */

.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 20px 56px 24px;
}

.header,
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 44px;
  padding: 24px 0;
}

/* ---------- Header ---------- */

.logo { display: inline-flex; }
.logo img { display: block; height: 28px; width: auto; }

.lang {
  display: inline-flex;
  gap: 2px;
  padding: 2px;
  border-radius: 6px;
  background: var(--glass);
  border: 1px solid var(--glass-line);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.lang-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  padding: 5px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.lang-btn:hover { color: var(--text); }
.lang-btn[aria-pressed="true"] { background: rgba(255, 255, 255, 0.10); color: var(--text); }

/* ---------- Intro ---------- */

.intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px 5px 9px;
  border-radius: 6px;
  background: var(--glass);
  border: 1px solid var(--glass-line);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(242, 242, 242, 0.85);
}
.tag-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--silver); }

.title {
  margin: 0;
  font-size: clamp(38px, 5vw, 72px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.035em;
}
.title .muted { color: var(--muted); }

.sub {
  margin: 0;
  max-width: 340px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
}

/* ---------- Form ---------- */

.card {
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--glass-line);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.hp { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

.field { display: flex; flex-direction: column; gap: 6px; }

.field label {
  font-size: 12px;
  font-weight: 500;
  color: var(--label);
}

.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 14px;
  line-height: 1.4;
  outline: none;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.field textarea { height: 96px; resize: none; display: block; }

.field input::placeholder,
.field textarea::placeholder { color: var(--placeholder); }

.field input:hover,
.field textarea:hover { background: rgba(255, 255, 255, 0.075); }

.field input:focus,
.field textarea:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.05);
}

.field.invalid input,
.field.invalid textarea { border-color: rgba(255, 120, 120, 0.55); }

.submit-group { display: flex; flex-direction: column; gap: 8px; padding-top: 6px; }

/* Button: dark box grows from the arrow to fill the button on hover */
.btn {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 44px;
  padding: 6px 6px 6px 16px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: var(--btn);
  color: var(--bg);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  overflow: hidden;
  transition: box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

.btn::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 6px;
  right: 6px;
  width: 32px;
  height: 32px;
  border-radius: 4px;
  background: #131315;
  transition: all 0.4s var(--ease);
}

.btn-label { transition: color 0.3s var(--ease); }

.btn-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 4px;
  color: #fff;
  background: transparent;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.35s var(--ease);
}

.btn:hover,
.btn:focus-visible {
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 0 28px rgba(217, 219, 230, 0.22);
  outline: none;
}
.btn:hover::before,
.btn:focus-visible::before {
  top: 0; right: 0;
  width: 100%;
  height: 100%;
  border-radius: 5px;
}
.btn:hover .btn-label,
.btn:focus-visible .btn-label { color: #fff; }
.btn:hover .btn-icon,
.btn:focus-visible .btn-icon { background: var(--btn); color: var(--bg); transform: translateX(-1px); }
.btn:hover .btn-icon svg,
.btn:focus-visible .btn-icon svg { transform: translateX(2px); }
.btn-icon svg { transition: transform 0.35s var(--ease); }

.btn:active { transform: scale(0.99); }
.btn[disabled] { cursor: progress; opacity: 0.8; }

.note {
  margin: 0;
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
  color: var(--note);
  min-height: 1.5em;
}
.note.success { color: #c9e7cf; }
.note.error { color: #f0b4b4; }

/* ---------- Footer ---------- */

.copy { font-size: 11px; color: var(--footer); }

.social { display: flex; gap: 6px; }
.social a {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: var(--glass);
  border: 1px solid var(--glass-line);
  color: #c4c5ca;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.social a:hover { background: rgba(255, 255, 255, 0.1); color: #fff; border-color: rgba(255, 255, 255, 0.2); }
.social svg { width: 13px; height: 13px; }

/* ---------- Entrance animation ---------- */

.reveal { opacity: 0; transform: translateY(14px); animation: reveal 0.9s var(--ease) 0.1s forwards; }
.reveal-2 { animation-delay: 0.25s; }
@keyframes reveal { to { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */

/* Short laptop screens: tighten so the page never needs to scroll */
@media (max-height: 820px) and (min-width: 701px) {
  .main { gap: 32px; padding: 12px 0; }
  .intro { gap: 14px; }
  .title { font-size: clamp(38px, 4.4vw, 60px); }
  .card { gap: 12px; padding: 18px; }
  .field textarea { height: 76px; }
}
@media (max-height: 700px) and (min-width: 701px) {
  .main { gap: 24px; }
  .title { font-size: 48px; }
  .field input, .field textarea { padding: 10px 12px; }
  .field textarea { height: 64px; }
}

@media (max-width: 700px) {
  .page { padding: 16px 20px 20px; }
  .main { gap: 36px; padding: 40px 0 32px; }
  .intro { gap: 14px; }
  .title { font-size: 38px; }
  .sub { font-size: 13px; max-width: 290px; }
  .card { padding: 16px; }
  .field textarea { height: 84px; }
  .blob { filter: blur(70px); }
  .blob-1 { width: 95vw; height: 40vh; }
  .blob-2 { width: 85vw; height: 36vh; }
  .blob-3 { width: 70vw; height: 22vh; }
  .sheen { width: 30vw; }
}

@media (max-width: 700px) and (max-height: 760px) {
  .main { gap: 24px; padding: 20px 0; }
  .field textarea { height: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  .blob, .sheen { animation: none; }
  .reveal { animation: none; opacity: 1; transform: none; }
  .btn, .btn::before, .btn-icon, .btn-icon svg, .btn-label { transition: none; }
}
