/* LEGXIS — password gate styles, lifted verbatim from the inline <style>
   block of the original legxis.com index.html. Retained at Jakob's
   instruction of 24 September 2026: same mechanism as before.

   NOTE: this is a client-side gate. Briefing C-05/§13.1 classifies it as
   insecure because protected content stays in the page source. In THIS build
   that objection has no bite — there is no confidential content behind it, so
   the gate limits casual viewing only. It is not, and must not be treated as,
   the Investor Room. */


  /* ══════════════════════════════════════════════
     PASSWORD GATE
  ══════════════════════════════════════════════ */
  @property --gate-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
  }
  @keyframes gate-rotate-shine { to { --gate-angle: 360deg; } }
  @keyframes gate-holo-sweep {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
  }
  @keyframes gate-shake {
    0%,100% { transform: translateX(0); }
    18%     { transform: translateX(-9px); }
    36%     { transform: translateX(9px); }
    54%     { transform: translateX(-6px); }
    72%     { transform: translateX(6px); }
  }

  #gate {
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.78s cubic-bezier(0.76,0,0.24,1);
  }
  #gate.gate-out { transform: translateY(-100%); pointer-events: none; }

  #gate::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
    opacity: 0.035;
    pointer-events: none;
  }

  .gate-glow {
    position: absolute;
    width: 640px;
    height: 640px;
    border-radius: 50%;
    background: radial-gradient(circle,
      rgba(200,182,248,0.055) 0%,
      rgba(148,215,238,0.028) 45%,
      transparent 70%);
    pointer-events: none;
  }

  .gate-shine {
    position: relative;
    z-index: 1;
    width: min(460px, calc(100vw - 40px));
    padding: 1.5px;
    border-radius: 30px;
    background: conic-gradient(from var(--gate-angle),
      transparent 18%,
      rgba(255,255,255,0.75) 34%,
      rgba(215,198,255,0.55) 42%,
      rgba(148,215,238,0.35) 48%,
      transparent 60%);
    animation: gate-rotate-shine 4s linear infinite;
  }

  .gate-card {
    background: rgb(16,16,26);
    border-radius: 28px;
    padding: 52px 44px 44px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .gate-wordmark {
    margin-bottom: 10px;
    line-height: 1;
  }

  .gate-label {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 9.5px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    margin-bottom: 24px;
    background: linear-gradient(90deg,
      rgba(200,182,248,0.55),
      rgba(240,235,255,0.85),
      rgba(148,215,238,0.55),
      rgba(240,235,255,0.85),
      rgba(200,182,248,0.55));
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gate-holo-sweep 8s linear infinite;
  }

  .gate-sub {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.65;
    color: rgba(255,255,255,0.82);
    max-width: 290px;
    margin: 0 auto 36px;
  }

  .gate-input-shine {
    width: 100%;
    padding: 1.5px;
    border-radius: 14px;
    background: conic-gradient(from var(--gate-angle),
      transparent 25%,
      rgba(255,255,255,0.45) 38%,
      rgba(200,182,248,0.30) 46%,
      transparent 60%);
    animation: gate-rotate-shine 5s linear infinite;
    margin-bottom: 12px;
  }

  .gate-input {
    width: 100%;
    background: rgb(24,24,38);
    border: none;
    border-radius: 12px;
    padding: 15px 20px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    letter-spacing: 0.12em;
    color: #F0F0F2;
    text-align: center;
    outline: none;
    display: block;
  }
  .gate-input::placeholder {
    color: rgba(255,255,255,0.45);
    letter-spacing: 0.18em;
    font-size: 13px;
  }
  .gate-input.shaking { animation: gate-shake 0.42s ease; }

  .gate-btn-shine {
    width: 100%;
    padding: 1.5px;
    border-radius: 14px;
    background: conic-gradient(from var(--gate-angle),
      transparent 18%,
      rgba(255,255,255,0.80) 34%,
      rgba(215,198,255,0.60) 42%,
      transparent 58%);
    animation: gate-rotate-shine 3.5s linear infinite;
    margin-bottom: 18px;
  }

  .gate-btn {
    width: 100%;
    background: rgb(28,28,46);
    border: none;
    border-radius: 12px;
    padding: 15px 20px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.06em;
    color: #ffffff;
    cursor: pointer;
    transition: background 0.22s ease;
  }
  .gate-btn:hover { background: rgb(38,38,62); }

  .gate-error {
    font-family: 'Inter', sans-serif;
    font-size: 11.5px;
    letter-spacing: 0.06em;
    color: rgba(255,148,148,0.85);
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.28s ease, transform 0.28s ease;
    pointer-events: none;
  }
  .gate-error.visible { opacity: 1; transform: translateY(0); }

  .gate-request {
    display: inline-block;
    margin-top: 22px;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.90);
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.35);
    padding-bottom: 1px;
    transition: color 0.2s, border-color 0.2s;
  }
  .gate-request:hover { color: rgba(200,182,248,0.75); border-color: rgba(200,182,248,0.35); }

  @media (max-width: 480px) {
    .gate-card { padding: 40px 22px 34px; }
    .gate-sub  { font-size: 13px; }
  }
