:root {
    --bg-base: #050505;
    --text-primary: #f6f7fb;
    --doc-bg: #05070f;
    --doc-accent: #ff5f9a;
    --doc-secondary: #0a86ff;
    --doc-border: rgba(255, 255, 255, 0.15);
    --doc-gradient: linear-gradient(135deg, rgba(255,95,154,0.2), rgba(10,134,255,0.2));
  }

  * {
    box-sizing: border-box;
  }

  html,
  body {
    margin: 0;
    min-height: 100vh;
    background: transparent;
    color: var(--text-primary);
    font-family: var(--font-space-grotesk), 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  }

  body {
    overflow-y: auto;
    overflow-x: hidden;
  }

  .page-background {
    position: fixed;
    inset: 0;
    z-index: -2;
    overflow: hidden;
  }

  .page-background::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(5, 5, 5, 0.12), rgba(5, 5, 5, 0.65));
    pointer-events: none;
  }

  .page-background__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .page-wrapper {
    position: relative;
    min-height: 100vh;
    padding: 28px 32px 48px;
  }

  .topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    margin: 0;
    padding: 12px 28px;
    background: transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    z-index: 90;
  }

  .topbar__brand {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
    margin-top: 1cm;
  }

  .topbar__actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .brand-logo {
    width: 194px;
  }

  .top-link {
    border-radius: 999px;
    border: 1px solid #000;
    background: rgba(255, 255, 255, 0.95);
    color: #0f172a;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    letter-spacing: 0.35em;
    transition: border 0.2s ease, transform 0.2s ease, background 0.2s ease;
  }

  .top-link:hover {
    background: #ffffff;
    border-color: #000000;
    transform: translateY(-2px);
  }

  .top-link--main {
    background: rgba(255, 255, 255, 0.92);
  }

  .top-link--login {
    background: #050505;
    color: #ffffff;
    border-color: #050505;
  }
  .top-link--login:hover {
    background: #111;
    color: #ffffff;
  }

  .top-auth {
    padding: 8px 18px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: #0f172a;
    color: #ffffff;
    text-transform: uppercase;
    font-size: 0.76rem;
    letter-spacing: 0.28em;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  }

  .top-auth:hover {
    background: #020617;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.35);
    transform: translateY(-2px);
  }

  .documentation-access {
    margin: 430px auto 0;
    margin-bottom: 8cm;
    max-width: 960px;
    background: radial-gradient(circle at top right, rgba(255, 95, 154, 0.25), transparent 55%),
      #05070f;
    border-radius: 32px;
    padding: 48px;
    border: 1px solid var(--doc-border);
    box-shadow: 0 60px 140px rgba(0, 0, 0, 0.75), 0 0 60px rgba(255, 95, 154, 0.15);
    position: relative;
    overflow: hidden;
  }

  .documentation-access::after,
  .documentation-access::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--doc-gradient);
    opacity: 0.4;
    filter: blur(25px);
    z-index: 0;
    pointer-events: none;
  }

  .documentation-access::before {
    transform: translate(-40%, -20%);
  }

  .documentation-access__grid {
    position: relative;
    display: flex;
    align-items: center;
    gap: 48px;
    z-index: 1;
    flex-wrap: nowrap;
  }

  .documentation-access__visual {
    flex: 0 0 220px;
    align-self: center;
    display: flex;
    justify-content: center;
    align-items: center;
    order: 2;
  }

  .documentation-access__visual img {
    width: 100%;
    max-width: 220px;
  }

  .documentation-access__text {
    flex: 1;
  }

  .documentation-access__text {
    order: 1;
  }

  .documentation-access__visual img {
    width: 220px;
    height: auto;
    border-radius: 24px;
    box-shadow: 0 40px 90px rgba(10, 10, 30, 0.9), 0 0 60px rgba(255, 95, 154, 0.45);
    transform: translateZ(0);
    animation: docGlow 1.6s ease infinite alternate;
  }

  .documentation-access__visual {
    transform: translateX(-18px);
  }

  .documentation-access__text {
    font-family: var(--font-sora), sans-serif;
  }

  .documentation-access__eyebrow {
    letter-spacing: 0.6em;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 8px;
  }

  .documentation-access__title {
    font-family: var(--font-unica-one), cursive;
    font-size: clamp(2.4rem, 3vw, 3rem);
    margin: 0;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #fff;
  }

  .documentation-access__title--long {
    font-size: clamp(1.65rem, 2.1vw, 2.2rem);
    letter-spacing: 0.08em;
    white-space: nowrap;
  }

  .documentation-access__copy {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin: 16px 0 0;
  }

  .doc-login-button {
    align-self: flex-start;
    margin-top: 28px;
    padding: 14px 32px;
    border-radius: 999px;
    border: 2px solid var(--doc-accent);
    background: transparent;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-weight: 600;
    font-size: 0.85rem;
    transition: transform 0.3s ease, background 0.3s ease;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    animation: docButtonPulse 2.1s ease infinite alternate;
  }

  .doc-login-button::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.25), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .doc-login-button:hover {
    background: var(--doc-accent);
    color: #050505;
    transform: translateY(-3px);
  }

  .doc-login-button:hover::after {
    opacity: 1;
  }

  @keyframes docGlow {
    from {
      filter: drop-shadow(0 0 16px rgba(255, 255, 255, 0.35));
    }
    to {
      filter: drop-shadow(0 0 40px rgba(255, 95, 154, 0.7));
    }
  }

  @keyframes docButtonPulse {
    from {
      box-shadow: inset 0 0 10px rgba(255, 95, 154, 0.4);
    }
    to {
      box-shadow: inset 0 0 20px rgba(10, 134, 255, 0.6);
    }
  }

  .small {
    font-size: 0.82rem;
    color: #0f172a;
    letter-spacing: 0.08em;
  }

  .video-panel-wrap {
    position: relative;
    margin: 150px auto 0;
    max-width: min(960px, 90vw);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .video-panel {
    width: 100%;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6), 0 0 30px rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.35);
    overflow: hidden;
  }

  .video-panel-notice {
    width: fit-content;
    margin: 120px auto -120px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: #000000;
    background: #ffffff;
    padding: 0.6rem 1.6rem;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  }

  .video-frame {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    overflow: hidden;
  }

  .video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
  }

  .scroll-indicator {
    position: absolute;
    right: -300px;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(5, 7, 15, 0.85);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.35rem 0.85rem;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.45);
    animation: scrollHint 1.4s ease-in-out infinite;
    pointer-events: none;
  }

  .scroll-indicator__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(0, 0, 0, 0.55);
    font-size: 1.2rem;
    font-weight: 700;
  }

  @keyframes scrollHint {
    0% {
      transform: translateY(-50%) translateY(0);
    }
    50% {
      transform: translateY(-50%) translateY(8px);
    }
    100% {
      transform: translateY(-50%) translateY(0);
    }
  }

  @media (max-width: 768px) {
    .scroll-indicator {
      right: 50%;
      top: calc(100% + 28px);
      transform: translateX(50%);
    }
  }

  .modal-root {
    position: fixed;
    inset: 0;
    z-index: 1050;
    display: none;
    align-items: center;
    justify-content: center;
    overflow: auto;
    padding: 28px;
    background: rgba(0, 0, 0, 0.45);
  }

  .modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 5, 5, 0.8);
    pointer-events: none;
  }

  .modal-panel {
    position: relative;
    z-index: 1;
    border-radius: 24px;
    padding: 32px;
    max-width: 480px;
    width: 100%;
    background: rgba(7, 7, 11, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(16px);
  }

  .modal-panel--light {
    background: #ffffff;
    color: #0f172a;
  }

  .nda-panel {
    max-width: 520px;
    background: radial-gradient(circle at 18% 24%, rgba(255, 215, 160, 0.45), transparent 55%),
      linear-gradient(160deg, rgba(12, 11, 28, 0.92), rgba(7, 9, 18, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.35);
    padding: 36px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    font-family: var(--font-space-grotesk), 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    backdrop-filter: blur(32px);
    box-shadow: 0 40px 120px rgba(2, 2, 8, 0.85), 0 0 40px rgba(255, 215, 160, 0.25);
    color: rgba(255, 255, 255, 0.95);
  }

  .nda-panel h3 {
    font-size: clamp(1.4rem, 2.5vw, 1.9rem);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin: 0;
    color: #fff3dc;
  }

  .nda-panel .nda-text {
    font-size: 0.95rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    font-family: var(--font-sora), sans-serif;
    letter-spacing: 0.02em;
  }

  .nda-doss {
    display: flex;
    flex-direction: column;
    gap: 18px;
  }

  .nda-confirm__label {
    display: inline-flex;
    gap: 0.65rem;
    align-items: center;
    font-size: 0.95rem;
    text-transform: none;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
  }

  .nda-confirm__label input {
    width: 18px;
    height: 18px;
    accent-color: #ff7fae;
  }

  .nda-panel button.btn-accent {
    align-self: flex-start;
    padding: 12px 28px;
    border-radius: 999px;
    background: linear-gradient(130deg, #ff6a85, #ffb347);
    border: none;
    box-shadow: 0 12px 30px rgba(255, 106, 133, 0.45);
    text-transform: uppercase;
    letter-spacing: 0.35em;
    font-weight: 600;
    font-size: 0.85rem;
  }


  .close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 52px;
    height: 52px;
    border: none;
    background: rgba(255, 255, 255, 0.08);
    color: inherit;
    font-size: 36px;
    font-weight: 700;
    letter-spacing: 0.08em;
    cursor: pointer;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s ease, transform 0.25s ease;
  }

  .close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
  }

  .login-modal {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .login-modal__header {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .login-modal__header h3 {
    font-weight: 800;
  }

  .login-modal__eyebrow {
    margin: 0;
    font-size: 0.75rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
  }

  .login-modal__subtitle {
    margin: 0;
    line-height: 1.6;
  }

  .login-modal__form {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .login-modal__form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.9rem;
  }

  .login-modal__form input {
    padding: 14px;
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.18);
    background: rgba(15, 23, 42, 0.04);
  }

  .password-field {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .password-toggle {
    position: static;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.18);
    background: rgba(15, 23, 42, 0.04);
    color: rgba(15, 23, 42, 0.7);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
  }

  .password-toggle:hover {
    border-color: rgba(15, 23, 42, 0.4);
    color: rgba(15, 23, 42, 0.95);
    transform: scale(1.05);
  }

  .password-toggle__icon {
    position: relative;
    width: 18px;
    height: 10px;
    border: 1.6px solid currentColor;
    border-radius: 999px;
    display: inline-block;
  }

  .password-toggle__icon::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .login-modal__actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
  }

  .login-modal__footnote {
    font-style: italic;
  }

  .btn {
    padding: 10px 18px;
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: rgba(255, 255, 255, 0.05);
    color: inherit;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.25);
  }

  .btn-accent {
    padding: 12px 26px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(130deg, #ff4d6d, #7c5cff);
    color: #050505;
    font-weight: 700;
    text-transform: uppercase;
  }

  .login-modal__primary {
    background: #0f172a;
    color: #fff;
    border: none;
  }

  .login-modal__secondary {
    border: 1px solid rgba(15, 23, 42, 0.2);
    background: rgba(15, 23, 42, 0.04);
    color: inherit;
  }

  @media (max-width: 640px) {
    .topbar {
      flex-direction: column;
      align-items: flex-start;
    }

    .page-wrapper {
      padding: 140px 24px 32px;
    }
  }
