/* SUBEX sign-in: pump control room */
* { box-sizing: border-box; }
html, body { height: 100%; }
body.cr { margin: 0; min-height: 100vh; font-family: "Plus Jakarta Sans", "Segoe UI", Tahoma, Arial, sans-serif; color: #e6f5ec; overflow-x: hidden;
  background: radial-gradient(80% 60% at 20% 0%, #17603f 0%, transparent 60%), radial-gradient(60% 55% at 90% 85%, #0a5a5a 0%, transparent 60%), linear-gradient(180deg, #072d1d 0%, #031409 100%);
  display: grid; grid-template-rows: auto 1fr auto auto; }
a { color: #7ff0bf; }

/* water */
.cr-water { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.cr-glow { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; }
.cr-glow.g1 { width: 520px; height: 520px; left: 38%; top: 12%; background: radial-gradient(circle, #1fbf86 0%, transparent 70%); animation: glow 10s ease-in-out infinite alternate; }
.cr-glow.g2 { width: 420px; height: 420px; right: -80px; bottom: 10%; background: radial-gradient(circle, #0fa3a3 0%, transparent 70%); animation: glow 13s ease-in-out infinite alternate-reverse; }
@keyframes glow { from { transform: translate(0, 0) scale(1); } to { transform: translate(-40px, 30px) scale(1.12); } }
.cr-bubbles i { position: absolute; bottom: -40px; border-radius: 50%; border: 1.5px solid rgba(190,255,230,.42); background: radial-gradient(circle at 35% 35%, rgba(255,255,255,.55), rgba(255,255,255,.04) 60%); animation: crRise linear infinite; }
@keyframes crRise { 0% { transform: translate(0, 0); opacity: 0; } 10% { opacity: 1; } 50% { transform: translate(14px, -50vh); } 100% { transform: translate(-10px, -108vh); opacity: 0; } }
.cr-waves { position: absolute; left: -2%; width: 104%; bottom: 0; height: 150px; animation: waves 9s ease-in-out infinite alternate; }
.cr-waves path:first-child { fill: rgba(20,163,122,.16); } .cr-waves path:last-child { fill: rgba(15,163,163,.14); }
@keyframes waves { from { transform: translateX(0); } to { transform: translateX(-24px); } }

/* top bar */
.cr-top { position: relative; z-index: 3; display: flex; align-items: center; gap: 18px; padding: 18px 28px; }
.cr-logo { background: #fff; border-radius: 16px; padding: 8px 14px; box-shadow: 0 16px 40px -16px rgba(0,0,0,.7); }
.cr-logo img { height: 56px; display: block; }
.cr-title { font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; color: #9ad9bb; display: flex; align-items: center; gap: 10px; }
.cr-dot { width: 8px; height: 8px; border-radius: 50%; background: #5be3a6; box-shadow: 0 0 0 0 rgba(91,227,166,.7); animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(91,227,166,.6); } 100% { box-shadow: 0 0 0 12px rgba(91,227,166,0); } }
.lang-switch { margin-left: auto; display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); }
[dir="rtl"] .lang-switch { margin-left: 0; margin-right: auto; }
.lang-switch a { padding: 5px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 700; color: #d6eee2; text-decoration: none; }
.lang-switch a.on { background: #fff; color: #0b3a26; }

/* stage */
.cr-stage { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: 10px; padding: 0 5vw; max-width: 1400px; width: 100%; margin: 0 auto; }
.cr-pitch .cr-eyebrow { font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: #7ff0bf; margin: 0 0 10px; }
.cr-pitch h1 { font-size: clamp(32px, 3.6vw, 54px); line-height: 1.04; letter-spacing: -.03em; margin: 0 0 16px; font-weight: 800; color: #fff; }
.cr-pitch h1 span { display: block; background: linear-gradient(90deg, #5be3a6, #19c2b0 45%, #a7f3d0 85%, #5be3a6); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 6s linear infinite; }
@keyframes shimmer { to { background-position: 200% center; } }
.cr-lead { font-size: 16px; line-height: 1.6; color: #b9dccb; max-width: 470px; margin: 0 0 22px; }
.cr-pitch ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.cr-pitch li { display: flex; align-items: center; gap: 12px; font-size: 14.5px; color: #dff3e9; }
.cr-pitch li b { font-family: "JetBrains Mono", monospace; font-size: 12px; color: #062a1b; background: linear-gradient(135deg, #5be3a6, #19c2b0); border-radius: 8px; padding: 4px 7px; }

.cr-pump { position: relative; aspect-ratio: 1 / 1; max-height: 64vh; justify-self: center; width: min(100%, 64vh); }
.cr-ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.cr-ticks line { stroke: rgba(190,255,230,.35); stroke-width: 1.2; }
.cr-ticks, .cr-arc, .cr-arc2 { transform-origin: 200px 200px; }
.cr-ticks { animation: spin 60s linear infinite; }
.cr-arc { animation: spin 7s linear infinite; filter: drop-shadow(0 0 6px rgba(91,227,166,.8)); }
.cr-arc2 { animation: spin 22s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.cr-pump model-viewer { position: absolute; inset: 11%; width: 78%; height: 78%; --poster-color: transparent; background: transparent; }
.cr-read { position: absolute; padding: 10px 14px; border-radius: 14px; background: rgba(4,26,16,.55); border: 1px solid rgba(127,240,191,.25); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 12px 30px -12px rgba(0,0,0,.6); min-width: 116px; }
.cr-read span { display: block; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: #8fcfb1; }
.cr-read b { font-family: "JetBrains Mono", monospace; font-size: 24px; color: #fff; }
.cr-read i { font-style: normal; font-size: 12px; color: #8fcfb1; margin-left: 4px; }
.cr-read.r1 { left: -4%; top: 22%; } .cr-read.r2 { right: -4%; top: 34%; } .cr-read.r3 { left: 2%; bottom: 14%; }
.cr-model { position: absolute; left: 0; right: 0; bottom: -6px; text-align: center; font-size: 11.5px; color: #8fcfb1; letter-spacing: .04em; }

/* console */
.cr-console { position: relative; z-index: 4; width: min(980px, calc(100% - 32px)); margin: 6px auto 0; padding: 14px; border-radius: 26px;
  background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,.06)); border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 30px 80px -24px rgba(0,0,0,.75), inset 0 1px 0 rgba(255,255,255,.25); }
.cr-fields { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: stretch; }
.cr-f { display: flex; flex-direction: column; gap: 4px; padding: 9px 16px; border-radius: 18px; background: rgba(2,18,11,.55); border: 1px solid rgba(127,240,191,.18); transition: border-color .2s, box-shadow .2s; }
.cr-f:focus-within { border-color: #5be3a6; box-shadow: 0 0 0 4px rgba(91,227,166,.15); }
.cr-f span { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: #8fcfb1; }
.cr-f input { background: transparent; border: 0; outline: 0; color: #fff; font: 600 16px "Plus Jakarta Sans", sans-serif; padding: 2px 0; width: 100%; }
.cr-f input::placeholder { color: rgba(214,238,226,.35); font-weight: 500; }
.cr-start { position: relative; display: flex; align-items: center; gap: 10px; padding: 0 26px 0 18px; border: 0; border-radius: 999px; cursor: pointer; color: #042014; font: 800 16px "Plus Jakarta Sans", sans-serif;
  background: radial-gradient(circle at 30% 30%, #b6ffd9 0%, #5be3a6 35%, #19c2b0 100%); box-shadow: 0 0 0 4px rgba(91,227,166,.18), 0 14px 34px -10px rgba(25,194,176,.9); transition: transform .15s, box-shadow .2s; }
.cr-start svg { width: 28px; height: 28px; }
.cr-start:hover { transform: translateY(-1px) scale(1.02); box-shadow: 0 0 0 6px rgba(91,227,166,.22), 0 18px 40px -10px rgba(25,194,176,1); }
.cr-start.ready { animation: readyPulse 1.2s ease-in-out infinite; }
@keyframes readyPulse { 50% { box-shadow: 0 0 0 10px rgba(91,227,166,.25), 0 18px 40px -10px rgba(25,194,176,1); } }
.cr-under { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; padding: 0 4px; flex-wrap: wrap; }
.cr-key { display: inline-flex; align-items: center; gap: 10px; border: 1px dashed rgba(127,240,191,.45); background: rgba(91,227,166,.08); color: #d9f5e8; border-radius: 14px; padding: 8px 14px; cursor: pointer; font: 500 13px "Plus Jakarta Sans", sans-serif; transition: background .2s, transform .2s; }
.cr-key:hover { background: rgba(91,227,166,.16); transform: translateY(-1px); }
.cr-key svg { width: 22px; height: 22px; color: #5be3a6; flex: none; }
.cr-key code { font-family: "JetBrains Mono", monospace; color: #fff; background: rgba(0,0,0,.25); padding: 1px 6px; border-radius: 6px; }
.cr-key.used { border-style: solid; }
.cr-reg { font-weight: 700; font-size: 14px; text-decoration: none; }
.cr-msg { margin: 0 0 10px; padding: 9px 14px; border-radius: 12px; font-size: 14px; font-weight: 600; }
.cr-msg.err { background: rgba(239,68,68,.16); border: 1px solid rgba(239,68,68,.4); color: #ffd4d4; }
.cr-msg.ok { background: rgba(91,227,166,.14); border: 1px solid rgba(91,227,166,.4); color: #d9f5e8; }
.cr-legal { position: relative; z-index: 3; text-align: center; font-size: 12px; color: #93bfa9; margin: 14px 16px 18px; }
.cr-legal span { display: inline-block; font-weight: 800; letter-spacing: .1em; color: #f6dd8c; border: 1px solid rgba(246,221,140,.4); border-radius: 6px; padding: 1px 7px; margin-right: 6px; }

/* "start the pump" */
body.starting .cr-arc { animation-duration: .6s; }
body.starting .cr-ticks { animation-duration: 3s; }
body.starting .cr-start { transform: scale(.96); box-shadow: 0 0 0 14px rgba(91,227,166,.25), 0 0 60px rgba(91,227,166,.9); }
body.starting .cr-bubbles i { animation-duration: 3s !important; }

/* responsive */
@media (max-width: 980px) {
  .cr-stage { grid-template-columns: 1fr; padding: 0 18px; }
  .cr-pitch { text-align: center; } .cr-pitch ul { justify-items: center; } .cr-lead { margin-left: auto; margin-right: auto; }
  .cr-pump { width: min(86vw, 420px); max-height: none; order: -1; }
  .cr-fields { grid-template-columns: 1fr; }
  .cr-start { justify-content: center; padding: 14px; }
  .cr-top { padding: 14px 16px; } .cr-title { display: none; } .cr-logo img { height: 44px; }
  .cr-read b { font-size: 18px; } .cr-read { min-width: 92px; padding: 8px 10px; }
}
@media (max-width: 980px) { .cr-pitch ul { display: none; } }
@media (prefers-reduced-motion: reduce) { .cr-bubbles, .cr-waves, .cr-glow { display: none; } .cr-ticks, .cr-arc, .cr-arc2, .cr-pitch h1 span { animation: none; } }
