/* ==========================================================================
   OVARO-INSPIRED ASYMMETRIC EDITORIAL GATEWAY (v3)
   Palette:
     Ovaro Blue       #0073C5 / Vivid #0288CF / Button #006DA8 (#00588A)
     Deep Ocean Navy  #102436 / Midnight #081B2B / Heading #0F1D2E
     Ice White        #F5F9FF / Soft Blue #E8F4FC / White #FFFFFF
     Verified Emerald #16865A / Mint Glow #34D399 / Error #D64550
   Typography: Plus Jakarta Sans + Inter
   ========================================================================== */

:root {
  --ov-blue: #0073C5;
  --ov-blue-vivid: #0288CF;
  --ov-blue-btn: #006DA8;
  --ov-blue-btn-hover: #00588A;
  --ov-blue-btn-active: #004973;

  --ov-midnight: #081B2B;
  --ov-navy: #102436;
  --ov-heading: #0F1D2E;
  --ov-muted: #475569;
  --ov-subtle: #64748B;

  --ov-white: #FFFFFF;
  --ov-ice: #F5F9FF;
  --ov-soft-blue: #E8F4FC;
  --ov-border: #E2E8F0;

  --ov-up: #16865A;
  --ov-up-bright: #34D399;
  --ov-up-bg: #ECFDF5;
  --ov-up-border: rgba(22, 134, 90, 0.34);

  --ov-down: #D64550;
  --ov-down-bg: #FEF2F2;
  --ov-down-border: rgba(214, 69, 80, 0.35);

  --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-std: cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html, body {
  height: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  color: var(--ov-heading);
  background: linear-gradient(145deg, #EEF6FF 0%, #F8FBFF 52%, #E6F2FC 100%);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

/* ==========================================================================
   AMBIENT LUMINOUS BACKDROP
   ========================================================================== */
.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

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

.orb-1 {
  width: min(680px, 65vw);
  height: min(680px, 65vw);
  top: -22%;
  left: -10%;
  background: radial-gradient(circle, rgba(2, 136, 207, 0.20) 0%, rgba(0, 115, 197, 0.06) 55%, transparent 75%);
  animation: orbFloatA 16s ease-in-out infinite alternate;
}

.orb-2 {
  width: min(620px, 60vw);
  height: min(620px, 60vw);
  bottom: -24%;
  right: -8%;
  background: radial-gradient(circle, rgba(16, 36, 54, 0.14) 0%, rgba(2, 136, 207, 0.08) 50%, transparent 74%);
  animation: orbFloatB 19s ease-in-out infinite alternate;
}

.orb-3 {
  width: min(420px, 45vw);
  height: min(420px, 45vw);
  top: 42%;
  left: 38%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.85) 0%, transparent 70%);
}

@keyframes orbFloatA {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(40px, 28px) scale(1.08); }
}

@keyframes orbFloatB {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-36px, -24px) scale(1.06); }
}

/* ==========================================================================
   ASYMMETRIC SPLIT CARD CONTAINER
   ========================================================================== */
.gateway-wrap {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 900px;
  animation: stageReveal 0.65s var(--ease-out) both;
}

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

.split-card {
  display: grid;
  grid-template-columns: 0.92fr 1.15fr;
  min-height: 520px;
  background: var(--ov-white);
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow:
    0 34px 80px -22px rgba(8, 27, 43, 0.22),
    0 12px 30px -12px rgba(0, 115, 197, 0.12),
    0 0 0 1px rgba(16, 36, 54, 0.05);
  transition: box-shadow 0.5s var(--ease-std);
}

.split-card.is-verified {
  box-shadow:
    0 36px 84px -22px rgba(8, 27, 43, 0.20),
    0 14px 36px -12px rgba(22, 134, 90, 0.20),
    0 0 0 1px rgba(22, 134, 90, 0.14);
}

/* ==========================================================================
   LEFT PANEL · DEEP OCEAN NAVY SCULPTURAL STAGE
   ========================================================================== */
.visual-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 32px;
  color: var(--ov-white);
  background:
    radial-gradient(circle at 82% 16%, rgba(2, 136, 207, 0.42) 0%, transparent 52%),
    radial-gradient(circle at 18% 88%, rgba(0, 115, 197, 0.34) 0%, transparent 56%),
    linear-gradient(155deg, var(--ov-midnight) 0%, var(--ov-navy) 54%, #0B2D4A 100%);
  overflow: hidden;
  isolation: isolate;
}

#auraCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.visual-mesh {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.65) 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.65) 0%, transparent 78%);
  pointer-events: none;
}

.visual-top,
.emblem-stage,
.visual-bottom {
  position: relative;
  z-index: 2;
}

/* Frosted Live Pill */
.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 15px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #E0F2FE;
  transition: background 0.4s ease, border-color 0.4s ease, color 0.4s ease;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #38BDF8;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.9);
  position: relative;
}

.live-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid rgba(56, 189, 248, 0.65);
  animation: pillPulse 2.4s var(--ease-out) infinite;
}

@keyframes pillPulse {
  0% { transform: scale(0.6); opacity: 0.85; }
  100% { transform: scale(2); opacity: 0; }
}

.split-card.is-verified .live-pill {
  background: rgba(22, 134, 90, 0.24);
  border-color: rgba(110, 231, 183, 0.36);
  color: #D1FAE5;
}

.split-card.is-verified .live-dot {
  background: var(--ov-up-bright);
  box-shadow: 0 0 12px rgba(52, 211, 153, 0.95);
}

.split-card.is-verified .live-dot::after {
  border-color: rgba(52, 211, 153, 0.7);
}

/* Sculptural Centerpiece Emblem */
.emblem-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 250px;
  position: relative;
}

.emblem-glow {
  position: absolute;
  width: 196px;
  height: 196px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(2, 136, 207, 0.44) 0%, rgba(2, 136, 207, 0.08) 58%, transparent 75%);
  filter: blur(18px);
  transition: background 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.split-card.is-verified .emblem-glow {
  background: radial-gradient(circle, rgba(52, 211, 153, 0.46) 0%, rgba(22, 134, 90, 0.14) 58%, transparent 75%);
  transform: scale(1.14);
}

.emblem-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(125, 211, 252, 0.18);
  transition: border-color 0.5s ease;
}

.ring-outer {
  width: 224px;
  height: 224px;
  border-style: dashed;
  border-color: rgba(125, 211, 252, 0.16);
  animation: spinSlow 38s linear infinite;
}

.ring-inner {
  width: 168px;
  height: 168px;
  border-top-color: rgba(56, 189, 248, 0.65);
  border-right-color: rgba(125, 211, 252, 0.14);
  border-bottom-color: rgba(125, 211, 252, 0.08);
  border-left-color: rgba(125, 211, 252, 0.14);
  animation: spinReverse 14s linear infinite;
}

.split-card.is-verified .ring-outer {
  border-color: rgba(110, 231, 183, 0.24);
}

.split-card.is-verified .ring-inner {
  border-top-color: rgba(110, 231, 183, 0.85);
}

@keyframes spinSlow {
  to { transform: rotate(360deg); }
}

@keyframes spinReverse {
  to { transform: rotate(-360deg); }
}

.emblem-disc {
  position: relative;
  width: 122px;
  height: 122px;
  border-radius: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.04) 100%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.35),
    0 20px 42px -10px rgba(4, 15, 26, 0.62);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  animation: discFloat 5.5s ease-in-out infinite alternate;
  transition: border-color 0.45s ease, box-shadow 0.45s ease, transform 0.45s var(--ease-out);
}

@keyframes discFloat {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-7px); }
}

.split-card.is-verified .emblem-disc {
  border-color: rgba(110, 231, 183, 0.46);
  box-shadow:
    inset 0 1px 1px rgba(167, 243, 208, 0.45),
    0 22px 46px -10px rgba(16, 95, 64, 0.52);
}

.emblem-svg {
  width: 68px;
  height: 68px;
}

.svg-shield-outline {
  transition: stroke 0.45s ease;
}

.split-card.is-verified .svg-shield-outline {
  stroke: url(#shieldStrokeOk);
}

.svg-state-lock {
  transform-origin: 32px 32px;
  transition: opacity 0.3s ease, transform 0.35s var(--ease-out);
}

.svg-state-check {
  stroke-dasharray: 34;
  stroke-dashoffset: 34;
  opacity: 0;
  transition: stroke-dashoffset 0.55s var(--ease-out) 0.1s, opacity 0.25s ease 0.1s;
}

.split-card.is-verified .svg-state-lock {
  opacity: 0;
  transform: scale(0.72);
}

.split-card.is-verified .svg-state-check {
  stroke-dashoffset: 0;
  opacity: 1;
}

.visual-bottom {
  display: flex;
  align-items: center;
}

.visual-note {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(224, 242, 254, 0.72);
  letter-spacing: 0.01em;
}

/* ==========================================================================
   RIGHT PANEL · CRISP EDITORIAL VERIFICATION WORKSPACE
   ========================================================================== */
.action-panel {
  display: flex;
  align-items: center;
  padding: clamp(32px, 4.5vw, 56px);
  background: var(--ov-white);
}

.action-content {
  width: 100%;
}

.eyebrow-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.eyebrow-bar {
  width: 24px;
  height: 2.5px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--ov-blue) 0%, var(--ov-blue-vivid) 100%);
  transition: background 0.4s ease, width 0.35s var(--ease-out);
}

.split-card.is-verified .eyebrow-bar {
  width: 32px;
  background: linear-gradient(90deg, var(--ov-up) 0%, var(--ov-up-bright) 100%);
}

.eyebrow-text {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ov-blue);
  transition: color 0.35s ease;
}

.split-card.is-verified .eyebrow-text {
  color: var(--ov-up);
}

.gateway-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.6vw, 2.65rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.032em;
  color: var(--ov-heading);
  margin-bottom: 14px;
}

.title-accent {
  background: linear-gradient(125deg, var(--ov-blue) 0%, var(--ov-blue-vivid) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.split-card.is-verified .title-accent {
  background: linear-gradient(125deg, var(--ov-up) 0%, #22A875 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.gateway-desc {
  font-size: 0.98rem;
  line-height: 1.62;
  color: var(--ov-muted);
  max-width: 380px;
  margin-bottom: 28px;
}

/* Clean Minimal Turnstile Box */
.turnstile-box {
  background: var(--ov-ice);
  border: 1px solid var(--ov-border);
  border-radius: 16px;
  padding: 18px 16px;
  margin-bottom: 20px;
  transition: border-color 0.3s var(--ease-std), background 0.3s var(--ease-std), box-shadow 0.3s var(--ease-std);
}

.turnstile-slot {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.box-feedback {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ov-subtle);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 0.25s var(--ease-out);
}

.box-feedback.is-visible {
  margin-top: 10px;
  max-height: 36px;
  opacity: 1;
}

.box-feedback.is-success {
  color: var(--ov-up);
  font-weight: 600;
}

.box-feedback.is-error {
  color: var(--ov-down);
}

.turnstile-box.is-verified {
  background: rgba(236, 253, 245, 0.58);
  border-color: var(--ov-up-border);
  box-shadow: 0 10px 26px -14px rgba(22, 134, 90, 0.24);
}

.turnstile-box.is-error {
  background: rgba(254, 242, 242, 0.62);
  border-color: var(--ov-down-border);
}

.turnstile-box.is-shake {
  animation: boxShake 0.4s ease-in-out;
}

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

/* Luxurious Ovaro Blue CTA Button */
.portal-btn {
  width: 100%;
  min-height: 56px;
  padding: 0 26px;
  border: none;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--ov-white);
  background: linear-gradient(135deg, var(--ov-blue-btn) 0%, var(--ov-blue-vivid) 100%);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.22s var(--ease-out),
    box-shadow 0.28s var(--ease-out),
    background 0.28s ease,
    opacity 0.25s ease;
}

.portal-btn[aria-disabled="true"] {
  background: #CBD5E1;
  color: #475569;
  box-shadow: none;
}

.portal-btn[aria-disabled="true"]:hover {
  background: #B8C4D4;
}

.portal-btn.is-ready {
  background: linear-gradient(135deg, var(--ov-blue-btn) 0%, var(--ov-blue-vivid) 100%);
  color: var(--ov-white);
  box-shadow: 0 14px 30px -10px rgba(0, 109, 168, 0.48);
}

.portal-btn.is-ready:hover {
  background: linear-gradient(135deg, var(--ov-blue-btn-hover) 0%, var(--ov-blue) 100%);
  transform: translateY(-2px);
  box-shadow: 0 18px 36px -10px rgba(0, 109, 168, 0.56);
}

.portal-btn.is-ready:active {
  background: var(--ov-blue-btn-active);
  transform: translateY(0);
}

.portal-btn:focus-visible {
  outline: 2.5px solid var(--ov-blue-vivid);
  outline-offset: 3px;
}

.btn-sheen {
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, 0.26) 50%, transparent 100%);
  transform: skewX(-18deg);
  pointer-events: none;
}

.portal-btn.is-ready:hover .btn-sheen {
  animation: sheenSweep 0.75s var(--ease-out);
}

@keyframes sheenSweep {
  from { left: -120%; }
  to { left: 160%; }
}

.btn-arrow {
  display: inline-flex;
  width: 19px;
  height: 19px;
  transition: transform 0.25s var(--ease-out);
}

.portal-btn.is-ready:hover .btn-arrow {
  transform: translateX(4px);
}

/* ==========================================================================
   RESPONSIVE (TABLET & MOBILE)
   ========================================================================== */
@media (max-width: 820px) {
  body {
    padding: 16px;
    overflow-y: auto;
  }

  .split-card {
    grid-template-columns: 1fr;
    min-height: auto;
    max-width: 470px;
    margin: 0 auto;
    border-radius: 24px;
  }

  .visual-panel {
    padding: 24px 24px 26px;
    gap: 14px;
  }

  .emblem-stage {
    height: 150px;
  }

  .ring-outer {
    width: 146px;
    height: 146px;
  }

  .ring-inner {
    width: 112px;
    height: 112px;
  }

  .emblem-disc {
    width: 86px;
    height: 86px;
    border-radius: 22px;
  }

  .emblem-svg {
    width: 48px;
    height: 48px;
  }

  .visual-bottom {
    display: none;
  }

  .action-panel {
    padding: 28px 22px 30px;
  }

  .gateway-title {
    font-size: 1.85rem;
  }

  .gateway-desc {
    font-size: 0.94rem;
    margin-bottom: 22px;
  }

  .turnstile-slot {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
