html, body { margin: 0; padding: 0; background: #0A0A0C; }
[hidden] { display: none !important; }
a { color: rgba(255,255,255,0.55); }
a:hover { color: rgba(255,255,255,0.92); }

@keyframes om-drift-a {
  0% { transform: translate(0, 0); }
  50% { transform: translate(90px, 60px); }
  100% { transform: translate(0, 0); }
}
@keyframes om-drift-b {
  0% { transform: translate(0, 0); }
  50% { transform: translate(-80px, -70px); }
  100% { transform: translate(0, 0); }
}
@keyframes om-rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

#om-page {
  min-height: 100vh;
  background: #0A0A0C;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Inter', 'Helvetica Neue', sans-serif;
  transition: background 0.4s ease;
}

#om-orb-a {
  position: absolute; top: -20%; left: -15%;
  width: 55vw; height: 55vw; min-width: 420px; min-height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(122,90,248,0.16) 0%, rgba(122,90,248,0) 65%);
  animation: om-drift-a 70s ease-in-out infinite;
  pointer-events: none;
}
#om-orb-b {
  position: absolute; bottom: -25%; right: -18%;
  width: 60vw; height: 60vw; min-width: 460px; min-height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,170,70,0.11) 0%, rgba(255,170,70,0) 65%);
  animation: om-drift-b 90s ease-in-out infinite;
  pointer-events: none;
}
#om-grain {
  position: absolute; inset: 0;
  opacity: 0.045;
  pointer-events: none;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

#om-main {
  position: relative; z-index: 1; flex: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 48px 20px;
  box-sizing: border-box;
}
#om-hero {
  width: 100%; max-width: 520px;
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 28px;
}

/* Apple-style liquid glass: gradient body, specular top rim, edge refraction, sheen overlay. */
#om-pill, #om-field-row {
  position: relative;
  background: linear-gradient(135deg, rgba(255,255,255,0.14) 0%, rgba(255,255,255,0.05) 55%, rgba(255,255,255,0.10) 100%);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  border: 1px solid rgba(255,255,255,0.14);
}
#om-pill::after, #om-field-row::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(115deg, rgba(255,255,255,0.22) 0%, rgba(255,255,255,0) 32%, rgba(255,255,255,0) 78%, rgba(255,255,255,0.07) 100%);
}
#om-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 18px; border-radius: 999px;
  box-shadow:
    inset 0 1px 1px rgba(255,255,255,0.30),
    inset 0 -1px 1px rgba(255,255,255,0.05),
    0 8px 32px rgba(0,0,0,0.35);
  color: rgba(255,255,255,0.92);
  font-size: 13px; font-weight: 600; letter-spacing: 0.14em;
  animation: om-rise 0.6s cubic-bezier(0.32, 0.72, 0, 1) 0ms both;
}
#om-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #30D158;
  box-shadow: 0 0 10px rgba(48,209,88,0.8);
}
.om-visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

#om-title {
  margin: 0; color: rgba(255,255,255,0.92);
  font-size: clamp(30px, 7vw, 46px); font-weight: 700;
  letter-spacing: -0.022em; line-height: 1.12; text-wrap: balance;
  animation: om-rise 0.6s cubic-bezier(0.32, 0.72, 0, 1) 80ms both;
}
#om-sub {
  margin: 0; color: rgba(255,255,255,0.55);
  font-size: 17px; font-weight: 400; line-height: 1.6; max-width: 420px;
  animation: om-rise 0.6s cubic-bezier(0.32, 0.72, 0, 1) 160ms both;
}

/* Signup block: the field row itself is the single glass surface, no outer card. */
#om-signup {
  width: 100%; max-width: 460px;
  animation: om-rise 0.6s cubic-bezier(0.32, 0.72, 0, 1) 240ms both;
}

#om-form {
  display: flex; flex-direction: column; gap: 12px;
  min-height: 118px; justify-content: center;
}
#om-nospam {
  margin: 0; color: rgba(255,255,255,0.35);
  font-size: 12px;
}
#om-turnstile { display: flex; justify-content: center; }
#om-turnstile:empty { display: none; }
#om-field-row {
  display: flex; align-items: stretch; gap: 6px;
  padding: 6px; border-radius: 999px;
  box-shadow:
    inset 0 1.5px 1px rgba(255,255,255,0.28),
    inset 0 -1px 1px rgba(255,255,255,0.05),
    inset 1px 1px 8px rgba(255,255,255,0.06),
    0 16px 48px rgba(0,0,0,0.45);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
#om-field-row:focus-within {
  border-color: rgba(48,209,88,0.55);
  box-shadow:
    inset 0 1.5px 1px rgba(255,255,255,0.28),
    inset 0 -1px 1px rgba(255,255,255,0.05),
    inset 1px 1px 8px rgba(255,255,255,0.06),
    0 0 0 3px rgba(48,209,88,0.18),
    0 16px 48px rgba(0,0,0,0.45);
}
#om-email {
  flex: 1 1 auto; min-width: 0;
  padding: 13px 18px; border-radius: 999px;
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.92);
  font-size: 16px; font-family: inherit;
  outline: none; box-sizing: border-box;
}
#om-submit {
  flex: 0 0 auto;
  padding: 13px 26px; border-radius: 999px; border: none;
  background: linear-gradient(180deg, #40DC66 0%, #28C24F 100%);
  color: rgba(0,10,4,0.9);
  font-size: 15px; font-weight: 600; font-family: inherit;
  cursor: pointer; outline: none; white-space: nowrap;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.38),
    inset 0 -1px 1px rgba(0,0,0,0.12),
    0 2px 12px rgba(48,209,88,0.3);
  transition: transform 0.25s cubic-bezier(0.32, 0.72, 0, 1), filter 0.2s ease;
  box-sizing: border-box;
}
#om-submit:hover { transform: scale(1.02); filter: brightness(1.06); }
#om-submit:active { transform: scale(0.97); }
#om-submit:focus-visible { box-shadow: 0 0 0 3px rgba(48,209,88,0.4), 0 0 0 1px rgba(0,0,0,0.5); }
#om-submit:disabled { cursor: default; filter: saturate(0.7) brightness(0.9); transform: none; }

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

#om-error {
  margin: 0; color: #FF6961;
  font-size: 13px; line-height: 1.4;
}

#om-success {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px;
  min-height: 118px;
  animation: om-rise 0.5s cubic-bezier(0.32, 0.72, 0, 1) both;
}
#om-check {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, rgba(48,209,88,0.28) 0%, rgba(48,209,88,0.10) 100%);
  color: #30D158;
  border: 1px solid rgba(48,209,88,0.35);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.25), 0 8px 24px rgba(0,0,0,0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 700;
}
#om-success-h { margin: 0; color: rgba(255,255,255,0.92); font-size: 17px; font-weight: 600; }
#om-success-p { margin: 0; color: rgba(255,255,255,0.55); font-size: 14px; }

#om-foot {
  position: relative; z-index: 1;
  padding: 20px 24px 28px;
  text-align: center;
  color: rgba(255,255,255,0.32);
  font-size: 11px; line-height: 1.6;
  animation: om-rise 0.6s cubic-bezier(0.32, 0.72, 0, 1) 320ms both;
}
#om-foot p { margin: 0 auto 6px; max-width: 340px; }

#om-lang { display: inline-flex; gap: 4px; margin-top: 6px; }
#om-lang button {
  padding: 4px 10px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: transparent;
  color: rgba(255,255,255,0.45);
  font-size: 11px; font-weight: 600; font-family: inherit;
  letter-spacing: 0.08em; cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
#om-lang button:hover { color: rgba(255,255,255,0.85); }
#om-lang button[aria-pressed="true"] {
  color: #30D158;
  border-color: rgba(48,209,88,0.5);
  background: rgba(48,209,88,0.08);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  #om-pill { background: rgba(30,30,34,0.92) !important; }
  #om-field-row { background: rgba(30,30,34,0.92) !important; }
}

@media (max-width: 520px) {
  #om-hero { gap: 24px !important; }
  #om-main { padding: 40px 28px !important; }
  #om-pill {
    backdrop-filter: blur(12px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(12px) saturate(180%) !important;
  }
  /* No boxes on mobile: the row dissolves and input/button become standalone pills. */
  #om-field-row {
    flex-direction: column; gap: 10px; padding: 0;
    background: transparent; border: none; box-shadow: none;
    backdrop-filter: none; -webkit-backdrop-filter: none;
    border-radius: 0;
  }
  #om-field-row::after { display: none; }
  #om-field-row:focus-within { box-shadow: none; }
  #om-email {
    background: linear-gradient(135deg, rgba(255,255,255,0.13) 0%, rgba(255,255,255,0.05) 60%, rgba(255,255,255,0.09) 100%);
    border: 1px solid rgba(255,255,255,0.14);
    backdrop-filter: blur(16px) saturate(190%);
    -webkit-backdrop-filter: blur(16px) saturate(190%);
    box-shadow: inset 0 1px 1px rgba(255,255,255,0.25), inset 0 -1px 1px rgba(255,255,255,0.04), 0 10px 30px rgba(0,0,0,0.35);
    padding: 15px 18px; text-align: center;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
  }
  #om-email:focus {
    border-color: rgba(48,209,88,0.55);
    box-shadow: inset 0 1px 1px rgba(255,255,255,0.25), 0 0 0 3px rgba(48,209,88,0.18), 0 10px 30px rgba(0,0,0,0.35);
  }
  #om-submit { width: 100%; padding: 15px 24px; font-size: 16px; }
  #om-card-label, #om-error { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  #om-orb-a, #om-orb-b, #om-pill, #om-title, #om-sub, #om-signup, #om-foot, #om-success { animation: none !important; }
}

@media (prefers-color-scheme: light) {
  html, body { background: #F4F4F6; }
  #om-page { background: #F4F4F6; }
  a { color: rgba(0,0,0,0.55); }
  a:hover { color: rgba(0,0,0,0.92); }
  #om-title { color: rgba(0,0,0,0.88); }
  #om-sub { color: rgba(0,0,0,0.55); }
  #om-foot { color: rgba(0,0,0,0.45); }
  #om-pill, #om-field-row {
    background: linear-gradient(135deg, rgba(255,255,255,0.78) 0%, rgba(255,255,255,0.45) 55%, rgba(255,255,255,0.62) 100%);
    border-color: rgba(255,255,255,0.65);
  }
  #om-pill::after, #om-field-row::after {
    background: linear-gradient(115deg, rgba(255,255,255,0.65) 0%, rgba(255,255,255,0) 32%, rgba(255,255,255,0) 78%, rgba(255,255,255,0.25) 100%);
  }
  #om-pill {
    color: rgba(0,0,0,0.82);
    box-shadow: inset 0 1px 1px rgba(255,255,255,0.95), inset 0 -1px 1px rgba(0,0,0,0.04), 0 8px 32px rgba(0,0,0,0.08);
  }
  #om-card-label { color: rgba(0,0,0,0.55); }
  #om-nospam { color: rgba(0,0,0,0.35); }
  #om-field-row {
    box-shadow:
      inset 0 1.5px 1px rgba(255,255,255,0.95),
      inset 0 -1px 1px rgba(0,0,0,0.04),
      0 16px 48px rgba(0,0,0,0.10);
  }
  #om-field-row:focus-within {
    border-color: rgba(31,168,74,0.55);
    box-shadow:
      inset 0 1.5px 1px rgba(255,255,255,0.95),
      inset 0 -1px 1px rgba(0,0,0,0.04),
      0 0 0 3px rgba(31,168,74,0.16),
      0 16px 48px rgba(0,0,0,0.10);
  }
  #om-email { color: rgba(0,0,0,0.88); }
  #om-error { color: #D93F3B; }
  #om-check {
    background: linear-gradient(135deg, rgba(31,168,74,0.22) 0%, rgba(31,168,74,0.08) 100%);
    color: #1FA84A; border-color: rgba(31,168,74,0.35);
    box-shadow: inset 0 1px 1px rgba(255,255,255,0.8), 0 8px 24px rgba(0,0,0,0.08);
  }
  #om-success-h { color: rgba(0,0,0,0.88); }
  #om-success-p { color: rgba(0,0,0,0.55); }
  #om-grain { opacity: 0.03; }
  #om-lang button { border-color: rgba(0,0,0,0.12); color: rgba(0,0,0,0.45); }
  #om-lang button:hover { color: rgba(0,0,0,0.85); }
  #om-lang button[aria-pressed="true"] {
    color: #1FA84A;
    border-color: rgba(31,168,74,0.5);
    background: rgba(31,168,74,0.08);
  }
  @media (max-width: 520px) {
    #om-email {
      background: linear-gradient(135deg, rgba(255,255,255,0.85) 0%, rgba(255,255,255,0.55) 60%, rgba(255,255,255,0.7) 100%);
      border-color: rgba(255,255,255,0.7);
      box-shadow: inset 0 1px 1px rgba(255,255,255,0.95), inset 0 -1px 1px rgba(0,0,0,0.03), 0 10px 30px rgba(0,0,0,0.08);
    }
    #om-email:focus {
      border-color: rgba(31,168,74,0.55);
      box-shadow: inset 0 1px 1px rgba(255,255,255,0.95), 0 0 0 3px rgba(31,168,74,0.16), 0 10px 30px rgba(0,0,0,0.08);
    }
  }
  @supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    #om-pill { background: rgba(250,250,252,0.94) !important; }
    #om-field-row { background: rgba(250,250,252,0.94) !important; }
  }
}
